|
@@ -55,7 +55,7 @@
|
|
|
>
|
|
>
|
|
|
<el-tabs type="border-card">
|
|
<el-tabs type="border-card">
|
|
|
<el-tab-pane label="1、项目立项" lazy>
|
|
<el-tab-pane label="1、项目立项" lazy>
|
|
|
- <apply-form :projectId="currProjectId"></apply-form>
|
|
|
|
|
|
|
+ <apply-form :projectId="currProjectId" @success="handleApplySuccess"></apply-form>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="2、科研预算" lazy>
|
|
<el-tab-pane label="2、科研预算" lazy>
|
|
|
<project-budget :projectId="currProjectId"></project-budget>
|
|
<project-budget :projectId="currProjectId"></project-budget>
|
|
@@ -127,6 +127,9 @@ export default window.$crudCommon({
|
|
|
this.currProjectId = data.id;
|
|
this.currProjectId = data.id;
|
|
|
this.drawerVisible = true;
|
|
this.drawerVisible = true;
|
|
|
},
|
|
},
|
|
|
|
|
+ handleApplySuccess({ xmId }) {
|
|
|
|
|
+ this.currProjectId = xmId;
|
|
|
|
|
+ },
|
|
|
handleExport() {
|
|
handleExport() {
|
|
|
exportBloByPost(`/api/kd-scientific/technician/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
exportBloByPost(`/api/kd-scientific/technician/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
downloadXls(res.data, `科研项目汇总表${this.params.yearAndMonth}.xlsx`);
|
|
downloadXls(res.data, `科研项目汇总表${this.params.yearAndMonth}.xlsx`);
|