From 547aab154e85a9a89f1e320f92bd43854d10faeb Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期四, 14 十二月 2023 14:12:45 +0800 Subject: [PATCH] 1、调整车间看板页面详情弹窗描述列表内容字段 2、报警分析页面在原有表格中为每个报警号增加子表格,内容为出现此报警号的设备ID以及报警时间等 3、报警分析页面表格请求数据设置加载中动画 4、调整设备参数阈值管理页面添加或编辑阈值上下限输入框为数字输入框,避免上下限数字比较大小时出现问题 --- src/views/mdc/base/modules/deviceCalendar/DeviceCalendarListModel.vue | 33 +++++++++++++++++++++++++-------- 1 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarListModel.vue b/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarListModel.vue index 6c88371..d81e62c 100644 --- a/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarListModel.vue +++ b/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarListModel.vue @@ -7,8 +7,8 @@ <div class="table-page-search-wrapper"> <a-form layout="inline" @keyup.enter.native="searchQuery"> <a-row :gutter="24"> - <a-col :md="6" :sm="6"> - <a-form-item label="閮ㄩ棬" > + <a-col :md="6" :sm="6" v-if="isDepartType == 0"> + <a-form-item label="閮ㄩ棬" v-if="isDepartType == 0"> <!--<a-select v-model="queryParam.sectionPid" placeholder="璇烽�夋嫨閮ㄩ棬" :options="sectionPData" @change="initGroupOptions" />--> <a-tree-select v-model="value" @@ -44,8 +44,8 @@ </a-col> <a-col :md="6" :sm="6"> - <a-form-item label="璁惧缂栫爜"> - <a-input placeholder="璇疯緭鍏ヨ澶囩紪鐮佹绱�" v-model="queryParam.equipmentId"></a-input> + <a-form-item label="缁熶竴缂栫爜"> + <a-input placeholder="璇疯緭鍏ョ粺涓�缂栫爜妫�绱�" v-model="queryParam.equipmentId"></a-input> </a-form-item> </a-col> @@ -76,6 +76,7 @@ </template> <script> + import {mapActions} from 'vuex' import { ajaxGetSelectItems } from '@/api/api' @@ -113,6 +114,7 @@ }, data() { return { + isDepartType:'', /*readOnly:true,*/ title:'', visible: false, @@ -132,7 +134,7 @@ } },{ - title: '璁惧缂栫爜', + title: '缁熶竴缂栫爜', align: 'center', dataIndex: 'equipmentId', }, @@ -164,7 +166,7 @@ } }, created() { - + this.queryTreeData() }, watch: { value(value) { @@ -176,6 +178,21 @@ } }, methods: { + ...mapActions(['QueryDepartTree']), + queryTreeData() { + this.QueryDepartTree().then(res => { + if (res.success) { + this.isDepartType = res.result[0].value + } else { + // this.$message.warn(res.message) + this.$notification.warning({ + message:'娑堟伅', + description:res.message + }); + } + }).finally(() =>{ + }) + }, onSelectChange(selectedRowKeys, selectionRows) { // this.SelectedList.push(selectedRowKeys); this.selectedRowKeys = selectedRowKeys; @@ -195,13 +212,13 @@ this.loadData(); }, openPage() { - this.visible = true this.onClearSelected() + this.valueProduct=null + this.visible = true this.dataSource = []; this.queryParam = { status: this.status }; - this.loadData(); this.initOptions(); this.initGroupOptions() -- Gitblit v1.9.3