设备管理
This commit is contained in:
		| @@ -15,7 +15,8 @@ | ||||
|         style="margin-top: 16px;" | ||||
|         :current.sync="search.current" | ||||
|         :size.sync="search.size" | ||||
|         @getList="getList"> | ||||
|         @getList="getList" | ||||
|         @selection-change="v=>ids=v.map(e=>e.id)"> | ||||
|         <el-table-column slot="options" width="140px" fixed="right" label="操作" align="center"> | ||||
|           <template slot-scope="{ row }"> | ||||
|             <div class="table-options"> | ||||
| @@ -101,11 +102,11 @@ | ||||
|       colConfigs() { | ||||
|         return [ | ||||
|           {type: "selection"}, | ||||
|           { prop: 'corpId', label: '租户id' }, | ||||
|           { prop: 'flag', align: 'center', label: '视联网账号开启状态' }, | ||||
|           { prop: 'slwAreaId', align: 'center', label: '视联网地区ID' }, | ||||
|           { prop: 'slwUserId', align: 'center', label: '视联网用户ID' }, | ||||
|           { prop: 'slwToken', align: 'center', label: '视联网TOKEN' }, | ||||
|           { prop: 'corpId', label: 'CorpId' }, | ||||
|           { prop: 'flag', align: 'center', label: '状态' }, | ||||
|           { prop: 'slwUserId', align: 'center', label: '用户ID' }, | ||||
|           { prop: 'slwAreaId', align: 'center', label: '地区编码' }, | ||||
|           { prop: 'slwToken', align: 'center', label: 'TOKEN' }, | ||||
|           { prop: 'dlbName', align: 'center', label: '大喇叭账号' }, | ||||
|           { prop: 'dlbPwd', align: 'center', label: '大喇叭密码' }, | ||||
|           { prop: 'dlbToken', align: 'center', label: '大喇叭Token' }, | ||||
| @@ -127,6 +128,7 @@ | ||||
|         this.instance.post(`/app/appzyaccountconfig/list`, null, { | ||||
|           params: { | ||||
|             ...this.search, | ||||
|             type: 1 | ||||
|           } | ||||
|         }).then(res => { | ||||
|           if (res.code == 0) { | ||||
| @@ -175,14 +177,14 @@ | ||||
|           } | ||||
|         }); | ||||
|       }, | ||||
|       refresh() { | ||||
|       refresh(row) { | ||||
|         this.$confirm('确定刷新该数据token?').then(() => { | ||||
|           // this.instance.post(`/app/appzyaccountconfig/delete`).then(res => { | ||||
|           //   if (res.code == 0) { | ||||
|           //     this.$message.success('刷新成功!') | ||||
|           //     this.getList() | ||||
|           //   } | ||||
|           // }) | ||||
|           this.instance.post(`/app/appzyaccountconfig/refresh?id=${row.id}`).then(res => { | ||||
|             if (res.code == 0) { | ||||
|               this.$message.success('刷新成功!') | ||||
|               this.getList() | ||||
|             } | ||||
|           }) | ||||
|         }) | ||||
|       }, | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user