4c2103f0 by 任超

style:申请业务规则配置

1 parent e6f8e45a
......@@ -76,8 +76,12 @@ export default {
},
subData: {
handler (newValue, oldValue) {
this.dataList.sxql = newValue.sxql
this.dataList.sxzt = newValue.sxzt
if (!_.isEqual(newValue.sxql, this.dataList.sxql)) {
this.dataList.sxql = _.cloneDeep(newValue.sxql)
}
if (!_.isEqual(newValue.sxzt, this.dataList.sxzt)) {
this.dataList.sxzt = _.cloneDeep(newValue.sxzt)
}
},
deep: true
},
......@@ -89,12 +93,12 @@ export default {
}
},
handleSelectall () {
this.dataList.qlxxList.forEach(item => {
this.dataList.sxql.forEach(item => {
item.checked = true
})
},
handleInvert () {
this.dataList.qlxxList.forEach(item => {
this.dataList.sxql.forEach(item => {
item.checked = false
})
}
......
......@@ -252,8 +252,12 @@ export default {
},
// 单元状态设定
getDyztsdValue (val) {
this.subData.sxql = val.sxql
this.subData.sxzt = val.sxzt
if (!_.isEqual(val.sxql, this.subData.sxql)) {
this.subData.sxql = val.sxql
}
if (!_.isEqual(val.sxzt, this.subData.sxzt)) {
this.subData.sxzt = val.sxzt
}
},
submitForm () {
this.$refs['ruleForm'].validate(async (valid) => {
......