参数配置添加查询的时间

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

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

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

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

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

Loading…
Cancel
Save