[需求变更] 支出合同样式调整
This commit is contained in:
@@ -84,13 +84,22 @@
|
|||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
|
:rowClassName="aduitClass"
|
||||||
@change="handleTableChange"
|
@change="handleTableChange"
|
||||||
class="j-table-force-nowrap">
|
class="j-table-force-nowrap">
|
||||||
|
|
||||||
|
<!-- 项目名称-->
|
||||||
<template slot="projectName" slot-scope="text, record">
|
<template slot="projectName" slot-scope="text, record">
|
||||||
|
<j-ellipsis
|
||||||
|
@click="toRevenueContractDetail(record.id, record.contractNum)"
|
||||||
|
v-if="record.chargeStatus === 1"
|
||||||
|
:value="text"
|
||||||
|
style="cursor: pointer"
|
||||||
|
:length="18"></j-ellipsis>
|
||||||
<j-ellipsis
|
<j-ellipsis
|
||||||
class="primary-color"
|
class="primary-color"
|
||||||
@click="toContractDetail(record.id)"
|
@click="toRevenueContractDetail(record.id)"
|
||||||
|
v-else
|
||||||
:value="text"
|
:value="text"
|
||||||
:length="18"></j-ellipsis>
|
:length="18"></j-ellipsis>
|
||||||
</template>
|
</template>
|
||||||
@@ -235,6 +244,17 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 动态设置到期未付款状态的表格样式
|
||||||
|
* @param record
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
|
aduitClass(record) {
|
||||||
|
if (record.chargeStatus === 1) {
|
||||||
|
return 'aduit'
|
||||||
|
}
|
||||||
|
return ''
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 详情
|
* 详情
|
||||||
* @param id
|
* @param id
|
||||||
@@ -292,4 +312,7 @@ export default {
|
|||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
@import '~@assets/less/common.less';
|
@import '~@assets/less/common.less';
|
||||||
|
/deep/ .aduit {
|
||||||
|
color: red !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user