Эх сурвалжийг харах

全选,增加函数变量

lucky-lzx 2 жил өмнө
parent
commit
edaf95d4f1

+ 25 - 0
src/views/goodStore/dealGoodsPool/index.vue

@@ -20,6 +20,7 @@
         parmValue.page = 1;
         searchList();
       "
+      @selection="selection_change"
     >
       <template #table-header="{}">
         <div style="width: 100%">
@@ -176,6 +177,15 @@
       :iscgd="false"
       @cancel="visible = false"
     />
+
+    <el-dialog
+        title="弹窗"
+        :visible.sync="centerDialogVisible"
+        width="30%"
+        center
+      >
+        <span>暂无</span>
+      </el-dialog>
   </div>
 </template>
 <script>
@@ -212,6 +222,10 @@ export default {
       visible: false,
       select: "1",
       sinput: "",
+      //弹窗
+      centerDialogVisible:false,
+      //选中数组
+      changeList:[],
       statusList: [
         {
           code: "0",
@@ -270,6 +284,17 @@ export default {
     this.searchList();
   },
   methods: {
+    //点击商品上线
+    add_online(){
+      this.centerDialogVisible = true;
+    },
+    //选中触发函数
+    selection_change(e) {
+      console.log(e);
+      const { list } = e;
+      //选中的数组集合
+      this.changeList = list.length > 0 ? JSON.parse(JSON.stringify(list)) : [];
+    },
     show_view(keyRow) {
       this.row = keyRow;
       this.row.dtitle = "咨询成交商品详情";