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
a13cd662
Commit
a13cd662
authored
Jun 09, 2023
by
王飞龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备管理
parent
537d4991
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1619 additions
and
28 deletions
+1619
-28
device.js
src/api/business/device.js
+51
-5
index.js
src/router/index.js
+7
-0
equipment-detail.vue
...ment-management/equipment-management/equipment-detail.vue
+842
-0
equipment-management.vue
...-management/equipment-management/equipment-management.vue
+698
-3
use-details.vue
...views/equipment-management/use-management/use-details.vue
+1
-2
use-management.vue
...ws/equipment-management/use-management/use-management.vue
+20
-18
No files found.
src/api/business/device.js
View file @
a13cd662
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询设备列表
// 查询设备列表
export
function
listDevice
(
query
)
{
export
function
listDevice
(
query
)
{
return
request
({
return
request
({
url
:
'/
business
/device/list'
,
url
:
'/
system
/device/list'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
...
@@ -12,7 +12,7 @@ export function listDevice(query) {
...
@@ -12,7 +12,7 @@ export function listDevice(query) {
// 查询设备详细
// 查询设备详细
export
function
getDevice
(
id
)
{
export
function
getDevice
(
id
)
{
return
request
({
return
request
({
url
:
'/
business
/device/'
+
id
,
url
:
'/
system
/device/'
+
id
,
method
:
'get'
method
:
'get'
})
})
}
}
...
@@ -20,7 +20,7 @@ export function getDevice(id) {
...
@@ -20,7 +20,7 @@ export function getDevice(id) {
// 新增设备
// 新增设备
export
function
addDevice
(
data
)
{
export
function
addDevice
(
data
)
{
return
request
({
return
request
({
url
:
'/
business
/device'
,
url
:
'/
system
/device'
,
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
...
@@ -29,7 +29,7 @@ export function addDevice(data) {
...
@@ -29,7 +29,7 @@ export function addDevice(data) {
// 修改设备
// 修改设备
export
function
updateDevice
(
data
)
{
export
function
updateDevice
(
data
)
{
return
request
({
return
request
({
url
:
'/
business
/device'
,
url
:
'/
system
/device'
,
method
:
'put'
,
method
:
'put'
,
data
:
data
data
:
data
})
})
...
@@ -38,8 +38,54 @@ export function updateDevice(data) {
...
@@ -38,8 +38,54 @@ export function updateDevice(data) {
// 删除设备
// 删除设备
export
function
delDevice
(
data
)
{
export
function
delDevice
(
data
)
{
return
request
({
return
request
({
url
:
'/
business
/device/del'
,
url
:
'/
system
/device/del'
,
method
:
'Put'
,
method
:
'Put'
,
data
:
data
data
:
data
})
})
}
}
// import request from '@/utils/request'
//
// // 查询设备列表
// export function listDevice(query) {
// return request({
// url: '/business/device/list',
// method: 'get',
// params: query
// })
// }
//
// // 查询设备详细
// export function getDevice(id) {
// return request({
// url: '/business/device/' + id,
// method: 'get'
// })
// }
//
// // 新增设备
// export function addDevice(data) {
// return request({
// url: '/business/device',
// method: 'post',
// data: data
// })
// }
//
// // 修改设备
// export function updateDevice(data) {
// return request({
// url: '/business/device',
// method: 'put',
// data: data
// })
// }
//
// // 删除设备
// export function delDevice(data) {
// return request({
// url: '/business/device/del',
// method: 'Put',
// data: data
// })
// }
src/router/index.js
View file @
a13cd662
...
@@ -118,6 +118,13 @@ export const constantRoutes = [
...
@@ -118,6 +118,13 @@ export const constantRoutes = [
name
:
'EquipmentManagement'
,
name
:
'EquipmentManagement'
,
meta
:
{
title
:
'设备管理'
,
icon
:
'date'
}
meta
:
{
title
:
'设备管理'
,
icon
:
'date'
}
},
},
{
path
:
'equipment-detail'
,
props
:
true
,
component
:
()
=>
import
(
'@/views/equipment-management/equipment-management/equipment-detail'
),
name
:
'EquipmentDetail'
,
meta
:
{
title
:
'设备详情'
}
},
{
{
path
:
'use-management'
,
path
:
'use-management'
,
props
:
true
,
props
:
true
,
...
...
src/views/equipment-management/equipment-management/equipment-detail.vue
0 → 100644
View file @
a13cd662
This diff is collapsed.
Click to expand it.
src/views/equipment-management/equipment-management/equipment-management.vue
View file @
a13cd662
This diff is collapsed.
Click to expand it.
src/views/equipment-management/use-management/use-details.vue
View file @
a13cd662
...
@@ -84,8 +84,7 @@
...
@@ -84,8 +84,7 @@
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
>
<el-form-item
/>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"下午开始时间"
>
<el-form-item
label=
"下午开始时间"
>
...
...
src/views/equipment-management/use-management/use-management.vue
View file @
a13cd662
...
@@ -82,37 +82,39 @@
...
@@ -82,37 +82,39 @@
</el-row>
</el-row>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"userList"
border
:row-key=
"getRowKeys"
@
selection-change=
"handleSelectionChange"
@
select-all=
"selectAll($event, false)"
>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"userList"
border
:row-key=
"getRowKeys"
@
selection-change=
"handleSelectionChange"
@
select-all=
"selectAll($event, false)"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
:reserve-selection=
"true"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
:reserve-selection=
"true"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
<el-table-column
label=
"设备ID"
align=
"left"
prop=
"deviceId"
/>
<el-table-column
label=
"设备ID"
align=
"left"
prop=
"deviceId"
/>
<el-table-column
label=
"检查项目"
align=
"left"
prop=
"checkItemsName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"检查项目"
align=
"left"
prop=
"checkItemsName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"宠物昵称"
align=
"left"
prop=
"petNickname"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"宠物昵称"
align=
"left"
prop=
"petNickname"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"宠物保险"
align=
"left"
prop=
"insure"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"宠物保险"
align=
"left"
prop=
"insure"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.pet_insure"
:value=
"scope.row.insure"
/>
<dict-tag
:options=
"dict.type.pet_insure"
:value=
"scope.row.insure"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"宠主姓名"
align=
"left"
prop=
"ownerNikename"
/>
<el-table-column
label=
"宠主姓名"
align=
"left"
prop=
"ownerNikename"
/>
<el-table-column
label=
"宠主手机号"
align=
"left"
prop=
"phoneNumber"
/>
<el-table-column
label=
"宠主手机号"
align=
"left"
prop=
"phoneNumber"
/>
<el-table-column
label=
"检查日期"
align=
"left"
prop=
"checkStartTime"
>
<el-table-column
label=
"检查日期"
align=
"left"
prop=
"checkStartTime"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
checkStartTime
,
'{y
}
/{m
}
/{d
}
'
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
checkStartTime
,
'{y
}
/{m
}
/{d
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"检查时间"
align
=
"left"
prop
=
"deviceName"
>
<
el
-
table
-
column
label
=
"检查时间"
align
=
"left"
prop
=
"deviceName"
/>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"缴费金额"
align
=
"left"
prop
=
"payAmount"
/>
<
el
-
table
-
column
label
=
"缴费金额"
align
=
"left"
prop
=
"payAmount"
/>
<
el
-
table
-
column
label
=
"设备当前状态"
align
=
"left"
prop
=
"status"
>
<
el
-
table
-
column
label
=
"设备当前状态"
align
=
"left"
prop
=
"status"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
<
span
v
-
if
=
"scope.row.status === '1'"
v
-
if
=
"scope.row.status === '1'"
style
=
"color: #5FB54B;"
>
{{
showStatus
(
scope
.
row
.
status
)
||
'-'
}}
<
/span
>
style
=
"color: #5FB54B;"
<
span
>
{{
showStatus
(
scope
.
row
.
status
)
||
'-'
}}
<
/span
>
v
-
else
-
if
=
"scope.row.status === '2'"
<
span
style
=
"color: #FF9D4E;"
>
{{
showStatus
(
scope
.
row
.
status
)
||
'-'
}}
<
/span
>
v
-
else
-
if
=
"scope.row.status === '2'"
<
span
style
=
"color: #FF9D4E;"
v
-
else
>
{{
showStatus
(
scope
.
row
.
status
)
||
'-'
}}
<
/span
>
style
=
"color: #DB4747;"
>
{{
showStatus
(
scope
.
row
.
status
)
||
'-'
}}
<
/span
>
<
span
v
-
else
style
=
"color: #DB4747;"
>
{{
showStatus
(
scope
.
row
.
status
)
||
'-'
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
align
=
"left"
class
-
name
=
"small-padding fixed-width"
>
<
el
-
table
-
column
label
=
"操作"
align
=
"left"
class
-
name
=
"small-padding fixed-width"
>
...
...
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