|
@@ -88,8 +88,9 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</van-field>
|
|
</van-field>
|
|
- <van-field v-if="isAdmin()" @click-input="companyTypeInpClk" readonly clearable v-model="searchForm.companyTypeName"
|
|
|
|
- :placeholder="$t('robotRanking.companyTypePlaceholder')" :label="$t('robotRanking.companyTypeLabel')">
|
|
|
|
|
|
+ <van-field v-if="isAdmin()" @click-input="companyTypeInpClk" readonly clearable
|
|
|
|
+ v-model="searchForm.companyTypeName" :placeholder="$t('robotRanking.companyTypePlaceholder')"
|
|
|
|
+ :label="$t('robotRanking.companyTypeLabel')">
|
|
<template #right-icon>
|
|
<template #right-icon>
|
|
<div class="l-flex-RC">
|
|
<div class="l-flex-RC">
|
|
<van-icon v-if="searchForm.companyTypeName" @click="
|
|
<van-icon v-if="searchForm.companyTypeName" @click="
|
|
@@ -239,7 +240,7 @@ export default {
|
|
// 年的日期选择弹窗
|
|
// 年的日期选择弹窗
|
|
// 点击确定
|
|
// 点击确定
|
|
const yearPopConfirm = (e) => {
|
|
const yearPopConfirm = (e) => {
|
|
- console.log("e11", e);
|
|
|
|
|
|
+ // console.log("e的值是11", e);
|
|
const year = e.id;
|
|
const year = e.id;
|
|
const startDate =
|
|
const startDate =
|
|
moment().year(year).startOf("year").format("YYYY-MM-DD") + " 00:00:00";
|
|
moment().year(year).startOf("year").format("YYYY-MM-DD") + " 00:00:00";
|
|
@@ -527,7 +528,6 @@ export default {
|
|
chartType,
|
|
chartType,
|
|
startDate,
|
|
startDate,
|
|
endDate,
|
|
endDate,
|
|
-
|
|
|
|
};
|
|
};
|
|
getRankingList(param).then(async (res) => {
|
|
getRankingList(param).then(async (res) => {
|
|
const { data } = res;
|
|
const { data } = res;
|
|
@@ -698,7 +698,17 @@ export default {
|
|
searchForm.changeTypeName = t("robotRanking.salesStatistics");
|
|
searchForm.changeTypeName = t("robotRanking.salesStatistics");
|
|
searchForm.changeType = 0;
|
|
searchForm.changeType = 0;
|
|
searchForm.companyTypeName = t("robotRanking.whole");
|
|
searchForm.companyTypeName = t("robotRanking.whole");
|
|
- init();
|
|
|
|
|
|
+
|
|
|
|
+ // 查询是否有订单数据权限
|
|
|
|
+ const isOrderData = user.menuCodeList.some((item) => {
|
|
|
|
+ return item === "M4";
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ // 如果是type<3或者是有订单数据权限M4的子商家才可以查看
|
|
|
|
+ if ( user.type < 3 || isOrderData ) {
|
|
|
|
+ init();
|
|
|
|
+ }
|
|
|
|
+
|
|
window.addEventListener("resize", () => {
|
|
window.addEventListener("resize", () => {
|
|
chartObj.day && chartObj.day.resize();
|
|
chartObj.day && chartObj.day.resize();
|
|
chartObj.week && chartObj.week.resize();
|
|
chartObj.week && chartObj.week.resize();
|
|
@@ -757,11 +767,11 @@ export default {
|
|
// 筛选弹窗
|
|
// 筛选弹窗
|
|
// 点击商家输入框
|
|
// 点击商家输入框
|
|
const busiInpClk = () => {
|
|
const busiInpClk = () => {
|
|
- console.log(111111111);
|
|
|
|
|
|
+ // console.log(111111111);
|
|
busiPopShow.value = true;
|
|
busiPopShow.value = true;
|
|
};
|
|
};
|
|
const busiPopConfirm = (e) => {
|
|
const busiPopConfirm = (e) => {
|
|
- console.log("e", e);
|
|
|
|
|
|
+ // console.log("e的值是", e);
|
|
busiPopShow.value = false;
|
|
busiPopShow.value = false;
|
|
searchForm.businessName = e.name;
|
|
searchForm.businessName = e.name;
|
|
};
|
|
};
|
|
@@ -800,7 +810,6 @@ export default {
|
|
yearPopList,
|
|
yearPopList,
|
|
yearPopConfirm,
|
|
yearPopConfirm,
|
|
yearPopFieldName,
|
|
yearPopFieldName,
|
|
-
|
|
|
|
changeTypeShow,
|
|
changeTypeShow,
|
|
changeTypePopList,
|
|
changeTypePopList,
|
|
changeTypePopConfirm,
|
|
changeTypePopConfirm,
|
|
@@ -811,7 +820,6 @@ export default {
|
|
companyTypeShow,
|
|
companyTypeShow,
|
|
totalNoData,
|
|
totalNoData,
|
|
chgTypeDefaIdx,
|
|
chgTypeDefaIdx,
|
|
-
|
|
|
|
isAdmin,
|
|
isAdmin,
|
|
};
|
|
};
|
|
},
|
|
},
|