daiqisheng 3 年之前
父节点
当前提交
e5fec46909
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 5 2
      src/pages/main/performance/components/table.vue
  2. 1 0
      src/pages/main/performance/department.vue

+ 5 - 2
src/pages/main/performance/components/table.vue

@@ -2,7 +2,7 @@
  * @Author       : yuanrunwei
  * @Date         : 2021-11-01 18:02:58
  * @LastEditors: Please set LastEditors
- * @LastEditTime: 2022-01-10 09:38:20
+ * @LastEditTime: 2022-01-11 18:29:51
  * @FilePath     : \spfm-market-front\src\pages\main\performance\components\table.vue
 -->
 <template>
@@ -10,7 +10,7 @@
     <el-table-column type="selection" width="55" v-if="multiple" />
     <el-table-column
       v-for="(
-        { props, label, type, width, align, children, dictionary }, index
+        { props, label, type, width, align, children, dictionary, variable }, index
       ) in config"
       :key="index"
       :prop="props"
@@ -73,6 +73,9 @@
           </template>
         </el-table-column>
       </template>
+      <template v-if="variable">
+        <div>{{ scope.row[props] }}</div>
+      </template>
     </el-table-column>
     <el-table-column
       v-if="handleRow.length"

+ 1 - 0
src/pages/main/performance/department.vue

@@ -477,6 +477,7 @@ export default {
           label: "接受人",
           props: "receiverName",
           type: "click",
+          variable:false
         },
         {
           label: "状态",