| | |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '开始时间', |
| | | title: '合作周期', |
| | | align:"center", |
| | | dataIndex: 'startDate', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '结束时间', |
| | | align:"center", |
| | | dataIndex: 'endDate', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '提交时间', |
| | | align:"center", |
| | | dataIndex: 'createTime', |
| | | width: 200 |
| | | dataIndex: 'month', |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '状态', |
| | |
| | | import { useListPage } from '/@/hooks/system/useListPage'; |
| | | import SemanticWordModal from './components/SemanticWordModal.vue'; |
| | | import { columns, searchFormSchema, ROLE_ID_COPY_EDITOR } from './SemanticWord.data'; |
| | | import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './SemanticWord.api'; |
| | | import { list, batchDelete, getImportUrl, getExportUrl } from './SemanticWord.api'; |
| | | import { getDateByPicker } from '/@/utils'; |
| | | import { defHttp } from '/@/utils/http/axios'; |
| | | |
| | |
| | | width: 150, |
| | | fixed: 'right', |
| | | }, |
| | | afterFetch: (resultList) => { |
| | | // 仅保留嵌套的 contract.reviewStatus 为 '3' 的记录 |
| | | try { |
| | | return (resultList || []).filter((item) => String(item?.contract?.reviewStatus) === '3'); |
| | | } catch (e) { |
| | | return resultList; |
| | | } |
| | | }, |
| | | beforeFetch: (params) => { |
| | | if (params && fieldPickers) { |
| | | for (let key in fieldPickers) { |
| | |
| | | // delete params.status; |
| | | // } |
| | | |
| | | const finalParams = Object.assign(params, queryParam); |
| | | // 传递审核状态 3(已通过)以仅查询审核通过的记录 |
| | | const finalParams = { |
| | | ...params, |
| | | ...queryParam, |
| | | status: 3, |
| | | }; |
| | | return finalParams; |
| | | }, |
| | | }, |
| | |
| | | id: record.id, |
| | | }, |
| | | }); |
| | | } |
| | | /** |
| | | * 删除事件 |
| | | */ |
| | | async function handleDelete(record) { |
| | | await deleteOne({ id: record.id }, handleSuccess); |
| | | } |
| | | /** |
| | | * 批量删除事件 |