From d8cf580d537056096a11df17580d6c3fb19ce571 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期五, 25 六月 2021 14:54:33 +0800
Subject: [PATCH] fix build error
---
src/pages/systemSettings/views/keyboardLanguage.vue | 21 +---------
src/pages/systemSettings/views/generalSettings.vue | 44 ++++++++--------------
src/api/shuohuang.ts | 5 ++
3 files changed, 24 insertions(+), 46 deletions(-)
diff --git a/src/api/shuohuang.ts b/src/api/shuohuang.ts
index 3e689e5..7fa5d49 100644
--- a/src/api/shuohuang.ts
+++ b/src/api/shuohuang.ts
@@ -189,4 +189,9 @@
url: '/data/api-c/event/getEventVideo',
method: 'get',
params: query
+})
+
+export const downloadFile = () => request({
+ url: '/data/api-c/event/getEventVideo',
+ method: 'get',
})
\ No newline at end of file
diff --git a/src/pages/systemSettings/views/generalSettings.vue b/src/pages/systemSettings/views/generalSettings.vue
index be28e5e..b76422c 100644
--- a/src/pages/systemSettings/views/generalSettings.vue
+++ b/src/pages/systemSettings/views/generalSettings.vue
@@ -31,8 +31,7 @@
:min="0"
:max="100"
:show-tooltip="false"
- >
- </el-slider>
+ ></el-slider>
</div>
<el-input-number
v-model="alarmConf.min_video_len"
@@ -40,8 +39,7 @@
:min="0"
:max="100"
size="mini"
- ></el-input-number>
- s
+ ></el-input-number> s
</div>
</div>
<div class="min-dur">
@@ -55,8 +53,7 @@
:min="0"
:max="100"
:show-tooltip="false"
- >
- </el-slider>
+ ></el-slider>
</div>
<el-input-number
v-model="alarmConf.max_video_len"
@@ -64,8 +61,7 @@
:min="0"
:max="100"
size="mini"
- ></el-input-number>
- s
+ ></el-input-number> s
</div>
</div>
@@ -82,7 +78,7 @@
>
<div class="left-part">
<span class="icon iconfont"></span>
- <span class="name"> {{ item.name }}</span>
+ <span class="name">{{ item.name }}</span>
</div>
<div class="btns">
<span class="icon iconfont"></span>
@@ -99,15 +95,14 @@
>
<i class="el-icon-upload"></i>
<div class="el-upload__text">
- 浜嬩欢澹伴煶鏂囦欢鎷栧埌姝ゅ锛屾垨<em>鐐瑰嚮涓婁紶</em> <br />
- 浠呮敮鎸乵p3/wma绛夋牸寮�
+ 浜嬩欢澹伴煶鏂囦欢鎷栧埌姝ゅ锛屾垨
+ <em>鐐瑰嚮涓婁紶</em>
+ <br />浠呮敮鎸乵p3/wma绛夋牸寮�
</div>
</el-upload>
<div v-show="!showUpload"></div>
<div class="add-btn">
- <span class="icon iconfont" @click="showUpload = !showUpload"
- ></span
- >
+ <span class="icon iconfont" @click="showUpload = !showUpload"></span>
</div>
</div>
</div>
@@ -118,16 +113,12 @@
<script>
import { saveAlarmConfig } from "@/api/system";
-import { uploadSound,getSoundList } from "@/api/event";
+import { uploadSound, getSoundList } from "@/api/event";
-import cloudNode from "../components/CloudNode";
-import ipInput from "@/components/subComponents/IPInput";
import { isIPv4 } from "@/scripts/validate";
-import switchBar from "../components/switchBar";
export default {
data() {
-
return {
isHighClass: false,
@@ -187,10 +178,10 @@
switchBar,
},
mounted() {
- this.getSounds()
+ this.getSounds()
},
- beforeDestroy() {},
+ beforeDestroy() { },
props: ["barName"],
methods: {
getSounds() {
@@ -202,23 +193,20 @@
e => console.log(e)
)
},
- uploadSound(params){
+ uploadSound(params) {
let param = new FormData();
param.append("file", params.file);
uploadSound(param).then((res) => {
- console.log(res.data);
+ console.log(res.data);
});
},
openRight(typ) {
this.activePage = typ;
- if (typ=="sound") {
+ if (typ == "sound") {
this.getSounds()
}
},
- openRight(typ) {
- this.activePage = typ;
- },
- wifiControl(val) {},
+ wifiControl(val) { },
checkWifi() {
this.inWifiDetail = true;
},
diff --git a/src/pages/systemSettings/views/keyboardLanguage.vue b/src/pages/systemSettings/views/keyboardLanguage.vue
index 2615342..339ba0d 100644
--- a/src/pages/systemSettings/views/keyboardLanguage.vue
+++ b/src/pages/systemSettings/views/keyboardLanguage.vue
@@ -12,17 +12,10 @@
<div class="cluster-right">
<div class="lang" v-if="activePage == 'lang'">
<div class="title">璇█鍒楄〃</div>
- <div
- class="bar"
- v-for="(item, i) in langList"
- :key="i"
- @click="pickLang(item, i)"
- >
+ <div class="bar" v-for="(item, i) in langList" :key="i" @click="pickLang(item, i)">
<span class="name">{{ item.Name }}</span>
<!-- <span class="icon iconfont" v-show="activeLang==item.Lang"></span> -->
- <span class="icon iconfont" v-show="activeLang == item.Lang"
- >宸查��</span
- >
+ <span class="icon iconfont" v-show="activeLang == item.Lang">宸查��</span>
</div>
</div>
<div class="lang" v-if="activePage == 'keyboard'">
@@ -56,10 +49,7 @@
} from "@/api/clusterManage";
import { getLangs, setLang, getLang, getKeyboardLayouts } from "@/api/system";
-import cloudNode from "../components/CloudNode";
-import ipInput from "@/components/subComponents/IPInput";
import { isIPv4 } from "@/scripts/validate";
-import switchBar from "../components/switchBar";
export default {
data() {
@@ -77,11 +67,6 @@
},
value: "",
};
- },
- components: {
- cloudNode,
- ipInput,
- switchBar,
},
mounted() {
this.fetchLangList();
@@ -125,7 +110,7 @@
});
}
},
- wifiControl(val) {},
+ wifiControl(val) { },
checkWifi() {
this.inWifiDetail = true;
},
--
Gitblit v1.8.0