feat(): 增加规则版本功能添加

master
DongZeLiang 2024-05-07 09:04:30 +08:00
parent a32d7140e2
commit 351acc4fc4
1 changed files with 16 additions and 3 deletions

View File

@ -59,7 +59,7 @@
<dict-tag :options="dict.type.rule_engine_version_status" :value="ruleEngineVersion.status"/>
</el-descriptions-item>
</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-col>
</el-row>
@ -144,6 +144,7 @@ export default {
"code": "email",
"engineCode": "engine_custom_email",
"level": "data-field",
"ruleEngineVersionList": []
},
//
addVersionStatus: false,
@ -170,16 +171,28 @@ export default {
this.$message.error('规则CODE不可为空');
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.codeIng = this.getCodeIng()
},
//
addVersionSubmission(){
this.ruleEngineInfo.ruleEngineVersionList.push({... this.engineVersionForm})
this.addVersionStatus = false;
},
//
addVersionCancel(){
this.engineVersionForm = {
"name": "", "code": "", "status": "0",
"versionCode": "",
"isActivate": "no-activate",
"description": "",
"codeIng": null, "ruleEngineVersionList": []
};
this.addVersionStatus = false;
},
handleClick(clickType){
if (clickType === "add"){