From 0211b730e5f0b1f10a8a3243e30fe599e22f2238 Mon Sep 17 00:00:00 2001 From: cuijian <cuijian@xalxzn.com> Date: 星期二, 01 七月 2025 18:12:04 +0800 Subject: [PATCH] 质量-检验工具,检验项目 --- src/views/system/modules/UserModal.vue | 50 +++++++++++++++++++++++++------------------------- 1 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/views/system/modules/UserModal.vue b/src/views/system/modules/UserModal.vue index 8f3883f..5cd27b2 100644 --- a/src/views/system/modules/UserModal.vue +++ b/src/views/system/modules/UserModal.vue @@ -139,22 +139,22 @@ label="杞﹂棿鍒嗛厤" :labelCol="labelCol" :wrapperCol="wrapperCol" - v-show="!productionDisabled" + v-show="!factoryDisabled" > - <j-select-production - v-model="model.selectedProduction" + <j-select-factory + v-model="model.selectedFactory" :multi="true" - @back="backProductionInfo" + @back="backFactoryInfo" :backProduction="true" :treeProductOpera="true" - ></j-select-production> + ></j-select-factory> </a-form-model-item> <!--<a-form-model-item--> <!--label="閫夋嫨璁惧"--> <!--:labelCol="labelCol"--> <!--:wrapperCol="wrapperCol"--> - <!--v-show="!productionDisabled"--> + <!--v-show="!factoryDisabled"--> <!-->--> <!--<a-input-search--> <!--:readOnly="true"--> @@ -162,7 +162,7 @@ <!--@search="deviceSearch"--> <!--enter-button--> <!--placeholder="璇烽�夋嫨璁惧"--> - <!--:disabled="!model.selectedProduction"--> + <!--:disabled="!model.selectedFactory"--> <!--/>--> <!--</a-form-model-item>--> @@ -350,7 +350,7 @@ import { addUser, editUser, queryUserRole, queryall } from '@/api/api' import { disabledAuthFilter } from '@/utils/authFilter' import { duplicateCheck } from '@/api/api' - import JSelectProduction from '../../../components/jeecgbiz/JSelectProduction' + import JSelectFactory from '../../../components/jeecgbiz/JSelectFactory' import { mapActions } from 'vuex' import { ajaxGetDictItems, getDictItemsFromCache } from '@/api/api' // import SelectDeviceModal from './SelectDeviceModal' @@ -359,12 +359,12 @@ name: 'UserModal', components: { // SelectDeviceModal, - JSelectProduction + JSelectFactory }, data() { return { departDisabled: false, //鏄惁鏄垜鐨勯儴闂ㄨ皟鐢ㄨ椤甸潰 - productionDisabled: false, //鏄惁鏄垜鐨勮溅闂磋皟鐢ㄨ椤甸潰 + factoryDisabled: false, //鏄惁鏄垜鐨勮溅闂磋皟鐢ㄨ椤甸潰 roleDisabled: false, //鏄惁鏄鑹茬淮鎶よ皟鐢ㄨ椤甸潰 modalWidth: 800, drawerWidth: 700, @@ -420,10 +420,10 @@ tenantsOptions: [], rolesOptions: [], nextDepartOptions: [], - nextProductionOptions: [], + nextFactoryOptions: [], isDepartType: '', model: { - selectedProduction: '' + selectedFactory: '' } } }, @@ -433,7 +433,7 @@ if (value) this.initDictData('password_length') } }, - 'model.selectedProduction': { + 'model.selectedFactory': { handler(newVal, oldVal) { if (newVal) { // 濡傛灉杞﹂棿閫夋嫨鍓嶅悗涓嶄竴鑷村垯閲嶇疆閫夋嫨璁惧 @@ -481,7 +481,7 @@ userIdentity: 1, selectedroles: '', selecteddeparts: '', - selectedProduction: '' + selectedFactory: '' }) }, edit(record) { @@ -578,19 +578,19 @@ // 鑾峰彇杞﹂棿鍒嗛厤 getAction(that.url.userProductionList, { userId: userid }).then((res) => { if (res.success) { - let ProductionOptions = [] - let selectProductKeys = [] + let FactoryOptions = [] + let selectFactoryKeys = [] for (let i = 0; i < res.result.length; i++) { - selectProductKeys.push(res.result[i].key) + selectFactoryKeys.push(res.result[i].key) //鏂板璐熻矗閮ㄩ棬閫夋嫨涓嬫媺妗� - ProductionOptions.push({ + FactoryOptions.push({ value: res.result[i].key, label: res.result[i].title }) } - this.$set(this.model, 'selectedProduction', selectProductKeys.join(',')) - that.nextProductionOptions = ProductionOptions + this.$set(this.model, 'selectedFactory', selectFactoryKeys.join(',')) + that.nextFactoryOptions = FactoryOptions } }) //杞﹂棿鐨剈rl @@ -602,9 +602,9 @@ return c }) }, - backProductionInfo(info) { - this.model.productionIds = this.model.selectedProduction - this.nextProductionOptions = info.map((item, index, arr) => { + backFactoryInfo(info) { + this.model.factoryIds = this.model.selectedFactory + this.nextFactoryOptions = info.map((item, index, arr) => { let c = { label: item.text, value: item.value + '' } return c }) @@ -613,7 +613,7 @@ refresh() { this.userId = '' this.nextDepartOptions = [] - this.nextProductionOptions = [] + this.nextFactoryOptions = [] this.departIdShow = false }, close() { @@ -621,7 +621,7 @@ this.visible = false this.disableSubmit = false this.nextDepartOptions = [] - this.nextProductionOptions = [] + this.nextFactoryOptions = [] this.departIdShow = false this.$refs.form.resetFields() }, -- Gitblit v1.9.3