|
@@ -65,19 +65,33 @@
|
|
<el-tag type="danger" v-else>配置失败</el-tag>
|
|
<el-tag type="danger" v-else>配置失败</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="回调地址" prop="externalUserCallbackUrl" width="200" :show-overflow-tooltip="true" />
|
|
|
|
- <el-table-column label="Token" prop="externalUserToken" width="150" :show-overflow-tooltip="true" />
|
|
|
|
- <el-table-column label="AESKey" prop="externalUserSecret" width="150" :show-overflow-tooltip="true" />
|
|
|
|
|
|
+ <el-table-column label="回调地址" prop="externalUserCallbackUrl" width="200" :show-overflow-tooltip="true">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <a style="color: #1890ff;" @click="copy(scope.row.externalUserCallbackUrl)">{{ scope.row.externalUserCallbackUrl }}</a>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="Token" prop="externalUserToken" width="150" :show-overflow-tooltip="true" >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <a style="color: #1890ff;" @click="copy(scope.row.externalUserToken)">{{ scope.row.externalUserToken }}</a>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="AESKey" prop="externalUserSecret" width="150" :show-overflow-tooltip="true" >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <a style="color: #1890ff;" @click="copy(scope.row.externalUserSecret)">{{ scope.row.externalUserSecret }}</a>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="备注" prop="remark" width="250" :show-overflow-tooltip="true" />
|
|
<el-table-column label="备注" prop="remark" width="250" :show-overflow-tooltip="true" />
|
|
<el-table-column label="操作" width="250" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
<el-table-column label="操作" width="250" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<template v-if="scope.row.authStatus === 1">
|
|
<template v-if="scope.row.authStatus === 1">
|
|
<el-button size="mini" type="text" icon="el-icon-refresh"
|
|
<el-button size="mini" type="text" icon="el-icon-refresh"
|
|
@click="handleRefresh(scope.row)">刷新</el-button>
|
|
@click="handleRefresh(scope.row)">刷新</el-button>
|
|
- <el-button size="mini" type="text" icon="el-icon-refresh"
|
|
|
|
- @click="handleSync(scope.row)">同步所有</el-button>
|
|
|
|
- <el-button size="mini" type="text" icon="el-icon-tickets"
|
|
|
|
- @click="handleMailList(scope.row)">企微通讯录</el-button>
|
|
|
|
|
|
+ <template v-if="scope.row.configStatus === 'SUCCESS'">
|
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-refresh"
|
|
|
|
+ @click="handleSync(scope.row)">同步所有</el-button>
|
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-tickets"
|
|
|
|
+ @click="handleMailList(scope.row)">企微通讯录</el-button>
|
|
|
|
+ </template>
|
|
<el-button size="mini" type="text" icon="el-icon-refresh"
|
|
<el-button size="mini" type="text" icon="el-icon-refresh"
|
|
@click="setSecretHandle(scope.row)">配置密钥</el-button>
|
|
@click="setSecretHandle(scope.row)">配置密钥</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -109,7 +123,8 @@ export default {
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
corpName: '',
|
|
corpName: '',
|
|
- originCorpId: ''
|
|
|
|
|
|
+ originCorpId: '',
|
|
|
|
+ authStatus: 1
|
|
},
|
|
},
|
|
corpList: [],
|
|
corpList: [],
|
|
total: 0,
|
|
total: 0,
|
|
@@ -139,6 +154,16 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ copy(str) {
|
|
|
|
+ let element = document.createElement("textarea");
|
|
|
|
+ element.id = 'myTextarea'
|
|
|
|
+ element.textContent = str
|
|
|
|
+ document.body.append(element);
|
|
|
|
+ (document.getElementById('myTextarea')).select();
|
|
|
|
+ document.execCommand("Copy")
|
|
|
|
+ document.body.removeChild(element);
|
|
|
|
+ this.msgSuccess(`复制成功:${str}`);
|
|
|
|
+ },
|
|
handleSync(row) {
|
|
handleSync(row) {
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
@@ -149,7 +174,7 @@ export default {
|
|
putSyncAllCorpUser(row.corpId).then(res => {
|
|
putSyncAllCorpUser(row.corpId).then(res => {
|
|
loading.close()
|
|
loading.close()
|
|
this.getList()
|
|
this.getList()
|
|
- })
|
|
|
|
|
|
+ }).catch(() => loading.close())
|
|
},
|
|
},
|
|
handleMailList(row) {
|
|
handleMailList(row) {
|
|
this.mailShow = true
|
|
this.mailShow = true
|