删除工厂区域新增子区域入口
This commit is contained in:
@@ -47,8 +47,6 @@
|
|||||||
"please_enter": "Please enter {name}",
|
"please_enter": "Please enter {name}",
|
||||||
"parent_area": "Parent Area",
|
"parent_area": "Parent Area",
|
||||||
"select_parent_area": "Please select parent area",
|
"select_parent_area": "Please select parent area",
|
||||||
"add_child": "Add Subarea",
|
|
||||||
"add_child_title": "Add Subarea",
|
|
||||||
"export": "Export",
|
"export": "Export",
|
||||||
"confirm_export": "Create export task?",
|
"confirm_export": "Create export task?",
|
||||||
"length_1_100": "Length should be 1 to 100 characters",
|
"length_1_100": "Length should be 1 to 100 characters",
|
||||||
|
|||||||
@@ -47,8 +47,6 @@
|
|||||||
"please_enter": "请输入{name}",
|
"please_enter": "请输入{name}",
|
||||||
"parent_area": "上级区域",
|
"parent_area": "上级区域",
|
||||||
"select_parent_area": "请选择上级区域",
|
"select_parent_area": "请选择上级区域",
|
||||||
"add_child": "新增子区域",
|
|
||||||
"add_child_title": "新增子区域",
|
|
||||||
"export": "导出",
|
"export": "导出",
|
||||||
"confirm_export": "确认创建导出任务?",
|
"confirm_export": "确认创建导出任务?",
|
||||||
"length_1_100": "长度在 1 到 100 个字符",
|
"length_1_100": "长度在 1 到 100 个字符",
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export default {
|
|||||||
{ prop: 'code', label: this.key('code'), minWidth: 140 },
|
{ prop: 'code', label: this.key('code'), minWidth: 140 },
|
||||||
{ prop: 'name', label: this.key('name'), minWidth: 160 },
|
{ prop: 'name', label: this.key('name'), minWidth: 160 },
|
||||||
{ prop: 'remark', label: this.key('remark') },
|
{ 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({
|
const btns = useTableButtons({
|
||||||
toolbar: [
|
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 }
|
{ key: 'export', label: this.key('export'), icon: 'el-icon-download', auth: '/production_configuration/factory_model/factory_area/export', onClick: this.handleExport }
|
||||||
],
|
],
|
||||||
row: [
|
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: '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 }
|
{ 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
|
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) {
|
openEdit (row) {
|
||||||
this.handleType = 'edit'
|
this.handleType = 'edit'
|
||||||
this.dialogTitle = this.key('edit_title')
|
this.dialogTitle = this.key('edit_title')
|
||||||
|
|||||||
Reference in New Issue
Block a user