Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HotelProject
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
zhengke
HotelProject
Commits
f88b3aad
Commit
f88b3aad
authored
Feb 12, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
2e565cae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
156 additions
and
4 deletions
+156
-4
HotelList.vue
src/components/assetsman/HotelList.vue
+1
-1
HotelOrder.vue
src/components/assetsman/HotelOrder.vue
+155
-3
No files found.
src/components/assetsman/HotelList.vue
View file @
f88b3aad
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
pageSize
:
15
,
pageSize
:
15
,
SHotelName
:
""
,
//酒店名称
SHotelName
:
""
,
//酒店名称
Status
:
-
1
,
//酒店状态
Status
:
-
1
,
//酒店状态
SCountryId
:
0
,
//国家编号
SCountryId
:
651
,
//国家编号
SProvinceId
:
0
,
//省份编号
SProvinceId
:
0
,
//省份编号
SCityId
:
0
,
//城市编号
SCityId
:
0
,
//城市编号
},
},
...
...
src/components/assetsman/HotelOrder.vue
View file @
f88b3aad
<
template
>
<
template
>
<div>
<div
class=
"assetsList"
>
123
<div
class=
"routerTitle"
>
<span
class=
"pageTitle"
>
酒店订单
</span>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
import
moment
from
'moment'
export
default
{
name
:
"assetsList"
,
components
:
{},
data
()
{
return
{
currentPage
:
1
,
dataList
:
[],
loading
:
false
,
morequery
:
false
,
total
:
0
,
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
HotelId
:
0
,
RoomId
:
0
,
RoomType
:
0
,
StartTime
:
""
,
EndTime
:
""
,
OrderStatus
:
0
,
CreateBy
:
0
,
OrderForm
:
0
},
};
},
mounted
()
{
this
.
getCountryList
();
this
.
getList
();
},
methods
:
{
currentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
getList
()
{
this
.
apipost
(
"scm_get_GetSCMHotelOrderPageList"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
console
.
log
(
"this.dataList"
,
this
.
dataList
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
});
},
getProvinceList
(
ID
,
type
)
{
//根据省份获取城市
let
msg
=
{
Id
:
ID
};
if
(
type
==
1
)
{
this
.
msg
.
SProvinceId
=
0
;
this
.
msg
.
SCityId
=
0
;
}
else
if
(
type
==
2
)
{
this
.
msg
.
SCityId
=
0
;
}
if
(
this
.
msg
.
SCountryId
!==
0
)
{
this
.
apipost
(
"dict_post_Destination_GetChildList"
,
msg
,
res
=>
{
if
(
type
==
1
)
{
this
.
provinceList
=
res
.
data
.
data
;
}
else
if
(
type
==
2
)
{
this
.
cityList
=
res
.
data
.
data
;
}
},
err
=>
{}
);
}
},
//获取国家
getCountryList
()
{
this
.
apipost
(
"dict_post_Destination_GetCountry"
,
{},
res
=>
{
this
.
countryList
=
res
.
data
.
data
;
},
err
=>
{}
);
},
addHotel
()
{
this
.
$router
.
push
({
path
:
'HotelInfo'
})
},
getDate
(
date
)
{
return
moment
(
date
).
format
(
"YYYY-MM-DD HH:mm:ss"
);
},
//修改
Edit
(
item
)
{
this
.
$router
.
push
({
path
:
'HotelInfo'
,
query
:
{
SID
:
item
.
SID
}
})
},
}
};
</
script
>
<
style
>
.assetsList
.MyEditForm
.baseform
.el-form-item
:nth-child
(
4n
)
{
margin-right
:
0
;
}
.assetsList
.zczt1
{
background
:
#ffe4d5
;
color
:
#ffa87c
;
}
.assetsList
.zczt2
{
background
:
#beeff0
;
color
:
#089bab
;
}
.assetsList
.zczt3
{
background
:
#ffd6d5
;
color
:
#ff7874
;
}
.assetsList
.zczt4
{
background
:
#d7d6ff
;
color
:
#7b78ff
;
}
.assetsList
.Commonzczt
{
display
:
inline-block
;
width
:
24px
;
height
:
24px
;
line-height
:
24px
;
text-align
:
center
;
border-radius
:
50%
;
font-size
:
12px
;
font-family
:
"Microsoft YaHei"
;
}
.assetsList
{
width
:
100%
;
height
:
100%
;
}
</
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