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
e1b8c3cf
Commit
e1b8c3cf
authored
Feb 08, 2025
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
医生端 v1.2 1、公卫详情 动态路由 组件化兼容
parent
307ee370
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
IframePage.vue
src/components/iframePage/IframePage.vue
+5
-4
FollowUpDetail.vue
src/doctor/followUp/detail/FollowUpDetail.vue
+2
-5
index.js
src/router/index.js
+1
-1
No files found.
src/components/iframePage/IframePage.vue
View file @
e1b8c3cf
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<span
@
click=
'onBack'
class=
'text-12 back-bt'
>
<span
@
click=
'onBack'
class=
'text-12 back-bt'
>
<doc-icon
type=
'doc-left2'
/>
<doc-icon
type=
'doc-left2'
/>
</span>
</span>
<span>
{{
pageTitle
}}
</span>
<span
style=
'min-height: .16rem;display: inline-block'
>
{{
pageTitle
}}
</span>
</div>
</div>
<iframe
:src=
'iframeSrc'
style=
'border: 0;width: 100%;height: calc(99% - 50px)'
:key=
'iframeSrc'
v-if=
'iframeSrc'
<iframe
:src=
'iframeSrc'
style=
'border: 0;width: 100%;height: calc(99% - 50px)'
:key=
'iframeSrc'
v-if=
'iframeSrc'
allowFullscreen
>
allowFullscreen
>
...
@@ -18,18 +18,19 @@
...
@@ -18,18 +18,19 @@
export
default
{
export
default
{
props
:
{
props
:
{
src
:
String
src
:
String
,
pageTitle
:
String
},
},
data
()
{
data
()
{
return
{
return
{
iframeSrc
:
''
iframeSrc
:
''
}
}
},
},
computed
:
{
/*
computed: {
pageTitle() {
pageTitle() {
return this.$route.query.pageTitle || ''
return this.$route.query.pageTitle || ''
}
}
},
},
*/
beforeUnmount
()
{
beforeUnmount
()
{
this
.
iframeSrc
=
''
this
.
iframeSrc
=
''
},
},
...
...
src/doctor/followUp/detail/FollowUpDetail.vue
View file @
e1b8c3cf
...
@@ -15,13 +15,13 @@
...
@@ -15,13 +15,13 @@
<
script
>
<
script
>
import
{
getVisitManageVByUuId
}
from
'@/api/doctor/generalFU'
import
{
getVisitManageVByUuId
}
from
'@/api/doctor/generalFU'
// import GwDetail from '@/doctor/followUp/detail/components/GwDetail'
import
CrsVisitDetail
from
'@/doctor/followUp/detail/components/CrsVisitDetail'
import
CrsVisitDetail
from
'@/doctor/followUp/detail/components/CrsVisitDetail'
import
CurrencyFUDetail
from
'@/doctor/followUp/generalFU/detail/Detail'
import
CurrencyFUDetail
from
'@/doctor/followUp/generalFU/detail/Detail'
import
IframePage
from
'@/components/iframePage/IframePage'
export
default
{
export
default
{
name
:
'FollowUpDetail'
,
name
:
'FollowUpDetail'
,
components
:
{
CurrencyFUDetail
,
CrsVisitDetail
},
components
:
{
IframePage
,
CurrencyFUDetail
,
CrsVisitDetail
},
props
:
{
props
:
{
// id: [String, Number],
// id: [String, Number],
// residentId: [String, Number],
// residentId: [String, Number],
...
@@ -105,9 +105,7 @@ export default {
...
@@ -105,9 +105,7 @@ export default {
},
},
//判断是否显示公卫随访
//判断是否显示公卫随访
PhlIsShow
(
record
)
{
PhlIsShow
(
record
)
{
// let res = false
if
(
record
.
source
==
4
)
{
if
(
record
.
source
==
4
)
{
// res = true
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
`/systemIframe/doctorGWDetail`
,
path
:
`/systemIframe/doctorGWDetail`
,
query
:
{
query
:
{
...
@@ -116,7 +114,6 @@ export default {
...
@@ -116,7 +114,6 @@ export default {
}
}
})
})
}
}
// return res
}
}
}
}
}
}
...
...
src/router/index.js
View file @
e1b8c3cf
...
@@ -2,7 +2,7 @@ import { createRouter, createWebHashHistory } from 'vue-router'
...
@@ -2,7 +2,7 @@ import { createRouter, createWebHashHistory } from 'vue-router'
const
doctorIframeConfig
=
{
const
doctorIframeConfig
=
{
component
:
()
=>
import
(
/* webpackChunkName: "iframe-page" */
'@/components/iframePage/IframePage.vue'
),
component
:
()
=>
import
(
/* webpackChunkName: "iframe-page" */
'@/components/iframePage/IframePage.vue'
),
props
:
route
=>
({
src
:
route
.
query
.
src
})
props
:
route
=>
({
src
:
route
.
query
.
src
,
pageTitle
:
route
.
query
.
pageTitle
})
}
}
const
routes
=
[
const
routes
=
[
...
...
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