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
b0787e19
Commit
b0787e19
authored
Aug 25, 2021
by
何鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改列表
parent
b2aee6ca
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
316 additions
and
21 deletions
+316
-21
hospital.js
src/api/hospital.js
+10
-0
index.vue
src/page/hospital/index.vue
+231
-8
index.vue
src/page/log/index.vue
+53
-12
dict.js
src/util/dict.js
+22
-1
No files found.
src/api/hospital.js
0 → 100644
View file @
b0787e19
import
request
from
'../util/ajax'
export
function
queryIntegrationList
(
params
)
{
return
request
({
url
:
'/api/team/pre/queryIntegrationList'
,
method
:
'POST'
,
data
:
params
})
}
src/page/hospital/index.vue
View file @
b0787e19
<
template
>
<
template
>
<div>
<div
class=
"main-page"
>
院前
<div
class=
"main-page-header"
>
<p
class=
"title"
>
院前急救信息
</p>
<el-form
:inline=
"true"
:model=
"searchForm"
ref=
"searchForm"
size=
"small"
>
<el-form-item
prop=
"patientType"
label=
"病种"
>
<el-select
v-model=
"searchForm.patientType"
placeholder=
"请选择病种"
style=
"width: 100%"
:clearable=
"true"
>
<el-option
v-for=
"item in patientTypeList"
:label=
"item.name"
:key=
"item.id"
:value=
"item.val"
/>
</el-select>
</el-form-item>
<el-form-item
prop=
"time"
label=
"急救时间"
>
<el-date-picker
type=
"datetimerange"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
v-model=
"searchForm.time"
style=
"width: 100%;"
prefix-icon=
"el-icon-date"
format=
"yyyy-MM-dd HH:mm:ss"
value-format=
"yyyy-MM-dd HH:mm:ss"
></el-date-picker>
</el-form-item>
<div
class=
"btns"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"search"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"resetForm('searchForm')"
>
重置
</el-button>
</div>
</el-form>
</div>
<div
class=
"main-page-body"
>
<div
class=
"mainContent"
>
<table-mixin
:pageSize=
"pageSize"
:pageNum=
"pageNum"
:total=
"total"
:pagination=
"pagination"
:handleSizeChange=
"handleSizeChange"
:handleCurrentChange=
"handleCurrentChange"
>
<el-table
v-loading=
"tableData.loading"
:data=
"tableData.body"
@
sort-change=
"handleSortChange"
>
<div
slot=
"empty"
class=
"noData"
></div>
<el-table-column
label=
"序号"
type=
"index"
min-width=
"50"
>
</el-table-column>
<el-table-column
v-for=
"(item,index) in tableData.head"
:prop=
"item.key"
:label=
"item.name"
align=
"left"
:formatter=
"item.formatter"
:sortable=
"item.sortable"
:fixed=
"item.fixed"
:key=
"index"
:min-width=
"item.width"
:show-overflow-tooltip=
"true"
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"left"
width=
"auto"
min-width=
"200px"
>
<template
slot-scope=
"scope"
>
<el-link
type=
"primary"
>
查看详情
</el-link>
</
template
>
</el-table-column>
</el-table>
</table-mixin>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
tableDataMixin
}
from
'../../common/js/mixin'
import
{
queryIntegrationList
}
from
'@/api/hospital'
import
{
getDic
}
from
'../../util/dict'
export
default
{
export
default
{
name
:
'LogPage'
,
mixins
:
[
tableDataMixin
],
data
()
{
return
{
searchForm
:
{
operateType
:
''
,
time
:
[]
},
patientTypeList
:
[],
tableData
:
{
loading
:
false
,
head
:
[
{
name
:
'患者姓名'
,
key
:
'patientName'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
},
{
name
:
'性别'
,
key
:
'createUserName'
,
sortable
:
false
,
width
:
'80'
,
fixed
:
false
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
cellValue
===
1
?
'男'
:
cellValue
===
2
?
'女'
:
''
}
},
{
name
:
'身份证号'
,
key
:
'operateType'
,
sortable
:
false
,
width
:
'200'
,
fixed
:
false
},
{
name
:
'120急救申请时间'
,
key
:
'requestUri'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
},
{
name
:
'车牌号'
,
key
:
'requestUri'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
},
{
name
:
'申请机构'
,
key
:
'requestUri'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
},
{
name
:
'接诊医院'
,
key
:
'requestUri'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
},
{
name
:
'请求绿道'
,
key
:
'requestUri'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
},
{
name
:
'院前诊断'
,
key
:
'requestUri'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
}
],
body
:
[],
option
:
[],
condition
:
[]
}
}
},
mounted
()
{
// 获取字典
getDic
([
'patient_type'
]).
then
(
res
=>
{
this
.
patientTypeList
=
res
.
patient_type
})
this
.
search
()
},
methods
:
{
getTableData
()
{
this
.
tableData
.
loading
=
true
const
params
=
{
operateType
:
this
.
searchForm
.
operateType
,
pageNo
:
this
.
pageNum
,
pageSize
:
this
.
pageSize
}
if
(
this
.
searchForm
.
time
&&
this
.
searchForm
.
time
.
length
===
2
)
{
params
.
createTime
=
this
.
searchForm
.
time
[
0
]
+
"_"
+
this
.
searchForm
.
time
[
1
]
}
queryIntegrationList
(
params
).
then
((
res
)
=>
{
if
(
res
.
msg
==
201
)
{
this
.
dealTableResponse
(
res
)
}
else
{
this
.
$message
.
error
(
res
.
content
)
}
})
},
logTypeFormatter
(
row
,
column
,
cellValue
,
index
)
{
const
logType
=
this
.
logTypeList
.
find
(
i
=>
i
.
val
===
cellValue
)
return
logType
?
logType
.
name
:
''
},
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
>
.mainContent
{
padding
:
20px
;
}
</
style
>
</
style
>
src/page/log/index.vue
View file @
b0787e19
...
@@ -26,6 +26,24 @@
...
@@ -26,6 +26,24 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"model"
label=
"模块"
>
<el-select
v-model=
"searchForm.model"
placeholder=
"请选择模块"
style=
"width: 100%"
:clearable=
"true"
>
<el-option
v-for=
"item in modelTypeList"
:label=
"item.name"
:key=
"item.id"
:value=
"item.val"
/>
</el-select>
</el-form-item>
<el-form-item
<el-form-item
prop=
"time"
prop=
"time"
label=
"时间"
label=
"时间"
...
@@ -112,37 +130,53 @@ export default {
...
@@ -112,37 +130,53 @@ export default {
time
:
[]
time
:
[]
},
},
logTypeList
:
[],
logTypeList
:
[],
modelTypeList
:
[],
tableData
:
{
tableData
:
{
loading
:
false
,
loading
:
false
,
head
:
[
head
:
[
{
{
name
:
'时间'
,
name
:
'
操作
时间'
,
key
:
'createTime'
,
key
:
'createTime'
,
sortable
:
false
,
sortable
:
false
,
width
:
'
20
0'
,
width
:
'
15
0'
,
fixed
:
false
fixed
:
false
},
},
{
{
name
:
'操作人'
,
name
:
'操作人'
,
key
:
'createUserName'
,
key
:
'createUserName'
,
sortable
:
false
,
sortable
:
false
,
width
:
'
2
00'
,
width
:
'
1
00'
,
fixed
:
false
fixed
:
false
},
},
{
{
name
:
'
操作类型
'
,
name
:
'
描述
'
,
key
:
'
operateType
'
,
key
:
'
description
'
,
sortable
:
false
,
sortable
:
false
,
width
:
'200'
,
width
:
'200'
,
fixed
:
false
,
fixed
:
false
,
formatter
:
this
.
logTypeFormatter
},
},
{
{
name
:
'提交
数据
'
,
name
:
'提交
参数
'
,
key
:
'
requestUri
'
,
key
:
'
operateParam
'
,
sortable
:
false
,
sortable
:
false
,
width
:
'
2
00'
,
width
:
'
5
00'
,
fixed
:
false
fixed
:
false
},
{
name
:
'模块'
,
key
:
'model'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
,
formatter
:
this
.
modelTypeFormatter
},
{
name
:
'操作类型'
,
key
:
'operateType'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
,
formatter
:
this
.
logTypeFormatter
}
}
],
],
body
:
[],
body
:
[],
...
@@ -153,8 +187,9 @@ export default {
...
@@ -153,8 +187,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
// 获取字典
// 获取字典
getDic
([
'log_type'
]).
then
(
res
=>
{
getDic
([
'log_type'
,
'model_type'
]).
then
(
res
=>
{
this
.
logTypeList
=
res
.
log_type
this
.
logTypeList
=
res
.
log_type
||
[]
this
.
modelTypeList
=
res
.
model_type
||
[]
})
})
this
.
search
()
this
.
search
()
},
},
...
@@ -163,6 +198,7 @@ export default {
...
@@ -163,6 +198,7 @@ export default {
this
.
tableData
.
loading
=
true
this
.
tableData
.
loading
=
true
const
params
=
{
const
params
=
{
operateType
:
this
.
searchForm
.
operateType
,
operateType
:
this
.
searchForm
.
operateType
,
model
:
this
.
searchForm
.
model
,
pageNo
:
this
.
pageNum
,
pageNo
:
this
.
pageNum
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
}
}
...
@@ -177,9 +213,14 @@ export default {
...
@@ -177,9 +213,14 @@ export default {
}
}
})
})
},
},
modelTypeFormatter
(
row
,
column
,
cellValue
,
index
)
{
console
.
log
(
this
.
modelTypeList
)
const
item
=
this
.
modelTypeList
.
find
(
i
=>
i
.
val
===
cellValue
)
return
item
?
item
.
name
:
cellValue
},
logTypeFormatter
(
row
,
column
,
cellValue
,
index
)
{
logTypeFormatter
(
row
,
column
,
cellValue
,
index
)
{
const
logType
=
this
.
logTypeList
.
find
(
i
=>
i
.
val
===
cellValue
)
const
logType
=
this
.
logTypeList
.
find
(
i
=>
i
.
val
===
cellValue
)
return
logType
?
logType
.
name
:
''
return
logType
?
logType
.
name
:
cellValue
},
},
}
}
}
}
...
...
src/util/dict.js
View file @
b0787e19
...
@@ -98,7 +98,28 @@ const dist = {
...
@@ -98,7 +98,28 @@ const dist = {
val
:
'09'
,
val
:
'09'
,
id
:
9
id
:
9
}
}
]
],
patient_type
:
[{
name
:
'胸痛'
,
val
:
1
,
id
:
1
},
{
name
:
'卒中'
,
val
:
2
,
id
:
2
},
{
name
:
'创伤'
,
val
:
3
,
id
:
3
},
{
name
:
'烧伤'
,
val
:
4
,
id
:
4
}
],
}
}
export
async
function
getDic
(
list
)
{
export
async
function
getDic
(
list
)
{
...
...
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