+
item.type == 1)
let yjgysUnit = this.ruleForm.gylxxList.filter((item) => item.type == 2)
let jfywUnit = this.ruleForm.gylxxList.filter((item) => item.type == 3)
@@ -2843,6 +2850,7 @@ export default {
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 }])
@@ -2851,10 +2859,22 @@ export default {
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 }])
- 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 }])
+ 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.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.$set(this.ruleForm, 'wlsb', wlsb.length > 0 ? wlsb : [{ sblx: "", pp: "", ipType: "", sbIP: "", czxx: "", czxxbb: "", yjxh: "", yjxlh: "", yjbbxx: "", yjyt: "", yjbswz: "", type: 2 }])
+
+ 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(',') : [];
@@ -2869,6 +2889,8 @@ export default {
} else if (this.ruleForm.sheng) {
this.dlwz = [this.ruleForm.sheng]
}
+ this.loading = false
+
})
},
changeRadio(id) {
@@ -2889,7 +2911,9 @@ export default {
},
// 服务器Form新增
addServer(type, id) {
- this[type].push({
+ console.log(this.ruleForm);
+
+ this.ruleForm[type].push({
sblx: "",
pp: "",
ipType: "",
@@ -3012,6 +3036,9 @@ export default {
this.ruleForm.shi = this.dlwz[1]
this.ruleForm.qu = this.dlwz[2]
}
+ if(this.ruleForm.fwwz) {
+ this.ruleForm.fwwz = this.select + "-" + this.ruleForm.fwwz
+ }
if (type == 0) {
//报废
this.$prompt('请输入报废原因', '提示', {
diff --git a/src/views/unitPages/myTask/index.vue b/src/views/unitPages/myTask/index.vue
index ac872a0..4866337 100644
--- a/src/views/unitPages/myTask/index.vue
+++ b/src/views/unitPages/myTask/index.vue
@@ -188,6 +188,13 @@ export default {
}
},
mounted() {
+ console.log(this.$store.state.user);
+ if(this.$store.state.user.roles[0] == "admin"){
+ this.pagination: {
+ current: 1,
+ size: 10,
+ },
+ }
this.getInfo();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
diff --git a/src/views/unitPages/myTask/info.vue b/src/views/unitPages/myTask/info.vue
index f5a48c7..bfc89ca 100644
--- a/src/views/unitPages/myTask/info.vue
+++ b/src/views/unitPages/myTask/info.vue
@@ -229,6 +229,7 @@ export default {
}
},
mounted() {
+
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
@@ -344,9 +345,11 @@ export default {
}
},
getList() {
-
+ this.loading = true
geassetTaskcHc(this.pagination).then(res => {
+
this.tableData = res.data.records
+ this.loading = false
})
},
getListTwo() { },