|
|
|
@ -2665,7 +2665,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12" style="margin-left: 10px;">
|
|
|
|
|
<el-form-item label="数据分级分类" required :prop="`sjzcSjfjfl`" :rules="{
|
|
|
|
|
required: true, message: '请输入', trigger: 'blur'
|
|
|
|
|
required: true, message: '请输入', trigger: 'change'
|
|
|
|
|
}">
|
|
|
|
|
<el-select v-model="ruleForm.sjzcSjfjfl" placeholder="请选择数据分级分类">
|
|
|
|
|
<el-option v-for="dict in dict.type.sjzc_sjfjfl" :key="dict.value" :label="dict.label"
|
|
|
|
@ -3075,79 +3075,25 @@ export default {
|
|
|
|
|
assetTaskhistory(obj).then(res => {
|
|
|
|
|
|
|
|
|
|
this.ruleForm = res.data.assetCurrentHistory;
|
|
|
|
|
if (!this.ruleForm.xjgywxt) {
|
|
|
|
|
this.ruleForm.xjgywxt = {}
|
|
|
|
|
this.$set(this.ruleForm.xjgywxt, 'remark', "")
|
|
|
|
|
}
|
|
|
|
|
if (this.ruleForm.fwwz) {
|
|
|
|
|
let arr = this.ruleForm.fwwz.split("-")
|
|
|
|
|
this.select = arr[0]
|
|
|
|
|
this.ruleForm.fwwz = arr[1]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.ruleForm.glymList.length == 0) {
|
|
|
|
|
this.ruleForm.glymList.push({ key: "" })
|
|
|
|
|
}
|
|
|
|
|
if (this.ruleForm.glIpList.length == 0) {
|
|
|
|
|
this.ruleForm.glIpList.push({ key: "" })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.ruleForm.xttz ? this.xttz = this.ruleForm.xttz.split(',') : [];
|
|
|
|
|
|
|
|
|
|
let chepingUnit = this.ruleForm.gylxxList.filter((item) => item.type == 1)
|
|
|
|
|
let yjgysUnit = this.ruleForm.gylxxList.filter((item) => item.type == 2)
|
|
|
|
|
let jfywUnit = this.ruleForm.gylxxList.filter((item) => item.type == 3)
|
|
|
|
|
let xtsjUnit = this.ruleForm.gylxxList.filter((item) => item.type == 4)
|
|
|
|
|
let xtjsUnit = this.ruleForm.gylxxList.filter((item) => item.type == 5)
|
|
|
|
|
let xtyyUnit = this.ruleForm.gylxxList.filter((item) => item.type == 7)
|
|
|
|
|
let aqfwUnit = this.ruleForm.gylxxList.filter((item) => item.type == 6)
|
|
|
|
|
|
|
|
|
|
this.$set(this.ruleForm, 'chepingUnit', chepingUnit.length > 0 ? chepingUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 1 }])
|
|
|
|
|
this.$set(this.ruleForm, 'yjgysUnit', yjgysUnit.length > 0 ? yjgysUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 2 }])
|
|
|
|
|
this.$set(this.ruleForm, 'jfywUnit', jfywUnit.length > 0 ? jfywUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 3 }])
|
|
|
|
|
this.$set(this.ruleForm, 'xtsjUnit', xtsjUnit.length > 0 ? xtsjUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 4 }])
|
|
|
|
|
this.$set(this.ruleForm, 'xtjsUnit', xtjsUnit.length > 0 ? xtjsUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 5 }])
|
|
|
|
|
this.$set(this.ruleForm, 'xtyyUnit', xtyyUnit.length > 0 ? xtyyUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 7 }])
|
|
|
|
|
this.$set(this.ruleForm, 'aqfwUnit', aqfwUnit.length > 0 ? aqfwUnit : [{ name: "", tyshxydm: "", lxr: "", lxdh: "", type: 6 }])
|
|
|
|
|
|
|
|
|
|
let fwqxx = this.ruleForm.jcwlList.filter((item) => item.type == 1)
|
|
|
|
|
let wlsb = this.ruleForm.jcwlList.filter((item) => item.type == 2)
|
|
|
|
|
let aqsb = this.ruleForm.jcwlList.filter((item) => item.type == 3)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.ruleForm.fwqxx = (this.ruleForm.jcwlList.filter((item) => item.type == 1) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 1) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 1 }])
|
|
|
|
|
|
|
|
|
|
this.$set(this.ruleForm, 'fwqxx', fwqxx.length > 0 ? fwqxx : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 1 }])
|
|
|
|
|
|
|
|
|
|
this.$set(this.ruleForm, 'wlsb', wlsb.length > 0 ? wlsb : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 2 }])
|
|
|
|
|
this.hebingfun()
|
|
|
|
|
|
|
|
|
|
this.$set(this.ruleForm, 'aqsb', aqsb.length > 0 ? aqsb : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 3 }])
|
|
|
|
|
|
|
|
|
|
// this.ruleForm.wlsb = (this.ruleForm.jcwlList.filter((item) => item.type == 2) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 2) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 2 }])
|
|
|
|
|
|
|
|
|
|
// this.ruleForm.aqsb = (this.ruleForm.jcwlList.filter((item) => item.type == 3) == [] ? this.ruleForm.jcwlList.filter((item) => item.type == 3) : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 3 }])
|
|
|
|
|
|
|
|
|
|
this.ruleForm.xtfhqkFcg ? this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(',') : [];
|
|
|
|
|
this.ruleForm.xtfhqkFcg ? this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(',') : [];
|
|
|
|
|
this.ruleForm.xtfhqkFcg ? this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(',') : [];
|
|
|
|
|
this.ruleForm.xtfhqkFcg ? this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(',') : [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.ruleForm.sheng && this.ruleForm.shi && this.ruleForm.qu) {
|
|
|
|
|
this.dlwz = [this.ruleForm.sheng, this.ruleForm.shi, this.ruleForm.qu]
|
|
|
|
|
} else if (this.ruleForm.sheng && this.ruleForm.shi) {
|
|
|
|
|
this.dlwz = [this.ruleForm.sheng, this.ruleForm.shi]
|
|
|
|
|
} else if (this.ruleForm.sheng) {
|
|
|
|
|
this.dlwz = [this.ruleForm.sheng]
|
|
|
|
|
}
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
|
|
assetTasktaskSh(obj).then(res => {
|
|
|
|
|
this.ruleForm = res.data;
|
|
|
|
|
if (!this.ruleForm.xjgywxt) {
|
|
|
|
|
|
|
|
|
|
this.hebingfun()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
hebingfun(){
|
|
|
|
|
if (!this.ruleForm.xjgywxt) {
|
|
|
|
|
this.ruleForm.xjgywxt = {}
|
|
|
|
|
this.$set(this.ruleForm.xjgywxt, 'remark', "")
|
|
|
|
|
}
|
|
|
|
@ -3156,12 +3102,14 @@ export default {
|
|
|
|
|
this.select = arr[0]
|
|
|
|
|
this.ruleForm.fwwz = arr[1]
|
|
|
|
|
}
|
|
|
|
|
if (this.ruleForm.glymList.length == 0) {
|
|
|
|
|
|
|
|
|
|
if (this.ruleForm.glymList.length == 0) {
|
|
|
|
|
this.ruleForm.glymList.push({ key: "" })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.ruleForm.glIpList.length == 0) {
|
|
|
|
|
this.ruleForm.glIpList.push({ key: "" })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.ruleForm.xttz ? this.xttz = this.ruleForm.xttz.split(',') : [];
|
|
|
|
|
|
|
|
|
|
let chepingUnit = this.ruleForm.gylxxList.filter((item) => item.type == 1)
|
|
|
|
@ -3211,11 +3159,6 @@ export default {
|
|
|
|
|
this.dlwz = [this.ruleForm.sheng]
|
|
|
|
|
}
|
|
|
|
|
this.loading = false
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
changeRadio(id) {
|
|
|
|
|
this.ruleForm.xjgywxt = {
|
|
|
|
|