| | |
| | | <el-date-picker v-model="yearDetailForm.date" class="date_box" format="yyyy-MM-dd" placeholder="选择日期" |
| | | size="small" type="date" value-format="yyyy-MM-dd"> |
| | | </el-date-picker> |
| | | <span>监督项目</span> |
| | | <el-input v-model="yearDetailForm.project" class="search" placeholder="请输入" size="small"></el-input> |
| | | <!-- <span>监督项目</span> --> |
| | | <!-- <el-input v-model="yearDetailForm.superviseDes" class="search" placeholder="请输入" size="small"></el-input> --> |
| | | <el-button size="small" type="primary" @click="getYearDetailPlanList">查询</el-button> |
| | | <el-button size="small" @click="clearDetail">清空</el-button> |
| | | </div> |
| | |
| | | }], |
| | | yearLoading: false, |
| | | yearDetailForm: { |
| | | date: undefined, |
| | | project: undefined |
| | | date: undefined |
| | | }, |
| | | yearDetailTableData: [], // 年明细表 |
| | | yearDeatilPage: { |
| | |
| | | // 清除明细 |
| | | clearDetail() { |
| | | this.yearDetailForm.date = undefined |
| | | this.yearDetailForm.project = undefined |
| | | this.getYearDetailPlanList() |
| | | }, |
| | | |
| | |
| | | planId: this.planId, |
| | | current: this.yearDeatilPage.curent, |
| | | size: this.yearDeatilPage.pageSize, |
| | | date: this.yearDetailForm.date, |
| | | project: this.yearDetailForm.project |
| | | date: this.yearDetailForm.date |
| | | } |
| | | }) |
| | | if (code == 200) { |
| | |
| | | }, |
| | | // 年度计划表-下载 |
| | | downLoadPost(row) { |
| | | this.$axios.get(exportSuperVisePlanApi + '?id=' + row.id,{responseType: "blob"}).then(res => { |
| | | this.$axios.post(exportSuperVisePlanApi ,{id:row.id},{responseType: "blob"}).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res],{ type: 'application/msword' }); |
| | | //将Blob 对象转换成字符串 |