Commit 2949a76b authored by 黄奎's avatar 黄奎

页面修改

parent a6c7ada4
...@@ -291,8 +291,8 @@ ...@@ -291,8 +291,8 @@
<text style="margin-left: 20rpx;">{{currentBrachName}}</text> <text style="margin-left: 20rpx;">{{currentBrachName}}</text>
</view> </view>
<view style="width: 1px; flex: 1;"> <view style="width: 1px; flex: 1;">
<u-search placeholder="目的地名称" v-model="searchKey" input-align="left" :value="searchKey" text-color="#111" bg-color="rgba(0,0,0,0)" <u-search placeholder="目的地名称" v-model="msg.searchKey" input-align="left" :value="msg.searchKey" text-color="#111"
:show-action="false"></u-search> bg-color="rgba(0,0,0,0)" :show-action="false"></u-search>
</view> </view>
</view> </view>
<view> <view>
...@@ -314,7 +314,6 @@ ...@@ -314,7 +314,6 @@
</view> </view>
</template> </template>
</scroll-view> </scroll-view>
<view style="box-shadow: 0px -10px 30px 0px rgba(36, 36, 36, 0.06);margin-top:40rpx;display: flex;"> <view style="box-shadow: 0px -10px 30px 0px rgba(36, 36, 36, 0.06);margin-top:40rpx;display: flex;">
<view style="flex:1;margin-right: 30rpx;"> <view style="flex:1;margin-right: 30rpx;">
<u-button :custom-style="btnStyle" @click="clearTeams">清除</u-button> <u-button :custom-style="btnStyle" @click="clearTeams">清除</u-button>
...@@ -363,7 +362,7 @@ ...@@ -363,7 +362,7 @@
</view> </view>
</view> </view>
</u-dropdown-item> </u-dropdown-item>
<u-dropdown-item v-model="msg.startCity" :title="optionsTitle[3]" :options="startCitys" @change="changeStartCity"> <u-dropdown-item v-model="msg.startCityId" :title="optionsTitle[3]" :options="startCitys" @change="changeStartCity">
</u-dropdown-item> </u-dropdown-item>
</u-dropdown> </u-dropdown>
</view> </view>
...@@ -428,8 +427,9 @@ ...@@ -428,8 +427,9 @@
days: ['<100'], days: ['<100'],
startDate: '', startDate: '',
endDate: '', endDate: '',
startCity: -1, startCityId: -1,
branchId: 0 companyId: 0,
searchKey: '', //搜索数据
}, },
time: '', time: '',
params: { params: {
...@@ -456,7 +456,7 @@ ...@@ -456,7 +456,7 @@
background: "#111" background: "#111"
}, },
dataList: [], //数据 dataList: [], //数据
searchKey: '', //搜索数据
value1: 1, value1: 1,
isShowDate: false, isShowDate: false,
orderBys: [], orderBys: [],
...@@ -528,13 +528,12 @@ ...@@ -528,13 +528,12 @@
this.apipost( this.apipost(
"b2b_get_GetMiniAppTravelQuery", {}, "b2b_get_GetMiniAppTravelQuery", {},
res => { res => {
console.log("res", res);
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.orderBys = res.data.OrderByList; this.orderBys = res.data.OrderByList;
this.branchList = res.data.SiteList; this.branchList = res.data.SiteList;
this.startCitys = res.data.CityList; this.startCitys = res.data.CityList;
this.lineList = res.data.linePlaceList; this.lineList = res.data.linePlaceList;
this.msg.branchId = this.branchList[0].BId this.msg.companyId = this.branchList[0].BId
this.currentBrachName = this.branchList[0].BName this.currentBrachName = this.branchList[0].BName
} }
}, },
...@@ -542,7 +541,7 @@ ...@@ -542,7 +541,7 @@
); );
}, },
changeBranch(val) { changeBranch(val) {
this.msg.branchId = this.branchList[val].BId this.msg.companyId = this.branchList[val].BId
this.currentBrachName = this.branchList[val].BName this.currentBrachName = this.branchList[val].BName
}, },
setDays(day) { setDays(day) {
...@@ -588,6 +587,7 @@ ...@@ -588,6 +587,7 @@
this.optionsTitle[2] = temp == '' ? '天数日期' : temp this.optionsTitle[2] = temp == '' ? '天数日期' : temp
this.$forceUpdate() this.$forceUpdate()
this.$refs.uDropdown.close(); this.$refs.uDropdown.close();
this.research();
}, },
chosenDateResult(obj) { chosenDateResult(obj) {
this.msg.startDate = obj.start; this.msg.startDate = obj.start;
...@@ -616,6 +616,7 @@ ...@@ -616,6 +616,7 @@
} }
this.$forceUpdate() this.$forceUpdate()
this.$refs.uDropdown.close(); this.$refs.uDropdown.close();
this.research();
}, },
setTeams(x, y) { setTeams(x, y) {
let id = this.lineList[x].Teams[y].TeamId let id = this.lineList[x].Teams[y].TeamId
...@@ -625,7 +626,7 @@ ...@@ -625,7 +626,7 @@
} else { } else {
this.msg.team.splice(temp, 1) this.msg.team.splice(temp, 1)
} }
this.$forceUpdate() this.$forceUpdate();
}, },
changeOrderBy(index) { changeOrderBy(index) {
let temp = this.orderBys.find(x => { let temp = this.orderBys.find(x => {
...@@ -638,6 +639,7 @@ ...@@ -638,6 +639,7 @@
this.optionsTitle[0] = temp.label this.optionsTitle[0] = temp.label
this.msg.orderBy = temp.value this.msg.orderBy = temp.value
this.$forceUpdate() this.$forceUpdate()
this.research();
}, },
changeStartCity(index) { changeStartCity(index) {
if (index == -1) { if (index == -1) {
...@@ -655,6 +657,7 @@ ...@@ -655,6 +657,7 @@
this.msg.startCity = temp.value this.msg.startCity = temp.value
} }
this.$forceUpdate() this.$forceUpdate()
this.research();
}, },
open(index) { open(index) {
this.$refs.uDropdown.highlight(); this.$refs.uDropdown.highlight();
...@@ -662,8 +665,14 @@ ...@@ -662,8 +665,14 @@
close(index) { close(index) {
this.$refs.uDropdown.highlight(index); this.$refs.uDropdown.highlight(index);
}, },
research() {
this.msg.pageIndex = 1;
this.dataLis = [];
this.getList();
},
//获取数据 //获取数据
getList() { getList() {
console.log("this.msg", this.msg);
this.apipost( this.apipost(
"b2b_get_GetB2BTravelPageList", "b2b_get_GetB2BTravelPageList",
this.msg, this.msg,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment