.
This commit is contained in:
parent
dad848b4c3
commit
472319f6fb
@ -1,8 +1,9 @@
|
|||||||
import store from "@/store"
|
import store from "@/store"
|
||||||
const user = store.state.user.user;
|
const user = store.state.user.user;
|
||||||
import plugin from "@/plugins"
|
|
||||||
import constant from "@/utils/constant.js"
|
import constant from "@/utils/constant.js"
|
||||||
import * as commonUtils from "@/utils/common.js"
|
import {
|
||||||
|
toast
|
||||||
|
} from "@/utils/common"
|
||||||
import {
|
import {
|
||||||
companyTreeSelect
|
companyTreeSelect
|
||||||
} from "@/api/system/company.js"
|
} from "@/api/system/company.js"
|
||||||
@ -50,7 +51,7 @@ class indexUtil {
|
|||||||
get getLandData() {
|
get getLandData() {
|
||||||
console.error("land");
|
console.error("land");
|
||||||
if (!user?.userId) {
|
if (!user?.userId) {
|
||||||
plugin.modal.msg("请重新登录")
|
toast("请重新登录")
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (!this.land) {
|
if (!this.land) {
|
||||||
@ -106,7 +107,7 @@ class indexUtil {
|
|||||||
that.companys = response.data;
|
that.companys = response.data;
|
||||||
that.setStorage(constant.companys, JSON.parse(JSON.stringify(response.data)));
|
that.setStorage(constant.companys, JSON.parse(JSON.stringify(response.data)));
|
||||||
} else {
|
} else {
|
||||||
commonUtils.toast("无数据");
|
toast("无数据");
|
||||||
that.companys = [];
|
that.companys = [];
|
||||||
that.selectItem = null;
|
that.selectItem = null;
|
||||||
uni.removeStorage(constant.companys);
|
uni.removeStorage(constant.companys);
|
||||||
@ -190,7 +191,7 @@ class indexUtil {
|
|||||||
reject(error)
|
reject(error)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
commonUtils.toast("操作失败!");
|
toast("操作失败!");
|
||||||
reject("操作失败!")
|
reject("操作失败!")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user