From 1e1e70da5288f47d8770ba2e7f22f3362e5b577c Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期五, 08 十二月 2023 17:16:35 +0800
Subject: [PATCH] 1、全局修改密码弹窗中的新密码校验长度与数据字典password_length设置保持一致 2、报警分析页面优化过快点击多次表格行时图表内容出现数据残留以及加载图表应设置加载中动画,若不设置用户在查询时短时间内不清楚有无数据 3、车间看板以及设备监控页面设备详情弹窗右上角增加关闭按钮、设备详情弹窗透明度加深、设备详情弹窗图表表盘指针对比色加强、调整设备详情弹窗中描述列表子项标题对齐方式由左对齐改为右对齐,锁定运行数据描述列表子项数值宽度,超出部分隐藏出现省略号,悬浮出现气泡卡片 4、设备利用率、设备开动率、班次利用率页面表格前三列增加表头,依次为公司、车间、工段以及表格有关时间值调整为若小时或分钟为0则不显示 5、设备综合效率分析页面表格数据默认每页最多显示10条改为20条 6、设备加工工件报表页面完成布局及功能实现

---
 src/views/mdc/base/Torqueconfiguration.vue |   81 +++++++++++++++++++++++++++++++---------
 1 files changed, 63 insertions(+), 18 deletions(-)

diff --git a/src/views/mdc/base/Torqueconfiguration.vue b/src/views/mdc/base/Torqueconfiguration.vue
index 3d9239f..2aa13cc 100644
--- a/src/views/mdc/base/Torqueconfiguration.vue
+++ b/src/views/mdc/base/Torqueconfiguration.vue
@@ -1,20 +1,28 @@
 <template>
-  <a-card :bordered="false">
-    <div style="width: 100%; height: 100%;overflow: hidden">
+  <div style="width: 100%; height: 100%;">
+    <a-card :bordered="false">
       <a-row type="flex" :gutter="16">
-        <a-col :md="5" :sm="24">
-          <base-tree @getCurrSelected="changeSelectionNode"></base-tree>
+        <a-col :md="4">
+          <a-tabs :activeKey="activeKey"  @change="tabChange">
+            <a-tab-pane key="1" tab="杞﹂棿灞傜骇" force-render>
+              <base-tree @getCurrSelected="changeSelectionNode"></base-tree>
+            </a-tab-pane>
+            <a-tab-pane  v-if="isDepartType == 0" key="2" tab="閮ㄩ棬灞傜骇">,
+              <depart-tree  @getCurrSelectedDD="changeSelectionNodedd"></depart-tree>
+            </a-tab-pane>
+          </a-tabs>
         </a-col>
-        <a-col :md="24-5" :sm="24">
-          <torqueconfiguration-list :equement="selectEquement"></torqueconfiguration-list>
+        <a-col :md="20">
+          <torqueconfiguration-list  ref="TorqueconfigurationList" :nodePeople='selectPeople' :nodeTree = 'selectEquement' :Type="slectTypeTree"></torqueconfiguration-list>
         </a-col>
       </a-row>
-    </div>
-  </a-card>
+    </a-card>
+  </div>
+
 </template>
 
 <script>
-  import { putAction,getAction } from '@/api/manage'
+  import { putAction, getAction } from '@/api/manage'
   import { frozenBatch } from '@/api/api'
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import JInput from '@/components/jeecg/JInput'
@@ -22,7 +30,8 @@
   import TorqueconfigurationList from './modules/TorqueconfigurationList/TorqueconfigurationList'
   import JSuperQuery from '@/components/jeecg/JSuperQuery'
   import JThirdAppButton from '@/components/jeecgbiz/thirdApp/JThirdAppButton'
-
+  import DepartTree from './modules/DepartList/DepartListTree/DepartTree'
+  import {mapActions} from 'vuex'
   export default {
     name: 'Torqueconfiguration',
     components: {
@@ -30,23 +39,59 @@
       JInput,
       BaseTree,
       JSuperQuery,
-      TorqueconfigurationList,
+      DepartTree,
+      TorqueconfigurationList
     },
     data() {
       return {
-        description: '鎵煩閰嶇疆绠$悊椤甸潰',
-        selectEquement:{},
-        equipmentStatisticsInfo:{},
-        url:{
-          equipmentStatistics:"/mdc/equipment/equipmentStatistics"
-        }
+        activeKey: '1',
+        description: '璁惧淇℃伅',
+        selectEquementId: '',
+        selectEquement: {},
+        selectPeople:{},
+        slectTypeTree:"",
+        url: {
+          equipmentStatistics: '/mdc/equipment/equipmentStatistics'
+        },
+        isDepartType:'',
       }
     },
     created() {
+      this.queryTreeData()
     },
     methods: {
-      changeSelectionNode(val){
+      ...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(() =>{
+        })
+      },
+      tabChange(val) {
+        // console.log(val);
+        this.activeKey = val
+        this.slectTypeTree = val
+      },
+      // changeSelection(val) {
+      //   this.selectEquementId = val
+      //   this.$refs.efficiencyList.pQuery(val)
+      //   this.$refs.efficiencyList.searchQuery()
+      // },
+      changeSelectionNode(val) {
         this.selectEquement = val
+        this.slectTypeTree = "1"
+      },
+      changeSelectionNodedd(val) {
+        this.selectPeople = val
+        this.slectTypeTree = "2"
       }
     }
 

--
Gitblit v1.9.3