Quellcode durchsuchen

导入后删除功能

yuhan vor 1 Jahr
Ursprung
Commit
5ce400cd2b
1 geänderte Dateien mit 7 neuen und 6 gelöschten Zeilen
  1. 7 6
      src/views/module_kzks/fileImportLog/FileImportLogList.vue

+ 7 - 6
src/views/module_kzks/fileImportLog/FileImportLogList.vue

@@ -38,20 +38,20 @@
       </a-upload> -->
       <!-- 高级查询区域 -->
       <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
-      <!-- <a-dropdown v-if="selectedRowKeys.length > 0">
+      <a-dropdown v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay">
           <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
         </a-menu>
         <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
-      </a-dropdown> -->
+      </a-dropdown>
     </div>
 
     <!-- table区域-begin -->
     <div>
-      <!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
         <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
         <a style="margin-left: 24px" @click="onClearSelected">清空</a>
-      </div> -->
+      </div>
 
       <a-table
         ref="table"
@@ -62,6 +62,7 @@
         :columns="columns"
         :dataSource="dataSource"
         :pagination="ipagination"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
         :loading="loading"
         class="j-table-force-nowrap"
         @change="handleTableChange">
@@ -89,10 +90,10 @@
         <span slot="action" slot-scope="text, record">
           <!-- <a @click="handleDetail(record)">详情</a> -->
           <a @click="exportExcel(record)">下载</a>
-          <!-- <a-divider type="vertical" />
+          <a-divider type="vertical" />
           <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
             <a>删除</a>
-          </a-popconfirm> -->
+          </a-popconfirm>
           <!-- <a @click="handleEdit(record)">编辑</a>
 
           <a-divider type="vertical" />