Commit 4328dc6e authored by duxinyuan's avatar duxinyuan

1

parent be2892f3
...@@ -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.7f53bd8ec7f1bea84f79.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.b6790138956fe6a34e03.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.
This diff is collapsed.
This diff is collapsed.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,r,f){for(var t,o,b,i=0,u=[];i<c.length;i++)o=c[i],d[o]&&u.push(d[o][0]),d[o]=0;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);for(a&&a(c,r,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=n(n.s=f[i]);return b};var c={},d={40:0};function n(a){if(c[a])return c[a].exports;var d=c[a]={i:a,l:!1,exports:{}};return e[a].call(d.exports,d,d.exports,n),d.l=!0,d.exports}n.e=function(e){var a=d[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,n){a=d[e]=[c,n]});a[2]=c;var r=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,n.nc&&f.setAttribute("nonce",n.nc),f.src=n.p+"static/js/"+e+"."+{0:"89eeecb9009578a968aa",1:"b2b21a7ae544a11d3b05",2:"38d7221fe689a9f96d83",3:"78063eecd53351b6ac96",4:"e2c5e9d3c33c66f1fbaf",5:"4b7f2ab58185b97d9980",6:"4db5cef3d9a7199d238d",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(){f.onerror=f.onload=null,clearTimeout(t);var a=d[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return f.onerror=f.onload=o,r.appendChild(f),c},n.m=e,n.c=c,n.d=function(e,a,c){n.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},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],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:"85d5693a5ffcfb9de01e",2:"38d7221fe689a9f96d83",3:"78063eecd53351b6ac96",4:"e2c5e9d3c33c66f1fbaf",5:"4b7f2ab58185b97d9980",6:"0b0ddf9894831cf314ae",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,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:"85d5693a5ffcfb9de01e",2:"38d7221fe689a9f96d83",3:"78063eecd53351b6ac96",4:"e2c5e9d3c33c66f1fbaf",5:"4b7f2ab58185b97d9980",6:"e888a55c56749eb1b3b7",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 a=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var t,o,b,i=0,u=[];i<c.length;i++)o=c[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(a&&a(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=f(f.s=r[i]);return b};var c={},d={40:0};function f(a){if(c[a])return c[a].exports;var d=c[a]={i:a,l:!1,exports:{}};return e[a].call(d.exports,d,d.exports,f),d.l=!0,d.exports}f.e=function(e){var a=d[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,f){a=d[e]=[c,f]});a[2]=c;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:"85d5693a5ffcfb9de01e",2:"38d7221fe689a9f96d83",3:"78063eecd53351b6ac96",4:"e2c5e9d3c33c66f1fbaf",5:"4b7f2ab58185b97d9980",6:"4929a6939a1347c3396a",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 a=d[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),c},f.m=e,f.c=c,f.d=function(e,a,c){f.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},f.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(a,"a",a),a},f.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},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,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:"f3d62e1f229dbf15f7bc",2:"38d7221fe689a9f96d83",3:"78063eecd53351b6ac96",4:"e2c5e9d3c33c66f1fbaf",5:"4b7f2ab58185b97d9980",6:"6e8ee2374d531cfe03f8",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
...@@ -266,6 +266,7 @@ ...@@ -266,6 +266,7 @@
_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.isboss = response.data.data.is_boss;
localStorage.setItem('isBoss',_this.isboss);
_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, '.');
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
_this.$router.push({ _this.$router.push({
path: '/achieveRegion', path: '/achieveRegion',
query: { query: {
'ywyId': localStorage.getItem('tlYjAgentId') 'ywyId': data.agent_id
} }
}); });
} }
......
...@@ -54,7 +54,9 @@ ...@@ -54,7 +54,9 @@
<li class="flex" v-for="(item2,index2) in item.dataList" :data-id="item2.store_id"> <li class="flex" v-for="(item2,index2) in item.dataList" :data-id="item2.store_id">
<div class="db-line"> <div class="db-line">
<!--<div class="ellipsis">{{item2.store_name}}</div>--> <!--<div class="ellipsis">{{item2.store_name}}</div>-->
<div>{{item2.name}}</div> <div v-show="isBoss==1">{{item2.name}}</div>
<div v-show="isBoss==0">{{item2.store_name}}</div>
</div> </div>
<div class="flex-center">{{item2.add_house_num}}</div> <div class="flex-center">{{item2.add_house_num}}</div>
<div class="flex-center">{{item2.add_user_num}}</div> <div class="flex-center">{{item2.add_user_num}}</div>
...@@ -86,6 +88,7 @@ ...@@ -86,6 +88,7 @@
data() { data() {
let _this = this; let _this = this;
return { return {
isBoss : 1,
headerData: { headerData: {
'title': '门店业绩', 'title': '门店业绩',
'noborder': true, 'noborder': true,
...@@ -173,6 +176,7 @@ ...@@ -173,6 +176,7 @@
_this.isLoadFlag2 = false; _this.isLoadFlag2 = false;
} }
}); });
_this.isBoss = localStorage.getItem('isBoss');
_this.loadMain(); _this.loadMain();
}, },
methods: { methods: {
...@@ -181,7 +185,7 @@ ...@@ -181,7 +185,7 @@
_this.userLevel = localStorage.getItem('userlevel'); _this.userLevel = localStorage.getItem('userlevel');
console.log(_this.userLevel); console.log(_this.userLevel);
_this.token = localStorage.getItem('token'); _this.token = localStorage.getItem('token');
if(_this.userLevel == '30' || _this.userLevel == '40') { if(_this.userLevel == '30' || _this.userLevel == '40' || localStorage.getItem('isBoss')==0) {
_this.headerData.title = '分部业绩'; _this.headerData.title = '分部业绩';
_this.tabsMain.unshift({ _this.tabsMain.unshift({
'title': '门店业绩排行榜', 'title': '门店业绩排行榜',
...@@ -198,8 +202,12 @@ ...@@ -198,8 +202,12 @@
_this.startDate = start_date; _this.startDate = start_date;
_this.endDate = end_date; _this.endDate = end_date;
_this.ajaxMainNum(function() { _this.ajaxMainNum(function() {
if(_this.userLevel == '30' || _this.userLevel == '40') { if(_this.userLevel == '30' || _this.userLevel == '40'|| localStorage.getItem('isBoss')==0) {
_this.ajaxUl(_this.initTabNumMain === 0 ? 2 : 1); if( localStorage.getItem('isBoss')==0 ){
_this.ajaxUl(2);
} else{
_this.ajaxUl(_this.initTabNumMain === 0 ? 2 : 1);
}
} else { } else {
_this.ajaxUl(1); _this.ajaxUl(1);
} }
...@@ -211,8 +219,12 @@ ...@@ -211,8 +219,12 @@
_this.initTabNumMain = index; _this.initTabNumMain = index;
if(!_this.tabsMain[index].isLoadMain) { if(!_this.tabsMain[index].isLoadMain) {
//Vue.set(_this.tabsMain[index], 'isLoadMain', true); //Vue.set(_this.tabsMain[index], 'isLoadMain', true);
if(_this.userLevel == '30' || _this.userLevel == '40') { if(_this.userLevel == '30' || _this.userLevel == '40' || localStorage.getItem('isBoss')==0) {
_this.ajaxUl(_this.initTabNumMain === 0 ? 2 : 1); if( localStorage.getItem('isBoss')==0 ){
_this.ajaxUl(2);
} else{
_this.ajaxUl(_this.initTabNumMain === 0 ? 2 : 1);
}
} else { } else {
_this.ajaxUl(1); _this.ajaxUl(1);
} }
...@@ -257,8 +269,12 @@ ...@@ -257,8 +269,12 @@
sessionStorage.setItem('achieve_search_start_date', _this.startDate); sessionStorage.setItem('achieve_search_start_date', _this.startDate);
sessionStorage.setItem('achieve_search_end_date', _this.endDate); sessionStorage.setItem('achieve_search_end_date', _this.endDate);
_this.ajaxMainNum(function() { _this.ajaxMainNum(function() {
if(_this.userLevel == '30' || _this.userLevel == '40') { if(_this.userLevel == '30' || _this.userLevel == '40'|| localStorage.getItem('isBoss')==0) {
_this.ajaxUl(_this.initTabNumMain === 0 ? 2 : 1); if( localStorage.getItem('isBoss')==0 ){
_this.ajaxUl(2);
} else{
_this.ajaxUl(_this.initTabNumMain === 0 ? 2 : 1);
}
} else { } else {
_this.ajaxUl(1); _this.ajaxUl(1);
} }
...@@ -273,7 +289,7 @@ ...@@ -273,7 +289,7 @@
responseType: 'json', responseType: 'json',
data: { data: {
'AuthToken': _this.token, 'AuthToken': _this.token,
'agent_id': localStorage.getItem('tlYjAgentId'), 'agent_id': _this.$route.query.ywyId ? _this.$route.query.ywyId : localStorage.getItem('tlYjAgentId'),
'start_time': _this.startDate, 'start_time': _this.startDate,
'end_time': _this.endDate, 'end_time': _this.endDate,
'site_id': localStorage.getItem('tlSiteid'), 'site_id': localStorage.getItem('tlSiteid'),
...@@ -318,7 +334,7 @@ ...@@ -318,7 +334,7 @@
responseType: 'json', responseType: 'json',
data: { data: {
'AuthToken': _this.token, 'AuthToken': _this.token,
'agent_id': localStorage.getItem('tlYjAgentId'), 'agent_id': _this.$route.query.ywyId ? _this.$route.query.ywyId : localStorage.getItem('tlYjAgentId'),
'start_time': _this.startDate, 'start_time': _this.startDate,
'end_time': _this.endDate, 'end_time': _this.endDate,
'is_store': type, 'is_store': type,
......
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