|
|
|
@ -10,26 +10,16 @@ |
|
|
|
|
<!-- <j-upload-button type="primary" v-auth="'project:project:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>--> |
|
|
|
|
<a-dropdown> |
|
|
|
|
<template #overlay> |
|
|
|
|
<a-menu> |
|
|
|
|
<a-menu-item key="1" @click="go_xinjianshenbao"> |
|
|
|
|
<Icon icon="ant-design:plus-outlined"></Icon> |
|
|
|
|
科技攻关 |
|
|
|
|
</a-menu-item> |
|
|
|
|
<!-- <a-menu-item v-for="opt of RANGE_OPTIONS" :key="opt.key"> |
|
|
|
|
<a-menu @click="go_xinjianshenbao"> |
|
|
|
|
<a-menu-item v-for="opt of projectTypeList" :key="opt.key"> |
|
|
|
|
{{ opt.label }} |
|
|
|
|
</a-menu-item>--> |
|
|
|
|
<!--<a-menu-item key="1" @click="go_xinjianshenbao"> |
|
|
|
|
<Icon icon="ant-design:plus-outlined"></Icon> |
|
|
|
|
xxx |
|
|
|
|
</a-menu-item>--> |
|
|
|
|
</a-menu-item> |
|
|
|
|
</a-menu> |
|
|
|
|
</template> |
|
|
|
|
<a-button type="primary">新建申报 |
|
|
|
|
<Icon icon="mdi:chevron-down"></Icon> |
|
|
|
|
</a-button> |
|
|
|
|
</a-dropdown> |
|
|
|
|
<!-- 高级查询 |
|
|
|
|
<super-query :config="superQueryConfig" @search="handleSuperQuery" />--> |
|
|
|
|
</template> |
|
|
|
|
<!--操作栏--> |
|
|
|
|
<template #action="{ record }"> |
|
|
|
@ -51,22 +41,24 @@ import {useModal} from '/@/components/Modal'; |
|
|
|
|
import { useListPage } from '/@/hooks/system/useListPage' |
|
|
|
|
import ProjectModal from './components/ProjectModal.vue' |
|
|
|
|
import {columns, searchFormSchema, superQuerySchema} from './Project.data'; |
|
|
|
|
import { |
|
|
|
|
list, |
|
|
|
|
deleteOne, |
|
|
|
|
rollbackOne, |
|
|
|
|
submitOne, |
|
|
|
|
batchDelete, |
|
|
|
|
getImportUrl, |
|
|
|
|
getExportUrl, |
|
|
|
|
getProjectTypeList |
|
|
|
|
} from './Project.api'; |
|
|
|
|
import { |
|
|
|
|
list, |
|
|
|
|
deleteOne, |
|
|
|
|
rollbackOne, |
|
|
|
|
submitOne, |
|
|
|
|
batchDelete, |
|
|
|
|
getImportUrl, |
|
|
|
|
getExportUrl, |
|
|
|
|
} from './Project.api'; |
|
|
|
|
|
|
|
|
|
import {getProjectTypeList} from '../../projectType/ProjectType.api'; |
|
|
|
|
import { downloadFile } from '/@/utils/common/renderUtils'; |
|
|
|
|
import { useGo } from '/@/hooks/web/usePage'; |
|
|
|
|
|
|
|
|
|
import { useUserStore } from '/@/store/modules/user'; |
|
|
|
|
import {getUserData} from "@/views/system/usersetting/UserSetting.api"; |
|
|
|
|
import {useTimeoutFn} from "@/hooks/core/useTimeout"; |
|
|
|
|
import {departList4Quxian} from "@/api/sys/user"; |
|
|
|
|
const go = useGo(); |
|
|
|
|
|
|
|
|
|
const queryParam = reactive<any>({}); |
|
|
|
@ -110,8 +102,7 @@ const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({ |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
// 日期范围选项 |
|
|
|
|
// 日期范围选项 |
|
|
|
|
const RANGE_OPTIONS = [ |
|
|
|
|
/*const projectTypeList = [ |
|
|
|
|
{key: 'TODAY', label: '今天'}, |
|
|
|
|
{key: 'YESTERDAY', label: '昨天'}, |
|
|
|
|
{key: 'TOMORROW', label: '明天'}, |
|
|
|
@ -122,13 +113,16 @@ const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({ |
|
|
|
|
{key: 'THIS_MONTH', label: '本月'}, |
|
|
|
|
{key: 'LAST_MONTH', label: '上月'}, |
|
|
|
|
{key: 'NEXT_MONTH', label: '下月'}, |
|
|
|
|
]; |
|
|
|
|
];*/ |
|
|
|
|
|
|
|
|
|
const projectTypeList =ref([]); |
|
|
|
|
|
|
|
|
|
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext |
|
|
|
|
|
|
|
|
|
// 高级查询配置 |
|
|
|
|
const superQueryConfig = reactive(superQuerySchema); |
|
|
|
|
|
|
|
|
|
getProjectType(); |
|
|
|
|
/** |
|
|
|
|
* 高级查询事件 |
|
|
|
|
*/ |
|
|
|
@ -149,9 +143,10 @@ function handleAdd() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//跳转到新建申报页面 |
|
|
|
|
function go_xinjianshenbao() { |
|
|
|
|
// go('/comp/jeecg/basic'); |
|
|
|
|
go('/projectApplication/index?projectTypeId='+'1846744340708184065'); |
|
|
|
|
function go_xinjianshenbao(event: Recordable) { |
|
|
|
|
// alert("选择的荐类型id: "+event.key) |
|
|
|
|
// 根据不的项目类型跳到不同的页面 |
|
|
|
|
go('/projectApplication/index?projectTypeId='+event.key); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//跳转到项目书页面 |
|
|
|
@ -171,7 +166,20 @@ function go_projectLog(record) { |
|
|
|
|
go('/projectLog/projectLogList?id='+record.id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async function getProjectType(){ |
|
|
|
|
|
|
|
|
|
let params = { |
|
|
|
|
status: '1', |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
await getProjectTypeList(params).then(res=>{ |
|
|
|
|
console.log("getProjectType is invoke-----------",JSON.stringify(res.records)) |
|
|
|
|
projectTypeList.value = res.records.map(item => { |
|
|
|
|
return {label:item.typeName,key:item.id} |
|
|
|
|
}) |
|
|
|
|
console.log(JSON.stringify(projectTypeList)); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 编辑事件 |
|
|
|
|