feat(): 增加规则版本功能添加
parent
a32d7140e2
commit
351acc4fc4
|
@ -59,7 +59,7 @@
|
||||||
<dict-tag :options="dict.type.rule_engine_version_status" :value="ruleEngineVersion.status"/>
|
<dict-tag :options="dict.type.rule_engine_version_status" :value="ruleEngineVersion.status"/>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<editor style="margin-top: 10px" :read-only="true" v-model="ruleEngineInfo.description"></editor>
|
<editor style="margin-top: 10px" :read-only="true" v-model="ruleEngineVersion.description"></editor>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -144,6 +144,7 @@ export default {
|
||||||
"code": "email",
|
"code": "email",
|
||||||
"engineCode": "engine_custom_email",
|
"engineCode": "engine_custom_email",
|
||||||
"level": "data-field",
|
"level": "data-field",
|
||||||
|
"ruleEngineVersionList": []
|
||||||
},
|
},
|
||||||
// 新增版本
|
// 新增版本
|
||||||
addVersionStatus: false,
|
addVersionStatus: false,
|
||||||
|
@ -170,16 +171,28 @@ export default {
|
||||||
this.$message.error('规则CODE不可为空');
|
this.$message.error('规则CODE不可为空');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (this.engineVersionForm.description == null || this.engineVersionForm.description === "") {
|
||||||
|
this.$message.error('规则版本使用描述不可为空');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
this.engineVersionForm.versionCode = this.ruleEngineInfo.engineCode + "_" + this.engineVersionForm.code
|
this.engineVersionForm.versionCode = this.ruleEngineInfo.engineCode + "_" + this.engineVersionForm.code
|
||||||
this.engineVersionForm.codeIng = this.getCodeIng()
|
this.engineVersionForm.codeIng = this.getCodeIng()
|
||||||
},
|
},
|
||||||
// 确定新增
|
// 确定新增
|
||||||
addVersionSubmission(){
|
addVersionSubmission(){
|
||||||
|
this.ruleEngineInfo.ruleEngineVersionList.push({... this.engineVersionForm})
|
||||||
|
this.addVersionStatus = false;
|
||||||
},
|
},
|
||||||
// 取消新增
|
// 取消新增
|
||||||
addVersionCancel(){
|
addVersionCancel(){
|
||||||
|
this.engineVersionForm = {
|
||||||
|
"name": "", "code": "", "status": "0",
|
||||||
|
"versionCode": "",
|
||||||
|
"isActivate": "no-activate",
|
||||||
|
"description": "",
|
||||||
|
"codeIng": null, "ruleEngineVersionList": []
|
||||||
|
};
|
||||||
|
this.addVersionStatus = false;
|
||||||
},
|
},
|
||||||
handleClick(clickType){
|
handleClick(clickType){
|
||||||
if (clickType === "add"){
|
if (clickType === "add"){
|
||||||
|
|
Loading…
Reference in New Issue