1;表格数据-权限伪处理
This commit is contained in:
parent
c3829af581
commit
b6b04df62a
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue