Commit a068d544 authored by duxinyuan's avatar duxinyuan

修改城市等一系列问题

parent 1caffb1f
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
if(!doc.addEventListener) return; if(!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false); win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false); doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);</script><link href=./static/css/app.39f795a97b9d3a3d245aa92a524e3957.css rel=stylesheet></head><body><div id=app></div><script src=https://api.tonglianjituan.com/app/js/libs/vue.min.js></script><script src=https://api.tonglianjituan.com/app/js/libs/vue-router.min.js></script><script type=text/javascript src=./static/js/manifest.618297d5d87c12aecbc2.js></script><script type=text/javascript src=./static/js/vendor.3600b44fe6619ee9b1e3.js></script><script type=text/javascript src=./static/js/app.42d2a9e2edc07f983bea.js></script></body></html> })(document, window);</script><link href=./static/css/app.39f795a97b9d3a3d245aa92a524e3957.css rel=stylesheet></head><body><div id=app></div><script src=https://api.tonglianjituan.com/app/js/libs/vue.min.js></script><script src=https://api.tonglianjituan.com/app/js/libs/vue-router.min.js></script><script type=text/javascript src=./static/js/manifest.a33a91282473eb98d3a2.js></script><script type=text/javascript src=./static/js/vendor.3600b44fe6619ee9b1e3.js></script><script type=text/javascript src=./static/js/app.42d2a9e2edc07f983bea.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,n,r){for(var t,o,b,i=0,u=[];i<a.length;i++)o=a[i],d[o]&&u.push(d[o][0]),d[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(a,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=f(f.s=r[i]);return b};var a={},d={40:0};function f(c){if(a[c])return a[c].exports;var d=a[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,f),d.l=!0,d.exports}f.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=d[e]=[a,f]});c[2]=a;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,f.nc&&r.setAttribute("nonce",f.nc),r.src=f.p+"static/js/"+e+"."+{0:"89eeecb9009578a968aa",1:"77e0ddc25afb97e76fe9",2:"9ec6f71d015f53277bd8",3:"78063eecd53351b6ac96",4:"e2c5e9d3c33c66f1fbaf",5:"4b7f2ab58185b97d9980",6:"639843057f593b34f8d1",7:"35741a6c1c8bde93a988",8:"129ae98069a9feeca09b",9:"36ba90108833c43f7563",10:"92c55887933ddeb7ceed",11:"ee89b21cd07c27508e00",12:"d405a77ef7666052ebdb",13:"4521d0b390991e6a8eac",14:"f8f1d899f4e4ea443ddb",15:"aefd686509c5a688ca89",16:"63f45f7dd9394b6c989e",17:"5f6f4750e0b7cc8b568d",18:"5e0ca94ad4cc90ad2d43",19:"882c78c16f3ee60f9323",20:"a147f13d57faef890d23",21:"26d02ef838bee32ab6b7",22:"eeefe7d0df630428f676",23:"c1e8d59269f02ef6a604",24:"963ecd9ae8ba894a600c",25:"5183d776154689db138f",26:"c2dc9f7558dc2a6602a9",27:"ddd33dcd4011e201c667",28:"e03dcd352b7101f2fd1a",29:"1377f71038e27473c189",30:"b57749e5787c44428e1e",31:"e42211ca27047e61675c",32:"435e19a6ab406f0b1f98",33:"f222dd11902a1dde25ee",34:"a7e464772435a5d98ced",35:"ed57790e0bd38b322784",36:"9f6076477a7e038fef53",37:"bc77f503df52d22502a2"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),a},f.m=e,f.c=a,f.d=function(e,c,a){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,d){for(var t,o,b,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);for(c&&c(a,r,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)b=n(n.s=d[i]);return b};var a={},f={40:0};function n(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,n.nc&&d.setAttribute("nonce",n.nc),d.src=n.p+"static/js/"+e+"."+{0:"89eeecb9009578a968aa",1:"77c4fa090e96ab2cfbff",2:"9ec6f71d015f53277bd8",3:"78063eecd53351b6ac96",4:"e2c5e9d3c33c66f1fbaf",5:"4b7f2ab58185b97d9980",6:"639843057f593b34f8d1",7:"35741a6c1c8bde93a988",8:"129ae98069a9feeca09b",9:"36ba90108833c43f7563",10:"92c55887933ddeb7ceed",11:"ee89b21cd07c27508e00",12:"d405a77ef7666052ebdb",13:"4521d0b390991e6a8eac",14:"f8f1d899f4e4ea443ddb",15:"aefd686509c5a688ca89",16:"63f45f7dd9394b6c989e",17:"5f6f4750e0b7cc8b568d",18:"5e0ca94ad4cc90ad2d43",19:"882c78c16f3ee60f9323",20:"a147f13d57faef890d23",21:"26d02ef838bee32ab6b7",22:"eeefe7d0df630428f676",23:"c1e8d59269f02ef6a604",24:"963ecd9ae8ba894a600c",25:"5183d776154689db138f",26:"c2dc9f7558dc2a6602a9",27:"ddd33dcd4011e201c667",28:"e03dcd352b7101f2fd1a",29:"1377f71038e27473c189",30:"b57749e5787c44428e1e",31:"e42211ca27047e61675c",32:"435e19a6ab406f0b1f98",33:"f222dd11902a1dde25ee",34:"a7e464772435a5d98ced",35:"ed57790e0bd38b322784",36:"9f6076477a7e038fef53",37:"bc77f503df52d22502a2"}[e]+".js";var t=setTimeout(o,12e4);function o(){d.onerror=d.onload=null,clearTimeout(t);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return d.onerror=d.onload=o,r.appendChild(d),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,d){for(var t,o,b,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);for(c&&c(a,r,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)b=n(n.s=d[i]);return b};var a={},f={40:0};function n(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,n.nc&&d.setAttribute("nonce",n.nc),d.src=n.p+"static/js/"+e+"."+{0:"89eeecb9009578a968aa",1:"33f50435669b18f18c18",2:"9ec6f71d015f53277bd8",3:"78063eecd53351b6ac96",4:"e2c5e9d3c33c66f1fbaf",5:"4b7f2ab58185b97d9980",6:"639843057f593b34f8d1",7:"35741a6c1c8bde93a988",8:"129ae98069a9feeca09b",9:"36ba90108833c43f7563",10:"92c55887933ddeb7ceed",11:"ee89b21cd07c27508e00",12:"d405a77ef7666052ebdb",13:"4521d0b390991e6a8eac",14:"f8f1d899f4e4ea443ddb",15:"aefd686509c5a688ca89",16:"63f45f7dd9394b6c989e",17:"5f6f4750e0b7cc8b568d",18:"5e0ca94ad4cc90ad2d43",19:"882c78c16f3ee60f9323",20:"a147f13d57faef890d23",21:"26d02ef838bee32ab6b7",22:"eeefe7d0df630428f676",23:"c1e8d59269f02ef6a604",24:"963ecd9ae8ba894a600c",25:"5183d776154689db138f",26:"c2dc9f7558dc2a6602a9",27:"ddd33dcd4011e201c667",28:"e03dcd352b7101f2fd1a",29:"1377f71038e27473c189",30:"b57749e5787c44428e1e",31:"e42211ca27047e61675c",32:"435e19a6ab406f0b1f98",33:"f222dd11902a1dde25ee",34:"a7e464772435a5d98ced",35:"ed57790e0bd38b322784",36:"9f6076477a7e038fef53",37:"bc77f503df52d22502a2"}[e]+".js";var t=setTimeout(o,12e4);function o(){d.onerror=d.onload=null,clearTimeout(t);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return d.onerror=d.onload=o,r.appendChild(d),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,n,r){for(var t,o,b,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(a,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=d(d.s=r[i]);return b};var a={},f={40:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"89eeecb9009578a968aa",1:"dc0550640d323d7a9c06",2:"9ec6f71d015f53277bd8",3:"78063eecd53351b6ac96",4:"e2c5e9d3c33c66f1fbaf",5:"4b7f2ab58185b97d9980",6:"ccabf6b0f8ff2f04c3b7",7:"35741a6c1c8bde93a988",8:"129ae98069a9feeca09b",9:"36ba90108833c43f7563",10:"92c55887933ddeb7ceed",11:"ee89b21cd07c27508e00",12:"d405a77ef7666052ebdb",13:"4521d0b390991e6a8eac",14:"f8f1d899f4e4ea443ddb",15:"aefd686509c5a688ca89",16:"63f45f7dd9394b6c989e",17:"5f6f4750e0b7cc8b568d",18:"5e0ca94ad4cc90ad2d43",19:"882c78c16f3ee60f9323",20:"a147f13d57faef890d23",21:"26d02ef838bee32ab6b7",22:"eeefe7d0df630428f676",23:"c1e8d59269f02ef6a604",24:"963ecd9ae8ba894a600c",25:"5183d776154689db138f",26:"c2dc9f7558dc2a6602a9",27:"ddd33dcd4011e201c667",28:"e03dcd352b7101f2fd1a",29:"1377f71038e27473c189",30:"b57749e5787c44428e1e",31:"e42211ca27047e61675c",32:"435e19a6ab406f0b1f98",33:"f222dd11902a1dde25ee",34:"a7e464772435a5d98ced",35:"ed57790e0bd38b322784",36:"9f6076477a7e038fef53",37:"bc77f503df52d22502a2"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -58,12 +58,12 @@ ...@@ -58,12 +58,12 @@
<achieve-fork-li-new :data="item2" :dataindex="index2" :moreShow="false" :dataValue="1"></achieve-fork-li-new> <achieve-fork-li-new :data="item2" :dataindex="index2" :moreShow="false" :dataValue="1"></achieve-fork-li-new>
</li> </li>
<li class="self-achieve-li" v-if="(item.listData.length>0) && (mainData[index].selfData)"> <li class="self-achieve-li" v-if="(item.listData.length>0) && (mainData[index].selfData)">
<achieve-fork-li-new :data="mainData[index].selfData" :dataindex="mainData[index].selfData.index_-1"></achieve-fork-li-new> <achieve-fork-li-new :data="mainData[index].selfData" :dataindex="mainData[index].selfData.index_-1" :boss="1"></achieve-fork-li-new>
</li> </li>
</ul> </ul>
<ul v-show="initTabNumMain === 2"> <ul v-show="initTabNumMain === 2">
<li v-for="(item2, index2) in item.listData"> <li v-for="(item2, index2) in item.listData">
<achieve-fork-li-new :data="item2" :dataindex="index2" :moreShow="true" :dataValue="2"></achieve-fork-li-new> <achieve-fork-li-new :data="item2" :dataindex="index2" :moreShow="true" :dataValue="2" :boss="isboss"></achieve-fork-li-new>
</li> </li>
</ul> </ul>
<div class="no-data-block" v-show="item.listData.length===0">暂无数据...</div> <div class="no-data-block" v-show="item.listData.length===0">暂无数据...</div>
...@@ -142,7 +142,8 @@ ...@@ -142,7 +142,8 @@
linkAchieveQy: '', linkAchieveQy: '',
isLoadFlag: false, isLoadFlag: false,
total2 : 0, total2 : 0,
total1 : 0 total1 : 0 ,
isboss : 1
}), }),
created() { created() {
let _this = this; let _this = this;
...@@ -184,8 +185,8 @@ ...@@ -184,8 +185,8 @@
let _this = this; let _this = this;
_this.axios({ _this.axios({
method: 'get', method: 'get',
// url: '/broker/getSiteListApp', url: '/broker/getSiteListApp',
url: '/broker/getAgentSiteList', // url: '/broker/getAgentSiteList',
responseType: 'json', responseType: 'json',
data: { data: {
'AuthToken': _this.token, 'AuthToken': _this.token,
...@@ -204,19 +205,18 @@ ...@@ -204,19 +205,18 @@
//如果app里没传siteid,则默认为上海 //如果app里没传siteid,则默认为上海
_tempSiteId = '10001'; _tempSiteId = '10001';
}; };
//注释 // //注释
let _tempArr = response.data.data.filter((v, i) => (v.site_id == _tempSiteId));//找出列表里站点site_id和url里相同的一项 // let _tempArr = response.data.data.filter((v, i) => (v.site_id == _tempSiteId));//找出列表里站点site_id和url里相同的一项
if(_tempArr.length === 0){ // if(_tempArr.length === 0){
let _tempArr2 = response.data.data.filter((v, i) => (v.id == _tempAgentId));//找出列表里经纪人id和缓存里相同的一项 // let _tempArr2 = response.data.data.filter((v, i) => (v.id == _tempAgentId));//找出列表里经纪人id和缓存里相同的一项
if(_tempArr2.length === 0){ // if(_tempArr2.length === 0){
_tempSiteId = '10001'; // _tempSiteId = '10001';
}else{ // }else{
_tempSiteId = _tempArr2[0].site_id; // _tempSiteId = _tempArr2[0].site_id;
} // }
}else{ // }else{
_tempAgentId = _tempArr[0].id; // _tempAgentId = _tempArr[0].id;
} // }
localStorage.setItem('tlSiteid',String(_tempSiteId)); localStorage.setItem('tlSiteid',String(_tempSiteId));
localStorage.setItem('tlYjAgentId', _tempAgentId);//业绩里业务员id会变 localStorage.setItem('tlYjAgentId', _tempAgentId);//业绩里业务员id会变
_this.datasiteid = localStorage.getItem('tlSiteid');//设置默认站点值 _this.datasiteid = localStorage.getItem('tlSiteid');//设置默认站点值
...@@ -262,6 +262,7 @@ ...@@ -262,6 +262,7 @@
}else{ }else{
_this.total1 = _this.dealJine(response.data.data.all_performance_total) ; _this.total1 = _this.dealJine(response.data.data.all_performance_total) ;
_this.total2 = _this.dealJine(response.data.data.all_official_receipts_total); _this.total2 = _this.dealJine(response.data.data.all_official_receipts_total);
_this.isboss = response.data.data.is_boss;
_this.mainData[_index].isLoad = true; _this.mainData[_index].isLoad = true;
_this.statisticsStartTime = response.data.data.start_time.replace(/-/g, '.'); _this.statisticsStartTime = response.data.data.start_time.replace(/-/g, '.');
_this.statisticsEndTime = response.data.data.end_time.replace(/-/g, '.'); _this.statisticsEndTime = response.data.data.end_time.replace(/-/g, '.');
...@@ -362,7 +363,7 @@ ...@@ -362,7 +363,7 @@
changeCity(c) { changeCity(c) {
let _this = this; let _this = this;
console.log(c); console.log(c);
// localStorage.setItem('tlSiteid',); localStorage.setItem('tlSiteid',c);
_this.realSearch('normal'); _this.realSearch('normal');
} }
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class="nameSpan">{{dataValue == 1 ? data.store_name : data.district_name}}</div> <div class="nameSpan">{{dataValue == 1 ? data.store_name : data.district_name}}</div>
<div class="priceSpan">{{dealJine(data.performance_total)}}</div> <div class="priceSpan">{{dealJine(data.performance_total)}}</div>
<div class="priceSpan">{{dealJine(data.official_receipts_total)}}</div> <div class="priceSpan">{{dealJine(data.official_receipts_total)}}</div>
<img :src="more" style="flot:left; width:.1rem;" v-show="data.is_boss == 0"/> <img :src="more" style="flot:left; width:.1rem;" v-show="boss == 0"/>
</div> </div>
</template> </template>
...@@ -40,6 +40,10 @@ ...@@ -40,6 +40,10 @@
dataValue :{ dataValue :{
type: [Number, String], type: [Number, String],
default: () => 1 default: () => 1
},
boss :{
type: [Number, String],
default: () => 1
} }
}, },
data: () => ({ data: () => ({
...@@ -70,7 +74,8 @@ ...@@ -70,7 +74,8 @@
return _this.common.jineComma(v, 2); return _this.common.jineComma(v, 2);
}, },
turn (data){ turn (data){
if ( this.data. is_boss == 0 ){ let _this = this ;
if ( this.boss == 0 ){
_this.$router.push({ _this.$router.push({
path: '/achieveRegion', path: '/achieveRegion',
query: { query: {
......
<template> <template>
<select @change="changeCity($event)"> <select @change="changeCity($event)">
<option v-for="(item, index) in siteList" :value="JSON.stringify(item)":selected="item.site_id==datasiteid">{{item.city}}</option> <!--<option v-for="(item, index) in siteList" :value="JSON.stringify(item)":selected="item.site_id==datasiteid">{{item.city}}</option>-->
<option v-for="(item, index) in siteList" :value="JSON.stringify(item)":selected="item.id==datasiteid">{{item.city}}</option>
</select> </select>
</template> </template>
...@@ -32,7 +33,7 @@ ...@@ -32,7 +33,7 @@
localStorage.setItem('tlSiteid', _tempValue.site_id); localStorage.setItem('tlSiteid', _tempValue.site_id);
// localStorage.setItem('tlSiteid', _tempValue.id); // localStorage.setItem('tlSiteid', _tempValue.id);
localStorage.setItem('tlYjAgentId', _tempValue.id);//业绩里业务员id会变 localStorage.setItem('tlYjAgentId', _tempValue.id);//业绩里业务员id会变
_this.$emit('changeCity', _tempValue.site_id); _this.$emit('changeCity', _tempValue.id);
} }
}, },
watch: { watch: {
......
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