This commit is contained in:
lll 2023-11-11 17:51:05 +08:00
parent 1024847b5d
commit edae32b8f0
5 changed files with 21 additions and 14 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -167,6 +167,7 @@
<script>
import { SaveUserAnswer, GetUserAnswer } from "@/api/user";
import { isValidPrimaryDNS } from "../validate";
import { Alert } from "element-ui";
export default {
data() {
return {
@ -255,8 +256,9 @@ export default {
};
},
methods: {
getParameter(data) {
console.log(data);
getParameter1(data) {
alert(data, "信息");
console.log(data, "信息");
this.user_id = data;
},
//
@ -327,6 +329,7 @@ export default {
}
},
async GetUserAnswer() {
this.loading = true;
let answers = await GetUserAnswer({
mark: "CKFWQ_yx",
user_id: this.user_id,
@ -361,6 +364,7 @@ export default {
this.ippz_dns_by4 = obj.ippz_dns_by.split(".")[3];
}
}
this.loading = false;
},
submitForm() {
this.$refs["ruleForm"].validate((valid) => {
@ -522,11 +526,13 @@ export default {
},
},
created() {
let that = this;
window.getParameter = that.getParameter;
this.Loading = true;
this.user_id = window.location.href.split("?")[1];
alert(this.user_id, "信息111111111111111111111");
console.log(this.user_id, "信息1111111111111111111");
this.GetUserAnswer();
this.Loading = false;
},
destroyed() {
window.getParameter = null;
},
};
</script>

View File

@ -178,8 +178,9 @@ export default {
};
},
methods: {
getParameter(data) {
console.log(data);
getParameter2(data) {
alert(data, "信息11");
console.log(data, "信息111111");
this.user_id = data;
},
//
@ -230,9 +231,7 @@ export default {
this.loading = false;
},
//
getParameter(data) {
console.log(data);
},
submitForm(formName) {
this.$refs["ruleForm"].validate((valid) => {
if (valid) {
@ -245,8 +244,9 @@ export default {
},
},
created() {
let that = this;
window.getParameter = that.getParameter;
this.user_id = window.location.href.split("?")[1];
alert(this.user_id, "信息111111111111111111111");
console.log(this.user_id, "信息1111111111111111111");
this.GetUserAnswer();
},
};

View File

@ -17,6 +17,7 @@ Vue.filter("datefmt", function (input, fmtstring) {
Vue.prototype.$moment = moment;
Vue.prototype.$store = store;
Vue.prototype.$answerObj = answerObj;
Vue.use(ElementUI);
new Vue({
router,