Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
Overview
Overview
Details
Activity
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
pseer
gxpt_web
Commits
6e6b3411
Commit
6e6b3411
authored
Feb 28, 2024
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理系统房间添加上下架功能
parent
c4613614
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
index.vue
src/views/system/room/index.vue
+12
-7
No files found.
src/views/system/room/index.vue
View file @
6e6b3411
...
...
@@ -125,6 +125,11 @@
<dict-tag
:options=
"dict.type.store_room_status"
:value=
"scope.row.status"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"房间上下架"
align=
"center"
prop=
"roomStat"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.store_room_stat"
:value=
"scope.row.roomStat"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"房间单价"
width=
"80"
align=
"center"
prop=
"price"
/>
<el-table-column
label=
"套餐"
align=
"center"
prop=
"packIds"
width=
"250"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -171,7 +176,7 @@
/>
<!-- 添加或修改房间对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"
5
0%"
append-to-body
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"
6
0%"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form-item
label=
"所属门店"
prop=
"storeId"
>
<el-select
v-model=
"form.storeId"
placeholder=
"请选择所属门店"
>
...
...
@@ -216,10 +221,10 @@
<el-form-item
label=
"房间单价"
prop=
"price"
required
>
<el-input
v-model=
"form.price"
placeholder=
"请输入房间单价(默认单位:元/小时)"
/>
</el-form-item>
<el-form-item
label=
"房间
状态"
prop=
"status
"
>
<el-radio-group
v-model=
"form.
status
"
>
<el-form-item
label=
"房间
上下架"
prop=
"roomStat
"
>
<el-radio-group
v-model=
"form.
roomStat
"
>
<el-radio
v-for=
"dict in dict.type.store_room_stat
us
"
v-for=
"dict in dict.type.store_room_stat"
:key=
"dict.value"
:label=
"dict.value"
>
{{ dict.label }}
...
...
@@ -295,7 +300,7 @@ export default {
components
:
{
RoomDevice
,
},
dicts
:
[
'store_room_status'
,
'store_room_type'
,
'indoor_facilities'
],
dicts
:
[
'store_room_status'
,
'store_room_type'
,
'indoor_facilities'
,
'store_room_stat'
],
data
()
{
return
{
// 遮罩层
...
...
@@ -337,7 +342,7 @@ export default {
price
:
null
,
doorLockCode
:
null
,
electricControlCode
:
null
,
password
:
null
,
roomStat
:
null
,
params1
:
null
,
params2
:
null
,
},
...
...
@@ -440,7 +445,7 @@ export default {
images
:
null
,
facilities
:
null
,
info
:
null
,
status
:
"0"
,
roomStat
:
'1'
,
price
:
null
,
packIds
:
''
,
doorLockCode
:
null
,
...
...
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