From 918deb5b53d9226c93ebfeb4e981f7af4cac5107 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期日, 29 九月 2024 15:54:49 +0800
Subject: [PATCH] 最新版本

---
 admin/src/views/business/deviceLed.vue                 |   10 ++++++++++
 admin/src/components/business/OperaDeviceLedWindow.vue |    9 +++++++--
 admin/src/api/business/device.js                       |    2 +-
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/admin/src/api/business/device.js b/admin/src/api/business/device.js
index 5dbdb73..207ca0b 100644
--- a/admin/src/api/business/device.js
+++ b/admin/src/api/business/device.js
@@ -31,5 +31,5 @@
 }
 // 鍙戠敓led灞忓唴瀹�
 export function setLedContent (data) {
-  return request.post('/visitsAdmin/cloudService/business/device/setLedContent', data)
+  return request.post('/visitsAdmin/cloudService/business/hksync/setLedContent', data)
 }
diff --git a/admin/src/components/business/OperaDeviceLedWindow.vue b/admin/src/components/business/OperaDeviceLedWindow.vue
index f22ae44..289c955 100644
--- a/admin/src/components/business/OperaDeviceLedWindow.vue
+++ b/admin/src/components/business/OperaDeviceLedWindow.vue
@@ -9,6 +9,9 @@
             <el-form-item label="鏄剧ず鍐呭" prop="title">
                 <el-input v-model="form.title" placeholder="璇疯緭鍏ED灞忔樉绀哄唴瀹�" v-trim/>
             </el-form-item>
+            <el-form-item label="鎾斁閫熷害" prop="title">
+                <el-input type="number" v-model="form.speed" placeholder="璇疯緭鍏ユ挱鏀鹃�熷害(澶т簬0鏁板瓧锛�" v-trim/>
+            </el-form-item>
         </el-form>
     </GlobalWindow>
 </template>
@@ -25,7 +28,8 @@
       // 琛ㄥ崟鏁版嵁
       form: {
         id: null,
-        title: ''
+        title: '',
+        speed: 13
       },
       // 楠岃瘉瑙勫垯
       rules: {
@@ -54,7 +58,8 @@
       // 璋冪敤鏂板缓鎺ュ彛
       this.isWorking = true
       this.api.setLedContent({
-        id: this.form.id,
+        deviceId: this.form.id,
+        speed: this.form.speed,
         content: this.form.title
       })
         .then(() => {
diff --git a/admin/src/views/business/deviceLed.vue b/admin/src/views/business/deviceLed.vue
index a79b284..4cdd754 100644
--- a/admin/src/views/business/deviceLed.vue
+++ b/admin/src/views/business/deviceLed.vue
@@ -32,6 +32,16 @@
                 </el-table-column>
                 <el-table-column prop="ip" label="璁惧ip"></el-table-column>
                 <el-table-column prop="port" label="璁惧绔彛"></el-table-column>
+              <el-table-column
+                  v-if="containPermissions(['business:device:update' ])"
+                  label="鎿嶄綔"
+                  min-width="120"
+                  fixed="right"
+              >
+                <template slot-scope="{row}">
+                  <el-button type="text" @click="$refs.OperaDeviceLedWindow.open('璁剧疆灞忔樉鍐呭', row)" icon="el-icon-edit" v-permissions="['business:device:update']">璁剧疆灞忔樉鍐呭</el-button>
+                </template>
+              </el-table-column>
             </el-table>
             <pagination
                 @size-change="handleSizeChange"

--
Gitblit v1.9.3