Commit ed2c746a authored by youjie's avatar youjie

no message

parent 1cea4433
...@@ -1276,6 +1276,12 @@ export default { ...@@ -1276,6 +1276,12 @@ export default {
//复制信息 //复制信息
CopyHandler(item) { CopyHandler(item) {
this.copyId = item.OrderId; this.copyId = item.OrderId;
let copyText = item.OrderId;
const save = function(e) {
e.clipboardData.setData('text/plain', copyText)
}
document.addEventListener('copy', save) // 添加一个copy事件
let x = document.execCommand('copy') // 执行copy方法
setTimeout(() => { setTimeout(() => {
this.copyId = 0; this.copyId = 0;
}, 2000); }, 2000);
......
...@@ -1087,6 +1087,12 @@ export default { ...@@ -1087,6 +1087,12 @@ export default {
//复制信息 //复制信息
CopyHandler(item) { CopyHandler(item) {
this.copyId = item.OrderId; this.copyId = item.OrderId;
let copyText = item.OrderId;
const save = function(e) {
e.clipboardData.setData('text/plain', copyText)
}
document.addEventListener('copy', save) // 添加一个copy事件
let x = document.execCommand('copy') // 执行copy方法
setTimeout(() => { setTimeout(() => {
this.copyId = 0; this.copyId = 0;
}, 2000); }, 2000);
......
...@@ -1344,6 +1344,12 @@ export default { ...@@ -1344,6 +1344,12 @@ export default {
}, },
CopyHandler(item) { CopyHandler(item) {
this.copyId = item.id; this.copyId = item.id;
let copyText = item.id;
const save = function(e) {
e.clipboardData.setData('text/plain', copyText)
}
document.addEventListener('copy', save) // 添加一个copy事件
let x = document.execCommand('copy') // 执行copy方法
setTimeout(() => { setTimeout(() => {
this.copyId = 0; this.copyId = 0;
}, 2000); }, 2000);
......
...@@ -1385,6 +1385,12 @@ ...@@ -1385,6 +1385,12 @@
//复制信息 //复制信息
CopyHandler(item) { CopyHandler(item) {
this.copyId = item.OrderId; this.copyId = item.OrderId;
let copyText = item.OrderId;
const save = function(e) {
e.clipboardData.setData('text/plain', copyText)
}
document.addEventListener('copy', save) // 添加一个copy事件
let x = document.execCommand('copy') // 执行copy方法
setTimeout(() => { setTimeout(() => {
this.copyId = 0; this.copyId = 0;
}, 2000); }, 2000);
......
...@@ -1325,6 +1325,12 @@ ...@@ -1325,6 +1325,12 @@
//复制信息 //复制信息
CopyHandler(item) { CopyHandler(item) {
this.copyId = item.OrderId; this.copyId = item.OrderId;
let copyText = item.OrderId;
const save = function(e) {
e.clipboardData.setData('text/plain', copyText)
}
document.addEventListener('copy', save) // 添加一个copy事件
let x = document.execCommand('copy') // 执行copy方法
setTimeout(() => { setTimeout(() => {
this.copyId = 0; this.copyId = 0;
}, 2000); }, 2000);
......
...@@ -1540,6 +1540,12 @@ ...@@ -1540,6 +1540,12 @@
//复制信息 //复制信息
CopyHandler(item) { CopyHandler(item) {
this.copyId = item.Id; this.copyId = item.Id;
let copyText = item.Id;
const save = function(e) {
e.clipboardData.setData('text/plain', copyText)
}
document.addEventListener('copy', save) // 添加一个copy事件
let x = document.execCommand('copy') // 执行copy方法
setTimeout(() => { setTimeout(() => {
this.copyId = 0; this.copyId = 0;
}, 2000); }, 2000);
......
...@@ -1491,6 +1491,12 @@ export default { ...@@ -1491,6 +1491,12 @@ export default {
//复制信息 //复制信息
CopyHandler(item) { CopyHandler(item) {
this.copyId = item.OrderId; this.copyId = item.OrderId;
let copyText = item.OrderId;
const save = function(e) {
e.clipboardData.setData('text/plain', copyText)
}
document.addEventListener('copy', save) // 添加一个copy事件
let x = document.execCommand('copy') // 执行copy方法
setTimeout(() => { setTimeout(() => {
this.copyId = 0; this.copyId = 0;
}, 2000); }, 2000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment