|
|
|
@ -19,18 +19,37 @@
|
|
|
|
|
:value="item.channelid"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-button type="primary" @click="inquirebtn()">查询</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
:loading="searchloading"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="inquirebtn()"
|
|
|
|
|
>查询</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flexno bt30">
|
|
|
|
|
<div class="wt80">色彩选择:</div>
|
|
|
|
|
<el-select v-model="capturenr.color" class="wt280" :disabled="true" >
|
|
|
|
|
<el-option v-for="item in colorlist" :key="item.id" :label="item.name" :value="item.id" ></el-option>
|
|
|
|
|
<el-select v-model="capturenr.color" class="wt280" :disabled="true">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in colorlist"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flexno bt30">
|
|
|
|
|
<div class="wt80">图像分辨率:</div>
|
|
|
|
|
<el-select v-model="capturenr.resolution" class="wt280" :disabled="true" >
|
|
|
|
|
<el-option v-for="item in ratiolist" :key="item.id" :label="item.name" :value="item.id" ></el-option>
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="capturenr.resolution"
|
|
|
|
|
class="wt280"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in ratiolist"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flexno bt30">
|
|
|
|
@ -152,6 +171,7 @@ export default {
|
|
|
|
|
return {
|
|
|
|
|
loading: false,
|
|
|
|
|
isShow: false,
|
|
|
|
|
searchloading: false,
|
|
|
|
|
activeName: "1", //选项卡
|
|
|
|
|
accesslist: [], //通道选择器
|
|
|
|
|
colorlist: [
|
|
|
|
@ -221,6 +241,7 @@ export default {
|
|
|
|
|
//查询触发
|
|
|
|
|
inquirebtn() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.searchloading = true;
|
|
|
|
|
getPhotoParamApi({
|
|
|
|
|
channelId: this.selaccess,
|
|
|
|
|
cmdId: this.selcmdId,
|
|
|
|
@ -232,7 +253,7 @@ export default {
|
|
|
|
|
this.timer = window.setInterval(() => {
|
|
|
|
|
this.inquirenr();
|
|
|
|
|
this.i++;
|
|
|
|
|
}, 10000);
|
|
|
|
|
}, 1000);
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.code.msg);
|
|
|
|
|
}
|
|
|
|
@ -251,11 +272,16 @@ export default {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.capturenr = res.data;
|
|
|
|
|
if (res.data.isNew == true) {
|
|
|
|
|
this.searchloading = false;
|
|
|
|
|
this.i = 0;
|
|
|
|
|
this.$message.success("查询已更新");
|
|
|
|
|
clearInterval(this.timer);
|
|
|
|
|
this.timer = null;
|
|
|
|
|
} else if (this.i > 9) {
|
|
|
|
|
this.searchloading = false;
|
|
|
|
|
this.i = 0;
|
|
|
|
|
this.$message.warning("暂无响应,请稍后再试!");
|
|
|
|
|
|
|
|
|
|
clearInterval(this.timer);
|
|
|
|
|
this.timer = null;
|
|
|
|
|
}
|
|
|
|
@ -295,6 +321,8 @@ export default {
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
},
|
|
|
|
|
handleclose() {
|
|
|
|
|
this.searchloading = false;
|
|
|
|
|
this.i = 0;
|
|
|
|
|
clearInterval(this.timer);
|
|
|
|
|
this.timer = null;
|
|
|
|
|
},
|
|
|
|
|