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
6b4f34da
Commit
6b4f34da
authored
Feb 16, 2023
by
何鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成新需求
parent
d443333b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2261 additions
and
1 deletion
+2261
-1
data.js
src/api/data.js
+17
-0
detail.vue
src/page/data/detail.vue
+1898
-0
index.vue
src/page/data/index.vue
+329
-0
index.js
src/router/index.js
+6
-0
staticRoute.js
src/router/staticRoute.js
+8
-0
whiteList.js
src/router/whiteList.js
+3
-1
No files found.
src/api/data.js
0 → 100644
View file @
6b4f34da
import
request
from
'../util/ajax'
export
function
queryIntegrationList
(
params
)
{
return
request
({
url
:
'/api/team/pre/queryIntegrationList?params=mdxtptPre&token='
+
params
.
token
,
method
:
'POST'
,
data
:
params
})
}
export
function
queryDetail
(
params
)
{
return
request
({
url
:
'/api/team/pre/queryInfoById?params=mdxtptPre&token='
+
params
.
token
,
method
:
'POST'
,
data
:
params
})
}
src/page/data/detail.vue
0 → 100644
View file @
6b4f34da
This diff is collapsed.
Click to expand it.
src/page/data/index.vue
0 → 100644
View file @
6b4f34da
<
template
>
<div
class=
"main-wrapper"
>
<div
class=
"main-body"
>
<div
class=
"main-content"
>
<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=
"searchFormSub"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"resetForm('searchForm')"
>
重置
</el-button>
</div>
</el-form>
</div>
<div
class=
"main-page-body"
>
<div
class=
"mainContent"
>
<div
class=
"bt"
>
<el-button
type=
"primary"
size=
"small"
v-if=
"!checkPermission()"
@
click=
"goDetail('add')"
>
新增
</el-button>
</div>
<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=
"150px"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<el-link
type=
"primary"
:disabled=
"scope.row.patientType === 5"
@
click=
"goDetail('detail', scope.row)"
>
查看详情
</el-link>
<!--
<el-link
type=
"primary"
:disabled=
"scope.row.patientType === 5"
@
click=
"goDetail('update', scope.row)"
v-if=
"!checkPermission()"
>
修改
</el-link>
-->
</
template
>
</el-table-column>
</el-table>
</table-mixin>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<
script
>
import
{
tableDataMixin
}
from
'../../common/js/mixin'
import
{
queryIntegrationList
}
from
'@/api/data'
import
{
getDic
}
from
'../../util/dict'
export
default
{
name
:
'LogPage'
,
mixins
:
[
tableDataMixin
],
data
()
{
return
{
searchForm
:
{
operateType
:
''
,
time
:
[]
},
patientTypeList
:
[],
token
:
''
,
tableData
:
{
loading
:
false
,
head
:
[
{
name
:
'患者姓名'
,
key
:
'patientName'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
},
{
name
:
'性别'
,
key
:
'sex'
,
sortable
:
false
,
width
:
'80'
,
fixed
:
false
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
cellValue
===
1
?
'男'
:
cellValue
===
2
?
'女'
:
''
}
},
{
name
:
'年龄'
,
key
:
'age'
,
sortable
:
false
,
width
:
'80'
,
fixed
:
false
},
{
name
:
'发病时间'
,
key
:
'onsetTime'
,
sortable
:
false
,
width
:
'200'
,
fixed
:
false
},
{
name
:
'120急救申请时间'
,
key
:
'firstAidApplicationTime'
,
sortable
:
false
,
width
:
'200'
,
fixed
:
false
},
{
name
:
'从现场出发时间'
,
key
:
'departureTime'
,
sortable
:
false
,
width
:
'200'
,
fixed
:
false
},
{
name
:
'车牌号'
,
key
:
'licensePlateNumber'
,
sortable
:
false
,
width
:
'120'
,
fixed
:
false
},
{
name
:
'申请机构'
,
key
:
'applicant'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
},
{
name
:
'身份证号'
,
key
:
'identityNumber'
,
sortable
:
false
,
width
:
'200'
,
fixed
:
false
},
{
name
:
'请求绿道'
,
key
:
'patientType'
,
sortable
:
false
,
width
:
'100'
,
fixed
:
false
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
return
[
''
,
'胸痛中心'
,
'卒中中心'
,
'创伤中心'
,
'烧伤中心'
,
'其他'
][
cellValue
]
||
''
}
},
{
name
:
'院前诊断'
,
key
:
'preHospitalDiagnosis'
,
sortable
:
false
,
width
:
'200'
,
fixed
:
false
},
{
name
:
'接诊医院'
,
key
:
'clinicalHospital'
,
sortable
:
false
,
width
:
'200'
,
fixed
:
false
},
{
name
:
'转出医院'
,
key
:
'outhospitalName'
,
sortable
:
false
,
width
:
'200'
,
fixed
:
false
}
],
body
:
[],
option
:
[],
condition
:
[]
}
}
},
mounted
()
{
// 获取字典
getDic
([
'patient_type'
]).
then
(
res
=>
{
this
.
patientTypeList
=
res
.
patient_type
console
.
log
(
this
.
patientTypeList
)
})
const
query
=
this
.
$route
.
query
this
.
token
=
query
.
token
if
(
this
.
token
)
{
this
.
search
()
}
else
{
this
.
$message
.
error
(
'无效数据,请联系管理员'
)
}
},
methods
:
{
getTableData
()
{
this
.
tableData
.
loading
=
true
const
params
=
{
patientType
:
this
.
searchForm
.
patientType
,
pageNo
:
this
.
pageNum
,
pageSize
:
this
.
pageSize
,
token
:
this
.
token
,
params
:
'mdxtptPre'
}
if
(
this
.
searchForm
.
time
&&
this
.
searchForm
.
time
.
length
===
2
)
{
params
.
time
=
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
:
''
},
goDetail
(
type
,
row
)
{
const
query
=
{
type
:
type
,
token
:
this
.
token
}
if
(
type
===
'update'
||
type
===
'detail'
)
{
query
.
patientType
=
row
.
patientType
query
.
associationId
=
row
.
associationId
}
const
routerData
=
this
.
$router
.
resolve
({
path
:
'/data/detail'
,
query
:
query
})
window
.
open
(
routerData
.
href
,
'_blank'
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.mainContent
{
padding
:
20px
;
.bt
{
text-align
:
right
;
margin-bottom
:
16px
;
}
}
</
style
>
src/router/index.js
View file @
6b4f34da
...
...
@@ -59,6 +59,12 @@ router.beforeEach((to, from, next) => {
})
return
}
if
(
whiteList
.
indexOf
(
to
.
path
)
>=
0
)
{
console
.
log
(
'该页面无需登录即可访问'
)
next
()
return
}
// console.log('token', token)
// console.log('_token', _token)
// console.log('userInfo', userInfo)
...
...
src/router/staticRoute.js
View file @
6b4f34da
...
...
@@ -38,6 +38,14 @@ const staticRoute = [
{
path
:
'/business/hospital/detail'
,
component
:
()
=>
import
(
'../page/hospital/detail'
)
},
{
path
:
'/data'
,
component
:
()
=>
import
(
'../page/data'
)
},
{
path
:
'/data/detail'
,
component
:
()
=>
import
(
'../page/data/detail'
)
}
]
const
routeHandle
=
(
map
)
=>
{
...
...
src/router/whiteList.js
View file @
6b4f34da
...
...
@@ -7,7 +7,9 @@ const whiteList = [
'/error/500'
,
'/bigScreen'
,
'/bigscreen'
,
'/business/hospital/detail'
'/business/hospital/detail'
,
'/data'
,
'/data/detail'
// '/register'
]
...
...
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