Commit 87abc4f3795dc3a23d69103db0a221f97b4580be
1 parent
3ba60a63
基站上传接口地址修改
Showing
1 changed file
with
4 additions
and
7 deletions
src/views/device/index.vue
... | ... | @@ -399,11 +399,7 @@ |
399 | 399 | </div> |
400 | 400 | </div> |
401 | 401 | <el-dialog title="设备导入" :visible.sync="diaUp" width="400"> |
402 | - <up-load | |
403 | - :url="url" | |
404 | - @upSuccess="upSuccess" | |
405 | - fileName="设备信息" | |
406 | - > | |
402 | + <up-load :url="url" @upSuccess="upSuccess" fileName="设备信息"> | |
407 | 403 | <p class="down-txt" slot="down"> |
408 | 404 | 通过Excel名单导入设备,需要提供设备编码,点击 |
409 | 405 | <el-link type="danger" @click="downExcel">模板下载</el-link> 。 |
... | ... | @@ -525,7 +521,7 @@ export default { |
525 | 521 | role: "", |
526 | 522 | code: "", |
527 | 523 | loading: false, |
528 | - url: "/api_html/teaching/importStation", | |
524 | + url: "/api_html/school/manager/importStation", | |
529 | 525 | diaUp: false, |
530 | 526 | diaAnswerEqu: false, |
531 | 527 | gradeList: [], |
... | ... | @@ -649,6 +645,7 @@ export default { |
649 | 645 | upSuccess() { |
650 | 646 | //导入成功 |
651 | 647 | this.diaUp = false; |
648 | + this.page = 1; | |
652 | 649 | this._QueryData(); |
653 | 650 | }, |
654 | 651 | edit(obj) { |
... | ... | @@ -787,7 +784,7 @@ export default { |
787 | 784 | } |
788 | 785 | }, |
789 | 786 | async downExcel() { |
790 | - let { data, status, info } = await this.$request.stationTemplateUrl({ | |
787 | + let { data, status, info } = await this.$request.stationTemplateUrl({ | |
791 | 788 | id: this.id, |
792 | 789 | }); |
793 | 790 | if (status == 0) { | ... | ... |