fix
This commit is contained in:
		| @@ -4,18 +4,15 @@ | ||||
|       <ai-title slot="title" title="广播设备管理" isShowBottomBorder/> | ||||
|       <template #content> | ||||
|         <ai-search-bar bottomBorder> | ||||
|           <template slot="left"> | ||||
|             <el-button type="primary" icon="iconfont iconResetting" @click="update" :loading="btnLoading">更新数据</el-button> | ||||
|           </template> | ||||
|           <template slot="right"> | ||||
|             <el-input v-model="search.name" size="small" placeholder="设备名称/设备编号" clearable | ||||
|                       v-throttle="() => {page.current = 1, getList()}" | ||||
|                       @clear=";(page.current = 1), (search.name = ''), getList()" suffix-icon="iconfont iconSearch"/> | ||||
|           </template> | ||||
|         </ai-search-bar> | ||||
|         <ai-search-bar class="ai-search-ba mar-t10"> | ||||
|           <template slot="left"> | ||||
|             <!-- <el-button icon="iconfont" type="primary" size="small">数据同步</el-button> --> | ||||
|             <!-- <el-button icon="iconfont iconDelete" size="small" @click="removeAll" :disabled="ids.length == 0">删除 </el-button> --> | ||||
|           </template> | ||||
|         </ai-search-bar> | ||||
|         <ai-table :tableData="tableData" :col-configs="colConfigs" :total="total" ref="aitableex" | ||||
|                   :current.sync="page.current" :size.sync="page.size" @getList="getList" | ||||
|                   @selection-change="(v) => (ids = v.map((e) => e.id))"> | ||||
| @@ -114,6 +111,7 @@ export default { | ||||
|       areaId: '', | ||||
|       bindVisible: false, | ||||
|       changeInfo: {}, | ||||
|       btnLoading: false, | ||||
|       locate: false | ||||
|     } | ||||
|   }, | ||||
| @@ -198,6 +196,22 @@ export default { | ||||
|         }, | ||||
|       }) | ||||
|     }, | ||||
|     update () { | ||||
|       this.btnLoading = true | ||||
|       this.instance.post(`/app/appdlbquipment/sync`, null, { | ||||
|         timeout: 1000000 | ||||
|       }).then(res => { | ||||
|         if (res.code == 0) { | ||||
|           this.$message.success('更新成功') | ||||
|           this.getList() | ||||
|         } | ||||
|  | ||||
|         this.btnLoading = false | ||||
|       }).catch(() => { | ||||
|          | ||||
|         this.btnLoading = false | ||||
|       }) | ||||
|     }, | ||||
|   }, | ||||
| } | ||||
| </script> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user