权限控制

master
Caps 6 years ago
parent 26be914a39
commit e08a47adb3

@ -199,8 +199,8 @@
userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId
}; };
let that = this; let that = this;
that.data1 = [];
IncreaseData.generalizeOfRetail(request, function (data) { IncreaseData.generalizeOfRetail(request, function (data) {
that.data1 = [];
that.tableLoading = false; that.tableLoading = false;
data = data.data; data = data.data;
if (data.code === '0001') { if (data.code === '0001') {
@ -257,7 +257,7 @@
entity.index = i+1; entity.index = i+1;
originAllData.push(entity); originAllData.push(entity);
} }
let title = "零售公司推广情况"+ that.$moment(new Date()).format("YYYY-MM-DD"); let title = "零售公司推广情况"+ that.selectDate[0] + '-' + that.selectDate[1];
require.ensure([], () => { require.ensure([], () => {
const { export_json_to_excel } = require('../../excel/Export2Excel'); const { export_json_to_excel } = require('../../excel/Export2Excel');
const tHeader = ['序号', '零售公司名称', '总好友数', '总好友数(去重)', '新增好友数', '新增好友数(去重)','日增好友平均','日增好友平均(去重)','删除/拉黑成员客户数(累计)','拉黑率(累计)']; const tHeader = ['序号', '零售公司名称', '总好友数', '总好友数(去重)', '新增好友数', '新增好友数(去重)','日增好友平均','日增好友平均(去重)','删除/拉黑成员客户数(累计)','拉黑率(累计)'];

@ -308,6 +308,7 @@
}; };
this.data1 = []; this.data1 = [];
IncreaseData.generalizeOfSeller(request,function (data) { IncreaseData.generalizeOfSeller(request,function (data) {
that.data1 = [];
that.tableLoading = false; that.tableLoading = false;
data = data.data; data = data.data;
if (data.code === '0001') { if (data.code === '0001') {
@ -354,7 +355,7 @@
orgId:orgId, orgId:orgId,
shopId:shopId, shopId:shopId,
sellerId:sellerId, sellerId:sellerId,
pageNum:this.pageNum, pageNum:1,
pageSize:this.totalSize, pageSize:this.totalSize,
userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId
}; };
@ -371,10 +372,10 @@
entity.index = i+1; entity.index = i+1;
originAllData.push(entity); originAllData.push(entity);
} }
let title = "导购推广情况" + that.$moment(new Date()).format("YYYY-MM-DD"); let title = "导购推广情况" + that.selectDate[0] + '-' + that.selectDate[1];
require.ensure([], () => { require.ensure([], () => {
const { export_json_to_excel } = require('../../excel/Export2Excel'); const { export_json_to_excel } = require('../../excel/Export2Excel');
const tHeader = ['序号', '导购名称', '工号', '所属店铺', '编码', '所属零售公司','总好友数','总好友数(去重)','新增好友数','新增好友数(去重)','日增好友平均(去重)']; const tHeader = ['序号', '导购名称', '工号', '所属店铺', '店铺编码', '所属零售公司','总好友数','总好友数(去重)','新增好友数','新增好友数(去重)','日增好友平均(去重)'];
// //
const filterVal = ['index', 'sellerName', 'sellerCode', 'shopName', 'shopCode', 'companyName','allCustomer','effectiveCustomer','newCustomer','newEffectiveCustomer','avgNewCustomer']; const filterVal = ['index', 'sellerName', 'sellerCode', 'shopName', 'shopCode', 'companyName','allCustomer','effectiveCustomer','newCustomer','newEffectiveCustomer','avgNewCustomer'];
// //

@ -225,8 +225,8 @@
userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId
}; };
let that = this; let that = this;
that.data1 = [];
IncreaseData.generalizeOfStore(request, function (data) { IncreaseData.generalizeOfStore(request, function (data) {
that.data1 = [];
that.tableLoading = false; that.tableLoading = false;
data = data.data; data = data.data;
if (data.code === '0001') { if (data.code === '0001') {
@ -288,7 +288,7 @@
entity.index = i + 1; entity.index = i + 1;
originAllData.push(entity); originAllData.push(entity);
} }
let title = "店铺推广情况" + that.$moment(new Date()).format("YYYY-MM-DD"); let title = "店铺推广情况" + that.selectDate[0] + '-' + that.selectDate[1];
require.ensure([], () => { require.ensure([], () => {
const {export_json_to_excel} = require('../../excel/Export2Excel'); const {export_json_to_excel} = require('../../excel/Export2Excel');
const tHeader = ['序号','店铺', '店铺编号', '所属零售公司', '总好友数', '总好友数(去重)', '新增好友数', '新增好友数(去重)','日增好友平均', '日增好友平均(去重)', '删除/拉黑成员客户数(累计)', '拉黑率(累计)']; const tHeader = ['序号','店铺', '店铺编号', '所属零售公司', '总好友数', '总好友数(去重)', '新增好友数', '新增好友数(去重)','日增好友平均', '日增好友平均(去重)', '删除/拉黑成员客户数(累计)', '拉黑率(累计)'];

@ -192,7 +192,6 @@
mounted: function () { mounted: function () {
this.listRoleInfo(); this.listRoleInfo();
this.listOfShop(); this.listOfShop();
this.listAccountInfoFunction();
// enter // enter
this.enterKeyup(); this.enterKeyup();
}, },
@ -208,10 +207,6 @@
path: '/account/management/add', path: '/account/management/add',
}); });
}, },
//
// uploadAccount() {
// this.$router.push({path: '/account/upload'});
// },
// //
listRoleInfo() { listRoleInfo() {
let that = this; let that = this;
@ -237,8 +232,8 @@
that.item = that.$route.query; that.item = that.$route.query;
// //
that.changeRoleId = that.item.id; that.changeRoleId = that.item.id;
that.bus.$emit('callBack');
} }
that.listAccountInfoFunction();
} }
}) })
}, },
@ -271,13 +266,7 @@
}, },
// //
listAccountInfoFunction: function () { listAccountInfoFunction: function () {
if (this.$route.query != null) {
this.item = this.$route.query;
//
this.changeRoleId = this.item.id;
}
let that = this; let that = this;
that.data1 = [];
let roleId = that.changeRoleId; let roleId = that.changeRoleId;
if(that.changeRoleId === "0"){ if(that.changeRoleId === "0"){
roleId = null; roleId = null;
@ -294,6 +283,7 @@
shopId: shopId shopId: shopId
}; };
accountManagement.listAccountInfoApi(request, function (data) { accountManagement.listAccountInfoApi(request, function (data) {
that.data1 = [];
data = data.data; data = data.data;
if (data.code === '0001') { if (data.code === '0001') {
that.$Message.error("系统繁忙!"); that.$Message.error("系统繁忙!");

Loading…
Cancel
Save