|
|
@@ -85,16 +85,16 @@
|
|
|
icon="el-icon-refresh"
|
|
|
size="mini"
|
|
|
@click="handleSync"
|
|
|
- >同步企微</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- icon="el-icon-view"
|
|
|
- size="mini"
|
|
|
- @click="handleViewQwList"
|
|
|
- >查看企微原始数据</el-button>
|
|
|
+ >同步企微(全量同步)</el-button>
|
|
|
</el-col>
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="info"-->
|
|
|
+<!-- icon="el-icon-view"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- @click="handleViewQwList"-->
|
|
|
+<!-- >查看企微原始数据</el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
</el-row>
|
|
|
|
|
|
<!-- 数据表格 -->
|
|
|
@@ -341,10 +341,10 @@
|
|
|
@selection-change="handleQwSelectionChange"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="链接ID" prop="link_id" width="200" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="链接名称" prop="link_name" width="150" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="链接URL" prop="url" width="200" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="创建时间" prop="create_time" width="160" align="center" />
|
|
|
+ <el-table-column label="链接ID" prop="linkId" width="200" :show-overflow-tooltip="true" />
|
|
|
+<!-- <el-table-column label="链接名称" prop="link_name" width="150" :show-overflow-tooltip="true" />-->
|
|
|
+<!-- <el-table-column label="链接URL" prop="url" width="200" :show-overflow-tooltip="true" />-->
|
|
|
+<!-- <el-table-column label="创建时间" prop="create_time" width="160" align="center" />-->
|
|
|
<el-table-column label="操作" width="150" align="center" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" @click="handleViewDetail(scope.row.link_id)">查看详情</el-button>
|
|
|
@@ -781,26 +781,6 @@ export default {
|
|
|
|
|
|
return memberNames.join(', ')
|
|
|
},
|
|
|
- /** 格式化已选中的用户显示 - 通过ID查询用户信息 */
|
|
|
- formatSelectedUsers(userIds) {
|
|
|
- if (!userIds || !userIds.length) return '-'
|
|
|
-
|
|
|
- const selectedNames = []
|
|
|
- userIds.forEach(id => {
|
|
|
- const users = this.qwUserOptions.filter(opt => opt.id === id)
|
|
|
- if (users.length > 0) {
|
|
|
- users.forEach(u => {
|
|
|
- const deptInfo = u.department ? `(部门:${u.department})` : ''
|
|
|
- const qwIdInfo = u.qwUserId ? `[${u.qwUserId}]` : ''
|
|
|
- selectedNames.push(`${u.qwUserName}${qwIdInfo}${deptInfo}`)
|
|
|
- })
|
|
|
- } else {
|
|
|
- selectedNames.push(`ID:${id}`)
|
|
|
- }
|
|
|
- })
|
|
|
- return selectedNames.join(', ')
|
|
|
- },
|
|
|
-
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
if (!this.checkCorpId()) return
|
|
|
@@ -855,6 +835,7 @@ export default {
|
|
|
|
|
|
// 基础信息赋值
|
|
|
this.form.id = data.id
|
|
|
+ this.form.linkId = data.linkId
|
|
|
this.form.linkName = data.linkName
|
|
|
//将字符串的"true"/"false"转换为布尔值
|
|
|
this.form.skipVerify = data.skipVerify === true || data.skipVerify === 'true'
|
|
|
@@ -1017,6 +998,7 @@ export default {
|
|
|
const submitData = {
|
|
|
// 基础信息
|
|
|
id: this.form.id,
|
|
|
+ linkId: this.form.linkId,
|
|
|
linkName: this.form.linkName,
|
|
|
skipVerify: this.form.skipVerify, // 布尔值,提交时保持布尔类型
|
|
|
priorityType: this.form.priorityType,
|
|
|
@@ -1117,12 +1099,12 @@ export default {
|
|
|
|
|
|
this.qwLoading = true
|
|
|
getQwList(this.qwLimit, this.qwCursor, this.queryParams.corpId).then(response => {
|
|
|
-
|
|
|
- if (response.code === 200) {
|
|
|
+ //处理数据,这里多套了一层
|
|
|
+ if (response.code === 200&&response.data.errcode===0) {
|
|
|
const data = response.data || {}
|
|
|
- this.qwDataList = data.link_list || []
|
|
|
+ this.qwDataList = data.linkIdList || []
|
|
|
this.qwTotal = data.total_count || 0
|
|
|
- this.qwCursor = data.next_cursor || ''
|
|
|
+ this.qwCursor = data.nextCursor || ''
|
|
|
} else {
|
|
|
this.qwDataList = []
|
|
|
this.qwTotal = 0
|
|
|
@@ -1196,6 +1178,7 @@ export default {
|
|
|
reset() {
|
|
|
this.form = {
|
|
|
// 基础信息
|
|
|
+ linkId: '',
|
|
|
linkName: '',
|
|
|
skipVerify: true,
|
|
|
priorityType: 0,
|