From 729497a30df36ca7d8864e16ee61116d3c4aa74f Mon Sep 17 00:00:00 2001 From: sheng <905537351@qq.com> Date: Wed, 24 Jun 2026 16:18:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=B7=A5=E5=8E=82=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E6=96=B0=E5=A2=9E=E5=AD=90=E5=8C=BA=E5=9F=9F=E5=85=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en.json | 2 -- src/locales/zh-chs.json | 2 -- .../factory-model/factory-area/index.vue | 13 +------------ 3 files changed, 1 insertion(+), 16 deletions(-) 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')