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
8b898627
Commit
8b898627
authored
Nov 01, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改房间管理页面
parent
7bd16f7c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
1 deletions
+57
-1
index.vue
src/views/system/room/index.vue
+57
-1
No files found.
src/views/system/room/index.vue
View file @
8b898627
...
@@ -209,6 +209,7 @@
...
@@ -209,6 +209,7 @@
<el-input
v-model=
"form.price"
placeholder=
"请输入房间单价(默认单位:元/小时)"
/>
<el-input
v-model=
"form.price"
placeholder=
"请输入房间单价(默认单位:元/小时)"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"套餐"
prop=
"packIds"
>
<el-form-item
label=
"套餐"
prop=
"packIds"
>
<div
style=
"display: flex;flex-direction: row;align-items: center;width: 100%;"
>
<el-select
style=
"width: 100%;"
v-model=
"packIds"
multiple
placeholder=
"套餐"
@
change=
"onChangePackId"
>
<el-select
style=
"width: 100%;"
v-model=
"packIds"
multiple
placeholder=
"套餐"
@
change=
"onChangePackId"
>
<el-option
<el-option
v-for=
"item in packList"
v-for=
"item in packList"
...
@@ -217,6 +218,9 @@
...
@@ -217,6 +218,9 @@
:value=
"item.id"
:value=
"item.id"
></el-option>
></el-option>
</el-select>
</el-select>
<el-button
type=
"primary"
icon=
"el-icon-circle-plus"
@
change=
"packAdd"
/>
<!-- <i class="el-icon-circle-plus" style="font-size: 32px;color: #1c84c6;margin-left:4px;" @change="packAdd"></i>-->
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入内容"
/>
<el-input
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入内容"
/>
...
@@ -227,6 +231,34 @@
...
@@ -227,6 +231,34 @@
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<!-- 添加或修改套餐对话框 -->
<el-dialog
:title=
"packTitle"
:visible
.
sync=
"packOpen"
width=
"500px"
>
<el-form
ref=
"form"
:model=
"packFrom"
label-width=
"120px"
>
<el-form-item
label=
"套餐名称"
prop=
"name"
>
<el-input
v-model=
"packFrom.name"
placeholder=
"请输入套餐名称"
/>
</el-form-item>
<el-form-item
label=
"时长"
prop=
"duration"
>
<el-input
v-model=
"packFrom.duration"
placeholder=
"请输入时长"
/>
</el-form-item>
<el-form-item
label=
"金额"
prop=
"price"
>
<el-input
v-model=
"packFrom.price"
placeholder=
"请输入金额"
/>
</el-form-item>
<el-form-item
label=
"套餐开始时段"
prop=
"packaStartPeriod"
>
<el-input
v-model=
"packFrom.packaStartPeriod"
placeholder=
"请输入套餐开始时段"
/>
</el-form-item>
<el-form-item
label=
"套餐结束时段"
prop=
"packaEndPeriod"
>
<el-input
v-model=
"packFrom.packaEndPeriod"
placeholder=
"请输入套餐结束时段"
/>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"packFrom.remark"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -260,6 +292,8 @@ export default {
...
@@ -260,6 +292,8 @@ export default {
roomList
:
[],
roomList
:
[],
// 弹出层标题
// 弹出层标题
title
:
""
,
title
:
""
,
packTitle
:
""
,
packOpen
:
false
,
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open
:
false
,
// 查询参数
// 查询参数
...
@@ -283,6 +317,7 @@ export default {
...
@@ -283,6 +317,7 @@ export default {
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
packFrom
:
{},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
storeId
:
[
storeId
:
[
...
@@ -331,7 +366,7 @@ export default {
...
@@ -331,7 +366,7 @@ export default {
cssClass
:
''
cssClass
:
''
},
},
value
:
obj
.
id
.
toString
(),
value
:
obj
.
id
.
toString
(),
label
:
obj
.
name
,
label
:
obj
.
name
+
'-'
+
'时段'
+
obj
.
packaStartPeriod
+
'-'
+
obj
.
packaEndPeriod
,
}
}
...
@@ -388,6 +423,22 @@ export default {
...
@@ -388,6 +423,22 @@ export default {
};
};
this
.
resetForm
(
"form"
);
this
.
resetForm
(
"form"
);
},
},
packReset
()
{
this
.
packFrom
=
{
id
:
null
,
name
:
null
,
duration
:
null
,
price
:
null
,
packaStartPeriod
:
null
,
packaEndPeriod
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
remark
:
null
};
this
.
resetForm
(
"packFrom"
);
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
...
@@ -411,6 +462,11 @@ export default {
...
@@ -411,6 +462,11 @@ export default {
console
.
log
(
this
.
facilities
)
console
.
log
(
this
.
facilities
)
this
.
title
=
"添加房间"
;
this
.
title
=
"添加房间"
;
},
},
packAdd
(){
this
.
packReset
();
this
.
packOpen
=
true
;
this
.
packTitle
=
"添加套餐"
;
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
();
this
.
reset
();
...
...
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