|
|
|
@ -48,9 +48,9 @@ import {useListPage} from '/@/hooks/system/useListPage' |
|
|
|
|
import {columns, searchFormSchema, superQuerySchema} from '/@/views/projectObjective/ProjectObjective.data'; |
|
|
|
|
import {batchDelete, deleteOne, getExportUrl, getImportUrl, list} from '/@/views/projectObjective/ProjectObjective.api'; |
|
|
|
|
import {useUserStore} from '/@/store/modules/user'; |
|
|
|
|
import { useRouter } from 'vue-router'; |
|
|
|
|
import { useRouter,useRoute } from 'vue-router'; |
|
|
|
|
import ProjectObjectiveModal from "@/views/projectObjective/components/ProjectObjectiveModal.vue"; |
|
|
|
|
|
|
|
|
|
const route = useRoute(); |
|
|
|
|
const { back } = useRouter(); |
|
|
|
|
const queryParam = reactive<any>({}); |
|
|
|
|
const checkedKeys = ref<Array<string | number>>([]); |
|
|
|
@ -61,7 +61,7 @@ const [registerModal, {openModal}] = useModal(); |
|
|
|
|
const {prefixCls, tableContext, onExportXls, onImportXls} = useListPage({ |
|
|
|
|
tableProps: { |
|
|
|
|
title: '合作单位', |
|
|
|
|
api: list, |
|
|
|
|
api: listByProjectId, |
|
|
|
|
columns, |
|
|
|
|
canResize: false, |
|
|
|
|
formConfig: { |
|
|
|
@ -95,6 +95,13 @@ const [registerTable, {reload}, {rowSelection, selectedRowKeys}] = tableContext |
|
|
|
|
|
|
|
|
|
// 高级查询配置 |
|
|
|
|
const superQueryConfig = reactive(superQuerySchema); |
|
|
|
|
async function listByProjectId() { |
|
|
|
|
let params = { |
|
|
|
|
projectId: route.query.id, |
|
|
|
|
}; |
|
|
|
|
console.log(JSON.stringify(params)); |
|
|
|
|
return await list(params); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function goBack(){ |
|
|
|
|
back(); |
|
|
|
|