|
|
@ -50,7 +50,7 @@ |
|
|
|
<div>判分规则</div> |
|
|
|
<div>判分规则</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
|
@ -302,7 +302,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<div style="line-height: 65px">{{ checkChange? '需点击' : '' }}</div> |
|
|
|
<div style="line-height: 65px">{{ checkChange[scope.$index]? '需点击' : '' }}</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -338,7 +338,7 @@ export default { |
|
|
|
components: {quill, MyTree}, |
|
|
|
components: {quill, MyTree}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
checkChange: false, |
|
|
|
checkChange: [false], |
|
|
|
|
|
|
|
|
|
|
|
lcId: "", // 流程类判分点id |
|
|
|
lcId: "", // 流程类判分点id |
|
|
|
isAdd: Boolean(this.$route.query.isAdd), // 添加 |
|
|
|
isAdd: Boolean(this.$route.query.isAdd), // 添加 |
|
|
@ -375,6 +375,7 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.getTreeData(); |
|
|
|
this.getTreeData(); |
|
|
|
|
|
|
|
console.log(this.treeData) |
|
|
|
if (this.$route.query.systemId) { |
|
|
|
if (this.$route.query.systemId) { |
|
|
|
this.formData.lcJudgmentPoint.systemId = this.$route.query.systemId; |
|
|
|
this.formData.lcJudgmentPoint.systemId = this.$route.query.systemId; |
|
|
|
} |
|
|
|
} |
|
|
@ -489,7 +490,8 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 |
|
|
|
handleCheckChange(data, checked, indeterminate, row, index) { // 处理勾选 |
|
|
|
this.checkChange = true |
|
|
|
this.checkChange[this.checkChange.length -1 ] = true |
|
|
|
|
|
|
|
this.checkChange.push(false) |
|
|
|
if (checked && data.isNode === 1) { |
|
|
|
if (checked && data.isNode === 1) { |
|
|
|
this.tableData[index].operationIds = data.id; // 操作id串 |
|
|
|
this.tableData[index].operationIds = data.id; // 操作id串 |
|
|
|
// for () |
|
|
|
// for () |
|
|
@ -655,42 +657,47 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
addRule() { // 新增规则 |
|
|
|
addRule() { // 新增规则 |
|
|
|
this.isAddRule = true; |
|
|
|
|
|
|
|
// this.tableData.length && this.tableData.push({ruleOperation: 0, indexNo: ""}); |
|
|
|
if(!this.isAddRule) { |
|
|
|
if (this.tableData.length > 0){ |
|
|
|
this.isAddRule = true; |
|
|
|
this.tableData.push({ |
|
|
|
// this.tableData.length && this.tableData.push({ruleOperation: 0, indexNo: ""}); |
|
|
|
ruleOperation: 0 |
|
|
|
if (this.tableData.length > 0){ |
|
|
|
},{ |
|
|
|
this.tableData.push({ |
|
|
|
indexNo: this.tableData.length +1, |
|
|
|
ruleOperation: 0 |
|
|
|
isSubject: true, |
|
|
|
},{ |
|
|
|
isDisabled: false, // 不禁用 |
|
|
|
indexNo: this.tableData.length +1, |
|
|
|
isSave: false, // 未保存 |
|
|
|
isSubject: true, |
|
|
|
lcId: this.lcId, |
|
|
|
isDisabled: false, // 不禁用 |
|
|
|
resultOperation: 0, |
|
|
|
isSave: false, // 未保存 |
|
|
|
ruleOperation: 0, |
|
|
|
lcId: this.lcId, |
|
|
|
operationIds: "", |
|
|
|
resultOperation: 0, |
|
|
|
value1: "", |
|
|
|
ruleOperation: 0, |
|
|
|
value2: "", |
|
|
|
operationIds: "", |
|
|
|
value3: "", |
|
|
|
value1: "", |
|
|
|
value4: "", |
|
|
|
value2: "", |
|
|
|
value5: "" |
|
|
|
value3: "", |
|
|
|
}); |
|
|
|
value4: "", |
|
|
|
}else{ |
|
|
|
value5: "" |
|
|
|
this.tableData.push({ |
|
|
|
}); |
|
|
|
indexNo: this.tableData.length +1, |
|
|
|
}else{ |
|
|
|
isSubject: true, |
|
|
|
this.tableData.push({ |
|
|
|
isDisabled: false, // 不禁用 |
|
|
|
indexNo: this.tableData.length +1, |
|
|
|
isSave: false, // 未保存 |
|
|
|
isSubject: true, |
|
|
|
lcId: this.lcId, |
|
|
|
isDisabled: false, // 不禁用 |
|
|
|
resultOperation: 0, |
|
|
|
isSave: false, // 未保存 |
|
|
|
ruleOperation: 0, |
|
|
|
lcId: this.lcId, |
|
|
|
operationIds: "", |
|
|
|
resultOperation: 0, |
|
|
|
value1: "", |
|
|
|
ruleOperation: 0, |
|
|
|
value2: "", |
|
|
|
operationIds: "", |
|
|
|
value3: "", |
|
|
|
value1: "", |
|
|
|
value4: "", |
|
|
|
value2: "", |
|
|
|
value5: "" |
|
|
|
value3: "", |
|
|
|
}); |
|
|
|
value4: "", |
|
|
|
|
|
|
|
value5: "" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.$message('请保存当前判分规则再新增!'); |
|
|
|
} |
|
|
|
} |
|
|
|
// anewPosttingData(judgmentRuleList) |
|
|
|
// anewPosttingData(judgmentRuleList) |
|
|
|
}, |
|
|
|
}, |
|
|
|