|
@@ -1,4 +1,5 @@
|
|
import { Dict_Apis } from "@/dict/apis";
|
|
import { Dict_Apis } from "@/dict/apis";
|
|
|
|
+import { hasUserRole } from "@/utils/validate";
|
|
import { reactive } from "vue";
|
|
import { reactive } from "vue";
|
|
|
|
|
|
export class MapCountCtrl {
|
|
export class MapCountCtrl {
|
|
@@ -30,7 +31,9 @@ export class MapCountCtrl {
|
|
});
|
|
});
|
|
|
|
|
|
init(id: string) {
|
|
init(id: string) {
|
|
- fetch(`${Dict_Apis.promotion}/count/${id}`).then((res) => {
|
|
|
|
|
|
+ fetch(
|
|
|
|
+ `${Dict_Apis.promotion}${hasUserRole("system") ? "/sys" : ""}/count/${id}`
|
|
|
|
+ ).then((res) => {
|
|
res.json().then((ret) => {
|
|
res.json().then((ret) => {
|
|
if (ret.errorNo === 200) {
|
|
if (ret.errorNo === 200) {
|
|
this._originData.areas = ret.result.areas || [];
|
|
this._originData.areas = ret.result.areas || [];
|