|
|
@@ -37,7 +37,7 @@
|
|
|
<el-link
|
|
|
type="primary"
|
|
|
:underline="false"
|
|
|
- icon="el-icon-edit"
|
|
|
+ icon="el-icon-view"
|
|
|
@click="openEditMatter(row)"
|
|
|
>
|
|
|
详情
|
|
|
@@ -313,13 +313,16 @@
|
|
|
},
|
|
|
addMatter(matter, rules) {
|
|
|
const id = 'tem' + new Date().getTime();
|
|
|
+ console.log('matter', matter, rules);
|
|
|
|
|
|
- // 判断是否存在
|
|
|
- const exists = this.matterList.some(
|
|
|
- (item) => item.rulesId === matter.rulesId
|
|
|
- );
|
|
|
- if (exists) {
|
|
|
- this.$message.warning('规则已存在,请勿重复添加');
|
|
|
+ if (matter.itemType == '2') {
|
|
|
+ // 判断是否存在
|
|
|
+ const exists = this.matterList.some(
|
|
|
+ (item) => item.rulesId === matter.rulesId
|
|
|
+ );
|
|
|
+ if (exists) {
|
|
|
+ this.$message.warning('规则已存在,请勿重复添加');
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -332,8 +335,6 @@
|
|
|
matter.produceTaskConfigRuleDetails = rules?.details || [];
|
|
|
}
|
|
|
|
|
|
- console.log('matter', matter, rules);
|
|
|
-
|
|
|
// 添加事项
|
|
|
this.matterList.push({
|
|
|
...matter,
|