feature/0423
wanghousheng 10 months ago
parent 0fa95afa5c
commit b51f52bec4
  1. 12
      src/views/order/Index.vue

@ -87,6 +87,7 @@
<platform-icon :name="item.platform" :showTips="true" />
</td>
</tr>
<!-- <div :key="`order_${item.order_id}_1`">{{ item.copy_text }}</div> -->
<tr v-for="(goodsItm, goodsIdx) in item.goods" :key="`orderGoods_${item.order_id}_${goodsIdx}`">
<td>
<GoodsItem
@ -196,6 +197,7 @@
>审核取消</a
>
<a v-action:delete @click="handleDelete(item)">删除</a>
<a @click="copyText(item.copy_text)">复制</a>
</div>
</td>
</template>
@ -332,6 +334,7 @@ export default {
//
page: 1,
pageSizes: 15,
textToCopy: '',
//
orderList: { data: [], total: 0 },
pageSizeOptions: ['15', '30', '50'],
@ -386,6 +389,15 @@ export default {
return this.$route.path.split('/')[3].replace('-', '_')
},
async copyText(text) {
try {
const textToCopy = text
await navigator.clipboard.writeText(textToCopy)
console.log('文本已复制到剪贴板')
} catch (err) {
console.error('复制到剪贴板失败', err)
}
},
//
getList() {
const { dataType, queryParam, page } = this

Loading…
Cancel
Save