| | |
| | | <el-radio :label="1">全部</el-radio> |
| | | <el-radio :label="2">页码</el-radio> |
| | | </el-radio-group> |
| | | <span v-if="radio === 2" style="margin-left: 20px;"><el-input v-model="pageExport" style="width: 150px"></el-input> (输入页码或者页面范围,如:1-10)</span> |
| | | <span v-if="radio === 2" style="margin-left: 20px;"><el-input v-model="pageExport" |
| | | style="width: 150px"></el-input> (输入页码或者页面范围,如:1-10)</span> |
| | | </div> |
| | | </div> |
| | | <div style="text-align: center"> |
| | |
| | | mounted() { |
| | | }, |
| | | methods: { |
| | | handlerFile(res){ |
| | | handlerFile(res) { |
| | | let reader = new FileReader(); |
| | | reader.readAsText(res.data); |
| | | reader.onload = (result) =>{ |
| | | reader.onload = (result) => { |
| | | try { |
| | | let resData = JSON.parse(result.target.result); // 解析对象成功 |
| | | if (resData.code != 200) { |
| | |
| | | 'conditionMap[oid]': this.ids, ...this.exportArrTwo, |
| | | limit: -1 |
| | | }).then(res => { |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | }) |
| | | } else { |
| | | |
| | |
| | | 'conditionMap[oid]': this.ids, ...this.exportArr |
| | | }).then(res => { |
| | | // console.log('res',res) |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | |
| | | }) |
| | | |
| | |
| | | }) |
| | | } else { |
| | | exportCode({codeClassifyOid: this.codeClassifyOid, ...this.exportArr, limit: -1}).then(res => { |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | }) |
| | | } |
| | | } else if (this.radio === 2) { |
| | |
| | | endPage: end |
| | | }).then((res) => { |
| | | // console.log('res',res) |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | |
| | | }); |
| | | } else { |
| | |
| | | page: start, |
| | | endPage: end |
| | | }).then(res => { |
| | | console.log('res',res) |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | console.log('res', res) |
| | | this.handlerFile(res); |
| | | this.escHandler(); |
| | | }) |
| | | } |
| | | } |