Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
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
刘怀志
pet-business-web
Commits
16eb6618
Commit
16eb6618
authored
Aug 14, 2023
by
王飞龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备地区修改
parent
e40a02ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
20 deletions
+34
-20
index.js
src/router/index.js
+1
-1
equipment-add.vue
...uipment-management/equipment-management/equipment-add.vue
+8
-0
equipment-detail.vue
...ment-management/equipment-management/equipment-detail.vue
+16
-10
equipment-management.vue
...-management/equipment-management/equipment-management.vue
+9
-9
No files found.
src/router/index.js
View file @
16eb6618
...
...
@@ -120,7 +120,7 @@ export const constantRoutes = [
},
{
path
:
'equipment-detail
/:id/:identify
'
,
path
:
'equipment-detail'
,
props
:
true
,
component
:
()
=>
import
(
'@/views/equipment-management/equipment-management/equipment-detail'
),
name
:
'EquipmentDetail'
,
...
...
src/views/equipment-management/equipment-management/equipment-add.vue
View file @
16eb6618
...
...
@@ -316,6 +316,7 @@ import { getInfo } from '@/api/login'
import
{
isEmpty
}
from
'@/utils/ruoyi'
import
{
deepClone
}
from
'@/utils'
import
{
listItemByType
}
from
'@/api/business/item'
import
{
signHospitalMessage
}
from
'@/api/business/hospital'
export
default
{
name
:
'EquipmentAdd'
,
...
...
@@ -513,6 +514,7 @@ export default {
created
()
{
this
.
getUserInfo
()
this
.
getAreaData
()
this
.
getHospital
()
},
methods
:
{
// 获取登陆人信息
...
...
@@ -747,6 +749,12 @@ export default {
console
.
log
(
'xdddd'
,
this
.
checkItemOptions
)
})
},
getHospital
()
{
signHospitalMessage
().
then
(
res
=>
{
console
.
log
(
'查到医院信息'
,
res
)
})
},
/** 提交按钮 */
submitForm
()
{
const
form
=
deepClone
(
this
.
form
)
...
...
src/views/equipment-management/equipment-management/equipment-detail.vue
View file @
16eb6618
...
...
@@ -628,16 +628,6 @@ import { mapGetters } from 'vuex'
export
default
{
name
:
'EquipmentDetail'
,
dicts
:
[
'device_status'
,
'device_type'
,
'exam_type'
,
'check_type'
,
'service_area'
],
props
:
{
id
:
{
type
:
Number
,
required
:
true
},
identify
:
{
type
:
String
,
required
:
true
}
},
data
()
{
return
{
// 日期格式
...
...
@@ -836,7 +826,23 @@ export default {
hpshow
:
''
}
},
mounted
()
{
this
.
$route
.
meta
.
title
=
'2222'
},
created
()
{
this
.
$route
.
meta
.
title
=
'2222'
console
.
log
(
'當前router'
,
this
.
$route
)
this
.
id
=
this
.
$route
.
query
.
id
console
.
log
(
'this.$route.query.id'
,
this
.
id
)
this
.
identify
=
this
.
$route
.
query
.
identify
console
.
log
(
' this.$route.query.identify'
,
this
.
identify
)
if
(
this
.
identify
===
'1'
)
{
// this.$route.meta.title = ''
console
.
log
(
'1'
)
}
else
if
(
this
.
identify
===
'2'
)
{
// this.$route.meta.title = ''
console
.
log
(
'2'
)
}
this
.
getAreaData
()
this
.
handleUpdate
()
this
.
getUserInfo
()
...
...
src/views/equipment-management/equipment-management/equipment-management.vue
View file @
16eb6618
...
...
@@ -112,13 +112,13 @@
@
click=
"handleExport"
>
批量导出
</el-button>
<el-button
v-if=
"userType==='00'"
class=
"fourWordsBtn"
icon=
"el-icon-download"
size=
"mini"
@
click=
"handlecheck"
>
检查项目
</el-button
>
<!--
<el-button-->
<!-- v-if="userType==='00'"-->
<!-- class="fourWordsBtn"-->
<!-- icon="el-icon-download"-->
<!-- size="mini"-->
<!-- @click="handlecheck"-->
<!-- >检查项目
</el-button>
--
>
</el-col>
<el-col
:span=
"12"
style=
"padding-bottom: 20px;text-align: end;"
>
<el-button
class=
"queryBtn"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
查询
</el-button>
...
...
@@ -585,7 +585,7 @@ export default {
editDevice
(
id
)
{
this
.
$router
.
push
({
name
:
'EquipmentDetail'
,
params
:
{
query
:
{
identify
:
'1'
,
id
:
id
}
...
...
@@ -595,7 +595,7 @@ export default {
detailsDevice
(
id
)
{
this
.
$router
.
push
({
name
:
'EquipmentDetail'
,
params
:
{
query
:
{
identify
:
'2'
,
id
:
id
}
...
...
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