|
@@ -49,13 +49,8 @@
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data="loadData"
|
|
:data="loadData"
|
|
bordered>
|
|
bordered>
|
|
- <!-- 类型 -->
|
|
|
|
- <span slot="changeType" slot-scope="text, record">{{ $refs.changeType.getNameByCode(record.changeType) }}</span>
|
|
|
|
- <!-- 原因 -->
|
|
|
|
- <span slot="operateType" slot-scope="text, record">{{ $refs.operateType.getNameByCode(record.operateType) }}</span>
|
|
|
|
</s-table>
|
|
</s-table>
|
|
</a-card>
|
|
</a-card>
|
|
-
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -84,10 +79,16 @@ export default {
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
{ title: '下单时间', dataIndex: 'createDate', width: 200, align: 'center' },
|
|
{ title: '下单时间', dataIndex: 'createDate', width: 200, align: 'center' },
|
|
- { title: '类型', dataIndex: 'changeType', scopedSlots: { customRender: 'changeType' }, width: 200, align: 'center' },
|
|
|
|
- { title: '原因', dataIndex: 'operateType', scopedSlots: { customRender: 'operateType' }, width: 200, align: 'center' },
|
|
|
|
|
|
+ { title: '类型', dataIndex: 'changeTypeDictValue', width: 200, align: 'center' },
|
|
|
|
+ { title: '原因', dataIndex: 'operateTypeDictValue', width: 200, align: 'center' },
|
|
{ title: '乐豆变动', dataIndex: 'changeNum', width: 200, align: 'center' },
|
|
{ title: '乐豆变动', dataIndex: 'changeNum', width: 200, align: 'center' },
|
|
- { title: '详情', dataIndex: 'remarks', width: 200, align: 'center' }
|
|
|
|
|
|
+ { title: '详情',
|
|
|
|
+ dataIndex: 'remarks',
|
|
|
|
+ width: 200,
|
|
|
|
+ align: 'center',
|
|
|
|
+ customRender: (text) => {
|
|
|
|
+ return text || '--'
|
|
|
|
+ } }
|
|
],
|
|
],
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|