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
98ef7d35
Commit
98ef7d35
authored
May 20, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a6c1ae38
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1127 additions
and
0 deletions
+1127
-0
carmanageList.vue
src/components/TravelManager/customizedcar/carmanageList.vue
+194
-0
dzaddcar.vue
src/components/TravelManager/customizedcar/dzaddcar.vue
+442
-0
dzlineList.vue
src/components/TravelManager/customizedcar/dzlineList.vue
+194
-0
dzscenicspotList.vue
...mponents/TravelManager/customizedcar/dzscenicspotList.vue
+297
-0
No files found.
src/components/TravelManager/customizedcar/carmanageList.vue
0 → 100644
View file @
98ef7d35
<
template
>
<div
class=
"flexOne"
>
<div
class=
"query-box"
>
<ul>
<li><span><em>
车辆类型
</em><el-select
filterable
v-model=
'msg.CarType'
>
<el-option
:label=
"$t('pub.unlimitedSel')"
value=
'0'
></el-option>
<el-option
v-for=
'item in companyList'
:label=
'item.Name'
:value=
'item.Id'
:key=
'item.Id'
>
</el-option>
</el-select>
</span></li>
<li><span><em>
车辆名称
</em><el-input
v-model=
'msg.CarName'
class=
"permiss-input"
></el-input></span></li>
<li><span><em>
车辆品牌
</em><el-input
v-model=
'msg.BrandName'
class=
"permiss-input"
></el-input></span></li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"新增"
@
click=
"CommonJump('dzaddcar')"
/>
</li>
</ul>
</div>
<el-table
:data=
"dataList"
stripe
style=
"width: 100%"
max-height=
"700"
v-loading=
'loading'
>
<el-table-column
fixed
prop=
"Id"
label=
"Id"
width=
"80"
>
</el-table-column>
<el-table-column
prop=
"CarName"
label=
"名称"
>
<template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(' + scope.row.CarLogo + ')',backgroundSize:'cover'}">
</div>
<div
flex=
"dir:left cross:center"
>
{{
scope
.
row
.
CarName
}}
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"CarTypeName"
label=
"类型"
>
</el-table-column>
<el-table-column
prop=
"CarModel"
label=
"型号"
>
</el-table-column>
<el-table-column
prop=
"CarColor"
label=
"颜色"
>
</el-table-column>
<el-table-column
prop=
"BrandName"
label=
"品牌"
>
</el-table-column>
<el-table-column
prop=
"CarNo"
label=
"车牌号"
>
</el-table-column>
<el-table-column
prop=
"GuestNum"
label=
"荷载人数"
>
</el-table-column>
<el-table-column
prop=
"ImageList"
label=
"图片列表"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(' + scope.row.ImageList[0] + ')',backgroundSize:'cover'}">
</div>
<div
v-if=
'scope.row.ImageList.length>2'
@
click=
'lookgd(scope.row)'
style=
"cursor:pointer;color:#409EFF"
>
查看更多
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"UpdateByName"
label=
"创建人"
>
<
template
slot-scope=
"scope"
>
<div
flex=
"dir:left cross:center"
>
{{
scope
.
row
.
UpdateByName
}}
</div>
<div
flex=
"dir:left cross:center"
>
{{
scope
.
row
.
UpdateDate
}}
</div>
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
src=
"../../../assets/img/setup/edit.png"
alt=
""
class=
"imgstyle"
@
click=
"Edit(scope.row)"
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
src=
"../../../assets/img/setup/del.png"
alt=
""
class=
"imgstyle"
@
click=
"delete_b(scope.row)"
>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
</el-pagination>
<el-dialog
title=
"图片列表"
:visible
.
sync=
"changeState"
width=
"1240px"
>
<div
style=
"display: flex;flex-direction: row;flex-wrap: wrap;"
>
<img
v-for=
"(x, index) in CarPic"
:key=
"index"
style=
"width:200px;height:200px;margin: 10px"
:src=
"x"
alt=
""
>
</div>
</el-dialog>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
loading
:
true
,
//分页
total
:
0
,
pageSize
:
''
,
currentPage
:
1
,
changeState
:
false
,
//请求数据
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
CarType
:
'0'
,
CarName
:
''
,
BrandName
:
''
,
},
//返回数据
dataList
:
[],
companyList
:
[],
CarPic
:[]
}
},
methods
:
{
getCompany
()
{
this
.
apipost
(
'car_get_GetCarCustomTypeEnumList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
companyList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
lookgd
(
row
){
this
.
changeState
=
true
;
this
.
CarPic
=
row
.
ImageList
},
getList
()
{
this
.
loading
=
true
this
.
apipost
(
'car_get_GetCarInfoPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
loading
=
false
this
.
$nextTick
(()
=>
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
});
this
.
total
=
res
.
data
.
data
.
count
;
}
},
err
=>
{})
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
resetPageIndex
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
},
Edit
(
row
){
console
.
log
(
row
)
this
.
$router
.
push
(
"/dzaddcar?obj="
+
encodeURIComponent
(
JSON
.
stringify
(
row
)))
},
delete_b
(
row
){
let
that
=
this
;
that
.
Confirm
(
"是否删除"
,
function
()
{
that
.
apipost
(
'car_post_DelCarInfo'
,
{
CarId
:
row
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
$message
.
success
(
res
.
data
.
message
)
that
.
getList
()
}
else
{
that
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
});
},
},
mounted
()
{
this
.
getList
()
this
.
getCompany
()
}
}
</
script
>
<
style
>
.el-table
.el-table__row
{
font-size
:
12px
!important
;
}
.el-table__row
td
{
padding
:
5px
0
;
}
.has-gutter
tr
th
,
.el-table
th
.is-leaf
{
background
:
#EAEAEA
!important
;}
.app-image
{
background-position
:
center
center
;
width
:
50px
;
height
:
50px
;
border-radius
:
0%
;
float
:
left
;
margin-right
:
8px
;
}
</
style
>
\ No newline at end of file
src/components/TravelManager/customizedcar/dzaddcar.vue
0 → 100644
View file @
98ef7d35
This diff is collapsed.
Click to expand it.
src/components/TravelManager/customizedcar/dzlineList.vue
0 → 100644
View file @
98ef7d35
<
template
>
<div
class=
"flexOne"
>
<div
class=
"query-box"
>
<ul>
<li><span><em>
车辆类型
</em><el-select
filterable
v-model=
'msg.CarType'
>
<el-option
:label=
"$t('pub.unlimitedSel')"
value=
'0'
></el-option>
<el-option
v-for=
'item in companyList'
:label=
'item.Name'
:value=
'item.Id'
:key=
'item.Id'
>
</el-option>
</el-select>
</span></li>
<li><span><em>
车辆名称
</em><el-input
v-model=
'msg.CarName'
class=
"permiss-input"
></el-input></span></li>
<li><span><em>
车辆品牌
</em><el-input
v-model=
'msg.BrandName'
class=
"permiss-input"
></el-input></span></li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"新增"
@
click=
"CommonJump('dzaddcar')"
/>
</li>
</ul>
</div>
<el-table
:data=
"dataList"
stripe
style=
"width: 100%"
max-height=
"700"
v-loading=
'loading'
>
<el-table-column
fixed
prop=
"Id"
label=
"Id"
width=
"80"
>
</el-table-column>
<el-table-column
prop=
"CarName"
label=
"名称"
>
<template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(' + scope.row.CarLogo + ')',backgroundSize:'cover'}">
</div>
<div
flex=
"dir:left cross:center"
>
{{
scope
.
row
.
CarName
}}
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"CarTypeName"
label=
"类型"
>
</el-table-column>
<el-table-column
prop=
"CarModel"
label=
"型号"
>
</el-table-column>
<el-table-column
prop=
"CarColor"
label=
"颜色"
>
</el-table-column>
<el-table-column
prop=
"BrandName"
label=
"品牌"
>
</el-table-column>
<el-table-column
prop=
"CarNo"
label=
"车牌号"
>
</el-table-column>
<el-table-column
prop=
"GuestNum"
label=
"荷载人数"
>
</el-table-column>
<el-table-column
prop=
"ImageList"
label=
"图片列表"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(' + scope.row.ImageList[0] + ')',backgroundSize:'cover'}">
</div>
<div
v-if=
'scope.row.ImageList.length>2'
@
click=
'lookgd(scope.row)'
style=
"cursor:pointer;color:#409EFF"
>
查看更多
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"UpdateByName"
label=
"创建人"
>
<
template
slot-scope=
"scope"
>
<div
flex=
"dir:left cross:center"
>
{{
scope
.
row
.
UpdateByName
}}
</div>
<div
flex=
"dir:left cross:center"
>
{{
scope
.
row
.
UpdateDate
}}
</div>
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
src=
"../../../assets/img/setup/edit.png"
alt=
""
class=
"imgstyle"
@
click=
"Edit(scope.row)"
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
src=
"../../../assets/img/setup/del.png"
alt=
""
class=
"imgstyle"
@
click=
"delete_b(scope.row)"
>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
</el-pagination>
<el-dialog
title=
"图片列表"
:visible
.
sync=
"changeState"
width=
"1240px"
>
<div
style=
"display: flex;flex-direction: row;flex-wrap: wrap;"
>
<img
v-for=
"(x, index) in CarPic"
:key=
"index"
style=
"width:200px;height:200px;margin: 10px"
:src=
"x"
alt=
""
>
</div>
</el-dialog>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
loading
:
true
,
//分页
total
:
0
,
pageSize
:
''
,
currentPage
:
1
,
changeState
:
false
,
//请求数据
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
CarType
:
'0'
,
CarName
:
''
,
BrandName
:
''
,
},
//返回数据
dataList
:
[],
companyList
:
[],
CarPic
:[]
}
},
methods
:
{
getCompany
()
{
this
.
apipost
(
'car_get_GetCarCustomTypeEnumList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
companyList
=
res
.
data
.
data
;
}
},
err
=>
{})
},
lookgd
(
row
){
this
.
changeState
=
true
;
this
.
CarPic
=
row
.
ImageList
},
getList
()
{
this
.
loading
=
true
this
.
apipost
(
'car_get_GetCarInfoPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
loading
=
false
this
.
$nextTick
(()
=>
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
});
this
.
total
=
res
.
data
.
data
.
count
;
}
},
err
=>
{})
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
resetPageIndex
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
},
Edit
(
row
){
console
.
log
(
row
)
this
.
$router
.
push
(
"/dzaddcar?obj="
+
encodeURIComponent
(
JSON
.
stringify
(
row
)))
},
delete_b
(
row
){
let
that
=
this
;
that
.
Confirm
(
"是否删除"
,
function
()
{
that
.
apipost
(
'car_post_DelCarInfo'
,
{
CarId
:
row
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
$message
.
success
(
res
.
data
.
message
)
that
.
getList
()
}
else
{
that
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
});
},
},
mounted
()
{
this
.
getList
()
this
.
getCompany
()
}
}
</
script
>
<
style
>
.el-table
.el-table__row
{
font-size
:
12px
!important
;
}
.el-table__row
td
{
padding
:
5px
0
;
}
.has-gutter
tr
th
,
.el-table
th
.is-leaf
{
background
:
#EAEAEA
!important
;}
.app-image
{
background-position
:
center
center
;
width
:
50px
;
height
:
50px
;
border-radius
:
0%
;
float
:
left
;
margin-right
:
8px
;
}
</
style
>
\ No newline at end of file
src/components/TravelManager/customizedcar/dzscenicspotList.vue
0 → 100644
View file @
98ef7d35
<
template
>
<div
class=
"flexOne"
>
<div
class=
"query-box"
>
<ul>
<li>
<span><em>
景点名称:
</em><el-input
v-model=
'msg.Name'
class=
"permiss-input"
></el-input></span>
</li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"resetPageIndex(),getList()"
/>
<input
type=
"button"
@
click=
"outerVisible = true,dialogTitle='新增景点'"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
/>
</li>
</ul>
</div>
<div
>
<el-table
:data=
"DataList"
header-cell-class-name=
"headClass"
style=
"width: 100%"
border
>
<el-table-column
prop=
"Id"
label=
"ID"
width=
"100"
></el-table-column>
<el-table-column
prop=
"Name"
label=
"景点名称"
></el-table-column>
<el-table-column
prop=
"ProvinceName"
label=
"景点地址"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
ProvinceName
}}
、
{{
scope
.
row
.
CityName
}}
、
{{
scope
.
row
.
DistrictName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"UpdateByName"
label=
"操作人"
></el-table-column>
<el-table-column
prop=
"UpdateDate"
label=
"操作时间"
></el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
src=
"../../../assets/img/setup/edit.png"
alt=
""
class=
"imgstyle"
@
click=
"Edit(scope.row)"
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
src=
"../../../assets/img/setup/del.png"
alt=
""
class=
"imgstyle"
@
click=
"delete_b(scope.row)"
>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
</el-pagination>
<el-dialog
custom-class=
'w800'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
:before-close=
"closeChangeMachie"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"100px"
>
<table
class=
"layerNoIcon"
>
<el-form-item
label=
"景点名称"
prop=
"Name"
>
<el-input
class=
'w600'
type=
"text"
v-model=
"addMsg.Name"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
"景点地址"
>
<el-select
v-model=
"addMsg.ProvinceId"
class=
"w150"
filterable
@
change=
"getProvinceList(addMsg.ProvinceId,2)"
:placeholder=
"$t('hotel.hotel_province')"
>
<el-option
v-for=
'item in provinceList'
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
<el-select
v-model=
"addMsg.CityId"
class=
"w150"
filterable
@
change=
"getProvinceList(addMsg.CityId,3)"
:placeholder=
"$t('hotel.hotel_city')"
>
<el-option
v-for=
'item in cityList'
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
<el-select
v-model=
"addMsg.DistrictId"
class=
"w150"
filterable
:placeholder=
"$t('hotel.hotel_area')"
>
<el-option
v-for=
'item in district'
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
</table>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"outerVisible = false,resetForm('addMsg')"
>
{{$t('pub.cancelBtn')}}
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg',1)"
v-if=
"dialogTitle=='新增景点'"
>
新增
</button>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"submitForm('addMsg',2)"
v-if=
"dialogTitle=='修改景点'"
>
修改
</button>
</div>
</el-dialog>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
loading
:
true
,
//分页
total
:
0
,
pageSize
:
''
,
currentPage
:
1
,
//弹窗
outerVisible
:
false
,
isRight
:
true
,
dialogTitle
:
''
,
//请求参数
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
Name
:
''
,
},
addMsg
:{
Id
:
'-1'
,
Name
:
''
,
DistrictId
:
''
,
CityId
:
''
,
ProvinceId
:
''
},
rules
:{
Name
:
[{
required
:
true
,
message
:
'景点名称'
,
trigger
:
'blur'
}],
Content
:
[{
required
:
true
,
message
:
this
.
$t
(
'adm.adm_qsrgbneirong'
),
trigger
:
'blur'
}],
},
//返回结果
DataList
:
[],
detailMessage
:[],
downLoadList
:[],
provinceList
:
""
,
cityList
:
""
,
district
:
""
,
}
},
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
this
.
addMsg
.
RB_Group_Id
=
userInfo
.
RB_Group_id
this
.
getList
();
this
.
getProvinceList
(
2
,
1
)
},
methods
:
{
getProvinceList
(
ID
,
type
)
{
//根据省份获取城市
let
msg
=
{
Id
:
ID
};
if
(
type
==
1
)
{
this
.
addMsg
.
ProvinceId
=
""
;
this
.
addMsg
.
CityId
=
""
;
this
.
addMsg
.
DistrictId
=
""
;
}
else
if
(
type
==
2
)
{
this
.
addMsg
.
CityId
=
""
;
this
.
addMsg
.
DistrictId
=
""
;
}
else
if
(
type
==
3
)
{
this
.
addMsg
.
DistrictId
=
""
;
}
if
(
this
.
addMsg
.
Country
!=
""
||
this
.
msg
.
CountryStr
!=
""
)
{
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
;
}
else
if
(
type
==
3
)
{
this
.
district
=
res
.
data
.
data
;
}
},
err
=>
{}
);
}
},
getList
()
{
//景点列表
this
.
loading
=
true
;
this
.
apipost
(
'car_get_GetScenicPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
loading
=
false
;
this
.
DataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
},
err
=>
{})
},
Edit
(
row
){
this
.
outerVisible
=
true
;
this
.
dialogTitle
=
'修改景点'
this
.
addMsg
.
Name
=
row
.
Name
;
this
.
addMsg
.
Id
=
row
.
Id
;
this
.
addMsg
.
ProvinceId
=
row
.
ProvinceId
;
this
.
addMsg
.
CityId
=
row
.
CityId
;
this
.
addMsg
.
DistrictId
=
row
.
DistrictId
;
},
addNotice
(
_status
){
this
.
apipost
(
'car_post_SetScenicInfo'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
outerVisible
=
false
;
this
.
getList
()
this
.
resetForm
(
'addMsg'
);
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
delete_b
(
row
){
let
that
=
this
;
that
.
Confirm
(
"是否删除此景点?"
,
function
()
{
that
.
apipost
(
'car_post_DelScenicInfo'
,
{
ScenicId
:
row
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
$message
.
success
(
res
.
data
.
message
)
that
.
getList
()
}
else
{
that
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
});
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
resetPageIndex
()
{
this
.
msg
.
pageIndex
=
1
;
},
submitForm
(
addMsg
,
_type
)
{
//提交创建、修改表单
this
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
addMsg
.
ProvinceId
==
''
||
this
.
addMsg
.
CityId
==
''
){
this
.
$message
.
error
(
'请选择地址'
)
return
}
this
.
addNotice
(
_type
)
}
else
{
return
false
;
}
});
},
closeChangeMachie
(
done
)
{
//弹出框关闭初始化弹框内表单
done
();
this
.
resetForm
(
'addMsg'
);
},
resetForm
(
formName
)
{
//弹出框取消 初始化谈框内表单
if
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
}
this
.
addMsg
.
Id
=
'-1'
}
}
}
</
script
>
<
style
>
.ann_detail_title
{
line-height
:
24px
;
font-size
:
15px
;
font-weight
:
bold
;
text-align
:
center
;}
.ann_textarea
textarea
{
height
:
400px
!important
;}
.AnnfileList
{
padding
:
5px
0
;}
.AnnfileList
li
{
height
:
30px
;
line-height
:
30px
;
padding
:
0
10px
;}
.AnnfileList
li
:hover
{
background
:
#f1f1f1
;}
.AnnfileList
li
>
i
{
float
:
right
;
margin-top
:
8px
;}
.AnnfileList
li
:hover
,
.AnnFileListPMeta
:hover
{
text-decoration
:
underline
;
color
:
#E95252
;
cursor
:
pointer
;}
.AnnFileListPMeta
{
color
:
blue
}
.AnnFileListPMeta
.iconfon
{
font-size
:
12px
;
}
.el-table
.el-table__row
{
font-size
:
12px
!important
;
}
.el-table__row
td
{
padding
:
5px
0
;
}
</
style
>
\ No newline at end of file
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