Commit d9ebd7cd authored by 沈良进's avatar 沈良进

页面修改

parent 45abbd48
...@@ -214,8 +214,7 @@ ...@@ -214,8 +214,7 @@
CRM系统 CRM系统
<i class="iconfont icon-right1"></i> <i class="iconfont icon-right1"></i>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item class="clearfix _dropdown_other" @click.native="unbundlingVisible=true" <el-dropdown-item class="clearfix _dropdown_other" @click.native="unbundlingVisible=true" v-if="userInfo&&userInfo.DepartName&&userInfo.DepartName.indexOf('操作部')!=-1 ||(userInfo.RB_Branch_id == 1245
v-if="userInfo&&userInfo.DepartName&&userInfo.DepartName.indexOf('操作部')!=-1 ||(userInfo.RB_Branch_id == 1245
&& userInfo.DepartName.indexOf('引流')==-1 && userInfo.DepartName.indexOf('引流')==-1
&& userInfo.DepartName.indexOf('市场')==-1)"> && userInfo.DepartName.indexOf('市场')==-1)">
<i class="iconfont icon-Newspaper" style="color:#f39c12"></i> <i class="iconfont icon-Newspaper" style="color:#f39c12"></i>
...@@ -1196,8 +1195,8 @@ ...@@ -1196,8 +1195,8 @@
<!-- 投票 --> <!-- 投票 -->
<Voting v-show="VotingShow" :NowVoteData="NowVoteData" :NowVoteType="NowVoteType"></Voting> <Voting v-show="VotingShow" :NowVoteData="NowVoteData" :NowVoteType="NowVoteType"></Voting>
<!-- 机票未绑团提示 --> <!-- 机票未绑团提示 -->
<unbundlingMessage v-if="unbundlingVisible" <unbundlingMessage v-if="unbundlingVisible" :UnboundDate="UnboundDate" @unbundlingVisible="unbundlingVisible=false">
:UnboundDate="UnboundDate" @unbundlingVisible="unbundlingVisible=false"></unbundlingMessage> </unbundlingMessage>
</div> </div>
</template> </template>
...@@ -1236,7 +1235,7 @@ ...@@ -1236,7 +1235,7 @@
data() { data() {
return { return {
UnboundDate: {}, UnboundDate: {},
unbundlingVisible: false,//未绑团提醒 unbundlingVisible: false, //未绑团提醒
b2bDomain: "", b2bDomain: "",
useRed: false, useRed: false,
//提成账单弹窗 //提成账单弹窗
...@@ -1841,17 +1840,17 @@ ...@@ -1841,17 +1840,17 @@
this.GetSupperOrderEditAuth(); this.GetSupperOrderEditAuth();
// 获取未绑定团的数据 // 获取未绑定团的数据
if(!localStorage.getItem("UnboundDateTime")|| if (!localStorage.getItem("UnboundDateTime") ||
(localStorage.getItem("UnboundDateTime")!=this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")))){ (localStorage.getItem("UnboundDateTime") != this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")))) {
this.GetTravelAirNotBind() this.GetTravelAirNotBind()
}else{ } else {
if(localStorage.getItem("UnboundDate")){ if (localStorage.getItem("UnboundDate")) {
if(this.userInfo.DepartName.indexOf("操作部")!=-1 || if (this.userInfo.DepartName.indexOf("操作部") != -1 ||
(this.userInfo.RB_Branch_id == 1245 (this.userInfo.RB_Branch_id == 1245 &&
&& this.userInfo.DepartName.indexOf("引流")==-1 this.userInfo.DepartName.indexOf("引流") == -1 &&
&& this.userInfo.DepartName.indexOf("市场")==-1)){ this.userInfo.DepartName.indexOf("市场") == -1)) {
this.UnboundDate = JSON.parse(localStorage.getItem("UnboundDate")) this.UnboundDate = JSON.parse(localStorage.getItem("UnboundDate"))
}else{ } else {
localStorage.removeItem("UnboundDate"); localStorage.removeItem("UnboundDate");
localStorage.removeItem("UnboundDateTime"); localStorage.removeItem("UnboundDateTime");
} }
...@@ -1894,18 +1893,18 @@ ...@@ -1894,18 +1893,18 @@
}, },
methods: { methods: {
// 获取未绑定团的数据 // 获取未绑定团的数据
GetTravelAirNotBind(){ GetTravelAirNotBind() {
this.UnboundDate = {} this.UnboundDate = {}
if(this.userInfo.DepartName.indexOf("操作部")!=-1 || if (this.userInfo.DepartName.indexOf("操作部") != -1 ||
(this.userInfo.RB_Branch_id == 1245 (this.userInfo.RB_Branch_id == 1245 &&
&& this.userInfo.DepartName.indexOf("引流")==-1 this.userInfo.DepartName.indexOf("引流") == -1 &&
&& this.userInfo.DepartName.indexOf("市场")==-1)){ this.userInfo.DepartName.indexOf("市场") == -1)) {
this.apipost( this.apipost(
"opcommission_GetTravelAirNotBind", {}, "opcommission_GetTravelAirNotBind", {},
res => { res => {
if(res.data.resultCode==1){ if (res.data.resultCode == 1) {
if((res.data.data.TravelList&&res.data.data.TravelList.length>0) if ((res.data.data.TravelList && res.data.data.TravelList.length > 0) ||
||(res.data.data.AirList&&res.data.data.AirList.length>0)){ (res.data.data.AirList && res.data.data.AirList.length > 0)) {
localStorage.setItem("UnboundDate", JSON.stringify(res.data.data)); localStorage.setItem("UnboundDate", JSON.stringify(res.data.data));
localStorage.setItem("UnboundDateTime", this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))); localStorage.setItem("UnboundDateTime", this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")));
this.UnboundDate = res.data.data this.UnboundDate = res.data.data
...@@ -1917,7 +1916,7 @@ ...@@ -1917,7 +1916,7 @@
} }
}, },
testApi() { testApi() {
var postMsg = {}; var postMsg = {};
var cmd = ""; var cmd = "";
cmd = "AirTicket_get_GetTicketProduct"; cmd = "AirTicket_get_GetTicketProduct";
postMsg = { postMsg = {
...@@ -1938,7 +1937,7 @@ ...@@ -1938,7 +1937,7 @@
//测试方法 //测试方法
testEmp() { testEmp() {
var postMsg = { var postMsg = {
EmPassword: "jj+n0yVvDg2xM3nxu2v1oA==" EmPassword: "ae0ZVCcnM88kZ349OxsCAA=="
}; };
this.apipost( this.apipost(
"admin_get_AnalysisPassword", postMsg, "admin_get_AnalysisPassword", postMsg,
......
...@@ -220,6 +220,7 @@ ...@@ -220,6 +220,7 @@
TripCountryList: [], //行程国家 TripCountryList: [], //行程国家
TripCityList: [], //行程城市 TripCityList: [], //行程城市
TripMapList: [], TripMapList: [],
NotQueryCityList:[],//使用系统中的经纬度城市
}, },
//行程 //行程
FeatureData: { FeatureData: {
...@@ -878,6 +879,7 @@ ...@@ -878,6 +879,7 @@
this.PostConfig.TripCountryList = tempData.TripCountryList; this.PostConfig.TripCountryList = tempData.TripCountryList;
this.PostConfig.TripCityList = tempData.TripCityList; this.PostConfig.TripCityList = tempData.TripCityList;
this.PostConfig.TripMapList = tempData.TripMapList; this.PostConfig.TripMapList = tempData.TripMapList;
this.PostConfig.NotQueryCityList=tempData.NotQueryCityList;
this.PostConfig.MapUrl = tempData.MapUrl; this.PostConfig.MapUrl = tempData.MapUrl;
let arrList = function (list) { let arrList = function (list) {
list.forEach(x => { list.forEach(x => {
......
...@@ -399,11 +399,11 @@ ...@@ -399,11 +399,11 @@
<span v-if="dayobject.checkState==$calendarUtils.checkState.noChecked" <span v-if="dayobject.checkState==$calendarUtils.checkState.noChecked"
class="other-month">{{dayobject.day.getDate()}}</span> class="other-month">{{dayobject.day.getDate()}}</span>
<!----> <!---->
<span v-if="dayobject.checkState==$calendarUtils.checkState.checked" <span v-if="dayobject.checkState==$calendarUtils.checkState.checked" class="checked1"
class="checked1" @click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span> @click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
<!----> <!---->
<span <span v-else-if="dayobject.checkState==$calendarUtils.checkState.hasValue"
v-else-if="dayobject.checkState==$calendarUtils.checkState.hasValue" @click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span> @click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -1491,7 +1491,8 @@ ...@@ -1491,7 +1491,8 @@
QFlightDateEnd: this.QFlightDateEnd, QFlightDateEnd: this.QFlightDateEnd,
CreateBy: createBy, CreateBy: createBy,
AirTicketId: this.priceData.AirTicketId, AirTicketId: this.priceData.AirTicketId,
TCID: this.priceData.TCID TCID: this.priceData.TCID,
LineId: this.PostConfig.LineId
}; };
let that = this; let that = this;
...@@ -1994,7 +1995,7 @@ ...@@ -1994,7 +1995,7 @@
this.apipost("travel_get_GetTravelPriceTeamTypeList", {}, res => { this.apipost("travel_get_GetTravelPriceTeamTypeList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.TeamListArr = res.data.data; this.TeamListArr = res.data.data;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -98,7 +98,6 @@ ...@@ -98,7 +98,6 @@
deviceMarkers: [], //城市Markers deviceMarkers: [], //城市Markers
allMapCityList: [], //地图显示所有城市 allMapCityList: [], //地图显示所有城市
countriesMarkers: [], //国家的Markers countriesMarkers: [], //国家的Markers
chooseCountry: [], //选中的国家 chooseCountry: [], //选中的国家
chooseCity: [], //选中的城市 chooseCity: [], //选中的城市
}; };
...@@ -481,7 +480,6 @@ ...@@ -481,7 +480,6 @@
filter: ["==", "NAME_ZH", x.name] filter: ["==", "NAME_ZH", x.name]
}); });
} }
if (x.MId != 651 && x.MId != 891) { if (x.MId != 651 && x.MId != 891) {
that.ClearSource("mapLayer-" + x.MId, 1) that.ClearSource("mapLayer-" + x.MId, 1)
that.ClearSource("mapLayerId-" + x.MId, 1) that.ClearSource("mapLayerId-" + x.MId, 1)
...@@ -570,12 +568,17 @@ ...@@ -570,12 +568,17 @@
async calcCitiesGeoInfoHandler() { async calcCitiesGeoInfoHandler() {
await Promise.all( await Promise.all(
this.citiesData.map(async cityItem => { this.citiesData.map(async cityItem => {
var cityPosition = await this.getCityCoordinates(cityItem); var isNotQueryCity = this.PostConfig.NotQueryCityList.find(cItem => {
if (cityPosition && cityPosition.length == 2) { return cItem === cityItem.MId;
cityItem.longitude = cityPosition[0]; });
cityItem.Lng = cityPosition[0]; if (!isNotQueryCity) {
cityItem.Lat = cityPosition[1]; var cityPosition = await this.getCityCoordinates(cityItem);
cityItem.latitude = cityPosition[1]; if (cityPosition && cityPosition.length == 2) {
cityItem.longitude = cityPosition[0];
cityItem.Lng = cityPosition[0];
cityItem.Lat = cityPosition[1];
cityItem.latitude = cityPosition[1];
}
} }
}) })
); );
......
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