Przeglądaj źródła

删除勾选条数显示

jingbb 1 rok temu
rodzic
commit
7df01c917c

+ 0 - 19
src/views/oa/salary_management/Attendance/attendanceManagement.vue

@@ -37,18 +37,6 @@
         <a-button @click="UploadAttendanceSheet" type="primary" icon="plus">上传考勤表</a-button>
       </div>
   
-      <!-- table区域-begin -->
-      <div>
-        <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
-          <i class="anticon anticon-info-circle ant-alert-icon"></i>
-          <span>已选择</span>
-          <a style="font-weight: 600">
-            {{ selectedRowKeys.length }}
-          </a>
-          <span>项</span>
-          <a style="margin-left: 24px" @click="onClearSelected">清空</a>
-        </div>
-  
         <a-table
           ref="table"
           size="middle"
@@ -59,7 +47,6 @@
           :pagination="ipagination"
           :scroll="{x: 1000}"
           :loading="loading"
-          :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
           @change="handleTableChange">
            <span slot="operation" slot-scope="text, record">
                 <a @click="handleDetail(record)" >查看详情</a>
@@ -101,8 +88,6 @@
         return {
           description: '考勤管理',
           DateTime:[],
-          selectedRowKeys:[],
-          selectedRows:[],
           yearWithMonth:'',
           open:false,
           mode2: ['month', 'month'],
@@ -244,10 +229,6 @@
           this.yearWithMonth = data
           this.queryParam.yearWithMonth = this.yearWithMonth?moment(this.yearWithMonth).format('YYYY-MM'):''
         },
-        onSelectChange(selectedRowKeys, selectionRows) {
-            this.selectedRowKeys = selectedRowKeys;
-            this.selectedRows = selectionRows;
-        },
         handleTableChange(pagination, filters, sorter) {
             this.queryParam.pageNo = pagination.current
             this.queryParam.pageSize = pagination.pageSize

+ 0 - 6
src/views/oa/salary_management/personnelSalary/BasicSalary.vue

@@ -101,8 +101,6 @@
           description: '基本薪资',
           DateTime:[],
           loading:false,
-          selectedRowKeys:[],
-          selectedRows:[],
           isorter: {
             column: 'updateTime',
             order: 'desc'
@@ -214,10 +212,6 @@
           }
           this.getTableList()
         },
-        onSelectChange(selectedRowKeys, selectionRows) {
-            this.selectedRowKeys = selectedRowKeys;
-            this.selectedRows = selectionRows;
-        },
         handleTableChange(pagination, filters, sorter) {
           if (Object.keys(sorter).length > 0) {
             this.isorter.column = sorter.field;

+ 1 - 19
src/views/oa/salary_management/personnelSalary/Payroll.vue

@@ -45,18 +45,7 @@
       <div class="table-operator">
         <a-button @click="createPayroll" type="primary" icon="plus">生成工资单</a-button>
       </div>
-  
-      <!-- table区域-begin -->
-      <div>
-        <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
-          <i class="anticon anticon-info-circle ant-alert-icon"></i>
-          <span>已选择</span>
-          <a style="font-weight: 600">
-            {{ selectedRowKeys.length }}
-          </a>
-          <span>项</span>
-          <a style="margin-left: 24px" @click="onClearSelected">清空</a>
-        </div>
+
   
         <a-table
           ref="table"
@@ -68,7 +57,6 @@
           :pagination="ipagination"
           :scroll="{x: 1000}"
           :loading="loading"
-          :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
           @change="handleTableChange">
            <span slot="operation" slot-scope="text, record">
                 <a @click="handleDetail(record)" >查看详情</a>
@@ -114,8 +102,6 @@
         return {
           description: '工资单列表',
           yearWithMonth:'',
-          selectedRowKeys:[],
-          selectedRows:[],
           // 表头
           columns: [
             {
@@ -274,10 +260,6 @@
             }
           })
         },
-        onSelectChange(selectedRowKeys, selectionRows) {
-            this.selectedRowKeys = selectedRowKeys;
-            this.selectedRows = selectionRows;
-        },
         handleTableChange(pagination, filters, sorter) {
             this.queryParam.pageNo = pagination.current
             this.queryParam.pageSize = pagination.pageSize

+ 0 - 7
src/views/oa/salary_management/personnelSalary/SalaryChangeRecords.vue

@@ -41,7 +41,6 @@
           :pagination="ipagination"
           :scroll="{x: 1000}"
           :loading="loading"
-          :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
           @change="handleTableChange">
             <span slot="afterAdjustment" slot-scope="text, record">
                 <a  v-if="record.salaryReduction&&record.salaryReduction!==''">- {{record.salaryReduction}}</a>
@@ -72,8 +71,6 @@
         return {
           description: '薪资变更记录',
           DateTime:[],
-          selectedRowKeys:[],
-          selectedRows:[],
           // 表头
           columns: [
             {
@@ -156,10 +153,6 @@
           this.queryParam={}
           this.getTableList()
         },
-        onSelectChange(selectedRowKeys, selectionRows) {
-            this.selectedRowKeys = selectedRowKeys;
-            this.selectedRows = selectionRows;
-        },
         handleTableChange(pagination, filters, sorter) {
             this.queryParam.pageNo = pagination.current
             this.queryParam.pageSize = pagination.pageSize