Commit bd9cacae authored by liwenhong's avatar liwenhong

add:配置上限

parent cf04f334
......@@ -61,7 +61,7 @@
</div>
</el-form-item>
<el-form-item>
<el-button @click="addDomain">新增档位</el-button>
<el-button @click="addDomain" v-if="configForm.result.length < 7">新增档位</el-button>
</el-form-item>
</el-form>
<template #footer>
......@@ -272,6 +272,9 @@
}
}
}
if (this.configForm.result.length > 6) {
return this.$message.error("已达配置上限,档位最多只能配置6个");
}
this.listParams.config = JSON.stringify(this.configForm.result);
this.listParams.date = this.configForm.date;
let res = await yingxiaoSaveConfig(this.listParams);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment