From 44d89f2faf9498c0b982613bef7294f83c854e88 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期三, 31 一月 2024 17:50:04 +0800
Subject: [PATCH] Merge branch 'master' of http://117.34.109.166:18448/r/vue_mdc_430 into develop

---
 src/views/mdc/base/EquipmentList.vue |   82 ++++++++++++++++++++++++-----------------
 1 files changed, 48 insertions(+), 34 deletions(-)

diff --git a/src/views/mdc/base/EquipmentList.vue b/src/views/mdc/base/EquipmentList.vue
index 55ce880..cee4b26 100644
--- a/src/views/mdc/base/EquipmentList.vue
+++ b/src/views/mdc/base/EquipmentList.vue
@@ -22,8 +22,8 @@
 
           <a-col :md="6" :sm="8">
             <a-form-item label="杞﹂棿鍚嶇О">
-              <!--<a-input placeholder="璇疯緭鍏ヨ处鍙锋煡璇�" v-model="queryParam.username"></a-input>-->
-              <a-input placeholder="璇疯緭鍏ヨ溅闂村悕绉�" v-model="queryParam.productionName"></a-input>
+              <!--<a-input placeholder="璇疯緭鍏ヨ溅闂村悕绉�" v-model="queryParam.productionName"></a-input>-->
+              <a-tree-select v-model="queryParam.productionName" :treeData="workshopTreeData" placeholder="璇烽�夋嫨杞﹂棿"  tree-default-expand-all></a-tree-select>
             </a-form-item>
           </a-col>
 
@@ -38,6 +38,7 @@
     <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
     <div class="table-operator" style="border-top: 5px">
       <a-button @click="handleAdd" type="primary" icon="plus" >娣诲姞璁惧</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('璁惧淇℃伅')">瀵煎嚭</a-button>
       <a-dropdown v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay" @click="handleMenuClick">
           <a-menu-item key="1">
@@ -64,6 +65,7 @@
         bordered
         size="middle"
         rowKey="id"
+        :scroll="{x:'max-content',y:465}"
         :columns="columns"
         :dataSource="dataSource"
         :pagination="ipagination"
@@ -146,6 +148,7 @@
   import UserRecycleBinModal from './modules/EquipmentList/UserRecycleBinModal'
   import JSuperQuery from '@/components/jeecg/JSuperQuery'
   import JThirdAppButton from '@/components/jeecgbiz/thirdApp/JThirdAppButton'
+  import { queryProductionTreeList } from '@/api/api'
   import {mapActions} from 'vuex'
 
   export default {
@@ -180,25 +183,25 @@
             title: '璁惧缂栧彿',
             align: "center",
             dataIndex: 'equipmentId',
-            width: 120,
+            width: 200,
             // sorter: true
           },
           {
             title: '璁惧鍚嶇О',
             align: "center",
-            width: 150,
+            width: 200,
             dataIndex: 'equipmentName',
           },
           {
             title: '杞﹂棿',
             align: "center",
-            width: 180,
+            width: 200,
             dataIndex: 'productionName'
           },
           {
             title: '璁惧绫诲瀷',
             align: "center",
-            width: 120,
+            width: 200,
             dataIndex: 'equipmentType',
             // scopedSlots: {customRender: "avatarslot"}
           },
@@ -206,33 +209,33 @@
           {
             title: '椹卞姩绫诲瀷',
             align: "center",
-            width: 80,
+            width: 200,
             dataIndex: 'driveType',
             // sorter: true
           },
           {
             title: '鏈哄簥IP',
             align: "center",
-            width: 100,
+            width: 200,
             dataIndex: 'equipmentIp'
           },
           {
             title: '璁惧鍔熺巼',
             align: "center",
-            width: 100,
+            width: 200,
             dataIndex: 'devicePower'
           },
           {
             title: '閮ㄩ棬',
             align: "center",
-            width: 180,
+            width: 200,
             dataIndex: 'orgCodeTxt'
           },
 
           {
             title: '绯荤粺鐗堟湰',
             align: "center",
-            width: 80,
+            width: 200,
             dataIndex: 'systemVersion'
           },
           {
@@ -240,7 +243,8 @@
             dataIndex: 'action',
             scopedSlots: {customRender: 'action'},
             align: "center",
-            width: 120
+            width: 150,
+            fixed:'right'
           }
 
         ],
@@ -254,10 +258,11 @@
           list: "/mdc/mdcEquipment/list",
           delete: "/mdc/mdcEquipment/delete",
           deleteBatch: "/mdc/mdcEquipment/deleteBatch",
-          // exportXlsUrl: "/sys/user/exportXls",
+          exportXlsUrl: "/mdc/mdcEquipment/exportXls",
           // importExcelUrl: "sys/user/importExcel",
         },
-        isDepartType:''
+        isDepartType:'',
+        workshopTreeData:[]
       }
     },
     computed: {
@@ -267,6 +272,7 @@
     },
     created() {
       this.queryTreeData()
+      this.getWorkshopListByApi()
     },
     methods: {
       ...mapActions(['QueryDepartTree']),
@@ -290,25 +296,25 @@
                   title: '璁惧缂栧彿',
                   align: "center",
                   dataIndex: 'equipmentId',
-                  width: 120,
+                  width: 200,
                   // sorter: true
                 },
                 {
                   title: '璁惧鍚嶇О',
                   align: "center",
-                  width: 150,
+                  width: 200,
                   dataIndex: 'equipmentName',
                 },
                 {
                   title: '杞﹂棿',
                   align: "center",
-                  width: 180,
+                  width: 200,
                   dataIndex: 'productionName'
                 },
                 {
                   title: '璁惧绫诲瀷',
                   align: "center",
-                  width: 120,
+                  width: 200,
                   dataIndex: 'equipmentType',
                   // scopedSlots: {customRender: "avatarslot"}
                 },
@@ -316,33 +322,33 @@
                 {
                   title: '椹卞姩绫诲瀷',
                   align: "center",
-                  width: 80,
+                  width: 200,
                   dataIndex: 'driveType',
                   // sorter: true
                 },
                 {
                   title: '鏈哄簥IP',
                   align: "center",
-                  width: 100,
+                  width: 200,
                   dataIndex: 'equipmentIp'
                 },
                 {
                   title: '璁惧鍔熺巼',
                   align: "center",
-                  width: 100,
+                  width: 200,
                   dataIndex: 'devicePower'
                 },
                 // {
                 //   title: '閮ㄩ棬',
                 //   align: "center",
-                //   width: 180,
+                //   width: 200,
                 //   dataIndex: 'orgCodeTxt'
                 // },
 
                 {
                   title: '绯荤粺鐗堟湰',
                   align: "center",
-                  width: 80,
+                  width: 200,
                   dataIndex: 'systemVersion'
                 },
                 {
@@ -350,7 +356,8 @@
                   dataIndex: 'action',
                   scopedSlots: {customRender: 'action'},
                   align: "center",
-                  width: 120
+                  width: 150,
+                  fixed:'right'
                 }
 
               ]
@@ -370,25 +377,25 @@
                   title: '璁惧缂栧彿',
                   align: "center",
                   dataIndex: 'equipmentId',
-                  width: 120,
+                  width: 200,
                   // sorter: true
                 },
                 {
                   title: '璁惧鍚嶇О',
                   align: "center",
-                  width: 150,
+                  width: 200,
                   dataIndex: 'equipmentName',
                 },
                 {
                   title: '杞﹂棿',
                   align: "center",
-                  width: 180,
+                  width: 200,
                   dataIndex: 'productionName'
                 },
                 {
                   title: '璁惧绫诲瀷',
                   align: "center",
-                  width: 120,
+                  width: 200,
                   dataIndex: 'equipmentType',
                   // scopedSlots: {customRender: "avatarslot"}
                 },
@@ -396,33 +403,33 @@
                 {
                   title: '椹卞姩绫诲瀷',
                   align: "center",
-                  width: 80,
+                  width: 200,
                   dataIndex: 'driveType',
                   // sorter: true
                 },
                 {
                   title: '鏈哄簥IP',
                   align: "center",
-                  width: 100,
+                  width: 200,
                   dataIndex: 'equipmentIp'
                 },
                 {
                   title: '璁惧鍔熺巼',
                   align: "center",
-                  width: 100,
+                  width: 200,
                   dataIndex: 'devicePower'
                 },
                 {
                   title: '閮ㄩ棬',
                   align: "center",
-                  width: 180,
+                  width: 200,
                   dataIndex: 'orgCodeTxt'
                 },
 
                 {
                   title: '绯荤粺鐗堟湰',
                   align: "center",
-                  width: 80,
+                  width: 200,
                   dataIndex: 'systemVersion'
                 },
                 {
@@ -430,7 +437,8 @@
                   dataIndex: 'action',
                   scopedSlots: {customRender: 'action'},
                   align: "center",
-                  width: 120
+                  width: 150,
+                  fixed:'right'
                 }
 
               ]
@@ -550,6 +558,12 @@
           this.loadData()
         }
       },
+
+      getWorkshopListByApi(){
+        queryProductionTreeList().then(res=>{
+          if(res.success) this.workshopTreeData=res.result
+        })
+      }
     }
 
   }

--
Gitblit v1.9.3