This commit is contained in:
lll 2023-11-11 11:13:28 +08:00
parent 883899b190
commit cffbfd9e9b
6 changed files with 21 additions and 19 deletions

View File

@ -253,8 +253,8 @@ export default {
}; };
}, },
created() { created() {
let that = this; // let that = this;
window.getParameter = that.getParameter; // window.getParameter = that.getParameter;
this.user_id = this.$route.fullPath.split("?")[1]; this.user_id = this.$route.fullPath.split("?")[1];
this.GetUserAnswer(); this.GetUserAnswer();
// this.tableData = JSON.parse(localStorage.getItem("wgwh")) || []; // this.tableData = JSON.parse(localStorage.getItem("wgwh")) || [];

View File

@ -254,11 +254,6 @@ export default {
}, },
}; };
}, },
created() {
let that = this;
window.getParameter = that.getParameter;
},
methods: { methods: {
getParameter(data) { getParameter(data) {
alert(data); alert(data);
@ -527,6 +522,8 @@ export default {
}, },
}, },
created() { created() {
let that = this;
window.getParameter = that.getParameter;
this.Loading = true; this.Loading = true;
this.GetUserAnswer(); this.GetUserAnswer();
this.Loading = false; this.Loading = false;

View File

@ -139,7 +139,12 @@ export default {
methods: { methods: {
getParameter(data) { getParameter(data) {
alert(data); alert(data);
this.user_id = data; this.user_id = data.split("|")[0];
if (data.split("|")[1] == 1) {
this.$store.commit("setType", "GYWZ_yx");
} else {
this.$store.commit("setType", "GYWZ_wx");
}
}, },
//ip //ip
validateIpAddress(rule, value, callback) { validateIpAddress(rule, value, callback) {

View File

@ -290,7 +290,12 @@ export default {
methods: { methods: {
getParameter(data) { getParameter(data) {
alert(data); alert(data);
this.user_id = data; this.user_id = data.split("|")[0];
if (data.split("|")[1] == 1) {
this.$store.commit("setType", "GYWZ_yx");
} else {
this.$store.commit("setType", "GYWZ_wx");
}
}, },
addPolicy() { addPolicy() {
this.$router.push({ name: "addstrategy", query: { id: this.user_id } }); this.$router.push({ name: "addstrategy", query: { id: this.user_id } });

View File

@ -177,10 +177,6 @@ export default {
}, },
}; };
}, },
created() {
let that = this;
window.getParameter = that.getParameter;
},
methods: { methods: {
getParameter(data) { getParameter(data) {
alert(data); alert(data);

View File

@ -176,14 +176,13 @@ export default {
// }, // },
// ]) // ])
// ); // );
// let that = this;
let that = this; // window.getParameter = that.getParameter;
window.getParameter = that.getParameter;
}, },
methods: { methods: {
getParameter(data) { // getParameter(data) {
this.$router.push(`/${data}`); // this.$router.push(`/${data}`);
}, // },
}, },
}; };
</script> </script>