参数配置添加查询的时间

wp1.0
fanluyan 2 years ago
parent 83a531be52
commit df63fb7b81

@ -90,6 +90,9 @@
@click="imageSearch()" @click="imageSearch()"
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime).format("YYYY-MM-DD HH:mm:ss") }}
</p>
<!-- <el-button <!-- <el-button
class="searchImage" class="searchImage"
:loading="searchloading" :loading="searchloading"
@ -744,6 +747,8 @@ export default {
timer: null, timer: null,
i: 0, i: 0,
onlinestatus: "", onlinestatus: "",
lookTime: "",
showLookTime: false,
}; };
}, },
mounted() {}, mounted() {},
@ -751,6 +756,7 @@ export default {
handleClick(tab, event) { handleClick(tab, event) {
console.log(tab, event); console.log(tab, event);
this.capturenr = {}; this.capturenr = {};
this.lookTime = "";
}, },
// //
getSingleAccess(val) { getSingleAccess(val) {
@ -930,6 +936,7 @@ export default {
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.requestid = res.data.requestId; this.requestid = res.data.requestId;
this.lookTime = res.data.date;
//this.getinfo1(); //this.getinfo1();
clearInterval(this.timer); clearInterval(this.timer);
this.timer = window.setInterval(() => { this.timer = window.setInterval(() => {
@ -958,6 +965,7 @@ export default {
message: "信息已更新", message: "信息已更新",
type: "success", type: "success",
}); });
this.showLookTime = true;
} else if (this.i > 9) { } else if (this.i > 9) {
window.clearInterval(this.timer); window.clearInterval(this.timer);
this.timer = null; this.timer = null;
@ -985,6 +993,7 @@ export default {
this.setForm = {}; this.setForm = {};
this.searchloading = false; this.searchloading = false;
this.setloading = false; this.setloading = false;
this.lookTime = "";
}, },
}, },
}; };
@ -1016,6 +1025,10 @@ export default {
.searchImage { .searchImage {
margin-left: 110px; margin-left: 110px;
} }
.looktime {
margin-top: 6px;
margin-left: 110px;
}
.flexno { .flexno {
display: flex; display: flex;
height: 32px; height: 32px;

@ -89,6 +89,9 @@
:loading="sampLoading" :loading="sampLoading"
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime).format("YYYY-MM-DD HH:mm:ss") }}
</p>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -167,6 +170,9 @@
:loading="upperLoading" :loading="upperLoading"
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime).format("YYYY-MM-DD HH:mm:ss") }}
</p>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -238,6 +244,9 @@
:loading="idLoading" :loading="idLoading"
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime).format("YYYY-MM-DD HH:mm:ss") }}
</p>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -347,6 +356,9 @@
:loading="waterLoading" :loading="waterLoading"
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime).format("YYYY-MM-DD HH:mm:ss") }}
</p>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -479,6 +491,9 @@
:loading="osdLoading" :loading="osdLoading"
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime).format("YYYY-MM-DD HH:mm:ss") }}
</p>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -711,6 +726,8 @@ export default {
}; };
return { return {
showLookTime: false,
lookTime: "", //
isShow: false, isShow: false,
activeName: "2", activeName: "2",
deviceTimeForm: { deviceTimeForm: {
@ -820,6 +837,7 @@ export default {
methods: { methods: {
//tab //tab
handleClick(tab, event) { handleClick(tab, event) {
this.lookTime = "";
window.clearInterval(this.timer); window.clearInterval(this.timer);
this.timer = null; this.timer = null;
this.i = 0; this.i = 0;
@ -856,6 +874,7 @@ export default {
// //
samphandleClick() { samphandleClick() {
this.samplingForm = {}; this.samplingForm = {};
this.lookTime = "";
clearInterval(this.timer); clearInterval(this.timer);
this.i = 0; this.i = 0;
this.timer = null; this.timer = null;
@ -863,6 +882,7 @@ export default {
// //
uphandleClick() { uphandleClick() {
this.upperComputer = {}; this.upperComputer = {};
this.lookTime = "";
clearInterval(this.timer); clearInterval(this.timer);
this.i = 0; this.i = 0;
this.timer = null; this.timer = null;
@ -870,6 +890,7 @@ export default {
//id //id
idhandleClick() { idhandleClick() {
this.idParameter = {}; this.idParameter = {};
this.lookTime = "";
clearInterval(this.timer); clearInterval(this.timer);
this.i = 0; this.i = 0;
this.timer = null; this.timer = null;
@ -877,6 +898,7 @@ export default {
//osd //osd
osdhandleClick(tab) { osdhandleClick(tab) {
console.log(tab); console.log(tab);
this.lookTime = "";
if (tab.label == "设置参数") { if (tab.label == "设置参数") {
this.osdParams = {}; this.osdParams = {};
this.$set(this.osdParams, "showTime", this.timelist[0].id); this.$set(this.osdParams, "showTime", this.timelist[0].id);
@ -1374,7 +1396,7 @@ export default {
console.log(res); console.log(res);
this.requestid = res.data.requestId; this.requestid = res.data.requestId;
//this.getinfo1(); //this.getinfo1();
this.lookTime = res.data.date;
clearInterval(this.timer); clearInterval(this.timer);
this.timer = window.setInterval(() => { this.timer = window.setInterval(() => {
this.getinfo(); this.getinfo();
@ -1443,6 +1465,7 @@ export default {
message: "信息已更新", message: "信息已更新",
type: "success", type: "success",
}); });
this.showLookTime = true;
} else if (this.i > 9) { } else if (this.i > 9) {
window.clearInterval(this.timer); window.clearInterval(this.timer);
this.timer = null; this.timer = null;
@ -1535,6 +1558,7 @@ export default {
this.isShow = false; this.isShow = false;
}, },
handleclose() { handleclose() {
this.lookTime = "";
this.isShow = false; this.isShow = false;
this.activeName = "2"; this.activeName = "2";
this.tabsActive = "first"; this.tabsActive = "first";
@ -1573,6 +1597,9 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
.parameterSetDialog { .parameterSetDialog {
.looktime {
font-size: 12px;
}
.zzinfo { .zzinfo {
position: absolute; position: absolute;
top: 22px; top: 22px;

@ -81,6 +81,9 @@
@click="videoSearch()" @click="videoSearch()"
>查询</el-button >查询</el-button
> >
<p class="looktime" v-if="lookTime && showLookTime">
{{ $moment(lookTime).format("YYYY-MM-DD HH:mm:ss") }}
</p>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="设置参数" name="2"> <el-tab-pane label="设置参数" name="2">
@ -224,6 +227,8 @@ export default {
selcmdId: "", //cmdId selcmdId: "", //cmdId
requestId: "", requestId: "",
onlinestatus: "", onlinestatus: "",
lookTime: "",
showLookTime: false,
}; };
}, },
mounted() {}, mounted() {},
@ -231,6 +236,7 @@ export default {
handleClick(tab, event) { handleClick(tab, event) {
console.log(tab, event); console.log(tab, event);
this.capturenr = {}; this.capturenr = {};
this.lookTime = "";
}, },
// //
getSingleAccess(val) { getSingleAccess(val) {
@ -348,6 +354,7 @@ export default {
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.requestid = res.data.requestId; this.requestid = res.data.requestId;
this.lookTime = res.data.date;
//this.getinfo1(); //this.getinfo1();
clearInterval(this.timer); clearInterval(this.timer);
@ -381,6 +388,7 @@ export default {
message: "信息已更新", message: "信息已更新",
type: "success", type: "success",
}); });
this.showLookTime = true;
} else if (this.i > 9) { } else if (this.i > 9) {
window.clearInterval(this.timer); window.clearInterval(this.timer);
this.timer = null; this.timer = null;
@ -409,6 +417,7 @@ export default {
this.setForm = {}; this.setForm = {};
this.searchloading = false; this.searchloading = false;
this.setloading = false; this.setloading = false;
this.lookTime = "";
}, },
}, },
}; };
@ -440,6 +449,10 @@ export default {
.searchImage { .searchImage {
margin-left: 110px; margin-left: 110px;
} }
.looktime {
margin-top: 6px;
margin-left: 110px;
}
.flexno { .flexno {
display: flex; display: flex;
height: 32px; height: 32px;

@ -21,11 +21,11 @@ module.exports = defineConfig({
proxy: { proxy: {
"/api": { "/api": {
//表示拦截以/api开头的请求路径 //表示拦截以/api开头的请求路径
target: "http://47.96.238.157:8093", //阿里云服务器环境 //target: "http://47.96.238.157:8093", //阿里云服务器环境
//target: "http://180.166.218.222:40080", //dell target: "http://180.166.218.222:40080", //dell
changOrigin: true, //是否开启跨域 changOrigin: true, //是否开启跨域
pathRewrite: { pathRewrite: {
"^/api": "", //重写api把api变成空字符因为我们真正请求的路径是没有api的 "^/api": "/api", //重写api把api变成空字符因为我们真正请求的路径是没有api的
}, },
}, },
}, },

Loading…
Cancel
Save