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

@@ -70,13 +70,11 @@
</div>
<div class="drawer-body__footer">
<el-button style="" @click="handleCancel">
取消
</el-button>
<el-button style="" @click="handleCancel">取消</el-button>
<el-button v-if="mode == 'detail'" type="primary" @click="toggleEdit">
编辑
</el-button>
<el-button v-else type="primary" @click="handleSave">保存</el-button>
<el-button v-else type="primary" @click="handleCancel">确定</el-button>
<!-- sections的第二项必须是 属性列表 -->
<!-- <el-button
v-if="sections[1].allowAdd"
@@ -227,7 +225,8 @@ export default {
...col,
bind: {
// 详情 模式下,禁用各种输入
disabled: this.mode == 'detail',
// disabled: this.mode == 'detail',
disabled: true
},
};
});
@@ -254,7 +253,6 @@ export default {
this.form = data;
this.showForm = true;
this.infoQuery = query;
console.log('setting form: ', this.form, data);
} else if (section.key == 'attrs') {
this.attrQuery = query;
this.list = data.list;
@@ -385,7 +383,6 @@ export default {
return;
}
});
console.log('this.attrform', this.attrForm);
const isEdit = this.attrForm.id != null;
this.attrFormSubmitting = true;
const res = await this.$axios({