提交 505f0954 编写于 作者: xinxu.wang's avatar xinxu.wang

update

上级 6bad31b1
...@@ -108,7 +108,6 @@ ...@@ -108,7 +108,6 @@
: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>
...@@ -314,7 +313,6 @@ ...@@ -314,7 +313,6 @@
<script> <script>
let vm = null; let vm = null;
let clipboard = null;
import { openLoading, closeLoading } from "../../common/utils"; import { openLoading, closeLoading } from "../../common/utils";
export default { export default {
data() { data() {
...@@ -987,20 +985,6 @@ export default { ...@@ -987,20 +985,6 @@ 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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册