|
@@ -2,14 +2,15 @@
|
|
|
* @Author : yuanrunwei
|
|
|
* @Date : 2021-11-01 18:02:58
|
|
|
* @LastEditors : yuanrunwei
|
|
|
- * @LastEditTime : 2021-12-06 19:51:14
|
|
|
+ * @LastEditTime : 2021-12-21 17:41:24
|
|
|
* @FilePath : \spfm-market-front\src\pages\main\performance\components\table.vue
|
|
|
-->
|
|
|
<template>
|
|
|
<el-table class="simple-table" :data="computed_list" v-loading="loading">
|
|
|
<el-table-column
|
|
|
v-for="(
|
|
|
- { props, label, type, width, align, children }, index
|
|
|
+ { props, label, type, width, align, children, dictionary },
|
|
|
+ index
|
|
|
) in config"
|
|
|
:key="index"
|
|
|
:prop="props"
|
|
@@ -41,6 +42,9 @@
|
|
|
{{ scope.row[props] }}
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div v-else-if="type === 'dictionary'">
|
|
|
+ {{ dictionary[scope.row[props]] }}
|
|
|
+ </div>
|
|
|
<div v-else>{{ scope.row[props] }}</div>
|
|
|
</template>
|
|
|
<template v-if="children">
|