|
@@ -1,22 +1,48 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div style="position: relative" ref="commonTable">
|
|
<div style="position: relative" ref="commonTable">
|
|
|
<!--表格栏-->
|
|
<!--表格栏-->
|
|
|
- <el-table id="commonTable" ref="doLayout" :data="data.content" :highlight-current-row="highlightCurrentRow"
|
|
|
|
|
- @selection-change="selectionChange" @row-click="rowClick" @current-change="handleCurrentChange"
|
|
|
|
|
- :element-loading-text="$t('action.loading')" :border="border" :stripe="stripe" :show-summary="showSummary"
|
|
|
|
|
- :summary-method="getSummaries" :show-overflow-tooltip="showOverflowTooltip"
|
|
|
|
|
- :height="tableHeights ? tableHeights : tableHeight" :size="size" :align="align" :header-cell-style="{
|
|
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ id="commonTable"
|
|
|
|
|
+ ref="doLayout"
|
|
|
|
|
+ :data="data.content"
|
|
|
|
|
+ :highlight-current-row="highlightCurrentRow"
|
|
|
|
|
+ @selection-change="selectionChange"
|
|
|
|
|
+ @row-click="rowClick"
|
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
|
+ :element-loading-text="$t('action.loading')"
|
|
|
|
|
+ :border="border"
|
|
|
|
|
+ :stripe="stripe"
|
|
|
|
|
+ :show-summary="showSummary"
|
|
|
|
|
+ :summary-method="getSummaries"
|
|
|
|
|
+ :show-overflow-tooltip="showOverflowTooltip"
|
|
|
|
|
+ :height="tableHeights ? tableHeights : tableHeight"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ :align="align"
|
|
|
|
|
+ :header-cell-style="{
|
|
|
fontWeight: '900',
|
|
fontWeight: '900',
|
|
|
color: '#606266',
|
|
color: '#606266',
|
|
|
- }" style="width: 100%" :row-class-name="tableRowClassName">
|
|
|
|
|
|
|
+ }"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ :row-class-name="tableRowClassName"
|
|
|
|
|
+ >
|
|
|
<el-table-column type="expand" v-if="showSysUserAccountCardList" style="display: flex;">
|
|
<el-table-column type="expand" v-if="showSysUserAccountCardList" style="display: flex;">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-table :data="scope.row.sysUserAccountCardList" size="small" :header-cell-style="{
|
|
|
|
|
- background: '#ccc',
|
|
|
|
|
- fontWeight: '900',
|
|
|
|
|
- color: '#606266',
|
|
|
|
|
- }" style="width: 70%">
|
|
|
|
|
- <el-table-column type="index" width="50" align="center" label="序号">
|
|
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ :data="scope.row.sysUserAccountCardList"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ :header-cell-style="{
|
|
|
|
|
+ background: '#ccc',
|
|
|
|
|
+ fontWeight: '900',
|
|
|
|
|
+ color: '#606266',
|
|
|
|
|
+ }"
|
|
|
|
|
+ style="width: 70%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ type="index"
|
|
|
|
|
+ width="50"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ label="序号"
|
|
|
|
|
+ >
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="bankAccount" label="银行" style="flex: 1">
|
|
<el-table-column prop="bankAccount" label="银行" style="flex: 1">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -28,8 +54,7 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="auditStatus" label="审核状态" style="flex: 1">
|
|
<el-table-column prop="auditStatus" label="审核状态" style="flex: 1">
|
|
|
<template slot-scope="scope1">
|
|
<template slot-scope="scope1">
|
|
|
- <span>{{ scope1.row.auditStatus == 0 ? '未审核' : scope1.row.auditStatus == '1' ? '审核通过' :
|
|
|
|
|
- scope1.row.auditStatus == '2' ? '审核驳回' : scope1.row.auditStatus }}</span>
|
|
|
|
|
|
|
+ <span>{{ scope1.row.auditStatus == 0 ? '未审核' : scope1.row.auditStatus == '1' ? '审核通过' : scope1.row.auditStatus == '2' ? '审核驳回' : scope1.row.auditStatus }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="delFlag" label="是否解绑" style="flex: 1" width="150">
|
|
<el-table-column prop="delFlag" label="是否解绑" style="flex: 1" width="150">
|
|
@@ -39,16 +64,13 @@
|
|
|
<span style="margin-right: 20px;">{{ scope1.row.delFlag == '0' ? '未解绑' : '已解绑' }}</span>
|
|
<span style="margin-right: 20px;">{{ scope1.row.delFlag == '0' ? '未解绑' : '已解绑' }}</span>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-button v-if="scope1.row.delFlag == '0'" type="text" size="mini"
|
|
|
|
|
- @click="handleBreak(scope.$index, scope.row, scope1.$index, scope1.row)">解绑</el-button>
|
|
|
|
|
|
|
+ <el-button v-if="scope1.row.delFlag == '0'" type="text" size="mini" @click="handleBreak(scope.$index, scope.row, scope1.$index, scope1.row)">解绑</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-button v-if="scope1.row.delFlag == '1'" type="text" size="mini"
|
|
|
|
|
- @click="handleRebind(scope.$index, scope.row, scope1.$index, scope1.row)">重绑</el-button>
|
|
|
|
|
|
|
+ <el-button v-if="scope1.row.delFlag == '1'" type="text" size="mini" @click="handleRebind(scope.$index, scope.row, scope1.$index, scope1.row)">重绑</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-button type="text" size="mini"
|
|
|
|
|
- @click="handleTimeLine(scope.$index, scope.row, scope1.$index, scope1.row)">轨迹</el-button>
|
|
|
|
|
|
|
+ <el-button type="text" size="mini" @click="handleTimeLine(scope.$index, scope.row, scope1.$index, scope1.row)">轨迹</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</template>
|
|
</template>
|
|
@@ -56,63 +78,184 @@
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column type="selection" width="50" fixed align="center" v-if="showBatchDelete ||
|
|
|
|
|
- showBatchSettled ||
|
|
|
|
|
- showBatchPrint ||
|
|
|
|
|
- customToolseletted
|
|
|
|
|
- "></el-table-column>
|
|
|
|
|
- <el-table-column v-if="SerialShow" label="序号" type="index" width="50" align="center"></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ type="selection"
|
|
|
|
|
+ width="50"
|
|
|
|
|
+ fixed
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ showBatchDelete ||
|
|
|
|
|
+ showBatchSettled ||
|
|
|
|
|
+ showBatchPrint ||
|
|
|
|
|
+ customToolseletted
|
|
|
|
|
+ "
|
|
|
|
|
+ ></el-table-column>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ v-if="SerialShow"
|
|
|
|
|
+ label="序号"
|
|
|
|
|
+ type="index"
|
|
|
|
|
+ width="50"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ ></el-table-column>
|
|
|
|
|
|
|
|
<template v-for="column in columns">
|
|
<template v-for="column in columns">
|
|
|
- <el-table-column header-align="center" align="center" :prop="column.prop" :label="column.label"
|
|
|
|
|
- :width="column.width" :min-width="column.minWidth" :fixed="column.fixed" :key="column.prop" :type="column.type"
|
|
|
|
|
- :formatter="column.formatter" :sortable="column.sortable ? column.sortable : false"
|
|
|
|
|
- v-if="column.signIcon || column.isImg || column.isBtn">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ header-align="center"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ :prop="column.prop"
|
|
|
|
|
+ :label="column.label"
|
|
|
|
|
+ :width="column.width"
|
|
|
|
|
+ :min-width="column.minWidth"
|
|
|
|
|
+ :fixed="column.fixed"
|
|
|
|
|
+ :key="column.prop"
|
|
|
|
|
+ :type="column.type"
|
|
|
|
|
+ :formatter="column.formatter"
|
|
|
|
|
+ :sortable="column.sortable ? column.sortable : false"
|
|
|
|
|
+ v-if="column.signIcon || column.isImg || column.isBtn"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-switch :disabled="column.isDisabled" v-if="column.signIcon" v-model="scope.row[column.prop]"
|
|
|
|
|
- active-value="1" inactive-value="0" @change="signStateChanged(scope.$index, scope.row)"></el-switch>
|
|
|
|
|
- <img v-if="column.isImg" :width="column.imgWidth" :height="column.imgHeight" :src="scope.row[column.prop]" />
|
|
|
|
|
- <kt-button v-if="column.isBtn" icon="fa fa-edit" :label="column.btnName" :size="size"
|
|
|
|
|
- :perms="column.permsEdit" @click="handleBtnEdit(scope.$index, scope.row)" />
|
|
|
|
|
|
|
+ <el-switch
|
|
|
|
|
+ :disabled="column.isDisabled"
|
|
|
|
|
+ v-if="column.signIcon"
|
|
|
|
|
+ v-model="scope.row[column.prop]"
|
|
|
|
|
+ active-value="1"
|
|
|
|
|
+ inactive-value="0"
|
|
|
|
|
+ @change="signStateChanged(scope.$index, scope.row)"
|
|
|
|
|
+ ></el-switch>
|
|
|
|
|
+ <img
|
|
|
|
|
+ v-if="column.isImg"
|
|
|
|
|
+ :width="column.imgWidth"
|
|
|
|
|
+ :height="column.imgHeight"
|
|
|
|
|
+ :src="scope.row[column.prop]"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ v-if="column.isBtn"
|
|
|
|
|
+ icon="fa fa-edit"
|
|
|
|
|
+ :label="column.btnName"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ :perms="column.permsEdit"
|
|
|
|
|
+ @click="handleBtnEdit(scope.$index, scope.row)"
|
|
|
|
|
+ />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column header-align="center" align="center" :prop="column.prop" :label="column.label"
|
|
|
|
|
- :width="column.width" :min-width="column.minWidth" :fixed="column.fixed" :key="column.prop" :type="column.type"
|
|
|
|
|
- :formatter="column.formatter" :sortable="column.sortable ? column.sortable : false" v-else>
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ header-align="center"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ :prop="column.prop"
|
|
|
|
|
+ :label="column.label"
|
|
|
|
|
+ :width="column.width"
|
|
|
|
|
+ :min-width="column.minWidth"
|
|
|
|
|
+ :fixed="column.fixed"
|
|
|
|
|
+ :key="column.prop"
|
|
|
|
|
+ :type="column.type"
|
|
|
|
|
+ :formatter="column.formatter"
|
|
|
|
|
+ :sortable="column.sortable ? column.sortable : false"
|
|
|
|
|
+ v-else
|
|
|
|
|
+ >
|
|
|
<template v-for="columnchildren in column.children">
|
|
<template v-for="columnchildren in column.children">
|
|
|
- <el-table-column v-if="columnchildren" header-align="center" align="center" :prop="columnchildren.prop"
|
|
|
|
|
- :label="columnchildren.label" :width="columnchildren.width" :min-width="columnchildren.minWidth"
|
|
|
|
|
- :fixed="columnchildren.fixed" :key="columnchildren.prop" :type="columnchildren.type"
|
|
|
|
|
- :formatter="columnchildren.formatter" :sortable="columnchildren.sortable == null ? true : columnchildren.sortable
|
|
|
|
|
- ">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ v-if="columnchildren"
|
|
|
|
|
+ header-align="center"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ :prop="columnchildren.prop"
|
|
|
|
|
+ :label="columnchildren.label"
|
|
|
|
|
+ :width="columnchildren.width"
|
|
|
|
|
+ :min-width="columnchildren.minWidth"
|
|
|
|
|
+ :fixed="columnchildren.fixed"
|
|
|
|
|
+ :key="columnchildren.prop"
|
|
|
|
|
+ :type="columnchildren.type"
|
|
|
|
|
+ :formatter="columnchildren.formatter"
|
|
|
|
|
+ :sortable="
|
|
|
|
|
+ columnchildren.sortable == null ? true : columnchildren.sortable
|
|
|
|
|
+ "
|
|
|
|
|
+ >
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</template>
|
|
</template>
|
|
|
- <el-table-column :label="$t('action.operation')" :width="operationWidth" fixed="right" v-if="showOperation"
|
|
|
|
|
- header-align="center" align="center">
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ :label="$t('action.operation')"
|
|
|
|
|
+ :width="operationWidth"
|
|
|
|
|
+ fixed="right"
|
|
|
|
|
+ v-if="showOperation"
|
|
|
|
|
+ header-align="center"
|
|
|
|
|
+ align="center"
|
|
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <kt-button type="primary" v-if="editButtonName" icon="fa fa-edit" :label="editButtonName" :perms="permsEdit"
|
|
|
|
|
- :size="size" @click="handleEdit(scope.$index, scope.row)" />
|
|
|
|
|
- <kt-button v-if="deleteButtonName" icon="fa fa-trash" :label="deleteButtonName" :perms="permsDelete"
|
|
|
|
|
- :size="size" type="danger" @click="handleDeleteFlag(scope.$index, scope.row)" />
|
|
|
|
|
- <kt-button :style="{
|
|
|
|
|
- background: button1Background + '',
|
|
|
|
|
- border: '1px solid' + button1Background,
|
|
|
|
|
- color: '#fff',
|
|
|
|
|
- }" v-if="button1Name" :label="button1Name" :perms="permsButton1" :size="size" :icon="button1Icon"
|
|
|
|
|
- @click="handleButton1(scope.$index, scope.row)" />
|
|
|
|
|
- <kt-button v-if="button2Name" :label="button2Name" :perms="permsButton2" :size="size" :type="button2Type"
|
|
|
|
|
- :icon="button2Icon" @click="handleButton2(scope.$index, scope.row)" />
|
|
|
|
|
- <kt-button v-if="button3Name" :label="button3Name" :perms="permsButton3" :size="size" :type="button3Type"
|
|
|
|
|
- :icon="button3Icon" @click="handleButton3(scope.$index, scope.row)" />
|
|
|
|
|
- <kt-button v-if="button4Name" :icon="button4Icon" :type="button4Type" :label="button4Name" :perms="permsButton4"
|
|
|
|
|
- :size="size" @click="handleButton4(scope.$index, scope.row)" />
|
|
|
|
|
- <kt-button v-if="button5Name" :label="button5Name" :size="size" :type="button5Type" :icon="button5Icon"
|
|
|
|
|
- @click="handleButton5(scope.$index, scope.row)" />
|
|
|
|
|
- <kt-button v-if="button6Name" :label="button6Name" :size="size" :type="button6Type"
|
|
|
|
|
- @click="handleButton6(scope.$index, scope.row)" />
|
|
|
|
|
- <el-button type="text" size="small" v-if="buttonDropdown.length > 0">
|
|
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ v-if="editButtonName"
|
|
|
|
|
+ icon="fa fa-edit"
|
|
|
|
|
+ :label="editButtonName"
|
|
|
|
|
+ :perms="permsEdit"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ @click="handleEdit(scope.$index, scope.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ v-if="deleteButtonName"
|
|
|
|
|
+ icon="fa fa-trash"
|
|
|
|
|
+ :label="deleteButtonName"
|
|
|
|
|
+ :perms="permsDelete"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ @click="handleDeleteFlag(scope.$index, scope.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ background: button1Background + '',
|
|
|
|
|
+ border: '1px solid' + button1Background,
|
|
|
|
|
+ color: '#fff',
|
|
|
|
|
+ }"
|
|
|
|
|
+ v-if="button1Name"
|
|
|
|
|
+ :label="button1Name"
|
|
|
|
|
+ :perms="permsButton1"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ :icon="button1Icon"
|
|
|
|
|
+ @click="handleButton1(scope.$index, scope.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ v-if="button2Name"
|
|
|
|
|
+ :label="button2Name"
|
|
|
|
|
+ :perms="permsButton2"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ :type="button2Type"
|
|
|
|
|
+ :icon="button2Icon"
|
|
|
|
|
+ @click="handleButton2(scope.$index, scope.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ v-if="button3Name"
|
|
|
|
|
+ :label="button3Name"
|
|
|
|
|
+ :perms="permsButton3"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ :type="button3Type"
|
|
|
|
|
+ :icon="button3Icon"
|
|
|
|
|
+ @click="handleButton3(scope.$index, scope.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ v-if="button4Name"
|
|
|
|
|
+ :icon="button4Icon"
|
|
|
|
|
+ :type="button4Type"
|
|
|
|
|
+ :label="button4Name"
|
|
|
|
|
+ :perms="permsButton4"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ @click="handleButton4(scope.$index, scope.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ v-if="button5Name"
|
|
|
|
|
+ :label="button5Name"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ :type="button5Type"
|
|
|
|
|
+ :icon="button5Icon"
|
|
|
|
|
+ @click="handleButton5(scope.$index, scope.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ v-if="button6Name"
|
|
|
|
|
+ :label="button6Name"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ :type="button6Type"
|
|
|
|
|
+ @click="handleButton6(scope.$index, scope.row)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-button type="text" size="small" v-if="buttonDropdown.length>0">
|
|
|
<el-dropdown trigger="click">
|
|
<el-dropdown trigger="click">
|
|
|
<span class="el-dropdown-link">
|
|
<span class="el-dropdown-link">
|
|
|
更多
|
|
更多
|
|
@@ -120,9 +263,7 @@
|
|
|
</span>
|
|
</span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item v-for="val in buttonDropdown" :key="val.label">
|
|
<el-dropdown-item v-for="val in buttonDropdown" :key="val.label">
|
|
|
- <el-button style="width:100%" size="mini" type="text"
|
|
|
|
|
- v-if="!val.hide || (val.hide && val.hide(scope.row))" @click="val.click(scope.row)">{{ val.label
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-button style="width:100%" size="mini" type="text" v-if="!val.hide || (val.hide && val.hide(scope.row))" @click="val.click(scope.row)">{{ val.label }}</el-button>
|
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
@@ -133,19 +274,58 @@
|
|
|
<!--分页栏-->
|
|
<!--分页栏-->
|
|
|
<!-- 底部分页 -->
|
|
<!-- 底部分页 -->
|
|
|
<div class="bottomFixed" ref="bottomFixed">
|
|
<div class="bottomFixed" ref="bottomFixed">
|
|
|
- <kt-button :label="customToolName" :perms="permscustomTool" :size="size" type="danger" @click="customToolMethod()"
|
|
|
|
|
- :disabled="selections.length === 0" style="float: left" v-if="customToolseletted" />
|
|
|
|
|
- <kt-button class="debutton" :label="deleteName" :perms="permsDelete" :size="size" type="danger"
|
|
|
|
|
- @click="handleBatchDelete()" :disabled="selections.length === 0" style="float: left"
|
|
|
|
|
- v-if="showBatchDelete & showOperation" />
|
|
|
|
|
- <kt-button :label="settledName" :perms="permsSettled" :size="size" type="danger" @click="handleBatchSettled()"
|
|
|
|
|
- :disabled="selections.length === 0" style="float: left" v-if="showBatchSettled" />
|
|
|
|
|
- <kt-button label="导出Excel" :perms="permsExcel" :size="size" type="danger" @click="handleBatchPrint()"
|
|
|
|
|
- style="float: left" v-if="showBatchPrint" />
|
|
|
|
|
- <el-pagination background @size-change="handleSizeChange" layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
- @current-change="refreshPageRequest" :current-page="data.pageNum" :page-size="data.pageSize"
|
|
|
|
|
- :page-sizes="[10, 20, 50, 100, 200, 300, 400, 500]" :total="data.totalSize" style="float: left; margin-left: 20px"
|
|
|
|
|
- v-if="isshowpagination">
|
|
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ :label="customToolName"
|
|
|
|
|
+ :perms="permscustomTool"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ @click="customToolMethod()"
|
|
|
|
|
+ :disabled="selections.length === 0"
|
|
|
|
|
+ style="float: left"
|
|
|
|
|
+ v-if="customToolseletted"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ class="debutton"
|
|
|
|
|
+ :label="deleteName"
|
|
|
|
|
+ :perms="permsDelete"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ @click="handleBatchDelete()"
|
|
|
|
|
+ :disabled="selections.length === 0"
|
|
|
|
|
+ style="float: left"
|
|
|
|
|
+ v-if="showBatchDelete & showOperation"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ :label="settledName"
|
|
|
|
|
+ :perms="permsSettled"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ @click="handleBatchSettled()"
|
|
|
|
|
+ :disabled="selections.length === 0"
|
|
|
|
|
+ style="float: left"
|
|
|
|
|
+ v-if="showBatchSettled"
|
|
|
|
|
+ />
|
|
|
|
|
+ <kt-button
|
|
|
|
|
+ label="导出Excel"
|
|
|
|
|
+ :perms="permsExcel"
|
|
|
|
|
+ :size="size"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ @click="handleBatchPrint()"
|
|
|
|
|
+ style="float: left"
|
|
|
|
|
+ v-if="showBatchPrint"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-pagination
|
|
|
|
|
+ background
|
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
+ @current-change="refreshPageRequest"
|
|
|
|
|
+ :current-page="data.pageNum"
|
|
|
|
|
+ :page-size="data.pageSize"
|
|
|
|
|
+ :page-sizes="[10, 20, 50, 100, 200, 300, 400, 500]"
|
|
|
|
|
+ :total="data.totalSize"
|
|
|
|
|
+ style="float: left; margin-left: 20px"
|
|
|
|
|
+ v-if="isshowpagination"
|
|
|
|
|
+ >
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -222,7 +402,7 @@ export default {
|
|
|
button6Name: {
|
|
button6Name: {
|
|
|
type: String,
|
|
type: String,
|
|
|
},
|
|
},
|
|
|
- buttonDropdown: {
|
|
|
|
|
|
|
+ buttonDropdown:{
|
|
|
type: Array,
|
|
type: Array,
|
|
|
default: () => [],
|
|
default: () => [],
|
|
|
},
|
|
},
|
|
@@ -369,14 +549,14 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- tableHeight: 580,
|
|
|
|
|
|
|
+ tableHeight: 0,
|
|
|
loading: false, // 加载标识
|
|
loading: false, // 加载标识
|
|
|
selections: [], // 列表选中列
|
|
selections: [], // 列表选中列
|
|
|
pageRequest: {
|
|
pageRequest: {
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
|
},
|
|
},
|
|
|
- taskPool: false
|
|
|
|
|
|
|
+ taskPool:false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -386,11 +566,11 @@ export default {
|
|
|
// } else if (!!row.fieldName24 && row.fieldName24.indexOf("已") >= 0) {
|
|
// } else if (!!row.fieldName24 && row.fieldName24.indexOf("已") >= 0) {
|
|
|
// return "successRow";
|
|
// return "successRow";
|
|
|
// }
|
|
// }
|
|
|
- if (!!this.taskPool) {
|
|
|
|
|
- if (row.row.isExternal === 1) {
|
|
|
|
|
- return "flagRow";
|
|
|
|
|
|
|
+ if(!!this.taskPool){
|
|
|
|
|
+ if(row.row.isExternal===1){
|
|
|
|
|
+ return "flagRow";
|
|
|
}
|
|
}
|
|
|
- else {
|
|
|
|
|
|
|
+ else{
|
|
|
return ''
|
|
return ''
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -664,7 +844,7 @@ export default {
|
|
|
callback: callback,
|
|
callback: callback,
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
- .catch(() => { });
|
|
|
|
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
},
|
|
|
//批量结算
|
|
//批量结算
|
|
|
handleBatchSettled: function () {
|
|
handleBatchSettled: function () {
|
|
@@ -691,25 +871,35 @@ export default {
|
|
|
mounted() {
|
|
mounted() {
|
|
|
const that = this;
|
|
const that = this;
|
|
|
that.refreshPageRequest(1);
|
|
that.refreshPageRequest(1);
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ let tableTop = that.$refs.commonTable.offsetTop;
|
|
|
|
|
+ let bottomTop = that.$refs.bottomFixed.offsetTop;
|
|
|
|
|
+ that.tableHeight = bottomTop - tableTop - 120 + "px";
|
|
|
|
|
+ }, 10);
|
|
|
|
|
+ // window.onresize = function () {
|
|
|
|
|
+ // let tableTop = that.$refs.commonTable.offsetTop;
|
|
|
|
|
+ // let bottomTop = that.$refs.bottomFixed.offsetTop;
|
|
|
|
|
+ // that.tableHeight = bottomTop - tableTop - 120 + "px";
|
|
|
|
|
+ // };
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
|
|
+
|
|
|
/* 底部固定分页 */
|
|
/* 底部固定分页 */
|
|
|
.bottomFixed {
|
|
.bottomFixed {
|
|
|
height: 40px;
|
|
height: 40px;
|
|
|
|
|
+ position: fixed;
|
|
|
|
|
+ bottom: 0;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
background: #fff;
|
|
background: #fff;
|
|
|
- margin-top: 15px;
|
|
|
|
|
/* margin-top: 10px; */
|
|
/* margin-top: 10px; */
|
|
|
/* box-shadow: 0 -2px 0 0 #efefef; */
|
|
/* box-shadow: 0 -2px 0 0 #efefef; */
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
/deep/.el-table .el-table__row--striped {
|
|
/deep/.el-table .el-table__row--striped {
|
|
|
background-color: inherit;
|
|
background-color: inherit;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
.el-table .warningRow {
|
|
.el-table .warningRow {
|
|
|
background: oldlace;
|
|
background: oldlace;
|
|
|
}
|
|
}
|
|
@@ -717,10 +907,10 @@ export default {
|
|
|
.el-table .successRow {
|
|
.el-table .successRow {
|
|
|
background: #f0f9eb;
|
|
background: #f0f9eb;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-.el-dropdown-link {
|
|
|
|
|
|
|
+.el-dropdown-link{
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
color: var(--themeColor);
|
|
color: var(--themeColor);
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
</style>
|
|
</style>
|