Commit 5e6ccd1d by wangzhihui

优化

1 parent c00d15ce
......@@ -79,7 +79,7 @@ export const statusList = [
},
{
confId: '3',
confLabel: '已驳回'
confLabel: '审批驳回'
},
{
confId: '4',
......@@ -87,6 +87,10 @@ export const statusList = [
},
{
confId: '5',
confLabel: '用户到账'
},
{
confId: '6',
confLabel: '到账异常'
}
]
......
......@@ -136,6 +136,9 @@ export default {
type: 'text',
fn: '编辑'
},
condition: row => {
return row.status == 0||row.status ==3
},
listeners: {
click: row => {
this.handleEdit(row)
......@@ -165,9 +168,9 @@ export default {
type: 'text',
fn: '到账明细'
},
// condition: row => {
// return row.status == 0 || row.status == 1 || row.status == 6
// },
condition: row => {
return row.status == 5|| row.status == 6
},
listeners: {
click: row => {
this.handleParticulars(row)
......@@ -181,9 +184,6 @@ export default {
type: 'text',
fn: '导出'
},
condition: row => {
return row.status == 1 || row.status == 6
},
listeners: {
click: row => {
this.handleExport(row)
......
......@@ -10,7 +10,11 @@
<!-- 表格区域 开始 -->
<GLTable ref="withdrawRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable">
</GLTable>
<div class="flex_sc" slot="colorStatus" slot-scope="scope">
<div class="table_point" :style="{ background: colors[scope.scope.status] }"></div>
<span>{{ tableStatus[scope.scope.status] }}</span>
</div> </GLTable>
<!-- 表格区域 end -->
</div>
</div>
......@@ -19,12 +23,16 @@
<script>
import url from '@/assets/empty.png'
import { modeTypeList } from '@/utils/constants.js'
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回', '受理失败']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E', '#2CCA74']
export default {
data() {
return {
id: this.$route.query.id,
size: 'small',
url: url,
tableStatus,
colors,
searchForm: {
customerName: '',
customerPhone: ''
......@@ -119,7 +127,18 @@ export default {
label: '收款手机号',
prop: 'mobile',
width: '130px'
}
},
{
label: '到账情况',
prop: 'status',
width: '200px',
addHtml: 'colorStatus'
},
{
label: '到账时间',
prop: 'receiptDate',
width: 180
},
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
......@@ -173,6 +192,12 @@ export default {
font-size: 16px;
}
}
.table_point {
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
}
</style>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!