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
951dd423
Commit
951dd423
authored
Feb 10, 2023
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地区管理优化
parent
b47c16e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
9 deletions
+37
-9
WebSiteArea.vue
src/components/WebSet/WebSiteArea.vue
+9
-4
areaSelect.vue
src/pubComponents/areaSelect.vue
+24
-3
uploadImg.vue
src/pubComponents/uploadImg.vue
+4
-2
No files found.
src/components/WebSet/WebSiteArea.vue
View file @
951dd423
...
...
@@ -32,6 +32,9 @@
.flex
{
display
:
flex
;
}
.cover
{
height
:
30px
;
}
</
style
>
<
template
>
<!--契约管理-->
...
...
@@ -83,8 +86,7 @@
</el-table-column>
<el-table-column
prop=
"ParentName"
label=
"封面图"
header-align=
"center"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<i
class=
"el-icon-time"
></i>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
date
}}
</span>
<img
class=
"cover"
v-if=
"scope.row.ImageList && scope.row.ImageList.length"
:src=
"scope.row.ImageList[0]"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
header-align=
"center"
align=
"center"
>
...
...
@@ -183,7 +185,7 @@
</div>
</el-dialog>
<el-dialog
title=
"选择目的地"
:visible
.
sync=
"areaVisible"
center
width=
"600px"
>
<area-select
@
change=
"changeSelectArea"
></area-select>
<area-select
@
change=
"changeSelectArea"
ref=
"areaSelect"
></area-select>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"addArea"
>
{{$t('pub.saveBtn')}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"areaVisible = false"
>
{{$t('pub.cancelBtn')}}
</button>
...
...
@@ -389,7 +391,9 @@ import uploadImg from '../../pubComponents/uploadImg'
}],
DestinationList
:
[],
}
this
.
$refs
.
uploadImg
.
ImageList
=
[]
this
.
$nextTick
(()
=>
{
this
.
$refs
.
uploadImg
.
ImageList
=
[]
})
},
//新增、修改广告
submitForm
(
formName
)
{
...
...
@@ -440,6 +444,7 @@ import uploadImg from '../../pubComponents/uploadImg'
clickArea
(
index
,
type
)
{
if
(
type
)
{
this
.
areaVisible
=
true
this
.
$refs
.
areaSelect
.
reset
()
}
else
{
this
.
addMsg
.
DestinationList
.
splice
(
index
,
1
)
if
(
this
.
addMsg
.
Level
===
2
&&
this
.
addMsg
.
DestinationList
.
length
<
1
)
{
...
...
src/pubComponents/areaSelect.vue
View file @
951dd423
...
...
@@ -12,12 +12,15 @@
:value=
"childItem.ID"
>
</el-option>
</el-select>
<el-select
placeholder=
"市"
filterable
@
change=
"
emitChange
(addMsg.City, 3)"
<el-select
placeholder=
"市"
filterable
@
change=
"
GetSubAreaList
(addMsg.City, 3)"
class=
'multiple_input w100'
v-model=
"addMsg.City"
>
<el-option
v-for=
"childItem in CityList"
:key=
"childItem.ID"
:label=
"childItem.Name"
:value=
"childItem.ID"
>
</el-option>
</el-select>
<el-select
placeholder=
"区"
class=
'multiple_input w100'
v-model=
"addMsg.District"
@
change=
"emitChange(addMsg.District, 4)"
filterable
>
<el-option
v-for=
"item in district"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
</div>
</
template
>
<
style
scoped
>
...
...
@@ -27,7 +30,12 @@
export
default
{
data
()
{
return
{
addMsg
:
{},
addMsg
:
{
Country
:
''
,
Province
:
''
,
City
:
''
,
District
:
''
,
},
CountryList
:
[],
ProvinceList
:
[],
CityList
:
[],
...
...
@@ -38,6 +46,17 @@ export default {
this
.
GetCounrty
();
},
methods
:
{
reset
()
{
this
.
addMsg
=
{
Country
:
''
,
Province
:
''
,
City
:
''
,
District
:
''
,
}
this
.
ProvinceList
=
[]
this
.
CityList
=
[]
this
.
district
=
[]
},
//获取国家
GetCounrty
()
{
this
.
apipost
(
...
...
@@ -80,8 +99,10 @@ export default {
info
=
this
.
CountryList
.
find
(
item
=>
item
.
ID
===
ID
)
}
else
if
(
type
===
2
)
{
info
=
this
.
ProvinceList
.
find
(
item
=>
item
.
ID
===
ID
)
}
else
if
(
type
===
3
)
{
info
=
this
.
CityList
.
find
(
item
=>
item
.
ID
===
ID
)
}
else
{
info
=
this
.
CityLis
t
.
find
(
item
=>
item
.
ID
===
ID
)
info
=
this
.
distric
t
.
find
(
item
=>
item
.
ID
===
ID
)
}
this
.
$emit
(
'change'
,
info
)
}
...
...
src/pubComponents/uploadImg.vue
View file @
951dd423
...
...
@@ -17,7 +17,9 @@
</div>
</div>
</div>
<div><div
class=
"reimg-add"
>
</div>
<div
class=
"add-img"
>
<div
class=
"reimg-add"
>
<i
class=
"iconfont icon-img_haha bigAdd"
></i>
<div
class=
"ad-one"
>
<div
class=
"re-upload"
>
...
...
@@ -29,7 +31,7 @@
<!-- 选择系统图片 -->
<!--
<div
class=
"re-find"
@
click=
"addImgOpen"
><i
class=
"iconfont icon-img_cz"
></i></div>
-->
</div>
</div>
</div>
</div>
</div>
</div>
<!--
<el-upload
class=
"upload-demo"
:http-request=
"UploadImage"
:multiple=
"false"
...
...
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