传入type

This commit is contained in:
BOE\10867418
2023-03-20 13:39:49 +08:00
parent b8d3ed1cdc
commit d7e1b621fc

View File

@@ -304,10 +304,11 @@ export default {
option: [],
resetOrgId: [],
allowClear: true,
type: null,
});
// 获取tab数据
const getTabData = async () => {
const res = await api.boeuAllTotal({});
const res = await api.boeuAllTotal({type:state.type});
if (res) {
const list = [
{ text: "项目", num: res.data?.projectTotal },
@@ -335,6 +336,7 @@ export default {
state.option = res.data?.result?.list;
state.orgId = res.data?.result?.treeNodeList;
state.resetOrgId = res.data?.result?.treeNodeList;
state.type = res.data?.result?.userType;
res.data?.result?.userType === 1
? (state.allowClear = true)
: (state.allowClear = false);