Browse Source

优化

master
4670101279 2 years ago
parent
commit
5ed7c6a73a
  1. 50
      src/views/web/camera/index.vue

50
src/views/web/camera/index.vue

@ -47,8 +47,8 @@ @@ -47,8 +47,8 @@
<el-table-column label="设备名" align="center" prop="name" />
<el-table-column label="设备ip" align="center" prop="ip" />
<el-table-column label="设备序列号" align="center" prop="devsn" />
<el-table-column label="首次注册时间" align="center" prop="firstTime" />
<el-table-column label="心跳时间" align="center" prop="updateTime" />
<el-table-column label="首次注册时间" align="center" prop="firstTime" width="220"/>
<el-table-column label="心跳时间" align="center" prop="updateTime" width="220"/>
<el-table-column label="4G强度" align="center" prop="rssiLevel" />
<el-table-column label="接入方式" align="center" prop="accessType">
<template slot-scope="scope">
@ -106,6 +106,9 @@ @@ -106,6 +106,9 @@
v-hasPermi="['web:camera:net']">播放视频</el-button>
<el-button size="mini" type="text" icon="el-icon-setting" @click="setConfig(scope.row)"
v-hasPermi="['web:camera:config']">参数</el-button>
<el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)"
v-hasPermi="['web:camera:4g']">
<span class="el-dropdown-link">
@ -397,6 +400,24 @@ @@ -397,6 +400,24 @@
<div v-html="videoHtml">
</div>
</el-dialog>
<el-dialog title="水尺参数" :visible.sync="configopen" width="600px" append-to-body>
<el-form ref="cform" :model="configform" label-width="100px">
<el-form-item label="总长度" prop="tLen">
<el-input type="number" v-model="configform.tlen" placeholder="某一时刻水位+水位上水尺长度(单位米)" />
</el-form-item>
<el-form-item label="出水长度" prop="cLen">
<el-input type="number" v-model="configform.clen" placeholder="某一时刻水面上水尺长度(单位米)" />
</el-form-item>
<el-form-item label="出水长度" prop="cP">
<el-input type="number" v-model="configform.cp" placeholder="水面上的水尺长度对应像素" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="configSubmit"> </el-button>
</div>
</el-dialog>
</div>
</template>
@ -432,6 +453,7 @@ export default { @@ -432,6 +453,7 @@ export default {
title: "",
//
open: false,
configopen: false,
videoData:{
open: false,
},
@ -449,6 +471,7 @@ export default { @@ -449,6 +471,7 @@ export default {
},
//
form: {},
configform: {},
//
rules: {
},
@ -623,6 +646,16 @@ export default { @@ -623,6 +646,16 @@ export default {
};
this.resetForm("form");
},
configreset() {
this.configform = {
id: null,
lstart: null,
tlen: null,
clen: null,
cp: null
};
this.resetForm("configform");
},
//
ftpCfgReset() {
this.ftp.form = {
@ -754,6 +787,12 @@ export default { @@ -754,6 +787,12 @@ export default {
this.title = "修改";
}
},
setConfig(row){
this.configreset();
this.configform = row.paramsObject;
this.configform.id = row.id;
this.configopen = true;
},
async refreshRssi(row) {
const id = row.id;
const status = row.status;
@ -996,6 +1035,13 @@ export default { @@ -996,6 +1035,13 @@ export default {
}
});
},
async configSubmit() {
let res = await this.$axiosPost('/web/camera/setConfig', this.configform);
if (res.code === 0) {
this.$modal.msgSuccess("设置成功");
this.configopen = false;
}
},
/** 删除按钮操作 */
async handleDelete(row) {
const ids = row.id || this.ids;

Loading…
Cancel
Save