修复重置不清楚数据问题

This commit is contained in:
陈昱达
2025-08-05 10:39:57 +08:00
parent a842b9d4b7
commit 0c2cba22c3

View File

@@ -55,7 +55,7 @@
</el-form-item>
<!-- 规则描述输入框 -->
<el-form-item label="规则描述" prop="ruleDesc">
<el-form-item label="规则描述" prop="ruleDescLike">
<el-input
v-model="queryParams.ruleDescLike"
size="medium"
@@ -134,10 +134,6 @@ import {
deleteRule,
batchSwitchStatus,
queryRuleDetail,
getRuleList,
batchAddRuleType,
batchAddField,
batchAddRiskType,
getRuleTypeList,
getFieldTypeList,
getRiskTypeList
@@ -330,6 +326,15 @@ export default {
tableData: []
}
},
watch: {
'queryParams.ruleType': {
handler: function(n) {
if (!n) {
this.fieldTypeListCopy = []
}
}
}
},
created() {
this.getList()
this.getRuleTypeList()
@@ -343,7 +348,6 @@ export default {
)[0]
if (ruleType) {
this.fieldTypeListCopy = this.fieldTypeList.filter(item => {
console.log(item)
return item.ruleTypeId === ruleType.id
})
} else {