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
9853422c
Commit
9853422c
authored
Jun 28, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
68f373bb
251873ea
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
93 additions
and
44 deletions
+93
-44
banner_add.vue
src/views/banner_management/banner_add.vue
+12
-8
banner_detail.vue
src/views/banner_management/banner_detail.vue
+1
-1
banner_edit.vue
src/views/banner_management/banner_edit.vue
+14
-10
banner_management.vue
src/views/banner_management/banner_management.vue
+16
-7
use-details.vue
...views/equipment-management/use-management/use-details.vue
+38
-16
use-management.vue
...ws/equipment-management/use-management/use-management.vue
+12
-2
No files found.
src/views/banner_management/banner_add.vue
View file @
9853422c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</div>
</div>
<div
class=
"bannerAddMain"
>
<div
class=
"bannerAddMain"
>
<div
style=
"display: flex;margin: 20px;"
>
<div
style=
"display: flex;margin: 20px;"
>
<div
style=
"height: 30px;border-left:
10
px solid #5FB54B;"
/>
<div
style=
"height: 30px;border-left:
5
px solid #5FB54B;"
/>
<div
style=
"padding-top: 3px;padding-left: 10px;color: #666666; font-weight: 700; font-size: 16px;"
>
轮播信息
</div>
<div
style=
"padding-top: 3px;padding-left: 10px;color: #666666; font-weight: 700; font-size: 16px;"
>
轮播信息
</div>
</div>
</div>
<div>
<div>
...
@@ -32,13 +32,17 @@
...
@@ -32,13 +32,17 @@
<span
style=
"height: 2.5rem;line-height: 2.5rem"
>
{{
form
.
createTime
}}
</span>
<span
style=
"height: 2.5rem;line-height: 2.5rem"
>
{{
form
.
createTime
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态:"
prop=
"status"
>
<el-form-item
label=
"状态:"
prop=
"status"
>
<el-switch
<span
style=
"height: 2.5rem;line-height: 2.5rem"
>
v-model=
"form.status"
<el-switch
active-color=
"#13ce66"
v-model=
"form.status"
inactive-color=
"#dcdfe6"
active-color=
"#13ce66"
active-value=
"1"
inactive-color=
"#f5aa6c"
inactive-value=
"2"
active-value=
"1"
/>
inactive-value=
"2"
/>
</span>
<span
v-if=
"form.status === '1'"
style=
"height: 2.5rem;line-height: 2.5rem;color: #67C23A;margin-left: 5px;"
>
已发布
</span>
<span
v-else
style=
"height: 2.5rem;line-height: 2.5rem;color: #f5aa6c;margin-left: 5px;"
>
未发布
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注:"
prop=
"notes"
>
<el-form-item
label=
"备注:"
prop=
"notes"
>
<el-input
v-model
.
trim=
"form.notes"
class=
"form-input"
style=
"width: 420px"
maxlength=
"60"
show-word-limit
clearable
/>
<el-input
v-model
.
trim=
"form.notes"
class=
"form-input"
style=
"width: 420px"
maxlength=
"60"
show-word-limit
clearable
/>
...
...
src/views/banner_management/banner_detail.vue
View file @
9853422c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</div>
</div>
<div
class=
"bannerAddMain"
>
<div
class=
"bannerAddMain"
>
<div
style=
"display: flex;margin: 20px;"
>
<div
style=
"display: flex;margin: 20px;"
>
<div
style=
"height: 30px;border-left:
10
px solid #5FB54B;"
/>
<div
style=
"height: 30px;border-left:
5
px solid #5FB54B;"
/>
<div
style=
"padding-top: 3px;padding-left: 10px;color: #666666; font-weight: 700; font-size: 16px;"
>
轮播信息
</div>
<div
style=
"padding-top: 3px;padding-left: 10px;color: #666666; font-weight: 700; font-size: 16px;"
>
轮播信息
</div>
</div>
</div>
<div>
<div>
...
...
src/views/banner_management/banner_edit.vue
View file @
9853422c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</div>
</div>
<div
class=
"bannerAddMain"
>
<div
class=
"bannerAddMain"
>
<div
style=
"display: flex;margin: 20px;"
>
<div
style=
"display: flex;margin: 20px;"
>
<div
style=
"height: 30px;border-left:
10
px solid #5FB54B;"
/>
<div
style=
"height: 30px;border-left:
5
px solid #5FB54B;"
/>
<div
style=
"padding-top: 3px;padding-left: 10px;color: #666666; font-weight: 700; font-size: 16px;"
>
轮播信息
</div>
<div
style=
"padding-top: 3px;padding-left: 10px;color: #666666; font-weight: 700; font-size: 16px;"
>
轮播信息
</div>
</div>
</div>
<div>
<div>
...
@@ -33,14 +33,18 @@
...
@@ -33,14 +33,18 @@
<span
style=
"height: 2.5rem;line-height: 2.5rem"
>
{{
form
.
createTime
}}
</span>
<span
style=
"height: 2.5rem;line-height: 2.5rem"
>
{{
form
.
createTime
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态:"
prop=
"status"
>
<el-form-item
label=
"状态:"
prop=
"status"
>
<el-switch
<span
style=
"height: 2.5rem;line-height: 2.5rem"
>
v-model=
"form.status"
<el-switch
active-color=
"#13ce66"
v-model=
"form.status"
inactive-color=
"#dcdfe6"
active-color=
"#13ce66"
active-value=
"1"
inactive-color=
"#f5aa6c"
inactive-value=
"2"
active-value=
"1"
:disabled=
"form.id === 1"
inactive-value=
"2"
/>
:disabled=
"form.id === 1"
/>
<span
v-if=
"form.status === '1'"
style=
"color: #67C23A;margin-left: 5px;"
>
已发布
</span>
<span
v-else
style=
"color: #f5aa6c;margin-left: 5px;"
>
未发布
</span>
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注:"
prop=
"notes"
>
<el-form-item
label=
"备注:"
prop=
"notes"
>
<el-input
:disabled=
"form.id === 1"
v-model
.
trim=
"form.notes"
class=
"form-input"
style=
"width: 420px"
maxlength=
"60"
show-word-limit
clearable
/>
<el-input
:disabled=
"form.id === 1"
v-model
.
trim=
"form.notes"
class=
"form-input"
style=
"width: 420px"
maxlength=
"60"
show-word-limit
clearable
/>
...
@@ -103,7 +107,7 @@ export default {
...
@@ -103,7 +107,7 @@ export default {
{
required
:
true
,
message
:
'请输入跳转地址'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入跳转地址'
,
trigger
:
'blur'
}
],
],
sort
:
[
sort
:
[
{
required
:
tru
e
,
message
:
'请输入权重'
,
trigger
:
'blur'
},
{
required
:
fals
e
,
message
:
'请输入权重'
,
trigger
:
'blur'
},
{
validator
:
checkSort
,
trigger
:
'change'
}
{
validator
:
checkSort
,
trigger
:
'change'
}
],
],
status
:
[
status
:
[
...
...
src/views/banner_management/banner_management.vue
View file @
9853422c
...
@@ -106,6 +106,7 @@
...
@@ -106,6 +106,7 @@
<div
style=
"display: flex;"
>
<div
style=
"display: flex;"
>
<div
style=
"padding-right: 20px;"
>
<div
style=
"padding-right: 20px;"
>
<el-button
<el-button
v-hasPermi=
"['business:banner:query']"
icon=
"el-icon-document"
icon=
"el-icon-document"
plain
plain
size=
"mini"
size=
"mini"
...
@@ -117,7 +118,7 @@
...
@@ -117,7 +118,7 @@
</div>
</div>
<div
style=
"padding-right: 20px;"
>
<div
style=
"padding-right: 20px;"
>
<el-button
<el-button
v-hasPermi=
"['business:
article
:edit']"
v-hasPermi=
"['business:
banner
:edit']"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
plain
plain
size=
"mini"
size=
"mini"
...
@@ -130,7 +131,7 @@
...
@@ -130,7 +131,7 @@
<div
v-if=
"scope.row.status==='2'"
>
<div
v-if=
"scope.row.status==='2'"
>
<el-button
<el-button
key=
"1"
key=
"1"
v-hasPermi=
"['business:
article
:remove']"
v-hasPermi=
"['business:
banner
:remove']"
icon=
"el-icon-delete"
icon=
"el-icon-delete"
plain
plain
size=
"mini"
size=
"mini"
...
@@ -143,6 +144,7 @@
...
@@ -143,6 +144,7 @@
<div
v-else-if=
"scope.row.status==='1'"
>
<div
v-else-if=
"scope.row.status==='1'"
>
<el-button
<el-button
key=
"2"
key=
"2"
v-hasPermi=
"['business:banner:edit']"
icon=
"el-icon-video-pause"
icon=
"el-icon-video-pause"
plain
plain
size=
"mini"
size=
"mini"
...
@@ -238,6 +240,7 @@ export default {
...
@@ -238,6 +240,7 @@ export default {
/** 查询轮播图管理列表 */
/** 查询轮播图管理列表 */
getBannerList
()
{
getBannerList
()
{
this
.
loading
=
true
this
.
loading
=
true
console
.
log
(
'查询条件'
,
this
.
queryParams
)
listBanner
(
this
.
queryParams
).
then
(
response
=>
{
listBanner
(
this
.
queryParams
).
then
(
response
=>
{
this
.
bannerList
=
response
.
rows
this
.
bannerList
=
response
.
rows
this
.
total
=
response
.
total
this
.
total
=
response
.
total
...
@@ -336,11 +339,17 @@ export default {
...
@@ -336,11 +339,17 @@ export default {
id
:
row
.
id
,
id
:
row
.
id
,
status
:
'2'
status
:
'2'
}
}
updateBanner
(
update
).
then
(
res
=>
{
this
.
$modal
.
confirm
(
'是否确认下架该轮播图信息?'
).
then
(
function
()
{
if
(
res
.
code
===
200
)
{
updateBanner
(
update
).
then
(
res
=>
{
this
.
getBannerList
()
if
(
res
.
code
===
200
)
{
}
this
.
getBannerList
()
})
}
})
return
null
}).
then
(()
=>
{
this
.
getBannerList
()
this
.
$modal
.
msgSuccess
(
'下架成功'
)
}).
catch
(()
=>
{})
}
}
}
}
}
}
...
...
src/views/equipment-management/use-management/use-details.vue
View file @
9853422c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
</div>
</div>
<div
style=
"display: flex; padding-left: 20px;padding-bottom: 10px;"
>
<div
style=
"display: flex; padding-left: 20px;padding-bottom: 10px;"
>
<div
class=
"tip1"
/>
<div
class=
"tip1"
/>
<div
style=
"padding-top: 3px;padding-left: 1
8px;color: #666666; font-weight: 500; font-size: 16px;"
>
设备信息
</div>
<div
style=
"padding-top: 3px;padding-left: 1
5px;font-size: 16px;font-weight: bold;color: #333333;"
>
当前
设备信息
</div>
</div>
</div>
<div
style=
"width: 90%"
>
<div
style=
"width: 90%"
>
<el-form
:model=
"form"
label-width=
"150px"
>
<el-form
:model=
"form"
label-width=
"150px"
>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<el-input
v-model=
"form.ruleId"
:disabled=
"true"
placeholder=
"暂无数据"
/>
<el-input
v-model=
"form.ruleId"
:disabled=
"true"
placeholder=
"暂无数据"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
v-show=
"userType==='3' || userType==='2'"
:span=
"8"
>
<el-form-item
label=
"医院自有设备"
prop=
"isPrivate"
>
<el-form-item
label=
"医院自有设备"
prop=
"isPrivate"
>
<el-select
v-model=
"form.isPrivate"
:disabled=
"true"
placeholder=
"暂无数据"
>
<el-select
v-model=
"form.isPrivate"
:disabled=
"true"
placeholder=
"暂无数据"
>
<el-option
<el-option
...
@@ -33,6 +33,11 @@
...
@@ -33,6 +33,11 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
v-show=
"userType==='00'"
:span=
"8"
>
<el-form-item
label=
"平台自有设备"
prop=
"isPrivate"
>
<el-input
v-model=
"isPrivate"
:disabled=
"true"
/>
</el-form-item>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
...
@@ -63,7 +68,7 @@
...
@@ -63,7 +68,7 @@
<el-form-item
label=
"预约方式"
prop=
"reservationMethod"
>
<el-form-item
label=
"预约方式"
prop=
"reservationMethod"
>
<el-select
v-model=
"form.reservationMethod"
:disabled=
"true"
placeholder=
"暂无数据"
>
<el-select
v-model=
"form.reservationMethod"
:disabled=
"true"
placeholder=
"暂无数据"
>
<el-option
<el-option
v-for=
"dict in dict.type.
device_type
"
v-for=
"dict in dict.type.
reservation_method
"
:key=
"dict.value"
:key=
"dict.value"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
...
@@ -140,8 +145,8 @@
...
@@ -140,8 +145,8 @@
<el-form-item
label=
"支持检查类型"
prop=
"checkType"
>
<el-form-item
label=
"支持检查类型"
prop=
"checkType"
>
<el-select
v-model=
"form.checkType"
placeholder=
"暂无数据"
multiple
clearable
:disabled=
"true"
>
<el-select
v-model=
"form.checkType"
placeholder=
"暂无数据"
multiple
clearable
:disabled=
"true"
>
<el-option
<el-option
v-for=
"
(item,index)
in checkList"
v-for=
"
item
in checkList"
:key=
"i
ndex
"
:key=
"i
tem.id
"
:label=
"item.dictName"
:label=
"item.dictName"
:value=
"item.id"
:value=
"item.id"
/>
/>
...
@@ -151,7 +156,7 @@
...
@@ -151,7 +156,7 @@
</el-row>
</el-row>
<div
style=
" display: flex;position: relative;left: 20px;padding-bottom: 20px;"
>
<div
style=
" display: flex;position: relative;left: 20px;padding-bottom: 20px;"
>
<div
class=
"tip1"
/>
<div
class=
"tip1"
/>
<div
style=
"padding-top: 3px;padding-left: 1
8px;color: #666666; font-weight: 500; font-size: 16px
;"
>
宠物信息
</div>
<div
style=
"padding-top: 3px;padding-left: 1
5px;font-size: 16px;font-weight: bold;color: #333333
;"
>
宠物信息
</div>
</div>
</div>
<el-row>
<el-row>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
...
@@ -241,7 +246,7 @@
...
@@ -241,7 +246,7 @@
</el-row>
</el-row>
<div
style=
"display: flex;position: relative;left: 20px;padding-bottom: 20px;"
>
<div
style=
"display: flex;position: relative;left: 20px;padding-bottom: 20px;"
>
<div
class=
"tip1"
/>
<div
class=
"tip1"
/>
<div
style=
"padding-top: 3px;padding-left: 1
8px;color: #666666; font-weight: 500; font-size: 16px
;"
>
宠主信息
</div>
<div
style=
"padding-top: 3px;padding-left: 1
5px;font-size: 16px;font-weight: bold;color: #333333
;"
>
宠主信息
</div>
</div>
</div>
<el-row>
<el-row>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
...
@@ -263,7 +268,7 @@
...
@@ -263,7 +268,7 @@
<div
style=
"display: flex;position: relative;left: 20px;padding-bottom: 20px;"
>
<div
style=
"display: flex;position: relative;left: 20px;padding-bottom: 20px;"
>
<div
class=
"tip1"
/>
<div
class=
"tip1"
/>
<div
style=
"padding-top: 3px;padding-left: 1
8px;color: #666666; font-weight: 500; font-size: 16px
;"
>
设备使用信息
</div>
<div
style=
"padding-top: 3px;padding-left: 1
5px;font-size: 16px;font-weight: bold;color: #333333
;"
>
设备使用信息
</div>
</div>
</div>
<el-row>
<el-row>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
...
@@ -303,8 +308,8 @@
...
@@ -303,8 +308,8 @@
</el-row>
</el-row>
</el-form>
</el-form>
</div>
</div>
<div
style=
"padding-left: 150px;width: 90%;padding-bottom: 20px;"
>
<div
style=
"padding-left: 150px;width: 90%;padding-bottom: 20px;
;text-align: center;
"
>
<el-button
style=
"width: 98px;height: 32px;"
icon=
"el-icon-back"
class=
"resetBtn"
@
click=
"cancel"
>
返 回
</el-button>
<el-button
icon=
"el-icon-back"
class=
"resetBtn"
@
click=
"cancel"
>
返 回
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -313,12 +318,15 @@
...
@@ -313,12 +318,15 @@
<
script
>
<
script
>
import
{
selectCheckItem
,
useManagementDetail
}
from
'@/api/business/use'
import
{
selectCheckItem
,
useManagementDetail
}
from
'@/api/business/use'
import
{
CodeToText
}
from
'element-china-area-data'
import
{
CodeToText
}
from
'element-china-area-data'
import
{
getInfo
}
from
'@/api/login'
export
default
{
export
default
{
name
:
'UseDetails'
,
name
:
'UseDetails'
,
dicts
:
[
'payment_status'
,
'exam_type'
,
'device_status'
,
'device_type'
,
'pet_sex'
,
'sterilization_status'
,
'vaccine_situation'
,
'pet_insure'
],
dicts
:
[
'payment_status'
,
'exam_type'
,
'device_status'
,
'device_type'
,
'pet_sex'
,
'sterilization_status'
,
'vaccine_situation'
,
'pet_insure'
,
'reservation_method'
],
data
()
{
data
()
{
return
{
return
{
isPrivate
:
'是'
,
userType
:
''
,
useId
:
''
,
useId
:
''
,
createTime
:
''
,
createTime
:
''
,
// 检查时间
// 检查时间
...
@@ -352,8 +360,16 @@ export default {
...
@@ -352,8 +360,16 @@ export default {
this
.
useId
=
localStorage
.
getItem
(
'useId'
)
this
.
useId
=
localStorage
.
getItem
(
'useId'
)
this
.
getUseDetail
()
this
.
getUseDetail
()
this
.
getCheckList
()
this
.
getCheckList
()
this
.
getUserLogin
()
},
},
methods
:
{
methods
:
{
// 获取登陆人信息
getUserLogin
()
{
getInfo
().
then
(
res
=>
{
this
.
userType
=
res
.
user
.
userType
console
.
log
(
'登陆人'
,
res
)
})
},
// 检查项目下拉框
// 检查项目下拉框
getCheckList
()
{
getCheckList
()
{
selectCheckItem
().
then
(
res
=>
{
selectCheckItem
().
then
(
res
=>
{
...
@@ -399,11 +415,17 @@ export default {
...
@@ -399,11 +415,17 @@ export default {
const
newArr
=
arr
.
map
(
num
=>
Number
(
num
))
const
newArr
=
arr
.
map
(
num
=>
Number
(
num
))
this
.
form
.
checkType
=
newArr
this
.
form
.
checkType
=
newArr
}
}
this
.
createTime
=
(
this
.
form
.
createTime
.
slice
(
0
,
this
.
form
.
createTime
.
length
-
8
)).
replace
(
/-/g
,
'/'
)
if
(
this
.
form
.
createTime
!==
null
&&
this
.
form
.
createTime
!==
''
)
{
this
.
checkDate
=
(
this
.
form
.
checkStartTime
.
slice
(
0
,
this
.
form
.
checkStartTime
.
length
-
8
)).
replace
(
/-/g
,
'/'
)
this
.
createTime
=
(
this
.
form
.
createTime
.
slice
(
0
,
this
.
form
.
createTime
.
length
-
8
)).
replace
(
/-/g
,
'/'
)
const
hour
=
this
.
form
.
checkStartTime
.
substring
(
this
.
form
.
checkStartTime
.
indexOf
(
' '
)
+
1
,
this
.
form
.
checkStartTime
.
indexOf
(
':'
))
}
const
minute
=
this
.
form
.
checkStartTime
.
substring
(
this
.
form
.
checkStartTime
.
indexOf
(
':'
)
+
1
,
this
.
form
.
checkStartTime
.
lastIndexOf
(
':'
))
if
(
this
.
form
.
checkStartTime
!==
null
&&
this
.
form
.
checkStartTime
!==
''
)
{
this
.
checkTime
=
hour
+
':'
+
minute
this
.
checkDate
=
(
this
.
form
.
checkStartTime
.
slice
(
0
,
this
.
form
.
checkStartTime
.
length
-
8
)).
replace
(
/-/g
,
'/'
)
const
hour
=
this
.
form
.
checkStartTime
.
substring
(
this
.
form
.
checkStartTime
.
indexOf
(
' '
)
+
1
,
this
.
form
.
checkStartTime
.
indexOf
(
':'
))
const
minute
=
this
.
form
.
checkStartTime
.
substring
(
this
.
form
.
checkStartTime
.
indexOf
(
':'
)
+
1
,
this
.
form
.
checkStartTime
.
lastIndexOf
(
':'
))
this
.
checkTime
=
hour
+
':'
+
minute
}
const
payAmount
=
this
.
form
.
payAmount
.
toFixed
(
2
)
this
.
form
.
payAmount
=
payAmount
.
toString
()
})
})
}
}
}
}
...
...
src/views/equipment-management/use-management/use-management.vue
View file @
9853422c
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"缴费金额"
align
=
"left"
prop
=
"payAmount"
>
<
el
-
table
-
column
label
=
"缴费金额"
align
=
"left"
prop
=
"payAmount"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
scope
.
row
.
payAmount
||
'-'
}}
<
/span
>
<
span
>
{{
formatPrice
(
scope
.
row
.
payAmount
)
||
'-'
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"设备当前状态"
align
=
"left"
prop
=
"status"
>
<
el
-
table
-
column
label
=
"设备当前状态"
align
=
"left"
prop
=
"status"
>
...
@@ -275,6 +275,10 @@ export default {
...
@@ -275,6 +275,10 @@ export default {
this
.
getCheckList
()
this
.
getCheckList
()
}
,
}
,
methods
:
{
methods
:
{
// 表格显示病房单价保留两位小数
formatPrice
(
cellValue
)
{
return
cellValue
.
toFixed
(
2
)
+
'元'
}
,
// 表单选择框对齐
// 表单选择框对齐
cellClass
(
row
)
{
cellClass
(
row
)
{
if
(
row
.
columnIndex
===
0
)
{
return
'disabledCheck'
}
if
(
row
.
columnIndex
===
0
)
{
return
'disabledCheck'
}
...
@@ -332,7 +336,7 @@ export default {
...
@@ -332,7 +336,7 @@ export default {
this
.
$refs
.
table
.
clearSelection
()
this
.
$refs
.
table
.
clearSelection
()
}
)
}
)
}
else
{
}
else
{
this
.
$modal
.
msg
Error
(
'请选择至少一条数据导出'
)
this
.
$modal
.
msg
Warning
(
'请选择至少一条数据导出'
)
return
return
}
}
}
,
}
,
...
@@ -344,6 +348,7 @@ export default {
...
@@ -344,6 +348,7 @@ export default {
}
,
}
,
// 获取列表数据
// 获取列表数据
getUseList
()
{
getUseList
()
{
this
.
loading
=
true
// if (this.daterangeCreateTime !== '')
{
// if (this.daterangeCreateTime !== '')
{
// this.queryParams.beginCheckTime = this.daterangeCreateTime + ' 00:00:00'
// this.queryParams.beginCheckTime = this.daterangeCreateTime + ' 00:00:00'
// this.queryParams.endCheckTime = this.daterangeCreateTime + ' 23:59:59'
// this.queryParams.endCheckTime = this.daterangeCreateTime + ' 23:59:59'
...
@@ -351,6 +356,7 @@ export default {
...
@@ -351,6 +356,7 @@ export default {
listUseManagement
(
this
.
queryParams
).
then
(
res
=>
{
listUseManagement
(
this
.
queryParams
).
then
(
res
=>
{
this
.
total
=
res
.
total
this
.
total
=
res
.
total
this
.
userList
=
res
.
rows
this
.
userList
=
res
.
rows
this
.
loading
=
false
console
.
log
(
'列表'
,
res
)
console
.
log
(
'列表'
,
res
)
}
)
}
)
}
,
}
,
...
@@ -423,6 +429,10 @@ export default {
...
@@ -423,6 +429,10 @@ export default {
<
/script
>
<
/script
>
<
style
scoped
>
<
style
scoped
>
/*表格内容选中后的样式*/
::
v
-
deep
.
el
-
table
--
enable
-
row
-
hover
.
el
-
table__body
tr
:
hover
>
td
.
el
-
table__cell
{
background
-
color
:
#
F6FCF5
!
important
;
}
::
v
-
deep
.
app
-
container
{
::
v
-
deep
.
app
-
container
{
background
-
color
:
#
ffffff
;
background
-
color
:
#
ffffff
;
}
}
...
...
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