diff --git a/web_src/src/components/dialog/deviceEdit.vue b/web_src/src/components/dialog/deviceEdit.vue
index 1b1aba02..b4dd2855 100644
--- a/web_src/src/components/dialog/deviceEdit.vue
+++ b/web_src/src/components/dialog/deviceEdit.vue
@@ -45,6 +45,9 @@
确认
diff --git a/web_src/src/components/dialog/platformEdit.vue b/web_src/src/components/dialog/platformEdit.vue
index 38a2aef7..0caec322 100644
--- a/web_src/src/components/dialog/platformEdit.vue
+++ b/web_src/src/components/dialog/platformEdit.vue
@@ -44,6 +44,9 @@
+
+
+
@@ -63,6 +66,18 @@
+
+
+
+
+
+
+
+
+
{{
@@ -138,6 +154,9 @@ export default {
transport: "UDP",
characterSet: "GB2312",
shareAllLiveStream: false,
+ startOfflinePush: false,
+ catalogGroup: 1,
+ administrativeDivision: null,
},
rules: {
name: [{ required: true, message: "请输入平台名称", trigger: "blur" }],
@@ -175,6 +194,7 @@ export default {
that.platform.devicePort = res.data.devicePort;
that.platform.username = res.data.username;
that.platform.password = res.data.password;
+ that.platform.administrativeDivision = res.data.username.substr(0, 6);
}).catch(function (error) {
console.log(error);
});
@@ -199,6 +219,9 @@ export default {
this.platform.characterSet = platform.characterSet;
this.platform.shareAllLiveStream = platform.shareAllLiveStream;
this.platform.catalogId = platform.catalogId;
+ this.platform.startOfflinePush = platform.startOfflinePush;
+ this.platform.catalogGroup = platform.catalogGroup;
+ this.platform.administrativeDivision = platform.administrativeDivision;
this.onSubmit_text = "保存";
this.saveUrl = "/api/platform/save";
}
@@ -213,6 +236,10 @@ export default {
deviceGBIdChange: function () {
this.platform.username = this.platform.deviceGBId ;
+ if (this.platform.administrativeDivision == null) {
+ this.platform.administrativeDivision = this.platform.deviceGBId.substr(0, 6);
+ }
+
},
onSubmit: function () {
var that = this;
@@ -253,6 +280,7 @@ export default {
rtcp: false,
name: null,
serverGBId: null,
+ administrativeDivision: null,
serverGBDomain: null,
serverIP: null,
serverPort: null,
@@ -266,6 +294,8 @@ export default {
transport: "UDP",
characterSet: "GB2312",
shareAllLiveStream: false,
+ startOfflinePush: false,
+ catalogGroup: 1,
}
},
deviceGBIdExit: async function (deviceGbId) {