Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
743dcfd1
Commit
743dcfd1
authored
Apr 10, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店查询修改
parent
9f9bc00d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
153 additions
and
57 deletions
+153
-57
HotelQueryList.vue
src/components/Hotel/HotelQueryList.vue
+153
-57
No files found.
src/components/Hotel/HotelQueryList.vue
View file @
743dcfd1
...
@@ -18,13 +18,14 @@
...
@@ -18,13 +18,14 @@
</span>
</span>
</li>
</li>
<li>
<li>
<input
type=
"button"
class=
"normalBtn"
value=
"温馨提示"
@
click=
"showNotice=true"
style=
"display:none"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"温馨提示"
@
click=
"showNotice=true"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
@
click=
"getList()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
@
click=
"getList()"
/>
</li>
</li>
</ul>
</ul>
</div>
</div>
<div
style=
"width: 100%;min-height:200px; overflow-x: auto;padding-bottom: 10px; "
class=
"HotelQueryList"
v-loading=
"loading"
>
<div
style=
"width: 100%;min-height:200px; overflow-x: auto;padding-bottom: 10px; "
class=
"HotelQueryList"
v-loading=
"loading"
>
<div
class=
"hotelProductManage2_tableBox"
>
<div
class=
"hotelProductManage2_tableBox"
>
<span
style=
"color:#000000;background-color: #ff3737;padding:2px 4px;border-radius:5px"
>
红日
</span>
<span
style=
"color:#000000;background-color: #ff3737;padding:2px 4px;border-radius:5px"
>
红日
</span>
<span
style=
"color:#000000;background-color: #ff99cc;padding:2px 4px;border-radius:5px"
>
旺季
</span>
<span
style=
"color:#000000;background-color: #ff99cc;padding:2px 4px;border-radius:5px"
>
旺季
</span>
...
@@ -76,60 +77,66 @@
...
@@ -76,60 +77,66 @@
<el-row>
<el-row>
<el-col
:span=
"20"
>
<el-col
:span=
"20"
>
<el-form-item
label=
"日期"
>
<el-form-item
label=
"日期"
>
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"queryMsg.
startTim
e"
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"queryMsg.
QStartDat
e"
:picker-options=
"pickerBeginDateBefore"
value-format=
"yyyy-MM-dd"
placeholder
></el-date-picker>
:picker-options=
"pickerBeginDateBefore"
value-format=
"yyyy-MM-dd"
placeholder
></el-date-picker>
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"queryMsg.
endTim
e"
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"queryMsg.
QEndDat
e"
:picker-options=
"pickerBeginDateAfter"
value-format=
"yyyy-MM-dd"
placeholder
></el-date-picker>
:picker-options=
"pickerBeginDateAfter"
value-format=
"yyyy-MM-dd"
placeholder
></el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"查询"
@
click=
"resetPageIndex(),GetHotelTipList()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"
取消
"
@
click=
"showNotice=false"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"
关闭
"
@
click=
"showNotice=false"
/>
</el-col>
</el-col>
</el-row>
</el-row>
<div
class=
"Hq_addDetail"
>
<div
class=
"Hq_addDetail"
>
<el-row>
<el-row>
<el-col
:span=
"9"
>
<el-col
:span=
"9"
>
<el-form-item
label=
"说明"
>
<el-form-item
label=
"说明"
>
<el-input
type=
"textarea"
v-model=
"queryMsg.Remark
"
class=
"w600"
maxlength=
"200"
></el-input>
<el-input
type=
"textarea"
v-model=
"postMsg.TipContent
"
class=
"w600"
maxlength=
"200"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"15"
>
<el-col
:span=
"15"
>
<input
type=
"button"
class=
"normalBtn"
value=
"新增"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"SaveHotelTip()"
/>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
</el-form>
</el-form>
<div>
<div>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"HouseTypeList Hq_addTable"
style=
"width:97%;"
>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"HouseTypeList Hq_addTable"
style=
"width:97%;"
>
<tr>
<tr>
<th>
编号
</th>
<th>
编号
</th>
<th>
内容
</th>
<th>
内容
</th>
<th>
操作人
</th>
<th>
操作人
</th>
<th>
操作时间
</th>
<th>
操作时间
</th>
<th>
操作
</th>
<th>
操作
</th>
</tr>
</tr>
<tr>
<template
v-if=
"queryMsg.total>0"
>
<td>
007
</td>
<tr
v-for=
"(item,index) in HotelTipList"
>
<td>
撒大多数阿萨德
</td>
<td>
{{
item
.
Id
}}
</td>
<td>
张三丰
</td>
<td>
{{
item
.
TipContent
}}
</td>
<td>
2019-09-09
</td>
<td>
{{
item
.
CreateByName
}}
</td>
<td>
{{
item
.
CreateTimeStr
}}
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"GetHotelTip(item.Id)"
></el-button>
</el-tooltip>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
></el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"RemoveHotelTip(item.Id)"
></el-button>
</el-tooltip>
</el-tooltip>
</td>
</td>
</tr>
</tr>
</
template
>
<tr
v-else
>
<td
colspan=
"5"
>
暂无数据...
</td>
</tr>
</table>
</table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"queryMsg.currentPage"
:page-size=
"queryMsg.pageSize"
layout=
"total,prev, pager, next, jumper"
:total=
"queryMsg.total"
>
</el-pagination>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -139,25 +146,35 @@
...
@@ -139,25 +146,35 @@
StartDate
:
new
Date
().
Format
(
"yyyy-MM-dd"
),
StartDate
:
new
Date
().
Format
(
"yyyy-MM-dd"
),
EndDate
:
this
.
setEdate
(),
EndDate
:
this
.
setEdate
(),
},
},
queryMsg
:{
queryMsg
:
{
startTime
:
''
,
QStartDate
:
''
,
endTime
:
''
,
QEndDate
:
''
,
Remark
:
''
,
pageIndex
:
1
,
pageSize
:
5
,
currentPage
:
1
,
total
:
0
},
},
postMsg
:
{
Id
:
0
,
TipContent
:
''
},
//酒店温馨提示列表
HotelTipList
:
[],
HotelList
:
[],
HotelList
:
[],
dataList
:
[],
dataList
:
[],
isShow
:
false
,
isShow
:
false
,
loading
:
false
,
loading
:
false
,
showNotice
:
false
,
showNotice
:
false
,
pickerBeginDateBefore
:
{
pickerBeginDateBefore
:
{
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
let
endTime
=
new
Date
(
this
.
queryMsg
.
startTim
e
)
let
endTime
=
new
Date
(
this
.
queryMsg
.
QStartDat
e
)
return
endTime
.
getTime
()
<
time
.
getTime
()
return
endTime
.
getTime
()
<
time
.
getTime
()
}
}
},
},
pickerBeginDateAfter
:
{
pickerBeginDateAfter
:
{
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
let
startTime
=
new
Date
(
this
.
queryMsg
.
endTim
e
)
let
startTime
=
new
Date
(
this
.
queryMsg
.
QEndDat
e
)
return
startTime
.
getTime
()
>=
time
.
getTime
()
return
startTime
.
getTime
()
>=
time
.
getTime
()
}
}
}
}
...
@@ -177,7 +194,7 @@
...
@@ -177,7 +194,7 @@
}
}
},
},
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
if
(
this
.
msg
.
StartDate
==
null
)
{
if
(
this
.
msg
.
StartDate
==
null
)
{
this
.
msg
.
StartDate
=
new
Date
().
Format
(
"yyyy-MM-dd"
)
this
.
msg
.
StartDate
=
new
Date
().
Format
(
"yyyy-MM-dd"
)
}
}
...
@@ -258,11 +275,84 @@
...
@@ -258,11 +275,84 @@
break
;
break
;
}
}
return
classStr
;
return
classStr
;
}
},
handleCurrentChange
(
val
)
{
this
.
queryMsg
.
pageIndex
=
val
;
this
.
GetHotelTipList
();
},
resetPageIndex
()
{
this
.
queryMsg
.
pageIndex
=
1
;
this
.
queryMsg
.
currentPage
=
1
;
},
//获取酒店列表
GetHotelTipList
()
{
this
.
apipost
(
"hoteltip_get_GetPageList"
,
this
.
queryMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
HotelTipList
=
res
.
data
.
data
.
pageData
;
this
.
queryMsg
.
total
=
res
.
data
.
data
.
count
;
}
},
err
=>
{}
);
},
SaveHotelTip
()
{
this
.
apipost
(
"hoteltip_post_SetHotelTip"
,
this
.
postMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
"保存成功!"
);
this
.
postMsg
.
Id
=
0
;
this
.
postMsg
.
TipContent
=
""
;
this
.
GetHotelTipList
();
}
else
{
this
.
Error
(
"保存失败!"
);
}
},
err
=>
{}
);
},
RemoveHotelTip
(
Id
)
{
var
that
=
this
;
this
.
Confirm
(
'是否要删除此数据?'
,
function
()
{
that
.
apipost
(
"hoteltip_post_RemoveHotelTip"
,
{
ID
:
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
"删除成功!"
);
that
.
GetHotelTipList
();
}
else
{
that
.
Error
(
"删除失败!"
);
}
},
err
=>
{}
);
})
},
GetHotelTip
(
Id
)
{
this
.
apipost
(
"hoteltip_get_GetHotelTip"
,
{
ID
:
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
postMsg
.
Id
=
res
.
data
.
data
.
Id
;
this
.
postMsg
.
TipContent
=
res
.
data
.
data
.
TipContent
;
}
else
{
this
.
Error
(
"获取数据失败!"
);
}
},
err
=>
{}
);
},
},
},
mounted
()
{
mounted
()
{
this
.
GetHotelList
();
this
.
GetHotelList
();
this
.
getList
();
this
.
getList
();
this
.
GetHotelTipList
();
}
}
};
};
...
@@ -339,20 +429,26 @@
...
@@ -339,20 +429,26 @@
.hotelProductManage2_tableBox
span
{
.hotelProductManage2_tableBox
span
{
margin
:
0
10px
10px
0
;
margin
:
0
10px
10px
0
;
}
}
.Hq_addDetail
{
margin-top
:
20px
;
.Hq_addDetail
{
margin-top
:
20px
;
}
}
.Hq_addDetail
.el-textarea__inner
{
resize
:
none
;
.Hq_addDetail
.el-textarea__inner
{
resize
:
none
;
}
}
.Hq_addTable
.el-button.is-circle
{
padding
:
5px
;
.Hq_addTable
.el-button.is-circle
{
padding
:
5px
;
}
}
.HqCom_bottom
.el-form-item
{
margin-bottom
:
0
.HqCom_bottom
.el-form-item
{
margin-bottom
:
0
}
}
.HqCom_bottom
{
height
:
350px
;
.HqCom_bottom
{
padding-top
:
35px
;
height
:
350px
;
padding-top
:
35px
;
}
}
</
style
>
</
style
>
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