| | |
| | | url: '/data/api-c/event/getEventVideo', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | |
| | | export const downloadFile = () => request({ |
| | | url: '/data/api-c/event/getEventVideo', |
| | | method: 'get', |
| | | }) |
| | |
| | | :min="0"
|
| | | :max="100"
|
| | | :show-tooltip="false"
|
| | | >
|
| | | </el-slider>
|
| | | ></el-slider>
|
| | | </div>
|
| | | <el-input-number
|
| | | v-model="alarmConf.min_video_len"
|
| | |
| | | :min="0"
|
| | | :max="100"
|
| | | size="mini"
|
| | | ></el-input-number>
|
| | | s
|
| | | ></el-input-number> s
|
| | | </div>
|
| | | </div>
|
| | | <div class="min-dur">
|
| | |
| | | :min="0"
|
| | | :max="100"
|
| | | :show-tooltip="false"
|
| | | >
|
| | | </el-slider>
|
| | | ></el-slider>
|
| | | </div>
|
| | | <el-input-number
|
| | | v-model="alarmConf.max_video_len"
|
| | |
| | | :min="0"
|
| | | :max="100"
|
| | | size="mini"
|
| | | ></el-input-number>
|
| | | s
|
| | | ></el-input-number> s
|
| | | </div>
|
| | | </div>
|
| | |
|
| | |
| | | >
|
| | | <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>
|
| | |
| | | >
|
| | | <i class="el-icon-upload"></i>
|
| | | <div class="el-upload__text">
|
| | | 事件声音文件拖到此处,或<em>点击上传</em> <br />
|
| | | 仅支持mp3/wma等格式
|
| | | 事件声音文件拖到此处,或
|
| | | <em>点击上传</em>
|
| | | <br />仅支持mp3/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>
|
| | |
| | |
|
| | | <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,
|
| | |
|
| | |
| | | switchBar,
|
| | | },
|
| | | mounted() {
|
| | | this.getSounds()
|
| | | this.getSounds()
|
| | |
|
| | | },
|
| | | beforeDestroy() {},
|
| | | beforeDestroy() { },
|
| | | props: ["barName"],
|
| | | methods: {
|
| | | getSounds() {
|
| | |
| | | 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;
|
| | | },
|
| | |
| | | <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'">
|
| | |
| | | } 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() {
|
| | |
| | | },
|
| | | value: "",
|
| | | };
|
| | | },
|
| | | components: {
|
| | | cloudNode,
|
| | | ipInput,
|
| | | switchBar,
|
| | | },
|
| | | mounted() {
|
| | | this.fetchLangList();
|
| | |
| | | });
|
| | | }
|
| | | },
|
| | | wifiControl(val) {},
|
| | | wifiControl(val) { },
|
| | | checkWifi() {
|
| | | this.inWifiDetail = true;
|
| | | },
|