Эх сурвалжийг харах

工程现场页面及相关接口调用调整

zhanghao 3 сар өмнө
parent
commit
c368778b35

+ 10 - 0
src/api/zcustom/air.js

@@ -0,0 +1,10 @@
+import request from '@/utils/request'
+
+// 查询摄像头列表
+export function update(num) {
+  return request({
+    url: '/zcustom/third/updateAirNum',
+    method: 'post',
+    data: num
+  })
+}

+ 3 - 3
src/views/screen/official/carWarning.vue

@@ -9,7 +9,7 @@
           <img src="../../../assets/zhang/public_car.png" width="58" style="margin: 0 5px 0 33px">
           <div style="width: 108px;height: 24px;color: #00FFFF;font-size: 34px;margin-bottom: 10px">
             <span style="font-family: 'electronicFont'">5566</span>
-            <span style="width: 15px;height: 24px;font-size: 14px;align-content: end"></span>
+            <span style="width: 15px;height: 24px;font-size: 14px;align-content: end"></span>
           </div>
         </div>
       </div>
@@ -36,7 +36,7 @@
           <img src="../../../assets/zhang/public_car.png" width="58" style="margin: 0 5px 0 33px">
           <div style="width: 108px;height: 24px;color: #00FFFF;font-size: 34px;margin-bottom: 10px">
             <span style="font-family: 'electronicFont'">5566</span>
-            <span style="width: 15px;height: 24px;font-size: 14px;align-content: end"></span>
+            <span style="width: 15px;height: 24px;font-size: 14px;align-content: end">公里</span>
           </div>
         </div>
       </div>
@@ -49,7 +49,7 @@
           <img src="../../../assets/zhang/public_car.png" width="58" style="margin: 0 5px 0 33px">
           <div style="width: 108px;height: 24px;color: #00FFFF;font-size: 34px;margin-bottom: 10px">
             <span style="font-family: 'electronicFont'">5566</span>
-            <span style="width: 15px;height: 24px;font-size: 14px;align-content: end"></span>
+            <span style="width: 15px;height: 24px;font-size: 14px;align-content: end">公里</span>
           </div>
         </div>
       </div>

+ 37 - 0
src/views/zcustom/air/index.vue

@@ -0,0 +1,37 @@
+<script>
+import { update } from '@/api/zcustom/air'
+
+export default {
+  data() {
+    return{
+      num: 0
+    }
+  },
+  methods:{
+    update(){
+      update(this.num).then(response => {
+        if (response.code === 200){
+          this.$message({
+            message: '修改成功',
+            type: 'success'
+          });
+        }
+        else {
+          this.$message.error('修改失败')
+        }
+      });
+    }
+  }
+}
+</script>
+
+<template>
+  <div style="margin-top: 20px;margin-left: 20px">
+    <el-input v-model="num" size="small" style="width: 100px"></el-input>
+    <el-button type="primary" @click="update()">修改空调水浸总数</el-button>
+  </div>
+</template>
+
+<style scoped lang="scss">
+
+</style>