|
|
|
@ -18,6 +18,7 @@
|
|
|
|
|
<span v-if="rowData.protocol == '65284'"> 浙江 </span>
|
|
|
|
|
<span v-if="rowData.protocol == '65285'"> 河南 </span>
|
|
|
|
|
<span v-if="rowData.protocol == '65286'"> 河南郑州 </span>
|
|
|
|
|
<span v-if="rowData.protocol == '65290'"> 河南统一视频v2020 </span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
|
|
|
|
@ -697,6 +698,43 @@
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="升级" name="12">
|
|
|
|
|
<div class="tabsBox">
|
|
|
|
|
<div class="queryParam upgradBox">
|
|
|
|
|
<el-form
|
|
|
|
|
:model="upgradationform"
|
|
|
|
|
:rules="upgradationRules"
|
|
|
|
|
ref="upgradationRuleForm"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="文件名称" prop="upVal">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="upgradationform.upVal"
|
|
|
|
|
placeholder="请选择升级文件"
|
|
|
|
|
@change="selectChanged"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in upOptions"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.path"
|
|
|
|
|
:title="item.title"
|
|
|
|
|
>
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
<i class="title">({{ item.title }}</i
|
|
|
|
|
><i class="time">{{ item.uploadDate }})</i>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:loading="ugradLoading"
|
|
|
|
|
@click="handleupgradation"
|
|
|
|
|
>确 定</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="isShow = false">取 消</el-button>
|
|
|
|
@ -710,6 +748,7 @@ import {
|
|
|
|
|
setTermCamera,
|
|
|
|
|
getTermCameraRequest,
|
|
|
|
|
getChannelListJoggle,
|
|
|
|
|
listApk,
|
|
|
|
|
} from "@/utils/api/index";
|
|
|
|
|
|
|
|
|
|
import imageCapture from "./imageCapture.vue";
|
|
|
|
@ -857,6 +896,18 @@ export default {
|
|
|
|
|
i: 0,
|
|
|
|
|
tabName: "装置时间",
|
|
|
|
|
roleUser: "",
|
|
|
|
|
//升级确定阿
|
|
|
|
|
ugradLoading: false,
|
|
|
|
|
upgradationform: {
|
|
|
|
|
upVal: "",
|
|
|
|
|
},
|
|
|
|
|
selectUpObj: {},
|
|
|
|
|
upgradationRules: {
|
|
|
|
|
upVal: [
|
|
|
|
|
{ required: true, message: "请选择升级文件", trigger: "change" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
upOptions: [],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
@ -886,6 +937,8 @@ export default {
|
|
|
|
|
console.log("视频采集参数");
|
|
|
|
|
this.$refs.videoCaptureref.getSingleAccess(this.rowData);
|
|
|
|
|
this.$refs.videoCaptureref.getRatio(this.rowData);
|
|
|
|
|
} else if (tab.label == "升级") {
|
|
|
|
|
this.getUpgradeList();
|
|
|
|
|
}
|
|
|
|
|
this.tabName = tab.label;
|
|
|
|
|
},
|
|
|
|
@ -1558,6 +1611,7 @@ export default {
|
|
|
|
|
this.waterSetLoading = false;
|
|
|
|
|
this.osdLoading = false;
|
|
|
|
|
this.osdSetLoading = false;
|
|
|
|
|
this.ugradLoading = false;
|
|
|
|
|
console.log("终止轮询");
|
|
|
|
|
// && res.data.result == 255
|
|
|
|
|
console.log(JSON.parse(res.data.data));
|
|
|
|
@ -1629,6 +1683,7 @@ export default {
|
|
|
|
|
this.waterSetLoading = false;
|
|
|
|
|
this.osdLoading = false;
|
|
|
|
|
this.osdSetLoading = false;
|
|
|
|
|
this.ugradLoading = false;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
@ -1690,6 +1745,46 @@ export default {
|
|
|
|
|
// });
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//获取升级apkList
|
|
|
|
|
getUpgradeList() {
|
|
|
|
|
listApk({
|
|
|
|
|
pageindex: 1,
|
|
|
|
|
pagesize: 2000,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.upOptions = res.data.list;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
selectChanged(val) {
|
|
|
|
|
console.log(val);
|
|
|
|
|
// 找到选中项的整个object对象
|
|
|
|
|
this.selectUpObj = this.upOptions.find((item) => {
|
|
|
|
|
return item["path"] === val;
|
|
|
|
|
});
|
|
|
|
|
console.log(this.selectUpObj);
|
|
|
|
|
},
|
|
|
|
|
//升级确定阿
|
|
|
|
|
handleupgradation() {
|
|
|
|
|
console.log(this.upgradationform.upVal);
|
|
|
|
|
this.$refs.upgradationRuleForm.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.ugradLoading = true;
|
|
|
|
|
let params = [
|
|
|
|
|
{
|
|
|
|
|
name: "act",
|
|
|
|
|
value: "upgrade",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "file",
|
|
|
|
|
value: this.upgradationform.upVal,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
this.setTermFn(params);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
display(val) {
|
|
|
|
|
this.isShow = true;
|
|
|
|
|
this.rowData = val;
|
|
|
|
@ -1727,6 +1822,7 @@ export default {
|
|
|
|
|
this.statusLoading = false;
|
|
|
|
|
this.waterLoading = false;
|
|
|
|
|
this.waterSetLoading = false;
|
|
|
|
|
this.ugradLoading = false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
destroyed() {
|
|
|
|
@ -1796,6 +1892,19 @@ export default {
|
|
|
|
|
background-color: #169e8c;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.upgradBox {
|
|
|
|
|
// display: flex;
|
|
|
|
|
// flex-direction: column;
|
|
|
|
|
// align-items: center;
|
|
|
|
|
.el-select {
|
|
|
|
|
.el-input {
|
|
|
|
|
width: 316px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-button--primary {
|
|
|
|
|
margin-left: 76px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-input.is-disabled .el-input__inner {
|
|
|
|
|
color: #666;
|
|
|
|
|
}
|
|
|
|
@ -1834,4 +1943,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-select-dropdown__item {
|
|
|
|
|
i {
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|