1;表格数据-权限伪处理
This commit is contained in:
parent
c3829af581
commit
b6b04df62a
|
@ -156,6 +156,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/statistics/excel";
|
import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/statistics/excel";
|
||||||
|
import { getStoreStatistics } from "@/api/business/store";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Info",
|
name: "Info",
|
||||||
|
@ -209,6 +210,7 @@ export default {
|
||||||
todayReturnVisitNum: null,
|
todayReturnVisitNum: null,
|
||||||
score: null,
|
score: null,
|
||||||
},
|
},
|
||||||
|
userAccount: undefined,
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
form1: {},
|
form1: {},
|
||||||
|
@ -221,17 +223,26 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.userAccount = this.$store.state.user.name;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询店铺单日历史信息列表 */
|
/** 查询店铺单日历史信息列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
const userAccount = this.userAccount;
|
||||||
|
getStoreStatistics().then(response => {
|
||||||
|
if(userAccount =='admin' || response.data.storeCount>0){
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listInfo(this.queryParams).then(response => {
|
listInfo(this.queryParams).then(response => {
|
||||||
this.infoList = response.rows;
|
this.infoList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
this.loading = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
|
|
Loading…
Reference in New Issue