mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
传入type
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user