From 32f13d15d67172b9b2dd12d8c5c661c9602c7d2e Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期二, 01 七月 2025 15:30:20 +0800 Subject: [PATCH] 设备管理模块设备车间管理页面新增机构类型字段以及限制条件 --- src/views/eam/base/modules/EamProductionUser.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/eam/base/modules/EamProductionUser.vue b/src/views/eam/base/modules/EamProductionUser.vue index ee10aa0..21bb4c6 100644 --- a/src/views/eam/base/modules/EamProductionUser.vue +++ b/src/views/eam/base/modules/EamProductionUser.vue @@ -1,6 +1,6 @@ <template> <a-card :bordered="false"> - <template v-if="queryParam.baseFactoryId"> + <template v-if="queryParam.factoryId"> <div class="table-page-search-wrapper"> <a-form layout="inline" @keyup.enter.native="searchQuery"> <a-row :gutter="24"> @@ -114,15 +114,15 @@ visible: false, url: { list: '/eam/BaseFactoryUser/BaseFactoryUserList', - add: '/eam/BaseFactory/add', - delete: '/eam/BaseFactory/delete', - deleteBatch: '/eam/BaseFactory/deleteBatch' + add: '/eam/BaseFactoryUser/add', + delete: '/eam/BaseFactoryUser/delete', + deleteBatch: '/eam/BaseFactoryUser/deleteBatch' } } }, methods: { - show(baseFactoryId) { - this.$set(this.queryParam, 'baseFactoryId', baseFactoryId) + show(factoryId) { + this.$set(this.queryParam, 'factoryId', factoryId) this.loadData(1) }, @@ -132,7 +132,7 @@ handleDelete(id) { const that = this - deleteAction(that.url.delete, { id, baseFactoryId: this.queryParam.baseFactoryId }) + deleteAction(that.url.delete, { id, factoryId: this.queryParam.factoryId }) .then((res) => { if (res.success) { //閲嶆柊璁$畻鍒嗛〉闂 @@ -164,7 +164,7 @@ that.loading = true deleteAction(that.url.deleteBatch, { ids, - baseFactoryId: that.queryParam.baseFactoryId + factoryId: that.queryParam.factoryId }) .then((res) => { if (res.success) { @@ -193,7 +193,7 @@ const that = this const params = { userId: selectedUserIdsArray.join(), - baseFactoryId: this.queryParam.baseFactoryId + factoryId: this.queryParam.factoryId } that.loading = true postAction(that.url.add, params) @@ -224,7 +224,7 @@ }, searchReset() { - this.queryParam = { baseFactoryId: this.queryParam.baseFactoryId } + this.queryParam = { factoryId: this.queryParam.factoryId } this.loadData(1) } -- Gitblit v1.9.3