查询
重置
{{ isExpand ? "收起" : "展开" }}
{{ (queryFormData.page_no - 1) * queryFormData.page_size + scope.$index + 1 }}
{{ scope.row.status === "0" ? "启用" : "停用" }}
{{ scope.row.created_by?.name }}
{{ scope.row.updated_by?.name }}
详情
编辑
删除
{{ detailFormData.name }}
{{ detailFormData.order }}
启用
停用
{{ detailFormData.created_by?.name }}
{{ detailFormData.updated_by?.name }}
{{ detailFormData.created_time }}
{{ detailFormData.updated_time }}
{{ detailFormData.description }}
启用
停用
// 导出字段 const exportColumns = [ { prop: 'name', label: '岗位名称' }, { prop: 'order', label:
'岗位排序' }, { prop: 'status', label: '状态' }, { prop: 'description', label: '描述' }, { prop:
'created_time', label: '创建时间' }, { prop: 'updated_time', label: '更新时间' }, ]; //
导入/导出配置(仅用于导出) const curdContentConfig = { permPrefix: 'module_system:position', cols:
exportColumns as any, exportsAction: async (params: any) => { const query: any = { ...params }; if
(typeof query.status === 'string') { query.status = query.status === 'true'; } query.page_no = 1;
query.page_size = 1000; const all: any[] = []; while (true) { const res = await
PositionAPI.listPosition(query); const items = res.data?.data?.items || []; const total =
res.data?.data?.total || 0; all.push(...items); if (all.length >= total || items.length === 0)
break; query.page_no += 1; } return all; }, } as unknown as IContentConfig;