diff --git a/src/locales/en.json b/src/locales/en.json index 35b49eac..ad598f6e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -47,8 +47,6 @@ "please_enter": "Please enter {name}", "parent_area": "Parent Area", "select_parent_area": "Please select parent area", - "add_child": "Add Subarea", - "add_child_title": "Add Subarea", "export": "Export", "confirm_export": "Create export task?", "length_1_100": "Length should be 1 to 100 characters", diff --git a/src/locales/zh-chs.json b/src/locales/zh-chs.json index a70ff568..5ef32451 100644 --- a/src/locales/zh-chs.json +++ b/src/locales/zh-chs.json @@ -47,8 +47,6 @@ "please_enter": "请输入{name}", "parent_area": "上级区域", "select_parent_area": "请选择上级区域", - "add_child": "新增子区域", - "add_child_title": "新增子区域", "export": "导出", "confirm_export": "确认创建导出任务?", "length_1_100": "长度在 1 到 100 个字符", diff --git a/src/views/production-master-data/factory-model/factory-area/index.vue b/src/views/production-master-data/factory-model/factory-area/index.vue index c86970f1..f19b98ac 100644 --- a/src/views/production-master-data/factory-model/factory-area/index.vue +++ b/src/views/production-master-data/factory-model/factory-area/index.vue @@ -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')