feat(): 增加规则版本功能添加
parent
a32d7140e2
commit
351acc4fc4
|
@ -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"){
|
||||
|
|
Loading…
Reference in New Issue