Commit 0536761f by 杨明

fixed

1 parent ce26168c
...@@ -41,6 +41,7 @@ import phoneView from './PhoneView' ...@@ -41,6 +41,7 @@ import phoneView from './PhoneView'
import draw from '@/mixins/draw' import draw from '@/mixins/draw'
import marketing from '@/mixins/marketing' import marketing from '@/mixins/marketing'
import { downloadIamge } from '@/common/constant' import { downloadIamge } from '@/common/constant'
import { cloneText } from '@/utils/index'
export default { export default {
mixins: [draw, marketing], mixins: [draw, marketing],
components: { components: {
...@@ -102,18 +103,8 @@ export default { ...@@ -102,18 +103,8 @@ export default {
downloadIamge(url) { downloadIamge(url) {
downloadIamge(url) downloadIamge(url)
}, },
handleSaveTxt(txt) { cloneText(text) {
this.$message({ cloneText(text)
message: '复制成功',
type: 'success',
customClass: 'message-Z-zinde'
})
const input = document.createElement('input')
document.body.appendChild(input)
input.setAttribute('value', txt)
input.select()
document.execCommand('Copy')
document.body.removeChild(input)
}, },
getDetail(id) { getDetail(id) {
this.isQrcodeVisible = true this.isQrcodeVisible = true
...@@ -168,7 +159,7 @@ export default { ...@@ -168,7 +159,7 @@ export default {
.then(res => { .then(res => {
if (res) { if (res) {
this.loading = false this.loading = false
this.getDetail(res) this.getDetail(res.id ? res.id : res)
this.$message.success('操作成功') this.$message.success('操作成功')
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!