This commit is contained in:
unknown 2023-11-11 11:14:33 +08:00
commit 040c28361b
4 changed files with 19 additions and 10 deletions

View File

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

View File

@ -139,7 +139,12 @@ export default {
methods: {
getParameter(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
validateIpAddress(rule, value, callback) {

View File

@ -290,7 +290,12 @@ export default {
methods: {
getParameter(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() {
this.$router.push({ name: "addstrategy", query: { id: this.user_id } });

View File

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