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>
import { listInfo, getInfo, delInfo, addInfo, updateInfo } from "@/api/statistics/excel";
import { getStoreStatistics } from "@/api/business/store";
export default {
name: "Info",
@ -209,6 +210,7 @@ export default {
todayReturnVisitNum: null,
score: null,
},
userAccount: undefined,
//
form: {},
form1: {},
@ -221,17 +223,26 @@ export default {
};
},
created() {
this.userAccount = this.$store.state.user.name;
this.getList();
},
methods: {
/** 查询店铺单日历史信息列表 */
getList() {
this.loading = true;
listInfo(this.queryParams).then(response => {
this.infoList = response.rows;
this.total = response.total;
this.loading = false;
});
const userAccount = this.userAccount;
getStoreStatistics().then(response => {
if(userAccount =='admin' || response.data.storeCount>0){
this.loading = true;
listInfo(this.queryParams).then(response => {
this.infoList = response.rows;
this.total = response.total;
this.loading = false;
});
}else{
this.loading = false;
}
}
);
},
//
cancel() {