|
@@ -2,7 +2,7 @@
|
|
|
* @Author : yuanrunwei
|
|
|
* @Date : 2021-11-01 18:02:58
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
- * @LastEditTime: 2022-01-18 11:23:16
|
|
|
+ * @LastEditTime: 2022-01-18 14:47:12
|
|
|
* @FilePath : /spfm-market-front/src/pages/main/performance/components/table.vue
|
|
|
-->
|
|
|
<template>
|
|
@@ -20,7 +20,7 @@
|
|
|
/>
|
|
|
<el-table-column
|
|
|
v-for="(
|
|
|
- { props, label, type, width, align, children, dictionary, variable },
|
|
|
+ { props, label, type, width, align, children, dictionary, control },
|
|
|
index
|
|
|
) in config"
|
|
|
:key="index"
|
|
@@ -53,11 +53,22 @@
|
|
|
</div>
|
|
|
<div v-else-if="type === 'click'">
|
|
|
<div
|
|
|
- class="simple-table-click cursor-pointer flex"
|
|
|
+ v-if="control && Number(scope.row[control]) < 1"
|
|
|
+ class="simple-table-click cursor-pointer"
|
|
|
@click="handleClick(props, scope.row)"
|
|
|
>
|
|
|
{{ scope.row[props] }}
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ v-else-if="!control"
|
|
|
+ class="simple-table-click cursor-pointer"
|
|
|
+ @click="handleClick(props, scope.row)"
|
|
|
+ >
|
|
|
+ {{ scope.row[props] }}
|
|
|
+ </div>
|
|
|
+ <div v-else class="cursor-pointer">
|
|
|
+ {{ scope.row[props] }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div v-else-if="type === 'dictionary'">
|
|
|
{{ dictionary[scope.row[props]] }}
|
|
@@ -67,8 +78,8 @@
|
|
|
<div
|
|
|
v-for="({ fileName }, index) in scope.row[props]"
|
|
|
:key="index"
|
|
|
- @click="downloadFile({index,rows:scope.row})"
|
|
|
- class="simple-table-click cursor-pointer margin-left-10"
|
|
|
+ @click="downloadFile({ index, rows: scope.row })"
|
|
|
+ class="simple-table-click cursor-pointer margin-left-10"
|
|
|
>
|
|
|
{{ fileName }}
|
|
|
</div>
|
|
@@ -97,9 +108,9 @@
|
|
|
</div>
|
|
|
<div v-else>{{ scope.row[props] }}</div>
|
|
|
</template>
|
|
|
- <template v-if="variable">
|
|
|
+ <!-- <template v-if="variable">
|
|
|
<div>{{ scope.row[props] }}</div>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
</el-table-column>
|
|
|
</template>
|
|
|
</el-table-column>
|