知识分享添加复制链接
This commit is contained in:
@@ -1848,4 +1848,6 @@ module.exports = {
|
|||||||
approvalcycle:'Approval cycle(day)',
|
approvalcycle:'Approval cycle(day)',
|
||||||
transittime:'Transit Time',
|
transittime:'Transit Time',
|
||||||
returntime:'Return time',
|
returntime:'Return time',
|
||||||
|
copyLink:'Copy link',
|
||||||
|
successfulReplication:'Successful replication',
|
||||||
}
|
}
|
||||||
@@ -1949,4 +1949,6 @@ module.exports = {
|
|||||||
approvalcycle:'审批周期(天)',
|
approvalcycle:'审批周期(天)',
|
||||||
transittime:'通过时间',
|
transittime:'通过时间',
|
||||||
returntime:'退回时间',
|
returntime:'退回时间',
|
||||||
|
copyLink:'复制链接',
|
||||||
|
successfulReplication:'复制成功',
|
||||||
}
|
}
|
||||||
+16
-4
@@ -30,7 +30,7 @@
|
|||||||
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-content-content">
|
<div class="box-content-content">
|
||||||
<div class="box-content-content-index"
|
<div class="box-content-content-index"
|
||||||
@@ -127,6 +127,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-box-button-right">
|
<div class="content-box-button-right">
|
||||||
|
<div class="content-box-button-text" @click="copyLinkClick(item)">
|
||||||
|
<img src="~/@assets/feishu.png" alt="" class="jumpicon">
|
||||||
|
{{$t('copyLink')}}
|
||||||
|
</div>
|
||||||
<div class="content-box-button-text" @click="pushJump(item)">
|
<div class="content-box-button-text" @click="pushJump(item)">
|
||||||
<img src="~/@assets/feishu.png" alt="" class="jumpicon">
|
<img src="~/@assets/feishu.png" alt="" class="jumpicon">
|
||||||
{{$t('contactTheFounder')}}
|
{{$t('contactTheFounder')}}
|
||||||
@@ -424,9 +428,9 @@
|
|||||||
this.queryForm = row
|
this.queryForm = row
|
||||||
this.$refs.SelectedByRef.getPush()
|
this.$refs.SelectedByRef.getPush()
|
||||||
},
|
},
|
||||||
pushJump(row){
|
pushJump(row) {
|
||||||
let query = {
|
let query = {
|
||||||
userName: row.createBy,
|
userName: row.createBy
|
||||||
}
|
}
|
||||||
postAction('/lark/getLarkApplinkByUserName', query).then((res) => {
|
postAction('/lark/getLarkApplinkByUserName', query).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
@@ -465,6 +469,12 @@
|
|||||||
},
|
},
|
||||||
handleToggleSearch() {
|
handleToggleSearch() {
|
||||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||||
|
},
|
||||||
|
copyLinkClick(item) {
|
||||||
|
let text = window.location.host + this.$route.path + '?id=' + item.id
|
||||||
|
navigator.clipboard.writeText(text).then((res) => {
|
||||||
|
this.$message.success(this.$t('successfulReplication'))
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -476,10 +486,12 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
/*margin: 0 auto;*/
|
/*margin: 0 auto;*/
|
||||||
}
|
}
|
||||||
.jumpicon{
|
|
||||||
|
.jumpicon {
|
||||||
height: 13.72px;
|
height: 13.72px;
|
||||||
width: 15.44px;
|
width: 15.44px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-title-text {
|
.box-title-text {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
width: 360px;
|
width: 360px;
|
||||||
|
|||||||
+10
@@ -53,6 +53,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-box-button-right">
|
<div class="content-box-button-right">
|
||||||
|
<div class="content-box-button-text" @click="copyLinkClick(queryForm)">
|
||||||
|
<img src="~/@assets/feishu.png" alt="" class="jumpicon">
|
||||||
|
{{$t('copyLink')}}
|
||||||
|
</div>
|
||||||
<div class="content-box-button-text" @click="pushJump(queryForm)">
|
<div class="content-box-button-text" @click="pushJump(queryForm)">
|
||||||
<img src="~/@assets/feishu.png" alt="" class="jumpicon">
|
<img src="~/@assets/feishu.png" alt="" class="jumpicon">
|
||||||
{{$t('contactTheFounder')}}
|
{{$t('contactTheFounder')}}
|
||||||
@@ -493,6 +497,12 @@
|
|||||||
this.$refs.SelectedByRef.submitLoading = false
|
this.$refs.SelectedByRef.submitLoading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
copyLinkClick(item) {
|
||||||
|
let text = window.location.host + this.$route.path + '?id=' + item.id
|
||||||
|
navigator.clipboard.writeText(text).then((res) => {
|
||||||
|
this.$message.success(this.$t('successfulReplication'))
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user