This commit is contained in:
parent
1024847b5d
commit
edae32b8f0
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue