|
|
@@ -192,15 +192,9 @@ import storeselect from '@/assets/Icon/storeselect.png';
|
|
|
import tabBar from '@/components/tabBar';
|
|
|
import { getReportInfo, getstoreCoverPosition } from '@/api/index';
|
|
|
import { selectAllocationPermission } from '@/api/week';
|
|
|
-import { mapState } from 'vuex';
|
|
|
export default {
|
|
|
name: 'MyList',
|
|
|
components: { tabBar },
|
|
|
- computed: {
|
|
|
- ...mapState({
|
|
|
- isAssignFlag: (state) => state.user.isAssignFlag,
|
|
|
- }),
|
|
|
- },
|
|
|
data() {
|
|
|
return {
|
|
|
history: history,
|
|
|
@@ -233,6 +227,7 @@ export default {
|
|
|
customerClueNum: 0,
|
|
|
thisWeekRemarkNum: null,
|
|
|
notAllocationNum: 0, //待分配客资数量
|
|
|
+ isAssignFlag: false,
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -299,7 +294,7 @@ export default {
|
|
|
forbidClick: true,
|
|
|
});
|
|
|
// 如果有客资分配权限,获取待分配客资数量
|
|
|
- if (this.isAssignFlag) this.getSelectAllocationPermission();
|
|
|
+ this.getSelectAllocationPermission();
|
|
|
getReportInfo({ isContent: false }).then((res) => {
|
|
|
loading1.clear();
|
|
|
this.list = res.data.summaryTasks;
|
|
|
@@ -341,6 +336,7 @@ export default {
|
|
|
getSelectAllocationPermission() {
|
|
|
selectAllocationPermission()
|
|
|
.then((res) => {
|
|
|
+ this.isAssignFlag = res.data.isAllocationPermission;
|
|
|
this.notAllocationNum = res.data.notAllocationNum;
|
|
|
})
|
|
|
.catch((error) => {
|