|
@@ -89,10 +89,13 @@
|
89
|
89
|
type="danger"
|
90
|
90
|
@click="sendCoupon(scope.$index, scope.row)">赠送客户</el-button>
|
91
|
91
|
<el-button
|
92
|
|
- v-if="scope.row.SendType === 'channel'"
|
93
|
92
|
size="mini"
|
94
|
93
|
type="success"
|
95
|
|
- @click="handleDelete(scope.$index, scope.row)">点击复制链接</el-button>
|
|
94
|
+ v-if="scope.row.SendType === 'channel'"
|
|
95
|
+ v-clipboard:copy="'www.baidu.com' + scope.$index"
|
|
96
|
+ v-clipboard:success="onCopy"
|
|
97
|
+ v-clipboard:error="onError"
|
|
98
|
+ >点击复制链接</el-button>
|
96
|
99
|
</template>
|
97
|
100
|
</el-table-column>
|
98
|
101
|
</el-table>
|
|
@@ -360,7 +363,19 @@ export default {
|
360
|
363
|
this.centerDialogVisible = false
|
361
|
364
|
this.getList()
|
362
|
365
|
})
|
363
|
|
- }
|
|
366
|
+ },
|
|
367
|
+ onCopy () {
|
|
368
|
+ this.$message({
|
|
369
|
+ type: 'success',
|
|
370
|
+ message: '复制成功!'
|
|
371
|
+ })
|
|
372
|
+ },
|
|
373
|
+ onError () {
|
|
374
|
+ this.$message({
|
|
375
|
+ type: 'error',
|
|
376
|
+ message: '复制失败!'
|
|
377
|
+ })
|
|
378
|
+ },
|
364
|
379
|
}
|
365
|
380
|
}
|
366
|
381
|
</script>
|