From af2a56b525dd3b015b34446a2af3e3af3467cd75 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期一, 08 十二月 2025 13:48:20 +0800
Subject: [PATCH] 最新版本541200007

---
 admin/src/views/business/deviceBroadcastChannel.vue |   75 ++++++++++++++++++++++++++++++++++---
 1 files changed, 69 insertions(+), 6 deletions(-)

diff --git a/admin/src/views/business/deviceBroadcastChannel.vue b/admin/src/views/business/deviceBroadcastChannel.vue
index c10e474..63bc99c 100644
--- a/admin/src/views/business/deviceBroadcastChannel.vue
+++ b/admin/src/views/business/deviceBroadcastChannel.vue
@@ -28,6 +28,16 @@
                 <el-table-column prop="channelNo" label="閫氶亾鍙�"></el-table-column>
                 <el-table-column prop="regionName" label="鍖哄煙鍚嶇О"></el-table-column>
                 <el-table-column prop="hkDate" label="鍚屾鏃堕棿"></el-table-column>
+              <el-table-column
+                  label="鎿嶄綔"
+                  align="center"
+                  min-width="120"
+                  fixed="right"
+              >
+                <template slot-scope="{row}">
+                  <el-button type="text" @click="send(row)" icon="el-icon-edit" >鍙戦�佹挱鎶�</el-button>
+                </template>
+              </el-table-column>
             </el-table>
             <pagination
                 @size-change="handleSizeChange"
@@ -37,7 +47,24 @@
             </pagination>
         </template>
         <!-- 鏂板缓/淇敼 -->
-<!--        <OperaDeviceWindow ref="operaDeviceWindow" @success="handlePageChange"/>-->
+      <el-dialog
+          :visible.sync="visibleSend"
+          style="z-index: 100000"
+          append-to-body
+          width="50%"
+          height="50%"
+          :title="'鍙戦�佹挱鎶�-'+ form.name"
+      >
+        <el-form :model="form" ref="form" >
+          <el-form-item label="鎾姤鍐呭" prop="name" required>
+            <el-input v-model="form.sendInfo" type="textarea" placeholder="璇疯緭鍏ユ挱鎶ュ唴瀹�" v-trim/>
+          </el-form-item>
+        </el-form>
+        <template  v-slot:footer  >
+          <el-button @click="sendBobao()" type="primary" :loading="isWorkSending">纭</el-button>
+          <el-button @click="sendClose()">杩斿洖</el-button>
+        </template>
+      </el-dialog>
     </TableLayout>
 </template>
 
@@ -45,12 +72,11 @@
 import BaseTable from '@/components/base/BaseTable'
 import TableLayout from '@/layouts/TableLayout'
 import Pagination from '@/components/common/Pagination'
-import OperaDeviceWindow from '@/components/business/OperaDeviceWindow'
 import { syncDevices, updateEntranceById } from '@/api/business/device'
 export default {
   name: 'Device',
   extends: BaseTable,
-  components: { TableLayout, Pagination, OperaDeviceWindow },
+  components: { TableLayout, Pagination },
   data () {
     return {
       // 鎼滅储
@@ -61,6 +87,14 @@
         online: '',
         type: 3
       },
+      isWorkSending: false,
+      form: {
+        sendInfo: '',
+        id: '',
+        hkId: '',
+        name: ''
+      },
+      visibleSend: false,
       options: []
     }
   },
@@ -74,7 +108,36 @@
     this.search()
   },
   methods: {
-    changeManufature(e, row) {
+    sendBobao () {
+      if (!this.form.sendInfo) {
+        return
+      }
+      this.$dialog.actionConfirm('纭杩涜骞挎挱鎾姤鍚楋紵', '鎿嶄綔纭鎻愰啋')
+        .then(() => {
+          this.isWorkSending = true
+          this.api.sendBobao(this.form)
+            .then(res => {
+              this.$tip.apiSuccess(res || '鎾姤璇锋眰鎴愬姛')
+              this.sendClose()
+            })
+            .catch(e => {
+            })
+            .finally(() => {
+              this.isWorkSending = false
+            })
+        })
+        .catch(() => {})
+    },
+    send (row) {
+      this.visibleSend = true
+      this.form = { sendInfo: '', id: row.id, hkId: row.hkId, name: row.name }
+    },
+    sendClose () {
+      this.visibleSend = false
+      this.isWorkSending = false
+      this.form = { sendInfo: '', id: '', hkId: '', name: '' }
+    },
+    changeManufature (e, row) {
       updateEntranceById({
         id: row.id,
         isEntrance: e
@@ -84,13 +147,13 @@
       this.$dialog.actionConfirm('鎿嶄綔纭鎻愰啋', '鎮ㄧ‘璁ゅ悓姝ュ叏閮ㄤ俊鎭悧锛�')
         .then(() => {
           this.isWorking.delete = true
-          syncDevices({type: 3})
+          syncDevices({ type: 3 })
             .then(res => {
               this.$tip.apiSuccess(res || '鍚屾鎴愬姛')
               this.search()
             })
             .catch(e => {
-             //  this.$tip.apiFailed(e)
+              //  this.$tip.apiFailed(e)
             })
             .finally(() => {
               this.isWorking.delete = false

--
Gitblit v1.9.3