Commit 0b784827 authored by agping's avatar agping

业绩修改

parent c8b82720
...@@ -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.b47eea8f23ae7d782907c33d77a7e49c.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.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.1b35a927314506fe4a4f.js></script><script type=text/javascript src=./static/js/app.d4bc73ef5022e12a38c8.js></script></body></html> })(document, window);</script><link href=./static/css/app.ba9292d575ceadaa57e809a89ee8a0ae.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.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.1b35a927314506fe4a4f.js></script><script type=text/javascript src=./static/js/app.228a57f0017ee9fb5146.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -146,8 +146,8 @@ ...@@ -146,8 +146,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,
...@@ -158,9 +158,8 @@ ...@@ -158,9 +158,8 @@
if(response.data.code == 200) { if(response.data.code == 200) {
if(response.data.data){ if(response.data.data){
localStorage.setItem('tlAppSiteList',encodeURIComponent(JSON.stringify(response.data.data))); localStorage.setItem('tlAppSiteList',encodeURIComponent(JSON.stringify(response.data.data)));
// let _tempSiteId = _this.$route.query.siteId; let _tempSiteId = _this.$route.query.siteId;
let _tempSiteId = '10001';//默认上海 // let _tempSiteId = '10001';//默认上海
let _tempAgentId = localStorage.getItem('userid'); let _tempAgentId = localStorage.getItem('userid');
// console.log(_tempSiteId); // console.log(_tempSiteId);
if(!_tempSiteId){ if(!_tempSiteId){
...@@ -168,17 +167,17 @@ ...@@ -168,17 +167,17 @@
_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会变
......
...@@ -91,8 +91,8 @@ ...@@ -91,8 +91,8 @@
'noborder': true, 'noborder': true,
'isBack': true 'isBack': true
}, },
// datasiteid: localStorage.getItem('tlSiteid'), datasiteid: localStorage.getItem('tlSiteid'),
datasiteid: '10001', // datasiteid: '10001',
token: '', token: '',
startDate: '', startDate: '',
endDate: '', endDate: '',
...@@ -155,6 +155,7 @@ ...@@ -155,6 +155,7 @@
}, },
created() { created() {
let _this = this; let _this = this;
// localStorage.setItem('tlSiteid', '10001');
_this.common.duringRequest({ _this.common.duringRequest({
'urlStr': '/broker/storePerformanceBySearch', 'urlStr': '/broker/storePerformanceBySearch',
startAction() { startAction() {
......
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
changeCity(e) { changeCity(e) {
let _this = this; let _this = this;
let _tempValue = JSON.parse(e.target.value); let _tempValue = JSON.parse(e.target.value);
// 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.site_id);
} }
}, },
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
'nameCustom': '业绩总入口', 'nameCustom': '业绩总入口',
'query': { 'query': {
'token': _token, 'token': _token,
'siteId': '10004' 'siteId': '10002'
} }
}, },
{ {
......
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