任俊慧 发表于 3 天前

vxe-grid table 实现表格中弹窗选择数据

当需要再表格中的某个字段是关联另外一张表示,需要将从另外表选择数据,并将数据保存在当前行中
官网:https://vxetable.cn

<template>

    <vxe-grid v-bind="gridOptions">
      <template #action="{ row }">
      <vxe-button mode="text" status="primary" @click="selectEvent(row)">关联订单</vxe-button>
      </template>
    </vxe-grid>

    <vxe-modal
      resize
      show-footer
      show-confirm-button
      show-cancel-button
      show-maximize
      v-model="showPopup"
      title="关联订单"
      height="400"
      width="800"
      @show="showSubEvent"
      @confirm="confirmSubEvent">
      <vxe-grid ref="productGridRef" v-bind="productGridOptions"></vxe-grid>
    </vxe-modal>

</template>https://gitee.com/xuliangzhan/vxe-table

来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: vxe-grid table 实现表格中弹窗选择数据