提交 1210cd88 编写于 作者: xinxu.wang's avatar xinxu.wang

update

上级 98983fcc
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
:disabled="scope.row.status == 1" :disabled="scope.row.status == 1"
>标记处理</el-button> >标记处理</el-button>
<el-button @click="handleSetLabelClick(scope.row)" type="text" size="small">标签</el-button> <el-button @click="handleSetLabelClick(scope.row)" type="text" size="small">标签</el-button>
<el-button type="text" size="small" @click="clipboardAction(scope.row)" >复制手机号</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -985,6 +986,20 @@ export default { ...@@ -985,6 +986,20 @@ export default {
vm.addConditioDialogVisible = false; vm.addConditioDialogVisible = false;
vm.ruleForm.pageNo = 1; vm.ruleForm.pageNo = 1;
}, },
// 粘帖文本
clipboardAction(row) {
const _this = this;
vm.currentRow = row;
clipboard && clipboard.destroy(); // 不是单例的,所以每次都要销毁
clipboard = new this.ClipboardJS(".footer", {
// .footer:文档的CSS类名
text: function(trigger) {
console.log(vm.currentRow.column1);
_this.$message.success('复制成功');
return vm.currentRow.column1; // 要粘贴的文案
}
});
},
}, },
}; };
</script> </script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册