1;表格数据-权限伪处理

This commit is contained in:
wangshuai 2024-08-19 18:18:34 +08:00
parent c3829af581
commit b6b04df62a
1 changed files with 17 additions and 6 deletions

View File

@ -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() {