Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
songrui
frontend-h5
Commits
700e47fd
Commit
700e47fd
authored
Jun 25, 2025
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医生端 v1.0.4 1、小程序对接 接口不能用id查询详情调整
parent
5c10002f
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
18 deletions
+23
-18
fetch.js
src/api/fetch.js
+3
-2
ResidentWX.vue
src/residentWX/ResidentWX.vue
+4
-0
List.vue
src/residentWX/screening/List.vue
+2
-2
FirstDetail.vue
src/residentWX/screening/detail/FirstDetail.vue
+1
-1
SecondDetail.vue
src/residentWX/screening/detail/SecondDetail.vue
+1
-1
List.vue
src/residentWX/visit/List.vue
+4
-4
FirstFUDetail.vue
src/residentWX/visit/detail/FirstFUDetail.vue
+1
-1
GeneralFUDetail.vue
src/residentWX/visit/detail/GeneralFUDetail.vue
+1
-1
SecondFUDetail.vue
src/residentWX/visit/detail/SecondFUDetail.vue
+1
-1
SeparateFUDetail.vue
src/residentWX/visit/detail/SeparateFUDetail.vue
+1
-1
vue.config.js
vue.config.js
+4
-4
No files found.
src/api/fetch.js
View file @
700e47fd
...
@@ -28,7 +28,7 @@ export function fetchBase({
...
@@ -28,7 +28,7 @@ export function fetchBase({
contentType
===
'form'
&&
(
contentType
=
'application/x-www-form-urlencoded'
)
contentType
===
'form'
&&
(
contentType
=
'application/x-www-form-urlencoded'
)
contentType
===
'json'
&&
(
contentType
=
'application/json; charset=utf-8'
)
contentType
===
'json'
&&
(
contentType
=
'application/json; charset=utf-8'
)
contentType
===
'file'
&&
(
contentType
=
'multipart/form-data'
)
contentType
===
'file'
&&
(
contentType
=
'multipart/form-data'
)
const
token
=
sessionStorage
.
getItem
(
'token'
)
||
''
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
loading
)
{
if
(
loading
)
{
loadingList
++
loadingList
++
...
@@ -40,7 +40,8 @@ export function fetchBase({
...
@@ -40,7 +40,8 @@ export function fetchBase({
params
:
params
,
params
:
params
,
data
:
body
,
data
:
body
,
headers
:
{
headers
:
{
'Content-Type'
:
contentType
'Authorization'
:
`
${
token
}
`
,
'Content-Type'
:
contentType
,
}
}
}).
then
(
function
(
response
)
{
}).
then
(
function
(
response
)
{
const
data
=
response
.
data
||
{}
const
data
=
response
.
data
||
{}
...
...
src/residentWX/ResidentWX.vue
View file @
700e47fd
...
@@ -65,6 +65,10 @@ export default {
...
@@ -65,6 +65,10 @@ export default {
this
.
store
.
$patch
({
dict
:
res
.
data
||
{}
})
this
.
store
.
$patch
({
dict
:
res
.
data
||
{}
})
let
idCard
=
getQueryVariable
(
'idCard'
)
let
idCard
=
getQueryVariable
(
'idCard'
)
let
embed
=
getQueryVariable
(
'embed'
)
let
embed
=
getQueryVariable
(
'embed'
)
let
token
=
getQueryVariable
(
'token'
)
if
(
token
)
{
window
.
sessionStorage
.
setItem
(
'token'
,
token
)
}
if
(
embed
)
{
if
(
embed
)
{
window
.
sessionStorage
.
setItem
(
'embed'
,
embed
)
window
.
sessionStorage
.
setItem
(
'embed'
,
embed
)
}
}
...
...
src/residentWX/screening/List.vue
View file @
700e47fd
...
@@ -141,9 +141,9 @@ export default {
...
@@ -141,9 +141,9 @@ export default {
},
},
toDetail
(
record
)
{
toDetail
(
record
)
{
if
(
!
record
)
return
if
(
!
record
)
return
let
path
=
`/residentWX/screening/firstDetail/
${
record
.
id
}
`
let
path
=
`/residentWX/screening/firstDetail/
${
record
.
relationUu
id
}
`
if
(
this
.
activeTab
==
'2'
)
{
if
(
this
.
activeTab
==
'2'
)
{
path
=
`/residentWX/screening/SecondDetail/
${
record
.
id
}
`
path
=
`/residentWX/screening/SecondDetail/
${
record
.
relationUu
id
}
`
}
}
this
.
$router
.
push
({
path
})
this
.
$router
.
push
({
path
})
}
}
...
...
src/residentWX/screening/detail/FirstDetail.vue
View file @
700e47fd
...
@@ -170,7 +170,7 @@ export default {
...
@@ -170,7 +170,7 @@ export default {
methods
:
{
methods
:
{
init
()
{
init
()
{
firstScreenDetail
({
id
:
this
.
id
}).
then
(
res
=>
{
firstScreenDetail
({
relationUu
id
:
this
.
id
}).
then
(
res
=>
{
this
.
info
=
res
.
data
||
{}
this
.
info
=
res
.
data
||
{}
this
.
collapseList
[
0
].
info
=
this
.
info
?.
residentsRecord
this
.
collapseList
[
0
].
info
=
this
.
info
?.
residentsRecord
this
.
collapseList
[
1
].
info
=
this
.
info
this
.
collapseList
[
1
].
info
=
this
.
info
...
...
src/residentWX/screening/detail/SecondDetail.vue
View file @
700e47fd
...
@@ -737,7 +737,7 @@ export default {
...
@@ -737,7 +737,7 @@ export default {
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
secondScreenDetail
({
id
:
this
.
id
}).
then
(
res
=>
{
secondScreenDetail
({
relationUu
id
:
this
.
id
}).
then
(
res
=>
{
let
result
=
res
.
data
||
{}
let
result
=
res
.
data
||
{}
this
.
info
=
result
this
.
info
=
result
this
.
highRiskListHandle
(
result
)
this
.
highRiskListHandle
(
result
)
...
...
src/residentWX/visit/List.vue
View file @
700e47fd
...
@@ -170,19 +170,19 @@ export default {
...
@@ -170,19 +170,19 @@ export default {
let
path
=
``
let
path
=
``
//主要慢病高危随访
//主要慢病高危随访
if
(
item
.
tabs
==
1
)
{
if
(
item
.
tabs
==
1
)
{
path
=
`FirstFUDetail/
${
item
.
id
}
`
path
=
`FirstFUDetail/
${
item
.
relationUu
id
}
`
}
}
//专病高危随访
//专病高危随访
if
(
item
.
tabs
==
2
)
{
if
(
item
.
tabs
==
2
)
{
path
=
`SecondFUDetail/
${
item
.
id
}
`
path
=
`SecondFUDetail/
${
item
.
relationUu
id
}
`
}
}
//专病随访
//专病随访
if
(
item
.
tabs
==
3
)
{
if
(
item
.
tabs
==
3
)
{
path
=
`SeparateFUDetail/
${
item
.
id
}
/
${
item
.
diseaseType
}
`
path
=
`SeparateFUDetail/
${
item
.
relationUu
id
}
/
${
item
.
diseaseType
}
`
}
}
//通用随访
//通用随访
if
(
item
.
tabs
==
4
)
{
if
(
item
.
tabs
==
4
)
{
path
=
`GeneralFUDetail/
${
item
.
id
}
`
path
=
`GeneralFUDetail/
${
item
.
relationUu
id
}
`
}
}
this
.
$router
.
push
({
this
.
$router
.
push
({
...
...
src/residentWX/visit/detail/FirstFUDetail.vue
View file @
700e47fd
...
@@ -169,7 +169,7 @@ export default {
...
@@ -169,7 +169,7 @@ export default {
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
queryMajorFUDetail
({
id
:
this
.
id
}).
then
(
res
=>
{
queryMajorFUDetail
({
relationUu
id
:
this
.
id
}).
then
(
res
=>
{
this
.
info
=
res
.
data
||
{}
this
.
info
=
res
.
data
||
{}
this
.
collapseList
[
0
].
info
=
this
.
info
?.
residentsRecord
this
.
collapseList
[
0
].
info
=
this
.
info
?.
residentsRecord
this
.
collapseList
[
1
].
info
=
this
.
info
this
.
collapseList
[
1
].
info
=
this
.
info
...
...
src/residentWX/visit/detail/GeneralFUDetail.vue
View file @
700e47fd
...
@@ -359,7 +359,7 @@ export default {
...
@@ -359,7 +359,7 @@ export default {
return
return
}
}
let
par
=
{
let
par
=
{
id
:
this
.
routerDetail
.
relationId
relationUu
id
:
this
.
routerDetail
.
relationId
}
}
queryGeneralFUDetail
(
par
).
then
(
res
=>
{
queryGeneralFUDetail
(
par
).
then
(
res
=>
{
let
result
=
res
.
data
||
{}
let
result
=
res
.
data
||
{}
...
...
src/residentWX/visit/detail/SecondFUDetail.vue
View file @
700e47fd
...
@@ -737,7 +737,7 @@ export default {
...
@@ -737,7 +737,7 @@ export default {
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
querySpecificFUDetail
({
id
:
this
.
id
}).
then
(
res
=>
{
querySpecificFUDetail
({
relationUu
id
:
this
.
id
}).
then
(
res
=>
{
let
result
=
res
.
data
||
{}
let
result
=
res
.
data
||
{}
this
.
info
=
result
this
.
info
=
result
this
.
highRiskListHandle
(
result
)
this
.
highRiskListHandle
(
result
)
...
...
src/residentWX/visit/detail/SeparateFUDetail.vue
View file @
700e47fd
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
return
return
}
}
let
params
=
{
let
params
=
{
id
:
relationId
,
relationUu
id
:
relationId
,
diseaseType
,
diseaseType
,
}
}
querySeparateFUDetail
(
params
).
then
(
res
=>
{
querySeparateFUDetail
(
params
).
then
(
res
=>
{
...
...
vue.config.js
View file @
700e47fd
...
@@ -39,12 +39,12 @@ module.exports = defineConfig({
...
@@ -39,12 +39,12 @@ module.exports = defineConfig({
}
}
},
},
'/chronic-resident'
:
{
'/chronic-resident'
:
{
// target: 'http://192.168.1.142
:8903',
target
:
'http://192.168.1.169
:8903'
,
target
:
'https://beta-tumour.zmnyjk.com'
,
//
target: 'https://beta-tumour.zmnyjk.com',
changOrigin
:
true
,
changOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
//
'^/chronic-resident': '/',
'^/chronic-resident'
:
'/'
,
'^/chronic-resident'
:
'/chronic-resident'
//
'^/chronic-resident': '/chronic-resident'
}
}
}
}
},
},
...
...
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