|
@@ -23,14 +23,19 @@
|
|
|
{{ ((pagination.current - 1) * pagination.pageSize) + (scope.$index + 1) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="名称">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.name }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="设备appId">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.machineAppId }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="名称">
|
|
|
+ <el-table-column label="商户appId">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.name }}
|
|
|
+ {{ scope.row.serviceAppId }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="商户平台地址">
|
|
@@ -38,24 +43,31 @@
|
|
|
{{ scope.row.serviceAddress }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="商户appId">
|
|
|
+ <el-table-column label="是否第三方应用" align="center" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.serviceAppId }}
|
|
|
+ <el-tag :type="scope.row.thirdAuthAppId | statusFilter">
|
|
|
+ {{ scope.row.thirdAuthAppId ? '是' : '否' }}
|
|
|
+ </el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="授权token">
|
|
|
+ <el-table-column label="三方授权appId">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.appAuthToken }}
|
|
|
+ {{ scope.row.thirdAuthAppId }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="状态" align="center" class-name="status-col" width="100">
|
|
|
+ <!-- <el-table-column label="授权token">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.appAuthToken }}
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
+ <el-table-column label="授权状态" align="center" class-name="status-col" width="100">
|
|
|
<template slot-scope="{row}">
|
|
|
- <el-tag :type="row.appAuthTokenStatus | statusFilter">
|
|
|
- {{ row.appAuthTokenStatus | statusFilterStr }}
|
|
|
+ <el-tag :type="(row.thirdAuthAppId ? (row.appAuthTokenStatus ? true : false) : false) | statusFilter">
|
|
|
+ {{ row | statusFilterStr }}
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="{row,$index}">
|
|
|
<el-button type="primary" size="mini" @click="handleUpdate(row)">
|
|
|
编辑
|
|
@@ -63,10 +75,10 @@
|
|
|
<el-button size="mini" type="danger" @click="handleDelete(row, $index)">
|
|
|
删除
|
|
|
</el-button>
|
|
|
- <template>
|
|
|
+ <!-- <template>
|
|
|
<el-button v-if="row.appAuthTokenStatus" size="mini" type="danger" @click="statusChange(row, false)">停用</el-button>
|
|
|
<el-button v-else size="mini" type="danger" @click="statusChange(row, true)">启用</el-button>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -93,8 +105,8 @@ export default {
|
|
|
statusFilter(status) {
|
|
|
return status ? 'success' : 'info'
|
|
|
},
|
|
|
- statusFilterStr(status) {
|
|
|
- return status ? '已启用' : '已停用'
|
|
|
+ statusFilterStr(obj) {
|
|
|
+ return obj.thirdAuthAppId ? (obj.appAuthTokenStatus ? '已授权' : '未授权') : '未启用'
|
|
|
}
|
|
|
},
|
|
|
mixins: [tableMixins],
|