diff --git a/src/components/AddPolicy.vue b/src/components/AddPolicy.vue
index d9f88f8..95bc0f8 100644
--- a/src/components/AddPolicy.vue
+++ b/src/components/AddPolicy.vue
@@ -154,7 +154,14 @@
-
+
+
+
@@ -679,15 +686,11 @@ export default {
arr: [],
};
},
- created() {
+ mounted() {
alert(this.$route.query.id, this.$store.state.type);
console.log(this.user_id, this.$store.state.type);
this.GetUserAnswer();
- this.dxgl.forEach((item) => {
- this.arr.push(item.dx_name);
- });
},
- mounted() {},
methods: {
//ip地址验证
@@ -819,8 +822,8 @@ export default {
};
console.log(obj);
let { data } = await SaveUserAnswer({
- mark: `${this.$store.state.type}`,
- user_id: `${this.$route.query.id}`,
+ mark: this.$store.state.type,
+ user_id: this.$route.query.id,
// mark: "GYWZ_wx",
// user_id: "USER202307301109254198",
mark_value: JSON.stringify(obj),
@@ -839,8 +842,8 @@ export default {
//获取缓存数据
async GetUserAnswer() {
let { data } = await GetUserAnswer({
- mark: `${this.$store.state.type}`,
- user_id: `${this.$route.query.id}`,
+ mark: this.$store.state.type,
+ user_id: this.$route.query.id,
// mark: "GYWZ_wx",
// user_id: "USER202307301109254198",
});
@@ -872,6 +875,10 @@ export default {
this.cmdlist_ms = res.cmdlist_ms;
this.cmdlist_dz = res.cmdlist_dz;
}
+ // console.log(this.dxgl);
+ this.dxgl.forEach((item) => {
+ this.arr.push(item.dx_name);
+ });
},
//新增命令-保存
saveMl() {
@@ -916,8 +923,8 @@ export default {
dxgl: this.dxgl,
};
let { data } = await SaveUserAnswer({
- mark: `${this.$store.state.type}`,
- user_id: `${this.$route.query.id}`,
+ mark: this.$store.state.type,
+ user_id: this.$route.query.id,
// mark: "GYWZ_wx",
// user_id: "USER202307301109254198",
mark_value: JSON.stringify(obj),
diff --git a/src/components/IpConfiguration.vue b/src/components/IpConfiguration.vue
index 178aeb1..151e3db 100644
--- a/src/components/IpConfiguration.vue
+++ b/src/components/IpConfiguration.vue
@@ -315,7 +315,7 @@ export default {
let res = await SaveUserAnswer({
mark: "CKFWQ_yx",
user_id: this.user_id,
- // user_id: "USER202307301109254198",
+ // user_id: "USER202311140204340206",
mark_value: JSON.stringify(this.ruleForm),
});
console.log(this.ruleForm);
@@ -333,7 +333,7 @@ export default {
let answers = await GetUserAnswer({
mark: "CKFWQ_yx",
user_id: this.user_id,
- // user_id: "USER202307301109254198",
+ // user_id: "USER202311140204340206",
});
if (answers.data.data && answers.data.state) {
let obj = JSON.parse(answers.data.data.mark_value);
diff --git a/src/components/NetworkManagement.vue b/src/components/NetworkManagement.vue
index 92422fa..5ebf105 100644
--- a/src/components/NetworkManagement.vue
+++ b/src/components/NetworkManagement.vue
@@ -226,8 +226,9 @@ export default {
],
};
},
- created() {
+ mounted() {
this.dialogVisible = true;
+ // alert(window.location.href);
let str = window.location.href.split("?")[1];
this.user_id = str.split("|")[0];
let type = str.split("|")[1];
@@ -324,8 +325,8 @@ export default {
// mark: "GYWZ_wx",
// user_id: "USER202307301109254198",
});
- console.log(data.data.mark_value);
- if (data.state) {
+ // console.log(data.data.mark_value);
+ if (data.state && data.data && data.data.mark_value) {
let res = JSON.parse(data.data.mark_value);
console.log(res);
this.tableData[0].wlgl_nw_name = res.wlgl_nw_name;
diff --git a/src/components/ObjectManagement.vue b/src/components/ObjectManagement.vue
index a6001b5..549bb54 100644
--- a/src/components/ObjectManagement.vue
+++ b/src/components/ObjectManagement.vue
@@ -161,7 +161,7 @@ export default {
cmdlist_dz: "",
};
},
- created() {
+ mounted() {
this.dialogVisible = true;
let str = window.location.href.split("?")[1];
this.user_id = str.split("|")[0];
diff --git a/src/components/PolicyManagement.vue b/src/components/PolicyManagement.vue
index fa11469..d4f2fdd 100644
--- a/src/components/PolicyManagement.vue
+++ b/src/components/PolicyManagement.vue
@@ -269,7 +269,7 @@ export default {
flag: false,
};
},
- created() {
+ mounted() {
let str = window.location.href.split("?")[1];
this.user_id = str.split("|")[0];
let type = str.split("|")[1];
diff --git a/src/components/PortConfiguration.vue b/src/components/PortConfiguration.vue
index 63d12e3..bcfb460 100644
--- a/src/components/PortConfiguration.vue
+++ b/src/components/PortConfiguration.vue
@@ -196,7 +196,7 @@ export default {
},
};
},
- created() {
+ mounted() {
this.user_id = window.location.href.split("?")[1];
this.GetUserAnswer();
},
@@ -205,7 +205,7 @@ export default {
let { data } = await GetUserAnswer({
mark: "CKFWQ_yx",
user_id: this.user_id,
- // user_id: "USER202307301109254198",
+ // user_id: "USER202311140204340206",
});
if (data.data) {
let obj = JSON.parse(data.data.mark_value);
@@ -232,7 +232,7 @@ export default {
this.ruleForm.dkpz_snckxtb = Number(this.ruleForm.dkpz_snckxtb);
let { data } = await SaveUserAnswer({
mark: "CKFWQ_yx",
- // user_id: "USER202307301109254198",
+ // user_id: "USER202311140204340206",
user_id: this.user_id,
mark_value: JSON.stringify(this.ruleForm),
});
diff --git a/src/components/Wireles.vue b/src/components/Wireles.vue
index b1c6604..7f86bc3 100644
--- a/src/components/Wireles.vue
+++ b/src/components/Wireles.vue
@@ -20,7 +20,7 @@
-
+