update 改为抽屉展示

This commit is contained in:
lb
2023-10-10 14:22:00 +08:00
parent 723d83cc02
commit b2ee61b8cb
11 changed files with 852 additions and 59 deletions

View File

@@ -50,7 +50,7 @@
:disabled="disabled"
v-model="dataForm.type"
placeholder="请选择报警类型"
@change="$emit('update', dataForm)">
@change="handleTypeChange">
<el-option
v-for="opt in [
{ label: '布尔型', value: 2 },
@@ -166,9 +166,9 @@ export default {
resetFields(args) {
return this.$refs.form.resetFields(args);
},
async handleProductlineChange(id) {
await this.getWorksectionList(id);
this.dataForm.workshopSectionId = null;
async handleTypeChange(id) {
// debugger;
this.dataForm.alarmCode = '';
this.$emit('update', this.dataForm);
},
async getCode(url) {