From a04b8970aa94f80c4c4937706c787391759aded7 Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期三, 13 十二月 2023 15:54:17 +0800 Subject: [PATCH] 1、全局车间层级以及部门层级树默认展开 2、车间看板页面设备详情弹窗背景透明度改为不透明 3、所有含有车间层级树页面新增弹窗中的选择设备弹窗内容由表格选择调整为树方式 4、报警分析页面表格字段出现次数与合计持续时间增加排序功能以及表格请求数据设置加载中动画 5、设备利用率、设备开动率以及班次利用率页面表格有关时间值调整为小时并保留两位小数以及通过与后端数据联调,增加表格平均值及合计值展示 6、设备综合效率分析页面表格班次字段若数据过长则省略 7、用户管理页面添加用户与重新设定密码弹窗中的登录密码校验长度与数据字典password_length设置保持一致以及表格车间字段若数据过长则省略 --- src/views/mdc/base/modules/HolidayManagement/HolidayManagementModal.vue | 68 ++++++++++++++++++++++++++++------ 1 files changed, 56 insertions(+), 12 deletions(-) diff --git a/src/views/mdc/base/modules/HolidayManagement/HolidayManagementModal.vue b/src/views/mdc/base/modules/HolidayManagement/HolidayManagementModal.vue index 6779340..3c952d6 100644 --- a/src/views/mdc/base/modules/HolidayManagement/HolidayManagementModal.vue +++ b/src/views/mdc/base/modules/HolidayManagement/HolidayManagementModal.vue @@ -7,7 +7,7 @@ <a-col :span="24"> <a-form-item label="璁惧缁�" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> <a-input-search :readOnly="true" v-decorator="['equipmentIds', validatorRules.equipmentIds]" - @search="deviceSearch" enter-button/> + @search="deviceSearch" enter-button placeholder="璇烽�夋嫨璁惧"/> </a-form-item> </a-col> </a-row> @@ -20,20 +20,23 @@ </a-col> <a-col :span="12"> <a-form-item label="绫诲瀷" :labelCol="labelCol" :wrapperCol="wrapperCol"> - <a-input :disabled="disableSubmit" placeholder="璇疯緭鍏ョ被鍨�" - v-decorator="['vacationType', validatorRules.vacationType]"/> + <j-dict-select-tag :readOnly="disableSubmit" placeholder="璇烽�夋嫨绫诲瀷" + :triggerChange="true" dictCode="vacation_type " + v-decorator="['vacationType', validatorRules.vacationType]" allow-clear/> </a-form-item> </a-col> </a-row> <a-row :gutter="24"> + <a-col :span="24"> <a-form-item label="澶囨敞" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> - <a-textarea v-decorator="['notes', validatorRules.notes]" placeholder="璇疯緭鍏ュ娉�" ></a-textarea> + <a-textarea :maxLength="20" v-decorator="['notes', validatorRules.notes]" placeholder="璇疯緭鍏ュ娉�" ></a-textarea> </a-form-item> + </a-col> </a-row> </a-form> </a-spin> <holiday-management-modal-list ref="deviceRepairListModel" @sendSelectionRows="getDeviceRows"></holiday-management-modal-list> - + <select-device-modal ref="selectDeviceModal" @selectFinished="selectOK" :title="'閫夋嫨璁惧'"/> </a-modal> </template> @@ -50,10 +53,11 @@ import { duplicateCheck } from '@/api/api' + import SelectDeviceModal from '../../../../system/modules/SelectDeviceModal' export default { name: 'HolidayManagementModal', - components: {HolidayManagementModalList}, + components: { SelectDeviceModal, HolidayManagementModalList}, props: {}, data() { return { @@ -109,6 +113,22 @@ }, ], }, + vacationDate:{ + rules:[ + { + required:true, + message: "璇烽�夋嫨浼戝亣鏃堕棿" + }, + ], + }, + vacationType:{ + rules:[ + { + required:true, + message: "璇烽�夋嫨鍋囨湡绫诲瀷" + }, + ], + }, }, url: { @@ -123,7 +143,6 @@ }, created() { }, - methods: { // disabledDate(current){ // //Can not slect days before today and today @@ -166,9 +185,10 @@ // }) }, deviceSearch() { - this.$refs.deviceRepairListModel.openPage() - this.$refs.deviceRepairListModel.title = '閫夋嫨璁惧' - this.$refs.deviceRepairListModel.disableSubmit = false + this.$refs.selectDeviceModal.visible = true + this.$refs.selectDeviceModal.selectedRowKeys = [] + this.$refs.selectDeviceModal.selectedRows = [] + this.$refs.selectDeviceModal.checkedKeys = this.form.getFieldValue('equipmentIds') ? this.form.getFieldValue('equipmentIds').split(',') : [] }, //绾ц仈妗唎nChange浜嬩欢 // onChange(value) { @@ -244,11 +264,19 @@ } obj.then((res) => { if (res.success) { - that.$message.success("娣诲姞鎴愬姛") + // that.$message.success("娣诲姞鎴愬姛") + that.$notification.success({ + message:'娑堟伅', + description:"娣诲姞鎴愬姛" + }); // that.$message.success(res.message) that.$emit('ok', res.result) } else { - that.$message.warning(res.message) + // that.$message.warning(res.message) + that.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }).finally(() => { that.confirmLoading = false @@ -296,6 +324,22 @@ }, checkboxChange(e) { this.checked = e.target.checked + }, + + /** + * 閫夋嫨宸叉湁璁惧鍚庣偣鍑荤‘瀹氭椂瑙﹀彂 + * @param data 宸查�夋嫨鐨勮澶� + */ + selectOK(data) { + // let params = {} + // params.equipmentIdList = [] + // for (var a = 0; a < data.length; a++) { + // params.equipmentIdList.push(data[a]) + // } + console.log('data=', data) + this.form.setFieldsValue({ + equipmentIds: data.join(',') + }) } } } -- Gitblit v1.9.3