| | |
| | | style="width: 150px"></el-input> (输入页码或者页面范围,如:1-10)</span> |
| | | </div> |
| | | </div> |
| | | <div style="text-align: center"> |
| | | <div v-loading="isLoading" style="text-align: center"> |
| | | <el-transfer |
| | | v-model="value" |
| | | :data="data" |
| | |
| | | pageExport: "", |
| | | data: [], |
| | | value: [], |
| | | isLoading: false, |
| | | filterMethod(query, item) { |
| | | return item.label.indexOf(query) > -1; |
| | | }, |
| | |
| | | if (this.selectRow.length <= 0) { |
| | | this.$message.warning('请选择要导出的模板') |
| | | } else { |
| | | this.isLoading = true; |
| | | //已选择多选 |
| | | const selectList = [] |
| | | //已选择属性 |
| | |
| | | }).then(res => { |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | this.isLoading = false; |
| | | }).catch(error => { |
| | | this.isLoading = false; |
| | | }) |
| | | } else { |
| | | |
| | |
| | | // console.log('res',res) |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | |
| | | this.isLoading = false; |
| | | }).catch(error => { |
| | | this.isLoading = false; |
| | | }) |
| | | |
| | | } |
| | | } |
| | | } else if (this.radio === 1) { |
| | | this.isLoading = true; |
| | | if (this.value <= 0) { |
| | | this.tableHeadData.map(item => item.prop) |
| | | .forEach((prop, index) => { |
| | |
| | | if (res) { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.escHandler(); |
| | | this.isLoading = false; |
| | | } |
| | | }).catch(error => { |
| | | this.isLoading = false; |
| | | }) |
| | | } else { |
| | | exportCode({codeClassifyOid: this.codeClassifyOid, ...this.exportArr, limit: -1}).then(res => { |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | this.isLoading = false; |
| | | }).catch(error => { |
| | | this.isLoading = false; |
| | | }) |
| | | } |
| | | } else if (this.radio === 2) { |
| | |
| | | } |
| | | } |
| | | if (this.value >= 1) { |
| | | this.isLoading = true; |
| | | exportCode({ |
| | | codeClassifyOid: this.codeClassifyOid, ...this.exportArr, |
| | | limit: this.limit, |
| | |
| | | // console.log('res',res) |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | |
| | | this.isLoading = false; |
| | | }).catch(error => { |
| | | this.isLoading = false; |
| | | }); |
| | | } else { |
| | | this.isLoading = true; |
| | | this.tableHeadData.map(item => item.prop) |
| | | .forEach((prop, index) => { |
| | | this.exportArrTwo[`attrIdIndexMap[${index}]`] = prop; |
| | |
| | | page: start, |
| | | endPage: end |
| | | }).then(res => { |
| | | // console.log('res', res) |
| | | this.isLoading = false; |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | }) |
| | | }).catch(error => { |
| | | this.isLoading = false; |
| | | }); |
| | | } |
| | | } |
| | | }, |