From 79ced684c6ec28c8f6affa0ac6cd44e1a88f9cf3 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期五, 22 八月 2025 15:33:26 +0800 Subject: [PATCH] 自定义算法配置,设备车间管理,用户管理 --- src/views/mdc/base/modules/EquipmentList/UserModal.vue | 70 +---------------------------------- 1 files changed, 2 insertions(+), 68 deletions(-) diff --git a/src/views/mdc/base/modules/EquipmentList/UserModal.vue b/src/views/mdc/base/modules/EquipmentList/UserModal.vue index b42763e..3259818 100644 --- a/src/views/mdc/base/modules/EquipmentList/UserModal.vue +++ b/src/views/mdc/base/modules/EquipmentList/UserModal.vue @@ -120,21 +120,6 @@ </a-form-model-item> </a-col> <a-col :span="12"> - <a-form-model-item label="璁惧绾у埆"> - <j-dict-select-tag placeholder="璇烽�夋嫨璁惧绾у埆" dictCode="device_level" v-model="model.deviceLevel" - :disabled="disableSubmit"/> - </a-form-model-item> - </a-col> - </a-row> - - <a-row :gutter="24"> - <a-col :span="12"> - <a-form-model-item label="璁惧绉嶇被"> - <j-dict-select-tag placeholder="璇烽�夋嫨璁惧绉嶇被" dictCode="device_category" v-model="model.deviceCategory" - :disabled="disableSubmit"/> - </a-form-model-item> - </a-col> - <a-col :span="12"> <a-form-model-item label="鎺掑簭"> <a-input :disabled="disableSubmit" :readOnly="disableSubmit" placeholder="璇疯緭鍏ユ帓搴�" v-model="model.sortNo" style="width: 100%"/> @@ -144,36 +129,8 @@ <a-row :gutter="24"> <a-col :span='12'> - <a-form-model-item label="閰嶉�佸皬缁�" prop="teamCode"> - <j-dict-select-tag placeholder="璇烽�夋嫨閰嶉�佸皬缁�" dictCode="mdc_staff_team" v-model="model.teamCode" - :disabled="disableSubmit"/> - </a-form-model-item> - </a-col> - <a-col :span='12'> <a-form-model-item label="璁惧鍥剧墖"> <j-image-upload v-model="model.equipmentImage" :disabled="disableSubmit"/> - </a-form-model-item> - </a-col> - </a-row> - - <a-row :gutter="24" v-if="systemType"> - <a-col :span='24'> - <a-form-model-item label="绯荤粺绫诲瀷" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> - <a-radio-group name="radioGroup" v-model="systemValue" :disabled="disableSubmit"> - <a-radio value="1">DNC</a-radio> - <a-radio value="2">MDC</a-radio> - <a-radio value="3">閫氱敤</a-radio> - </a-radio-group> - </a-form-model-item> - </a-col> - </a-row> - - - <a-row :gutter="24"> - <a-col :span='12'> - <a-form-model-item v-if="isDepartType == 0" label="绯荤粺鐗堟湰鍙�"> - <a-input :disabled="disableSubmit" :readOnly="disableSubmit" allow-clear placeholder="璇疯緭鍏ョ郴缁熺増鏈彿" - v-model="model.systemVersion"/> </a-form-model-item> </a-col> </a-row> @@ -243,9 +200,7 @@ driveType: '', systemType: '', deviceLevel: '', - deviceCategory: '', - deviceTypeDnc: '', - deviceTypeMdc: '' + deviceCategory: '' }, labelCol: { xs: { span: 24 }, @@ -264,8 +219,6 @@ sm: { span: 19 } }, confirmLoading: false, - systemType: false, - systemValue: '3', url: { userWithDepart: '/mdc/mdcEquipment/equipmentDepartList', // 寮曞叆涓烘寚瀹氱敤鎴锋煡鐪嬮儴闂ㄤ俊鎭渶瑕佺殑url //寮曞叆涓烘寚瀹氱敤鎴锋煡鐪嬭溅闂翠俊鎭渶瑕佺殑url @@ -283,7 +236,6 @@ created() { this.queryGroup() this.queryTreeData() - this.getAppPlatformName() }, methods: { ...mapActions(['QueryDepartTree']), @@ -296,13 +248,6 @@ message: '娑堟伅', description: res.message }) - } - }) - }, - getAppPlatformName() { - getAction(`/system/sysParams/query/by/settingKey?settingKey=system_type`).then(res => { - if (res.success) { - this.systemType = res.result.settingValue === '0' } }) }, @@ -359,16 +304,11 @@ //鏍规嵁灞忓箷瀹藉害鑷�傚簲鎶藉眽瀹藉害 this.resetScreenSize() - if (record.systemValue != null) { - this.systemValue = record.systemValue - } else { - this.systemValue = '3' - } that.model = Object.assign({}, record) this.$nextTick(() => { this.form.setFieldsValue(pick(that.model, 'selectedDeparts', 'selectedProduction', 'equipmentId', 'equipmentName', 'equipmentModel', 'equipmentType', 'equipmentIp', 'dataPort', - 'driveType', 'sortNo', 'remark', 'systemVersion', 'devicePower', 'controlSystem', 'saveTableName', 'systemValue')) + 'driveType', 'sortNo', 'remark', 'systemVersion', 'devicePower', 'controlSystem', 'saveTableName')) }) if (record.hasOwnProperty('id')) { that.getUserDeparts(record.id) @@ -462,17 +402,11 @@ this.$refs.form.validate(valid => { if (valid) { that.confirmLoading = true - if (this.systemValue == null) { - this.$message.warning('璇烽�夋嫨绯荤粺绫诲瀷!') - return false - } let obj if (!this.model.id) { this.model.id = this.userId - this.model.systemValue = this.systemValue obj = addEquipment(this.model) } else { - this.model.systemValue = this.systemValue obj = editEquipment(this.model, { id: this.model.id }) -- Gitblit v1.9.3