mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 17:55:39 +08:00
修改导出,组织
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
:options="option"
|
:options="option"
|
||||||
placeholder="请选择组织"
|
placeholder="请选择组织"
|
||||||
v-model:value="orgId"
|
v-model:value="orgId"
|
||||||
allowClear
|
:allowClear="allowClear"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:fieldNames="{
|
:fieldNames="{
|
||||||
label: 'name',
|
label: 'name',
|
||||||
@@ -135,6 +135,8 @@ export default {
|
|||||||
option: [], //组织列表
|
option: [], //组织列表
|
||||||
selectedRowKeys: [], // 选中的列
|
selectedRowKeys: [], // 选中的列
|
||||||
ids: [],
|
ids: [],
|
||||||
|
allowClear:true,
|
||||||
|
resetOrgId:[]
|
||||||
});
|
});
|
||||||
// table选中
|
// table选中
|
||||||
const onSelectChange = (selectedRowKeys, record) => {
|
const onSelectChange = (selectedRowKeys, record) => {
|
||||||
@@ -144,17 +146,17 @@ export default {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
//请求组织接口
|
//请求组织接口
|
||||||
|
//请求组织接口
|
||||||
const getOrgList = async () => {
|
const getOrgList = async () => {
|
||||||
const res = await api.userGetUserOrg({});
|
const res = await api.userGetUserOrg({});
|
||||||
if (res) {
|
if (res) {
|
||||||
// const list = res.data?.result?.map((item) => {
|
state.option = res.data?.result?.list;
|
||||||
// return {
|
state.orgId = res.data?.result?.treeNodeList;
|
||||||
// label: item.orgName,
|
state.resetOrgId = res.data?.result?.treeNodeList;
|
||||||
// value: item.orgId,
|
res.data?.result?.userType === 1
|
||||||
// };
|
? (state.allowClear = true)
|
||||||
// });
|
: (state.allowClear = false);
|
||||||
state.option = res.data?.result;
|
getTableData();
|
||||||
getOrgId();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//导出
|
//导出
|
||||||
@@ -344,6 +346,7 @@ export default {
|
|||||||
state.name = "";
|
state.name = "";
|
||||||
state.band = "";
|
state.band = "";
|
||||||
state.userNo = "";
|
state.userNo = "";
|
||||||
|
state.orgId = state.resetOrgId;
|
||||||
getOrgId();
|
getOrgId();
|
||||||
};
|
};
|
||||||
// 获取登录人员组织
|
// 获取登录人员组织
|
||||||
@@ -362,7 +365,7 @@ export default {
|
|||||||
data: {
|
data: {
|
||||||
userNo: state.userNo,
|
userNo: state.userNo,
|
||||||
name: state.name,
|
name: state.name,
|
||||||
departmentId: state.orgId,
|
departmentId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||||
bandCode: state.band,
|
bandCode: state.band,
|
||||||
},
|
},
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
:options="option"
|
:options="option"
|
||||||
placeholder="请选择组织"
|
placeholder="请选择组织"
|
||||||
v-model:value="orgId"
|
v-model:value="orgId"
|
||||||
allowClear
|
:allowClear="allowClear"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:fieldNames="{
|
:fieldNames="{
|
||||||
label: 'name',
|
label: 'name',
|
||||||
@@ -426,7 +426,7 @@ export default {
|
|||||||
url: "/report-pre/boeu/case/exportAll",
|
url: "/report-pre/boeu/case/exportAll",
|
||||||
data: {
|
data: {
|
||||||
name: state.name,
|
name: state.name,
|
||||||
organizationId: state.orgId,
|
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||||
createName: state.creator,
|
createName: state.creator,
|
||||||
},
|
},
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
@@ -442,7 +442,7 @@ export default {
|
|||||||
url: "/report-pre/boeu/exam/exportAll",
|
url: "/report-pre/boeu/exam/exportAll",
|
||||||
data: {
|
data: {
|
||||||
name: state.name,
|
name: state.name,
|
||||||
organizationId: state.orgId,
|
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||||
createName: state.creator,
|
createName: state.creator,
|
||||||
},
|
},
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
@@ -458,7 +458,7 @@ export default {
|
|||||||
url: "/report-pre/boeu/course/exportAll",
|
url: "/report-pre/boeu/course/exportAll",
|
||||||
data: {
|
data: {
|
||||||
name: state.name,
|
name: state.name,
|
||||||
organizationId: state.orgId,
|
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||||
createName: state.creator,
|
createName: state.creator,
|
||||||
},
|
},
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
@@ -474,7 +474,7 @@ export default {
|
|||||||
url: "/report-pre/boeu/teaching/exportAll",
|
url: "/report-pre/boeu/teaching/exportAll",
|
||||||
data: {
|
data: {
|
||||||
name: state.name,
|
name: state.name,
|
||||||
organizationId: state.orgId,
|
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||||
createName: state.creator,
|
createName: state.creator,
|
||||||
},
|
},
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
@@ -490,7 +490,7 @@ export default {
|
|||||||
url: "/report-pre/boeu/router/exportAll",
|
url: "/report-pre/boeu/router/exportAll",
|
||||||
data: {
|
data: {
|
||||||
name: state.name,
|
name: state.name,
|
||||||
organizationId: state.orgId,
|
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||||
createName: state.creator,
|
createName: state.creator,
|
||||||
},
|
},
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
@@ -506,7 +506,7 @@ export default {
|
|||||||
url: "/report-pre/boeu/project/exportAll",
|
url: "/report-pre/boeu/project/exportAll",
|
||||||
data: {
|
data: {
|
||||||
name: state.name,
|
name: state.name,
|
||||||
organizationId: state.orgId,
|
organizationId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
||||||
createName: state.creator,
|
createName: state.creator,
|
||||||
},
|
},
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
|
|||||||
Reference in New Issue
Block a user