From 759ccbfc701c60800da901d8b5822b3528a5b002 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期二, 10 三月 2026 11:23:58 +0800
Subject: [PATCH] 更改头部

---
 admin/src/views/business/deviceDianbiao.vue |   70 +++++++++++++++++++++++-----------
 1 files changed, 47 insertions(+), 23 deletions(-)

diff --git a/admin/src/views/business/deviceDianbiao.vue b/admin/src/views/business/deviceDianbiao.vue
index f1483af..f87c701 100644
--- a/admin/src/views/business/deviceDianbiao.vue
+++ b/admin/src/views/business/deviceDianbiao.vue
@@ -31,7 +31,9 @@
               <el-table-column prop="name" label="鍚嶇О" fixed min-width="150" align="center"></el-table-column>
               <el-table-column prop="no" label="鐢佃〃鍦板潃鍩�" min-width="100" align="center" ></el-table-column>
               <el-table-column prop="doorNo" label="璁惧鍙�"  min-width="120" align="center" show-overflow-tooltip></el-table-column>
+<!--
               <el-table-column prop="channelNo" label="寮�鍏冲簭鍙�" align="center" min-width="100"></el-table-column>
+-->
               <el-table-column prop="manufature" label="鍘傚晢" align="center" min-width="100" show-overflow-tooltip></el-table-column>
               <el-table-column prop="regionPathName" align="center"  min-width="100" label="鎵�鍦ㄤ綅缃�"></el-table-column>
               <el-table-column prop="ip" label="IP"  min-width="150" align="center" show-overflow-tooltip ></el-table-column>
@@ -43,6 +45,17 @@
                   </el-switch>
                 </template>
               </el-table-column>
+              <el-table-column prop="doorNameObj.pwdLevel" label="瀵嗙爜绛夌骇" align="center" min-width="150"></el-table-column>
+              <el-table-column prop="doorNameObj.pwd" label="瀵嗙爜" align="center">
+                <template slot-scope="{row}">
+                  <span :class=" 'blue'">{{row.showPwd?row.doorNameObj.pwd:'******'}}</span>
+                  <el-button  style="margin-left: 10px" v-if="row.doorNameObj.pwd!=null"
+                              @click.native.p.prevent="showPassward(row)" type="text">
+                    <i class="el-icon-view" :class="row.showPwd?'red':'blue'" :title="row.showPwd?'闅愯棌':'鏄剧ず'"></i>
+                  </el-button>
+                </template>
+              </el-table-column>
+              <el-table-column prop="doorNameObj.userCode" label="鎿嶄綔鑰呬唬鐮�" align="center" min-width="150"></el-table-column>
               <el-table-column prop="editDate" label="鏈�杩戞洿鏂版椂闂�" align="center" min-width="150"></el-table-column>
               <el-table-column
                   label="鎿嶄綔"
@@ -55,6 +68,7 @@
                     <el-button type="text" @click="$refs.operaDeviceDataWindow.open('鏌ョ湅鐢佃〃鏁版嵁', row)" icon="el-icon-view" v-permissions="['business:device:update']">鏁版嵁</el-button>
                     <el-button type="text" @click="send(row,1)" icon="el-icon-circle-check"  v-permissions="['business:device:update']">寮�闂�</el-button>
                     <el-button type="text" class="red" @click="send(row,0)" icon="el-icon-circle-close"  v-permissions="['business:device:update']">鍏抽椄</el-button>
+                    <el-button type="text" class="red" @click="readData(row)" icon="el-icon-circle-close"  v-permissions="['business:device:update']">璇诲彇鏁版嵁</el-button>
                     <el-button type="text" class="red" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:device:delete']">鍒犻櫎</el-button>
                   </template>
                 </el-table-column>
@@ -78,19 +92,20 @@
             <b class="green" v-if="form.status ===1">寮�闂�</b>
             <b class="red" v-else>鍏抽椄</b>
           </el-form-item>
-          <el-form-item label="寮�鍏冲簭鍙�" prop="channelNo">
-            <el-input v-model="form.channelNo" type="text" placeholder="璇疯緭鍏ュ紑鍏冲簭鍙� 锛屽涓敤鑻辨枃閫楀彿闅斿紑锛屽 1,2,3" v-trim/>
+          <el-form-item label="鏈夋晥鏃堕棿" prop="cmdDate">
+            <el-date-picker type="datetime" v-model="form.cmdDate" value-format="yyyy-MM-dd HH:mm:ss"
+                            placeholder="璇烽�夋嫨鏈夋晥鏃堕棿"   />
           </el-form-item>
-          <p class="tip-warn" style="width: 100%;"><i class="el-icon-warning"></i>璁惧鍘熷寮�鍏冲簭鍙蜂俊鎭細{{form.channelNo1}}锛屾帶鍒跺涓紑鍏筹紝璇风敤鑻辨枃閫楀彿闅斿紑锛屽 1,2;</p>
+          <p class="tip-warn" style="width: 100%;"><i class="el-icon-warning"></i></p>
         </el-form>
         <template  v-slot:footer  >
-          <el-button @click="sendAction()" type="primary" v-if="form.status === 1" :loading="isWorkSending">纭寮�闂�</el-button>
-          <el-button @click="sendAction()" type="danger" v-if="form.status !== 1" :loading="isWorkSending">纭鍏抽椄</el-button>
+          <el-button @click="sendAction(0)" type="primary" v-if="form.status === 1" :loading="isWorkSending">纭寮�闂�</el-button>
+          <el-button @click="sendAction(1)" type="danger" v-if="form.status !== 1" :loading="isWorkSending">纭鍏抽椄</el-button>
           <el-button @click="sendClose()">杩斿洖</el-button>
         </template>
       </el-dialog>
         <!-- 鏂板缓/淇敼 -->
-    <OperaDeviceDuanluqiWindow ref="operaDeviceWindow" @success="handlePageChange"/>
+    <OperaDeviceDianbiaoWindow ref="operaDeviceWindow" @success="handlePageChange"/>
     <OperaDeviceDataListWindow ref="operaDeviceDataWindow" @success="handlePageChange"/>
     </TableLayout>
 </template>
@@ -98,12 +113,12 @@
 import BaseTable from '@/components/base/BaseTable'
 import TableLayout from '@/layouts/TableLayout'
 import Pagination from '@/components/common/Pagination'
-import OperaDeviceDataListWindow from '@/components/business/OperaDeviceDataListWindow'
-import OperaDeviceDuanluqiWindow from '@/components/business/OperaDeviceDuanluqiWindow'
+import OperaDeviceDataListWindow from '@/components/business/OperaDianbiaoDataListWindow'
+import OperaDeviceDianbiaoWindow from '@/components/business/OperaDeviceDianbiaoWindow'
 export default {
   name: 'DeviceDuanluqi',
   extends: BaseTable,
-  components: { TableLayout, Pagination, OperaDeviceDuanluqiWindow ,OperaDeviceDataListWindow},
+  components: { TableLayout, Pagination, OperaDeviceDianbiaoWindow, OperaDeviceDataListWindow },
   data () {
     return {
       // 鎼滅储
@@ -116,15 +131,14 @@
       isWorkSending: false,
       form: {
         id: '',
-        name: '',
-        channelNo: '',
-        channelNo1: '',
-        status: null
+        status: null,
+        name:null,
+        cmdDate: null
       },
       visibleSend: false,
       options: [],
       rules: {
-        channelNo: [{ required: true, message: '璇疯緭鍏ラ渶瑕佹搷浣滅殑寮�鍏冲簭鍙�', trigger: 'blur' }],
+        cmdDate: [{ required: true, message: '璇烽�夋嫨鎿嶄綔鏈夋晥鏃堕棿' }]
       }
     }
   },
@@ -151,17 +165,16 @@
         this.$set(row, 'showPwd', false)
       }
     },
-    sendAction () {
-      if (!this.form.channelNo) {
-        return
-      }
+    sendAction (status) {
+      this.form.status = status
       this.$dialog.actionConfirm('纭杩涜鐢佃〃銆�' + (this.form.status === 1 ? '寮�闂�' : '鍏抽椄') + '銆戞搷浣滃悧锛�', '鎿嶄綔纭鎻愰啋')
         .then(() => {
+          console.log(this.form)
           this.isWorkSending = true
-          this.api.duanluqiCmd(this.form)
+          this.api.dianbaoCmd(this.form)
             .then(res => {
               this.$tip.apiSuccess(res || '璇锋眰鎴愬姛')
-              this.sendClose()
+              this.handlePageChange()
             })
             .catch(e => {
             })
@@ -171,16 +184,27 @@
         })
         .catch(() => {})
     },
+    readData (row) {
+      this.api.dianbiaoData({ id: row.id })
+        .then(res => {
+          this.$tip.apiSuccess(res || '璇锋眰鎴愬姛')
+          this.handlePageChange()
+        })
+        .catch(e => {
+        })
+        .finally(() => {
+          this.isWorkSending = false
+        })
+    },
     send (row, type) {
       this.visibleSend = true
-      this.form = { id: row.id, name: row.name, channelNo: row.channelNo, status: type ,channelNo1:row.channelNo}
+      this.form = { id: row.id, name: row.name, cmdDate: null, status: type}
     },
     sendClose () {
       this.visibleSend = false
       this.isWorkSending = false
-      this.form = { id: '', name: '', channelNo: '', status: '',channelNo1:'' }
+      this.form = { id: '', name: '', status: '', cmdDate: '' }
     }
-
   }
 }
 </script>

--
Gitblit v1.9.3