飞书交互-根据用户账号获取飞书对话框链接接口开发。

知识分享-增加"联系创建人"按钮,点击后打开飞书联系人对话框。
配置文件整理。
This commit is contained in:
wangzhijiang
2022-12-07 16:25:47 +08:00
parent f927f5c637
commit 4e27c76b78
9 changed files with 184 additions and 19 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 529 B

+1
View File
@@ -1363,4 +1363,5 @@ module.exports = {
CuiBan:'CuiBan',
brand:'Brand',
allsubitemsitem:'Whether to delete all subitems under this item',
contactTheFounder:'Contact the founder',
}
+1
View File
@@ -1464,4 +1464,5 @@ module.exports = {
CuiBan:'催办',
brand:'品牌',
allsubitemsitem:'该项目下拥有子项目是否全部删除',
contactTheFounder:'联系创建人',
}
@@ -109,6 +109,10 @@
</div>
</div>
<div class="content-box-button-right">
<div class="content-box-button-text" @click="pushJump(item)">
<img src="~/@assets/feishu.png" alt="" class="jumpicon">
{{$t('contactTheFounder')}}
</div>
<div class="content-box-button-text" @click="forwardClick(item)">
<a-icon type="logout"/>
{{$t('forward')}}
@@ -401,6 +405,20 @@
this.queryForm = row
this.$refs.SelectedByRef.getPush()
},
pushJump(row){
let query = {
userName: row.createBy,
}
postAction('/lark/getLarkApplinkByUserName', query).then((res) => {
if (res.code === 200) {
let url = res.result
window.open(url, '_blank')
} else {
this.$message.warning(res.message)
this.$refs.SelectedByRef.submitLoading = false
}
})
},
SelectedByForm(userIds) {
let query = {
userIds: userIds,
@@ -436,7 +454,10 @@
overflow: hidden;
/*margin: 0 auto;*/
}
.jumpicon{
height: 13.72px;
width: 15.44px;
}
.box-title-text {
line-height: 1.4;
width: 360px;
@@ -53,6 +53,10 @@
</div>
</div>
<div class="content-box-button-right">
<div class="content-box-button-text" @click="pushJump(queryForm)">
<img src="~/@assets/feishu.png" alt="" class="jumpicon">
{{$t('contactTheFounder')}}
</div>
<div class="content-box-button-text" @click="forwardClick(queryForm)">
<a-icon type="logout"/>
{{$t('forward')}}
@@ -449,6 +453,20 @@
this.queryForm = row
this.$refs.SelectedByRef.getPush()
},
pushJump(row){
let query = {
userName: row.createBy,
}
postAction('/lark/getLarkApplinkByUserName', query).then((res) => {
if (res.code === 200) {
let url = res.result
window.open(url, '_blank')
} else {
this.$message.warning(res.message)
this.$refs.SelectedByRef.submitLoading = false
}
})
},
detailClick(item,key) {
this.$router.push({
path: '/docManage/library/detail',
@@ -480,6 +498,10 @@
</script>
<style scoped lang="less">
.jumpicon{
height: 13.72px;
width: 15.44px;
}
.content-box {
width: 100%;
height: auto;