From 2079ba28f20bde46f7736699c97abf0e1564770d Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 14 十月 2024 09:30:46 +0800
Subject: [PATCH] 最新版本

---
 admin/src/views/meeting/rooms.vue |   35 ++++++++++++++++++++---------------
 1 files changed, 20 insertions(+), 15 deletions(-)

diff --git a/admin/src/views/meeting/rooms.vue b/admin/src/views/meeting/rooms.vue
index 166f5e0..b701dc7 100644
--- a/admin/src/views/meeting/rooms.vue
+++ b/admin/src/views/meeting/rooms.vue
@@ -11,13 +11,14 @@
           filterable
           clearable
           multiple
+          style="width: 250px"
           placeholder="閫夋嫨閮ㄩ棬鎴愬憳"
         >
           <el-option
             v-for="item in userList"
             :key="item.id"
             :value="item.id"
-            :label="item.department?`${item.department.name}-${item.realname}`:item.realname"
+            :label="item.companyId?`${item.companyName}-${item.companyName}`:item.realname"
             ></el-option>
             <!-- :label="`${item.department.name}-${item.realname}`" -->
           <!-- <el-option :key="1" :value="1" label="绂佺敤" /> -->
@@ -44,6 +45,11 @@
         @selection-change="handleSelectionChange"
       >
         <!-- <el-table-column type="selection" width="55"></el-table-column> -->
+        <el-table-column prop="id" label="鍞竴鏍囪瘑" align="center" min-width="80px" show-overflow-tooltip>
+          <template slot-scope="{row}">
+            <span class="long-title-style">{{ row.id }}</span>
+          </template>
+        </el-table-column>
         <el-table-column prop="name" label="浼氳瀹ゅ悕绉�" align="center" min-width="120px" show-overflow-tooltip>
           <template slot-scope="{row}">
             <span class="long-title-style">{{ row.name }}</span>
@@ -67,7 +73,7 @@
         </el-table-column>
         <el-table-column prop="limitNum" label="鍙�夋湇鍔¢」" align="center" min-width="140px" show-overflow-tooltip>
           <template slot-scope="{row}">
-            <div class="long-title-style">{{ row.projectList.map(item => item.projectName).join('|') }}</div>
+            <div class="long-title-style">{{ row.projectList.map(item => item.projectName).join(' | ') }}</div>
 
           </template>
         </el-table-column>
@@ -84,8 +90,8 @@
           </template>
         </el-table-column>
         <el-table-column prop="createDate" label="鍒涘缓鏃堕棿"  align="center" min-width="140px"></el-table-column>
+        <el-table-column prop="editDate" label="鏇存柊鏃堕棿" min-width="140px"></el-table-column>
         <!-- <el-table-column prop="editor" label="鏇存柊浜虹紪鐮�" min-width="100px"></el-table-column>
-        <el-table-column prop="editDate" label="鏇存柊鏃堕棿" min-width="100px"></el-table-column>
         <el-table-column prop="isdeleted" label="鏄惁鍒犻櫎0鍚� 1鏄�" min-width="100px"></el-table-column>
         <el-table-column prop="remark" label="澶囨敞" min-width="100px"></el-table-column>
         <el-table-column prop="imgurl" label="浼氳瀹ゅ浘鐗�" min-width="100px"></el-table-column>
@@ -122,7 +128,7 @@
 import OperaRoomsWindow from '@/views/meeting/components/OperaRoomsWindow'
 import { fetchList as userList } from '@/api/system/user'
 // import selectMember from '@/components/meeting/selectMember'
-import { updateStatusById } from '@/views/meeting/api/rooms'
+import { updateStatusById } from '@/api/meeting/rooms'
 export default {
   name: 'Rooms',
   extends: BaseTable,
@@ -151,7 +157,7 @@
       }
     }
   },
-  provide() {
+  provide () {
     return {
       userList: () => this.userList
     }
@@ -159,14 +165,15 @@
   created () {
     this.config({
       module: '浼氳瀹や俊鎭〃',
-      api: '@/views/meeting/api/rooms',
+      api: '/meeting/rooms',
       'field.id': 'id',
       'field.main': 'id'
     })
     userList({
       page: 1,
       capacity: 9999,
-      model: { realname: this.filterText },
+      memberType: 2,
+      model: { realname: this.filterText }
     })
       .then(res => {
         this.userList = res.records
@@ -174,16 +181,16 @@
     this.search()
   },
   methods: {
-     // 椤电爜鍙樻洿澶勭悊
+    // 椤电爜鍙樻洿澶勭悊
     handlePageChange (pageIndex) {
       this.__checkApi()
       this.tableData.pagination.pageIndex = pageIndex || this.tableData.pagination.pageIndex
       this.isWorking.search = true
       let sysList = [...this.searchForm.sysList]
       sysList = sysList.map(item => {
-        return {userId: item}
+        return { userId: item }
       })
-      console.log(sysList);
+      console.log(sysList)
       this.api.fetchList({
         page: this.tableData.pagination.pageIndex,
         capacity: this.tableData.pagination.pageSize,
@@ -198,7 +205,7 @@
           this.tableData.pagination.total = data.total
         })
         .catch(e => {
-          this.$tip.apiFailed(e)
+          // this.$tip.apiFailed(e)
         })
         .finally(() => {
           this.isWorking.search = false
@@ -208,23 +215,21 @@
     //   console.log('21212');
     //   this.$refs.selectMember.open('閫夋嫨绠$悊鍛�')
     // },
-    changeStatus(item) {
+    changeStatus (item) {
       updateStatusById({
         id: item.id,
         status: item.status
       })
         .then(() => {
           this.$message.success('淇敼鎴愬姛')
-
         })
         .catch(e => {
-          this.$message.error(e)
         })
         .finally(() => {
           this.handlePageChange()
         })
     }
-  },
+  }
 }
 </script>
 

--
Gitblit v1.9.3