diff --git a/src/utils/api/index.js b/src/utils/api/index.js
index 21dc317..4e4a29e 100644
--- a/src/utils/api/index.js
+++ b/src/utils/api/index.js
@@ -816,3 +816,12 @@ export function updateTermCamera(data) {
params: data,
});
}
+
+//规约版本
+export function getProtocolList(data) {
+ return request({
+ url: "/api/getProtocolList",
+ method: "get",
+ params: data,
+ });
+}
diff --git a/src/views/devicePhotoSchedule/components/setdevice.vue b/src/views/devicePhotoSchedule/components/setdevice.vue
index cb1fc90..d474624 100644
--- a/src/views/devicePhotoSchedule/components/setdevice.vue
+++ b/src/views/devicePhotoSchedule/components/setdevice.vue
@@ -378,7 +378,12 @@ export default {
////判断河南规约
if (
this.allCheckNode[i].protocol == "65286" ||
- this.allCheckNode[i].protocol == "65282"
+ this.allCheckNode[i].protocol == "65282" ||
+ this.allCheckNode[i].protocol == "65280" ||
+ this.allCheckNode[i].protocol == "65296" ||
+ this.allCheckNode[i].protocol == "65281" ||
+ this.allCheckNode[i].protocol == "65284" ||
+ this.allCheckNode[i].protocol == "65285"
) {
console.log("河南规约");
//偏移时间
diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue b/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue
index 32883d1..2b6d4f4 100644
--- a/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue
+++ b/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue
@@ -59,8 +59,8 @@
-
-
+
+
-
-
+
+
-
+
@@ -84,7 +84,7 @@
v-model="formInfo.protocolVersion"
auto-complete="on"
> -->
-
+
@@ -180,6 +181,7 @@ import {
updateTerminalJoggle,
getAllChannelListJoggle,
getLineAndGtInfo,
+ getProtocolList,
} from "@/utils/api/index";
export default {
props: {
@@ -256,10 +258,22 @@ export default {
photoDialogtype: 0, //1 线路change时,修改杆塔数据
};
},
- mounted() {},
+ mounted() {
+ this.getProtocol();
+ },
created() {},
watch: {},
methods: {
+ getProtocol() {
+ //获取规约版本
+ getProtocolList()
+ .then((res) => {
+ console.log(res);
+ this.protocolOptions = res.data.list;
+ console.log(this.protocolOptions);
+ })
+ .catch((err) => {});
+ },
//判断
getdataform(val) {
this.getLine();
@@ -272,10 +286,10 @@ export default {
equipName: "",
hasPan: this.hasPanOptions[0].id,
sim: "",
- networkId: this.networkOptions[0].id,
- deviceType: "",
- deviceFactory: "",
- protocolVersion: "",
+ netType: this.networkOptions[0].id,
+ model: "",
+ bsManufacturer: "",
+ protocol: this.protocolOptions[0].id,
workingDate: new Date().getTime(),
list: [
{
@@ -285,8 +299,15 @@ export default {
],
});
}
+
//this.formInfo = val;
this.formInfo = JSON.parse(JSON.stringify(val));
+ this.$set(
+ this.formInfo,
+ "workingDate",
+ new Date(this.formInfo.workingDate).getTime()
+ );
+ console.log(this.formInfo.workingDate);
},
//通道号值改变
changeHandle() {
@@ -344,6 +365,7 @@ export default {
// list: this.formInfo.list,
// displayName: this.formInfo.cmdId,
// };
+ this.$set(this.formInfo, "workingDate", new Date().getTime());
this.$set(this.formInfo, "displayName", this.formInfo.cmdId);
console.log(this.formInfo);
addTerminalJoggle(this.formInfo)
@@ -366,6 +388,8 @@ export default {
});
});
} else {
+ console.log(this.formInfo);
+
updateTerminalJoggle(this.formInfo)
.then((res) => {
this.isShow = false;
diff --git a/src/views/management/monitoringEquipment/photographicDevice/index.vue b/src/views/management/monitoringEquipment/photographicDevice/index.vue
index 8638ff6..0513cec 100644
--- a/src/views/management/monitoringEquipment/photographicDevice/index.vue
+++ b/src/views/management/monitoringEquipment/photographicDevice/index.vue
@@ -141,7 +141,7 @@
>
@@ -157,13 +157,14 @@
label="网络类型"
show-overflow-tooltip
>
+
+ 移动
+ 联通
+ 电信
+
-
+
+
+ {{
+ scope.row.workingDate == null
+ ? ""
+ : $moment(scope.row.workingDate).format("yy-MM-DD")
+ }}