Commit 87abc4f3795dc3a23d69103db0a221f97b4580be

Authored by 梁保满
1 parent 3ba60a63

基站上传接口地址修改

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