删除工厂区域新增子区域入口
Some checks failed
Release pipeline / publish (push) Has been cancelled
Release pipeline / Always run job (push) Has been cancelled

This commit is contained in:
sheng
2026-06-24 16:18:27 +08:00
parent 9fd6aee93f
commit 729497a30d
3 changed files with 1 additions and 16 deletions

View File

@@ -125,7 +125,7 @@ export default {
{ prop: 'code', label: this.key('code'), minWidth: 140 },
{ prop: 'name', label: this.key('name'), minWidth: 160 },
{ prop: 'remark', label: this.key('remark') },
{ prop: '_actions', label: this.key('operation'), width: 230, fixed: 'right' }
{ prop: '_actions', label: this.key('operation'), width: 160, fixed: 'right' }
])
const btns = useTableButtons({
toolbar: [
@@ -133,7 +133,6 @@ export default {
{ key: 'export', label: this.key('export'), icon: 'el-icon-download', auth: '/production_configuration/factory_model/factory_area/export', onClick: this.handleExport }
],
row: [
{ key: 'addChild', label: this.key('add_child'), icon: 'el-icon-plus', auth: '/production_configuration/factory_model/factory_area/create', onClick: this.openAddChild },
{ key: 'edit', label: this.key('edit'), icon: 'el-icon-edit', auth: '/production_configuration/factory_model/factory_area/edit', onClick: this.openEdit },
{ key: 'delete', label: this.key('delete'), icon: 'el-icon-delete', color: 'danger', auth: '/production_configuration/factory_model/factory_area/delete', onClick: this.handleDelete }
]
@@ -237,16 +236,6 @@ export default {
this.dialogVisible = true
})
},
openAddChild (row) {
this.handleType = 'create'
this.dialogTitle = this.key('add_child_title')
this.$nextTick(() => {
this.$refs.dialogForm && this.$refs.dialogForm.reset()
this.resetForm()
this.formData.parent_id = this.getId(row)
this.dialogVisible = true
})
},
openEdit (row) {
this.handleType = 'edit'
this.dialogTitle = this.key('edit_title')