From ad484143a31c9eca3f6d3a4f6d642f28318d5e24 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期四, 29 十二月 2022 17:57:34 +0800
Subject: [PATCH] fix: 设置栏目及其它bug

---
 src/views/layout/components/Header/index.vue |   67 ++++++++++++++++++++++++++++++---
 1 files changed, 60 insertions(+), 7 deletions(-)

diff --git a/src/views/layout/components/Header/index.vue b/src/views/layout/components/Header/index.vue
index eb4f6c5..6d55cf9 100644
--- a/src/views/layout/components/Header/index.vue
+++ b/src/views/layout/components/Header/index.vue
@@ -37,7 +37,7 @@
           <el-card class="box-card">
             <div class="card-header">
               <span>娑堟伅涓績</span>
-              <el-button type="text">鎺ユ敹璁剧疆</el-button>
+              <el-button type="text" @click="channelSetting">鎺ユ敹璁剧疆</el-button>
             </div>
             <div v-for="item in menuMessageList" :key="item.id" class="message-card__item">
               <router-link to='/home/operate/message/messageIndex'>
@@ -54,12 +54,37 @@
           <i class="el-icon-switch-button"></i>
         </el-tooltip>
       </div>
+      <el-dialog :visible.sync="channelSettingVisible" width="25%" title="娑堟伅鏍忕洰璁剧疆" v-if="channelSettingVisible"
+        :before-close="handleChannelClose">
+        <el-table
+            ref="multipleTable"
+            :header-cell-style="{
+            'font-size': '14px',
+            'font-weight': '650',
+            'line-height': '45px',
+          }"
+            :data="channelData"
+            style="width: 100%"
+   
+        >  <el-table-column
+      type="selection"
+      width="55"
+      
+      >
+    </el-table-column>
+          <el-table-column prop="columnName" label="鍏ㄩ儴" min-width="5"  align="center">
+            <!-- <template slot-scope="scope">{{ scope.row.id }}</template> -->
+          </el-table-column>
+          </el-table>
+          <el-button type="button" @click="channelSetting">鏇存柊</el-button>
+          <el-button type="button" @click="channelSetting">鍙栨秷</el-button>
+      </el-dialog>
       <el-dialog :visible.sync="updatePasswordDialog" width="40%" title="淇敼瀵嗙爜" v-if="updatePasswordDialog"
         :before-close="handleClose">
         <updatePassword />
       </el-dialog>
       <el-dialog :visible.sync="baseInformationVisible" width="35%" title="鍩烘湰淇℃伅" v-if="baseInformationVisible"
-        :before-close="handleClose">
+        >
         <el-form :model="info" class="info" label-width="6vw">
           <el-form-item label="鐢ㄦ埛ID" min-width="6">
             <el-input v-model="info.id"></el-input>
@@ -98,6 +123,8 @@
     return {
       baseInformationVisible: false,
       updatePasswordDialog: false,
+      channelSettingVisible:false,
+      checked3:true,
       menuLeftList: [
         {
           label: '椹鹃┒鑸�',
@@ -107,15 +134,15 @@
         },
         {
           label: '瑙嗛宸℃煡',
-          checked: false,
+          checked: true,
           url: '',
           id: '2f'
         },
         {
           label: '鎵ф硶绠$悊',
-          checked: false,
+          checked: true,
           url: '',
-          if: '3f',
+          id: '3f',
         },
       ],
       flag: {
@@ -124,6 +151,7 @@
       },
       user: '',
       menuMessageList: [],
+      channelData: [],
       messageCounts: 0,
       keyword: '',
       info: null,
@@ -146,10 +174,29 @@
           this.info = res.data.user;
         })
     },
-    handleClose(done) {
+    channelSetting(){
+      this.channelSettingVisible=true;
+      const userInfo = JSON.parse(sessionStorage.getItem('user'));
+      this.$axios({
+        method: 'get',
+        url: 'sccg/message_column/getShowColumn?'+'id='+userInfo.user.id
+      })
+        .then(res => {
+          this.channelData=res.data
+        })
+    },
+    handleChannelClose(done) {
       this.$confirm("纭鍏抽棴锛�")
         .then((_) => {
           this.dialogUpload = false;
+          done();
+        })
+        .catch((_) => { });
+    },
+    handleClose(done) {
+      this.$confirm("纭鍏抽棴锛�")
+        .then((_) => {
+          this.channelSettingVisible = false;
           done();
         })
         .catch((_) => { });
@@ -210,7 +257,13 @@
     },
     menuChange(data) {
       if (data.id === '1f') {
-        window.open('http://121.37.167.200:28081/cockpit-pub/pc-board?boardId=zfu0LsJ9', '_blank');
+        window.open('http://cockpit.patstech.net:28081/cockpit/dist/board.html#/share-board/zfu0LsJ9', '_blank');
+      }
+      if (data.id === '2f') {
+        this.$router.push({path: "/home/video"})
+      }
+      if (data.id === '3f') {
+        this.$router.push({path: "/home/operate/casepool/pool"})
       }
     }
   }

--
Gitblit v1.8.0