| | |
| | | <el-button size="small" @click="clearYear">清空</el-button> |
| | | </div> |
| | | <!-- <UploadExcel v-if="isShowButton" @upload="getYearPlanList"></UploadExcel> --> |
| | | <el-upload ref="upload" v-if="isShowButton" :action="action" :data="uploadData" |
| | | :headers="uploadHeader" :before-upload="beforeUpload" :on-success="onSuccess"> |
| | | <el-upload ref="upload" :action="action" :data="uploadData" :headers="uploadHeader" |
| | | :before-upload="beforeUpload" :on-success="onSuccess"> |
| | | <el-button size="small" type="primary">导入</el-button> |
| | | </el-upload> |
| | | |
| | |
| | | }, |
| | | yearTableData: [], // 年表 |
| | | yearPage: { |
| | | curent: 1, |
| | | pageSize: 20, |
| | | current: 1, |
| | | size: 20, |
| | | total: 0 |
| | | }, |
| | | yearColumnData: [ |
| | |
| | | }, |
| | | yearDetailTableData: [], // 年明细表 |
| | | yearDeatilPage: { |
| | | curent: 1, |
| | | pageSize: 20, |
| | | current: 1, |
| | | size: 20, |
| | | total: 0 |
| | | }, |
| | | yearDetailColumnData: [ |
| | |
| | | async getYearPlanList() { |
| | | this.yearLoading = true |
| | | const { code, data } = await yearPlanList({ |
| | | current: this.yearPage.curent, |
| | | size: this.yearPage.pageSize, |
| | | current: this.yearPage.current, |
| | | size: this.yearPage.size, |
| | | organizationPerson: this.yearForm.organizationPerson, |
| | | departId: this.departId |
| | | }) |
| | |
| | | this.yearDetailLoading = true |
| | | const { code, data } = await yearPlanDetailList({ |
| | | planId: this.planId, |
| | | current: this.yearDeatilPage.curent, |
| | | size: this.yearDeatilPage.pageSize, |
| | | current: this.yearDeatilPage.current, |
| | | size: this.yearDeatilPage.size, |
| | | date: this.yearDetailForm.date, |
| | | project: this.yearDetailForm.project |
| | | }) |