Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_electricity
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
jz_electricity
Commits
8dfdd6f9
Commit
8dfdd6f9
authored
May 25, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
2442d7bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
2 deletions
+55
-2
choiceDmc.vue
src/components/common/choiceDmc.vue
+55
-2
No files found.
src/components/common/choiceDmc.vue
View file @
8dfdd6f9
...
...
@@ -5,8 +5,9 @@
<el-tab-pane
label=
"酒店"
name=
"1"
></el-tab-pane>
<el-tab-pane
label=
"餐食"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"门票"
name=
"3"
></el-tab-pane>
<el-tab-pane
label=
"车"
name=
"4"
></el-tab-pane>
</el-tabs>
<el-input
size=
"mini"
v-model=
"msg.Name"
placeholder=
"根据名称搜索"
:clearable=
"true"
<el-input
size=
"mini"
v-
if=
"activeName!='4'"
v-
model=
"msg.Name"
placeholder=
"根据名称搜索"
:clearable=
"true"
@
clear=
"msg.pageIndex=1,getCommonSerch()"
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getCommonSerch()"
>
<el-button
slot=
"append"
@
click=
"msg.pageIndex=1,getCommonSerch()"
>
搜索
</el-button>
</el-input>
...
...
@@ -94,6 +95,30 @@
</el-table-column>
</el-table>
</template>
<
template
v-if=
"activeName=='4'"
>
<el-table
ref=
"multipleTable"
:data=
"dataList"
tooltip-effect=
"dark"
height=
"450"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange4"
>
<template
v-if=
"isSingle"
>
<el-table-column
width=
"50px"
label=
""
>
<template
slot-scope=
"scope"
>
<el-radio
v-model=
"scope.row.IsChecked"
@
change
.
native=
"getTemplateRow(scope.$index,scope.row)"
>
</el-radio>
</
template
>
</el-table-column>
</template>
<
template
v-else
>
<el-table-column
type=
"selection"
width=
"50px"
>
</el-table-column>
</
template
>
<el-table-column
label=
"Id"
width=
"80px"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
Id
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"StartCityName"
label=
"出发城市"
>
</el-table-column>
<el-table-column
prop=
"ArriveCityName"
label=
"到达城市"
>
</el-table-column>
</el-table>
</template>
<el-pagination
style=
"text-align:center"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
...
...
@@ -112,12 +137,18 @@
GoodsStatus
:
1
,
//上架中
IsGetSpec
:
0
},
carMsg
:{
pageIndex
:
1
,
pageSize
:
15
,
ProductState
:
1
},
activeName
:
"1"
,
total
:
0
,
selectRow
:[],
selectRow1
:
[],
selectRow2
:[],
selectRow3
:[],
selectRow4
:[]
};
},
created
()
{
...
...
@@ -138,6 +169,9 @@
if
(
this
.
activeName
==
'3'
){
this
.
getTicket
();
}
if
(
this
.
activeName
==
'4'
){
this
.
getCarsz
();
}
},
//搜索
getCommonSerch
()
{
...
...
@@ -150,6 +184,10 @@
if
(
this
.
activeName
==
'3'
){
this
.
getTicket
();
}
if
(
this
.
activeName
==
'4'
){
this
.
getCarsz
();
}
},
//获取酒店分页
getHotelPage
()
{
...
...
@@ -177,6 +215,9 @@
handleSelectionChange3
(
val
){
this
.
selectRow3
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
},
handleSelectionChange4
(
val
){
this
.
selectRow4
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
},
//获取餐食分页
getDinnerPage
()
{
this
.
apipost
(
"/api/AppletDining/GetDiningPage"
,
this
.
msg
,
res
=>
{
...
...
@@ -210,6 +251,18 @@
this
.
Error
(
res
.
data
.
message
);
}
})
},
//获取车 列表
getCarsz
(){
this
.
apipost
(
"/api/carcustom/GetLineProductPageList"
,
this
.
carMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
var
tempArray
=
res
.
data
.
data
.
pageData
;
this
.
dataList
=
JSON
.
parse
(
JSON
.
stringify
(
tempArray
));
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
},
getTemplateRow
(
index
,
row
)
{
this
.
selectRow
=
[];
...
...
@@ -229,7 +282,7 @@
//父组件调用方法
getChoicedDijie
()
{
this
.
selectRow
=
[];
this
.
selectRow
=
this
.
selectRow
.
concat
(
this
.
selectRow1
).
concat
(
this
.
selectRow2
).
concat
(
this
.
selectRow3
)
;
this
.
selectRow
=
this
.
selectRow
.
concat
(
this
.
selectRow1
).
concat
(
this
.
selectRow2
).
concat
(
this
.
selectRow3
)
.
concat
(
this
.
selectRow4
)
;
return
this
.
selectRow
;
},
//清空多选方法
...
...
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