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
3b1f1606
Commit
3b1f1606
authored
Aug 31, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ae274ab1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
15 deletions
+38
-15
TravelNotice.vue
...ents/newTravelmanager/TravelGroupControl/TravelNotice.vue
+38
-15
No files found.
src/components/newTravelmanager/TravelGroupControl/TravelNotice.vue
View file @
3b1f1606
...
...
@@ -36,11 +36,12 @@
<tbody>
<tr
v-for=
"(selfItem,selfIndex) in SelfpayingAllList"
>
<td>
<span
v-if=
"selfItem.IsShow==0"
>
{{
getSelfCityName
(
selfItem
.
CityId
)
}}
</span>
<span
v-if=
"selfItem.IsShow==0"
>
{{
selfItem
.
CityName
}}
</span>
<el-select
class=
'w120'
:placeholder=
"$t('pub.pleaseSel')"
filterable
v-model=
"selfItem.CityId"
v-else-if=
"selfItem.IsShow==1"
>
v-else-if=
"selfItem.IsShow==1"
remote
:remote-method=
"(query) => getCityList(query, selfItem)"
@
change=
"changeCity(selfItem)"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
'DefaultSelectValue'
></el-option>
<el-option
v-for=
"item in
All
CityList"
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
<el-option
v-for=
"item in
selfItem.
CityList"
:label=
'item.Name'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
</td>
...
...
@@ -59,7 +60,7 @@
<td>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_edit')"
placement=
"top-start"
v-if=
"(selfItem.IsShow==0)"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"SelfpayingShow(selfItem)"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"
getCityList('',selfItem),
SelfpayingShow(selfItem)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('pub.saveBtn')"
placement=
"top-start"
v-if=
"selfItem.IsShow==1"
>
...
...
@@ -143,7 +144,8 @@
<td>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('system.table_edit')"
placement=
"top-start"
v-if=
"(shopItem.IsShow==0)"
>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"ShopShow(shopItem),getShopItemList()"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"ShopShow(shopItem),getShopItemList()"
>
</el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('pub.saveBtn')"
placement=
"top-start"
v-if=
"shopItem.IsShow==1"
>
...
...
@@ -208,7 +210,7 @@
"subArray"
,
"NoticeData"
,
"PostConfig"
,
"AllCityList"
,
"CountryID"
//国家编号
],
data
()
{
...
...
@@ -246,7 +248,7 @@
narrative
:
true
//叙述,
},
//折叠展开
isFold
:
""
isFold
:
""
,
};
},
components
:
{
...
...
@@ -387,7 +389,6 @@
this
.
SelfpayingAllList
.
splice
(
selfIndex
,
1
);
}
},
//新增购物店
AddShop
()
{
var
obj
=
{
...
...
@@ -433,6 +434,8 @@
Id
:
0
,
ConfigId
:
this
.
subArray
.
ConfigId
,
CityId
:
0
,
CityName
:
''
,
//城市名称
CityList
:
[],
ItemName
:
""
,
EstimatedCost
:
""
,
Explain
:
""
,
...
...
@@ -449,14 +452,34 @@
this
.
SelfpayingAllList
.
splice
(
shopIndex
,
1
);
},
//获取自费城市名
getSelfCityName
(
cityId
)
{
let
cityName
=
""
;
this
.
All
CityList
.
forEach
(
x
=>
{
if
(
x
.
ID
===
c
ityId
)
{
c
ityName
=
x
.
Name
;
changeCity
(
selfItem
)
{
if
(
selfItem
.
CityList
&&
selfItem
.
CityList
.
length
>
0
)
{
selfItem
.
CityList
.
forEach
(
x
=>
{
if
(
x
.
ID
===
selfItem
.
C
ityId
)
{
selfItem
.
C
ityName
=
x
.
Name
;
}
});
return
cityName
;
}
},
//获取城市列表
getCityList
(
query
,
selfItem
)
{
var
postMsg
=
{
CodeLevel
:
3
,
Name
:
''
,
};
if
(
selfItem
.
CityName
!=
''
)
{
postMsg
.
Name
=
selfItem
.
CityName
;
}
if
(
query
!=
''
)
{
postMsg
.
Name
=
query
;
}
this
.
apipost
(
"dict_get_Destination_GetCityExtList"
,
postMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
selfItem
.
CityList
=
res
.
data
.
data
;
}
})
}
},
mounted
()
{
...
...
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