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