Commit 51d2cb29 authored by 黄奎's avatar 黄奎

页面修

parent c814c41d
......@@ -74,9 +74,11 @@
if (localStorage.groupinfo) {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId;
this.getSite();
this.getConfigData();
} else {
this.getGroupData();
this.getSite();
//获取网站基础配置
if (localStorage.baseifo) {
var jObj = JSON.parse(window.localStorage.getItem('baseifo'));
......@@ -94,6 +96,21 @@
changeHeadHandler(t) {
this.headType = t;
},
getSite()
{
this.apipost(
"b2b_get_site", {},
res => {
if (res.data.resultCode == 1) {
var jsonData = JSON.stringify(res.data.data);
window.localStorage.setItem("site", jsonData);
}
},
err => {}
);
},
//获取集团数据
getGroupData() {
let locationName = window.location.hostname;
......
......@@ -570,10 +570,11 @@
:label="$t('search')" @focus="searchFocusHandler" @blur="searchBlurHandler" @keyup="searchChangeHandler" />
</div>
<div class="col-2">
<q-input filled v-model="qMsg.startDate" mask="date" >
<q-input filled v-model="qMsg.startDate" mask="date">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qStartDateProxy" transition-show="scale" transition-hide="scale" @input="changeData">
<q-popup-proxy ref="qStartDateProxy" transition-show="scale" transition-hide="scale"
@input="changeData">
<q-date v-model="qMsg.startDate" @input="() => $refs.qStartDateProxy.hide()" />
</q-popup-proxy>
</q-icon>
......@@ -715,7 +716,8 @@
class="keyword-input">
</div>
<div class="sortDiv">
<q-select filled style="width:50%" v-model="sortNum" :options="sortArray" emit-value map-options @input="changeData" />
<q-select filled style="width:50%" v-model="sortNum" :options="sortArray" emit-value map-options
@input="changeData" />
<div class="sortShaixuan" @click="fullHeight = true">更多篩選條件</div>
</div>
</div>
......@@ -782,11 +784,12 @@
</div>
</div>
<div v-show="tab=='kw'" class="q-mb-md">
<q-input filled id="search_key" v-model="qMsg.searchKey" @input="changeData" class="bg-grey-1" :label="$t('search')" />
<q-input filled id="search_key" v-model="qMsg.searchKey" @input="changeData" class="bg-grey-1"
:label="$t('search')" />
</div>
<div class="q-mb-md row">
<div class="col">
<q-input filled v-model="searchDate" :label="$t('search_date_begin')" mask="date" class="bg-grey-1" >
<q-input filled v-model="searchDate" :label="$t('search_date_begin')" mask="date" class="bg-grey-1">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy" @input="changeData">
......@@ -799,7 +802,7 @@
</div>
<div class="split-word bg-grey-3 q-pl-xs q-pr-xs"></div>
<div class="col">
<q-input filled v-model="searchEndDate" :label="$t('search_date_end')" mask="date" class="bg-grey-1" >
<q-input filled v-model="searchEndDate" :label="$t('search_date_end')" mask="date" class="bg-grey-1">
<template v-slot:append>
<q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy" @input="changeData">
......@@ -970,7 +973,7 @@
//查询参数
qMsg: {
cityId: 0,
companyId: 0,
companyId: -1,
startDate: "", //开始日期
endDate: "", //结束日期
lineId: 0, //线路编号
......@@ -987,8 +990,8 @@
priceOrderByField: 4,
searchKey: "",
startCityId: 0,
PageCount:0,
TotalCount:0,
PageCount: 0,
TotalCount: 0,
},
ShowType: 0, //显示样式(0-豆腐格,1-列表)
//行程列表
......@@ -1088,6 +1091,11 @@
return false
}
}
var companyId = -1;
if (localStorage.site) {
var siteArray = JSON.parse(localStorage.site);
companyId = siteArray[0].companyId;
}
let msg = {
pageIndex: this.qMsg.pageIndex,
pageSize: this.qMsg.pageSize,
......@@ -1105,7 +1113,7 @@
orderByPrice: this.sortNum == 2 ? 1 : (this.sortNum == 3 ? 2 : 0),
orderByDay: this.sortNum == 6 ? 1 : (this.sortNum == 7 ? 2 : 0),
priceOrderByField: 4,
companyId: 0,
companyId: companyId,
orderBySales: 0,
startCityId: this.qMsg.startCityId,
weekDayList: this.WeekDay,
......
......@@ -92,7 +92,7 @@
return {
loginMsg: {
RB_Group_Id: 0,
account: "15286963456",
account: "13022941970",
password: "123456"
},
logo:'',
......
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