refactor(company): 公司/部门/工作组编辑改为右侧抽屉
- 三个详情页的编辑 el-dialog 统一改为 el-drawer(direction=rtl, size=600) - 保留原表单与 footer 按钮,destroy-on-close 语义不变
This commit is contained in:
1 parent
6a488fe452
commit
43a03857d1
3 files changed
+27
-9
No files matched your search
@@ -408,8 +408,14 @@ watch(companyUUID, () => {
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<!-- 主表编辑弹窗 -->
|
||||
<el-dialog v-model="editVisible" title="编辑公司" width="600px" destroy-on-close>
|
||||
<!-- 主表编辑抽屉 -->
|
||||
<el-drawer
|
||||
v-model="editVisible"
|
||||
title="编辑公司"
|
||||
direction="rtl"
|
||||
:size="600"
|
||||
destroy-on-close
|
||||
>
|
||||
<el-form :model="editForm" label-width="120px" label-position="right">
|
||||
<!-- 公司图标:点击上传/替换(后端统一缩放 128x128) -->
|
||||
<el-form-item label="公司图标">
|
||||
@@ -527,7 +533,7 @@ watch(companyUUID, () => {
|
||||
<el-button @click="editVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="editSubmitting" @click="saveEdit">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</el-drawer>
|
||||
</DetailPage>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -255,8 +255,14 @@ watch(deptUUID, () => {
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<el-dialog v-model="editDialogVisible" title="编辑部门" width="600px" destroy-on-close>
|
||||
<!-- 编辑抽屉 -->
|
||||
<el-drawer
|
||||
v-model="editDialogVisible"
|
||||
title="编辑部门"
|
||||
direction="rtl"
|
||||
:size="600"
|
||||
destroy-on-close
|
||||
>
|
||||
<el-form :model="editForm" label-width="120px" label-position="right">
|
||||
<el-form-item
|
||||
v-for="col in formColumns"
|
||||
@@ -332,7 +338,7 @@ watch(deptUUID, () => {
|
||||
<el-button @click="editDialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="editSubmitting" @click="handleSubmit">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</el-drawer>
|
||||
</DetailPage>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -244,8 +244,14 @@ watch(workgroupUUID, () => {
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<el-dialog v-model="editDialogVisible" title="编辑工作组" width="600px" destroy-on-close>
|
||||
<!-- 编辑抽屉 -->
|
||||
<el-drawer
|
||||
v-model="editDialogVisible"
|
||||
title="编辑工作组"
|
||||
direction="rtl"
|
||||
:size="600"
|
||||
destroy-on-close
|
||||
>
|
||||
<el-form :model="editForm" label-width="120px" label-position="right">
|
||||
<el-form-item
|
||||
v-for="col in formColumns"
|
||||
@@ -341,7 +347,7 @@ watch(workgroupUUID, () => {
|
||||
<el-button @click="editDialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="editSubmitting" @click="handleSubmit">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</el-drawer>
|
||||
</DetailPage>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in new issue
Block a user