Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
md-vue-chc
Project
Project
Details
Activity
Releases
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
何鹏程
md-vue-chc
Commits
9f8b168e
Commit
9f8b168e
authored
Dec 29, 2022
by
何鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成功能
parent
758ef089
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
6 deletions
+37
-6
emergencyCarDialog.vue
src/page/emergencyCar/components/emergencyCarDialog.vue
+3
-0
detailDialog.vue
src/page/usage/components/detailDialog.vue
+29
-1
dict.js
src/util/dict.js
+5
-5
No files found.
src/page/emergencyCar/components/emergencyCarDialog.vue
View file @
9f8b168e
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
:title=
"title"
:title=
"title"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
width=
"1000px"
width=
"1000px"
append-to-body
@
closed=
"closedHandler"
@
closed=
"closedHandler"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
class=
"emergencyCarDialog"
class=
"emergencyCarDialog"
...
@@ -509,6 +510,8 @@ export default {
...
@@ -509,6 +510,8 @@ export default {
if
(
type
===
'update'
||
type
===
'detail'
)
{
if
(
type
===
'update'
||
type
===
'detail'
)
{
if
(
!
id
)
{
if
(
!
id
)
{
this
.
$message
.
error
(
'救护车id不能为空'
)
this
.
$message
.
error
(
'救护车id不能为空'
)
this
.
dialogVisible
=
false
this
.
loading
=
false
return
return
}
}
queryTeamEmergencyCarInfo
({
id
:
id
}).
then
(
res
=>
{
queryTeamEmergencyCarInfo
({
id
:
id
}).
then
(
res
=>
{
...
...
src/page/usage/components/detailDialog.vue
View file @
9f8b168e
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
<el-dialog
<el-dialog
:title=
"title + '救护车信息明细'"
:title=
"title + '救护车信息明细'"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
width=
"1200px"
append-to-body
width=
"1300px"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
class=
"detailDialog"
class=
"detailDialog"
>
>
...
@@ -50,17 +51,38 @@
...
@@ -50,17 +51,38 @@
<span
v-else
>
{{
scope
.
row
[
scope
.
column
.
property
]
}}
</span>
<span
v-else
>
{{
scope
.
row
[
scope
.
column
.
property
]
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"left"
width=
"auto"
min-width=
"100px"
>
<
template
slot-scope=
"scope"
>
<el-link
type=
"primary"
@
click=
"showEmergencyCarDialog('detail',scope.row.id)"
>
查看详情
</el-link>
</
template
>
</el-table-column>
</el-table>
</el-table>
</table-mixin>
</table-mixin>
<EmergencyCarDialog
ref=
"emergencyCarDialog"
@
subsucc=
"search"
/>
</el-dialog>
</el-dialog>
</template>
</template>
<
script
>
<
script
>
import
{
queryTotalCarInfoByHospital
}
from
'@/api/emergencyCar'
import
{
queryTotalCarInfoByHospital
}
from
'@/api/emergencyCar'
import
{
tableDataMixin
}
from
'../../../common/js/mixin'
import
{
tableDataMixin
}
from
'../../../common/js/mixin'
import
EmergencyCarDialog
from
'../../emergencyCar/components/emergencyCarDialog.vue'
export
default
{
export
default
{
name
:
'detailDialog'
,
name
:
'detailDialog'
,
mixins
:
[
tableDataMixin
],
mixins
:
[
tableDataMixin
],
components
:
{
EmergencyCarDialog
},
data
()
{
data
()
{
return
{
return
{
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -172,6 +194,12 @@ export default {
...
@@ -172,6 +194,12 @@ export default {
}
}
})
})
},
},
showEmergencyCarDialog
(
type
=
'add'
,
id
=
''
)
{
this
.
$refs
.
emergencyCarDialog
.
init
(
type
,
id
)
},
search
()
{
}
}
}
}
}
</
script
>
</
script
>
...
...
src/util/dict.js
View file @
9f8b168e
...
@@ -140,11 +140,11 @@ const dist = {
...
@@ -140,11 +140,11 @@ const dist = {
val
:
3
,
val
:
3
,
id
:
3
id
:
3
},
},
{
//
{
name
:
'已删除'
,
//
name: '已删除',
val
:
4
,
//
val: 4,
id
:
4
//
id: 4
},
//
},
{
{
name
:
'删除审核中'
,
name
:
'删除审核中'
,
val
:
5
,
val
:
5
,
...
...
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