Merge branch 'master' of http://git.umayle.com:2023/chengdandan/InternetCompetition
This commit is contained in:
commit
10bd8ba315
|
@ -1,6 +1,6 @@
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
axios.defaults.baseURL = "http://inspur.dev.umayle.com/";
|
axios.defaults.baseURL = "http://inspur.dev.umayle.com/";
|
||||||
//
|
//
|
||||||
export const SaveUserAnswer = (data) => {
|
export const SaveUserAnswer = (data) => {
|
||||||
return axios.post(
|
return axios.post(
|
||||||
`/Handler/Config.ashx?action=updatecache&mark=${data.mark}&user_id=${data.user_id}&mark_value=${data.mark_value}&step=${data.step}`
|
`/Handler/Config.ashx?action=updatecache&mark=${data.mark}&user_id=${data.user_id}&mark_value=${data.mark_value}&step=${data.step}`
|
||||||
|
|
|
@ -1047,7 +1047,7 @@ export default {
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("新增失败");
|
this.$message.error(data.message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//删除命令
|
//删除命令
|
||||||
|
@ -1072,7 +1072,7 @@ export default {
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("删除失败");
|
this.$message.error(data.message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -281,7 +281,7 @@ export default {
|
||||||
});
|
});
|
||||||
this.flag = true;
|
this.flag = true;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("操作失败");
|
this.$message.error(data.message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -344,7 +344,7 @@ export default {
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("操作失败");
|
this.$message.error(data.message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -167,6 +167,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { SaveUserAnswer, GetUserAnswer } from "@/api/user";
|
import { SaveUserAnswer, GetUserAnswer } from "@/api/user";
|
||||||
import { isValidPrimaryDNS } from "../validate";
|
import { isValidPrimaryDNS } from "../validate";
|
||||||
|
import { Alert } from "element-ui";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -255,8 +256,9 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getParameter(data) {
|
getParameter1(data) {
|
||||||
console.log(data);
|
alert(data, "信息");
|
||||||
|
console.log(data, "信息");
|
||||||
this.user_id = data;
|
this.user_id = data;
|
||||||
},
|
},
|
||||||
// 封装合并输入框的数据
|
// 封装合并输入框的数据
|
||||||
|
@ -323,10 +325,11 @@ export default {
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("保存失败");
|
this.$message.error(res.data.message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async GetUserAnswer() {
|
async GetUserAnswer() {
|
||||||
|
this.loading = true;
|
||||||
let answers = await GetUserAnswer({
|
let answers = await GetUserAnswer({
|
||||||
mark: "CKFWQ_yx",
|
mark: "CKFWQ_yx",
|
||||||
user_id: this.user_id,
|
user_id: this.user_id,
|
||||||
|
@ -361,6 +364,7 @@ export default {
|
||||||
this.ippz_dns_by4 = obj.ippz_dns_by.split(".")[3];
|
this.ippz_dns_by4 = obj.ippz_dns_by.split(".")[3];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.loading = false;
|
||||||
},
|
},
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["ruleForm"].validate((valid) => {
|
this.$refs["ruleForm"].validate((valid) => {
|
||||||
|
@ -522,11 +526,13 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
let that = this;
|
this.user_id = window.location.href.split("?")[1];
|
||||||
window.getParameter = that.getParameter;
|
alert(this.user_id, "信息111111111111111111111");
|
||||||
this.Loading = true;
|
console.log(this.user_id, "信息1111111111111111111");
|
||||||
this.GetUserAnswer();
|
this.GetUserAnswer();
|
||||||
this.Loading = false;
|
},
|
||||||
|
destroyed() {
|
||||||
|
window.getParameter = null;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -116,7 +116,7 @@ export default {
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
console.log({ ...datas, ...this.ruleForm }, "存储");
|
console.log({ ...datas, ...this.ruleForm }, "存储");
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("保存失败");
|
this.$message.error(res.data.message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 拿缓存
|
// 拿缓存
|
||||||
|
|
|
@ -270,7 +270,7 @@ export default {
|
||||||
});
|
});
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("保存失败");
|
this.$message.error(data.message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//拿缓存
|
//拿缓存
|
||||||
|
|
|
@ -204,7 +204,7 @@ export default {
|
||||||
this.dialogVisible1 = false;
|
this.dialogVisible1 = false;
|
||||||
this.GetUserAnswer();
|
this.GetUserAnswer();
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("保存失败");
|
this.$message.error(data.message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async GetUserAnswer() {
|
async GetUserAnswer() {
|
||||||
|
|
|
@ -332,7 +332,7 @@ export default {
|
||||||
JSON.stringify({ ...obj, ...newSessObj })
|
JSON.stringify({ ...obj, ...newSessObj })
|
||||||
);
|
);
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "删除成功",
|
message: data.message,
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,7 +237,7 @@ export default {
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("保存失败");
|
this.$message.error(data.message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
submitForm(formName) {
|
submitForm(formName) {
|
||||||
|
|
|
@ -117,7 +117,7 @@ export default {
|
||||||
});
|
});
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("保存失败");
|
this.$message.error(res.data.message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async GetUserAnswer() {
|
async GetUserAnswer() {
|
||||||
|
|
|
@ -178,8 +178,9 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getParameter(data) {
|
getParameter2(data) {
|
||||||
console.log(data);
|
alert(data, "信息11");
|
||||||
|
console.log(data, "信息111111");
|
||||||
this.user_id = data;
|
this.user_id = data;
|
||||||
},
|
},
|
||||||
//保存
|
//保存
|
||||||
|
@ -201,7 +202,7 @@ export default {
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("保存失败");
|
this.$message.error(res.data.message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//拿到缓存数据
|
//拿到缓存数据
|
||||||
|
@ -230,9 +231,7 @@ export default {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
},
|
},
|
||||||
//交互方法
|
//交互方法
|
||||||
getParameter(data) {
|
|
||||||
console.log(data);
|
|
||||||
},
|
|
||||||
submitForm(formName) {
|
submitForm(formName) {
|
||||||
this.$refs["ruleForm"].validate((valid) => {
|
this.$refs["ruleForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
@ -245,8 +244,9 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
let that = this;
|
this.user_id = window.location.href.split("?")[1];
|
||||||
window.getParameter = that.getParameter;
|
alert(this.user_id, "信息111111111111111111111");
|
||||||
|
console.log(this.user_id, "信息1111111111111111111");
|
||||||
this.GetUserAnswer();
|
this.GetUserAnswer();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,6 +17,7 @@ Vue.filter("datefmt", function (input, fmtstring) {
|
||||||
Vue.prototype.$moment = moment;
|
Vue.prototype.$moment = moment;
|
||||||
Vue.prototype.$store = store;
|
Vue.prototype.$store = store;
|
||||||
Vue.prototype.$answerObj = answerObj;
|
Vue.prototype.$answerObj = answerObj;
|
||||||
|
|
||||||
Vue.use(ElementUI);
|
Vue.use(ElementUI);
|
||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
|
|
Loading…
Reference in New Issue