|
|
@ -58,7 +58,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-button v-if="!isView" type="primary" size="mini" @click="batchDel">批量删除</el-button> |
|
|
|
<el-button v-if="!isView" type="primary" size="mini" @click="batchDel">批量删除</el-button> |
|
|
|
<el-button v-if="!isView" :disabled="isAddRule" type="primary" size="mini" @click="addRule">新增</el-button> |
|
|
|
<el-button v-if="!isView" type="primary" size="mini" @click="addRule">新增</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -357,46 +357,44 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
addRule() { // 新增规则 |
|
|
|
addRule() { // 新增规则 |
|
|
|
if(!this.isAddRule) { |
|
|
|
this.isAddRule = true; |
|
|
|
this.isAddRule = true; |
|
|
|
// this.tableData.length && this.tableData.push({ruleOperation: 0, indexNo: ""}); |
|
|
|
// this.tableData.length && this.tableData.push({ruleOperation: 0, indexNo: ""}); |
|
|
|
if (this.tableData.length > 0) { |
|
|
|
if (this.tableData.length > 0) { |
|
|
|
this.tableData.push({ |
|
|
|
this.tableData.push({ |
|
|
|
ruleOperation: 0 |
|
|
|
ruleOperation: 0 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
indexNo: this.tableData.length + 1, |
|
|
|
indexNo: this.tableData.length + 1, |
|
|
|
isSubject: true, |
|
|
|
isSubject: true, |
|
|
|
isDisabled: false, // 不禁用 |
|
|
|
isDisabled: false, // 不禁用 |
|
|
|
isSave: false, // 未保存 |
|
|
|
isSave: false, // 未保存 |
|
|
|
lcId: this.lcId, |
|
|
|
lcId: this.lcId, |
|
|
|
resultOperation: 0, |
|
|
|
resultOperation: 0, |
|
|
|
ruleOperation: 0, |
|
|
|
ruleOperation: 0, |
|
|
|
operationIds: "", |
|
|
|
operationIds: "", |
|
|
|
value1: "", |
|
|
|
value1: "", |
|
|
|
value2: "", |
|
|
|
value2: "", |
|
|
|
value3: "", |
|
|
|
value3: "", |
|
|
|
value4: "", |
|
|
|
value4: "", |
|
|
|
value5: "" |
|
|
|
value5: "" |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.tableData.push({ |
|
|
|
this.tableData.push({ |
|
|
|
indexNo: this.tableData.length + 1, |
|
|
|
indexNo: this.tableData.length + 1, |
|
|
|
isSubject: true, |
|
|
|
isSubject: true, |
|
|
|
isDisabled: false, // 不禁用 |
|
|
|
isDisabled: false, // 不禁用 |
|
|
|
isSave: false, // 未保存 |
|
|
|
isSave: false, // 未保存 |
|
|
|
lcId: this.lcId, |
|
|
|
lcId: this.lcId, |
|
|
|
resultOperation: 0, |
|
|
|
resultOperation: 0, |
|
|
|
ruleOperation: 0, |
|
|
|
ruleOperation: 0, |
|
|
|
operationIds: "", |
|
|
|
operationIds: "", |
|
|
|
value1: "", |
|
|
|
value1: "", |
|
|
|
value2: "", |
|
|
|
value2: "", |
|
|
|
value3: "", |
|
|
|
value3: "", |
|
|
|
value4: "", |
|
|
|
value4: "", |
|
|
|
value5: "" |
|
|
|
value5: "" |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.setIndex() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.setIndex() |
|
|
|
}, |
|
|
|
}, |
|
|
|
changeResult(row) { // (左右)结果运算符(0:且 1:或 默认0) |
|
|
|
changeResult(row) { // (左右)结果运算符(0:且 1:或 默认0) |
|
|
|
row.resultOperation = row.resultOperation === 0 ? 1 : 0; |
|
|
|
row.resultOperation = row.resultOperation === 0 ? 1 : 0; |
|
|
|