Commit 9e270f28 authored by miaojiale's avatar miaojiale

问卷H5

parent c53149d1
......@@ -38,23 +38,28 @@ export default {
}
},
methods: {
login() {
this.$API.login().then((res) => {
console.log(res)
})
},
// login() {
// this.$API.login().then((res) => {
// console.log(res)
// })
// },
getPatientInfo() {
// let data = 'NfQ4zQ+wWuvnPfQQgL6wHMQb5XGNtIbxXUiYHs5NmhnI7tSHpQob3FCUx59D/nPWbmKlW7pp5d00I/P9L0q9skLoGpXaf10EAwXJjyT8JFWwu5FFapdBHsjV0KLq+erWns7g70e4wYH2eTxQHpMwxj7+GOuPL5LtPR0x2RLJDyY='
// data = data.replaceAll("+", "%2B")
let params = {
idCard: 111111111,
patientName: "张三",
phone: 18888888888
// data: data
data: this.$route.query.data
}
this.$API
.getPatientInfo(params)
.then((res) => {
if (res.code == 1) {
this.baseInfo = {
...res.data
}
this.getQuestionList()
this.getQuestionnaireRecords()
}
})
.catch(() => {
this.baseInfo = {}
......@@ -84,7 +89,7 @@ export default {
getQuestionnaireRecords() {
this.$API
.getQuestionnaireRecords({
patientId: 1
patientId: this.baseInfo.id
})
.then((res) => {
if (res.code == 1) {
......@@ -125,13 +130,12 @@ export default {
}
},
created() {
this.login()
// this.login()
if (this.$route.query.data) {
this.getPatientInfo()
this.getQuestionList()
},
mounted() {
this.getQuestionnaireRecords()
}
},
mounted() {},
watch: {}
}
</script>
......
......@@ -20,7 +20,7 @@ const page = [
component: () => import("@/pages/feedback")
},
{
path: `/questionnaire/:id`,
path: `/questionnaire`,
meta: { index: 2, keepAlive: false },
name: "questionnaire",
component: () => import("@/pages/questionnaire")
......
......@@ -65,7 +65,7 @@ module.exports = {
proxy: {
"/api": {
// target: "https://ds.cixincloud.com/songjiang-api",
target: "http://192.168.0.105:11999/",
target: "http://192.168.0.200:11999/",
// target: 'http://localhost:8201/',
// target: 'http://192.168.3.221/8201/',
changeOrigin: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment