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
7f5135b3
Commit
7f5135b3
authored
Mar 31, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save'
parent
f2b30ee3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
11 deletions
+48
-11
addInfo.vue
src/components/TravelManager/TravelTeam/addInfo.vue
+24
-8
test.vue
src/components/TravelManager/TravelTeam/test.vue
+3
-0
travelTeamList.vue
src/components/TravelManager/TravelTeam/travelTeamList.vue
+21
-3
No files found.
src/components/TravelManager/TravelTeam/addInfo.vue
View file @
7f5135b3
...
...
@@ -1601,14 +1601,15 @@
<el-form-item
label=
"合作伙伴"
>
<el-select
@
change=
"onChange"
remote
remote-method=
"onSearchFriend"
loading=
"loading"
:
remote-method=
"onSearchFriend"
:
loading=
"loading"
multiple
v-model=
"friendValue"
filterable
:placeholder=
"$t('system.ph_choice')"
class=
"w150
"
style=
"100%
"
>
<el-option
v-for=
"item in friendList"
...
...
@@ -1617,6 +1618,9 @@
:value=
"item.ID"
></el-option>
</el-select>
<div>
</div>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-input
v-model=
"editForm.Remark"
></el-input>
...
...
@@ -1674,8 +1678,10 @@ const baseInfo = {
max
:
""
,
};
export
default
{
name
:
'addInfo'
,
data
()
{
return
{
loading
:
false
,
ContractArray
:
[],
rules
:
{
GTeamName
:
[
...
...
@@ -1912,6 +1918,7 @@ export default {
};
},
mounted
()
{
this
.
customers
=
[]
this
.
initAirlines
();
this
.
getList
();
const
{
id
}
=
this
.
$route
.
query
;
...
...
@@ -1920,6 +1927,14 @@ export default {
}
},
methods
:
{
onChange
(
value
)
{
this
.
friendList
.
forEach
(
item
=>
{
if
(
value
.
includes
(
item
.
ID
)
&&
this
.
customers
.
findIndex
((
el
)
=>
item
.
ID
===
el
.
ID
)
===
-
1
)
{
this
.
customers
.
push
(
item
)
}
})
console
.
log
(
'onChange'
,
value
,
this
.
customers
)
},
// 获取包机详情
getDetail
(
id
)
{
this
.
apipost
(
...
...
@@ -1937,7 +1952,6 @@ export default {
});
this
.
addMsg
.
flightList
=
TravelTeamFlightList
;
this
.
friendValue
=
TravelTeamPartnerList
;
// this.
console
.
log
(
"this.addMsg.flightList"
,
this
.
addMsg
.
flightList
);
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
...
...
@@ -1946,7 +1960,8 @@ export default {
(
err
)
=>
{}
);
},
onSearchFriend
()
{
onSearchFriend
(
value
)
{
console
.
log
(
'onSearchFriend'
,
value
)
this
.
getList
()
},
// 获取合作伙伴列表
...
...
@@ -2101,8 +2116,8 @@ export default {
this
.
editForm
.
TravelTeamFlightList
,
this
.
ContractArray
);
this
.
editForm
.
TravelTeamPartnerList
=
this
.
friendValue
.
map
((
item
)
=>
{
return
{
CustomerId
:
item
};
this
.
editForm
.
TravelTeamPartnerList
=
this
.
customers
.
map
((
item
)
=>
{
return
{
...
item
,
CustomerId
:
item
.
ID
};
});
if
(
!
this
.
editForm
.
TravelTeamPartnerList
.
length
)
{
this
.
Warning
(
"请选择合作伙伴"
);
...
...
@@ -2132,7 +2147,8 @@ export default {
this
.
editForm
,
this
.
addMsg
,
this
.
friendValue
,
this
.
ContractArray
this
.
ContractArray
,
this
.
customers
);
this
.
apipost
(
"post_SetTeavelTeam"
,
...
...
src/components/TravelManager/TravelTeam/test.vue
0 → 100644
View file @
7f5135b3
<
template
></templat>
<style><style>
<script></script>
\ No newline at end of file
src/components/TravelManager/TravelTeam/travelTeamList.vue
View file @
7f5135b3
...
...
@@ -139,10 +139,19 @@
</el-pagination>
</div>
</div>
<el-dialog
class=
"app-attachment-dialog"
style=
"width:1000px;height:800px;margin:0 auto;z-index:99999"
:title=
"ID ? '修改包机' : '新增包机'"
:visible
.
sync=
"dialogVisible"
:close-on-click-modal=
"false"
>
<addInfo
:id=
"ID"
></addInfo>
<apply-info></apply-info>
</el-dialog>
</div>
</template>
<
script
>
import
addInfo
from
"./addInfo"
;
import
applyInfo
from
"./apply"
;
export
default
{
components
:
{
addInfo
,
applyInfo
},
provide
()
{
return
{
reload
:
this
.
reload
...
...
@@ -150,6 +159,8 @@
},
data
()
{
return
{
dialogVisible
:
false
,
ID
:
''
,
//查询参数
queryMsg
:
{
pageIndex
:
1
,
...
...
@@ -201,6 +212,11 @@
},
methods
:
{
goUrl
(
path
,
id
,
name
)
{
if
(
path
===
'airplaneInfo'
)
{
this
.
ID
=
id
this
.
dialogVisible
=
true
return
}
this
.
$router
.
push
({
name
:
path
,
query
:
{
...
...
@@ -211,9 +227,11 @@
});
},
addAirplane
()
{
this
.
$router
.
push
({
name
:
'airplaneInfo'
,
});
this
.
ID
=
0
this
.
dialogVisible
=
true
// this.$router.push({
// name: 'airplaneInfo',
// });
},
//翻页
handleCurrentChange
(
val
)
{
...
...
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