|
|
@ -84,13 +84,14 @@ |
|
|
|
<el-table-column label=" " width="150"> |
|
|
|
<el-table-column label=" " width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
|
|
|
|
circle |
|
|
|
|
|
|
|
type="primary" |
|
|
|
v-if="scope.row.isSubject" |
|
|
|
v-if="scope.row.isSubject" |
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
:disabled="isView || scope.row.isDisabled" |
|
|
|
type="primary" circle |
|
|
|
|
|
|
|
@click="changeResult(scope.row)" |
|
|
|
@click="changeResult(scope.row)" |
|
|
|
style="position: absolute; right: 55px" |
|
|
|
style="position: absolute; right: 55px" |
|
|
|
> |
|
|
|
> |
|
|
|
{{ scope.row.withOr === 0 ? '且' : '或' }} |
|
|
|
{{ scope.row.resultOperation === 0 ? '且' : '或' }} |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button v-else type="primary" circle @click="changeRule(scope.row, scope.$index)"> |
|
|
|
<el-button v-else type="primary" circle @click="changeRule(scope.row, scope.$index)"> |
|
|
|
{{ scope.row.ruleOperation === 0 ? "且" : "或" }} |
|
|
|
{{ scope.row.ruleOperation === 0 ? "且" : "或" }} |
|
|
@ -299,7 +300,7 @@ export default { |
|
|
|
bcId: i.bcId, |
|
|
|
bcId: i.bcId, |
|
|
|
required: i.required, |
|
|
|
required: i.required, |
|
|
|
result: i.result, |
|
|
|
result: i.result, |
|
|
|
withOr: i.withOr |
|
|
|
resultOperation: i.resultOperation |
|
|
|
}; |
|
|
|
}; |
|
|
|
tempArr.push(obj) |
|
|
|
tempArr.push(obj) |
|
|
|
}); |
|
|
|
}); |
|
|
@ -370,7 +371,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
changeResult(row) { // (左右)结果运算符(0:且 1:或 默认0) |
|
|
|
changeResult(row) { // (左右)结果运算符(0:且 1:或 默认0) |
|
|
|
row.withOr = row.withOr === 0 ? 1 : 0; |
|
|
|
row.resultOperation = row.resultOperation === 0 ? 1 : 0; |
|
|
|
}, |
|
|
|
}, |
|
|
|
changeRule(row, index) { // (上下)规则运算符(0:且 1:或 默认0) |
|
|
|
changeRule(row, index) { // (上下)规则运算符(0:且 1:或 默认0) |
|
|
|
row.ruleOperation = row.ruleOperation === 0 ? 1 : 0; |
|
|
|
row.ruleOperation = row.ruleOperation === 0 ? 1 : 0; |
|
|
|