Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
Videodiagnosis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
苗家乐
Videodiagnosis
Commits
9e270f28
Commit
9e270f28
authored
Jan 22, 2024
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问卷H5
parent
c53149d1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
19 deletions
+23
-19
questionnaire.vue
src/pages/questionnaire.vue
+21
-17
index.js
src/router/index.js
+1
-1
vue.config.js
vue.config.js
+1
-1
No files found.
src/pages/questionnaire.vue
View file @
9e270f28
...
...
@@ -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
>
...
...
src/router/index.js
View file @
9e270f28
...
...
@@ -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
"
)
...
...
vue.config.js
View file @
9e270f28
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment