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