소스 검색

修改table参数展示

noob 3 년 전
부모
커밋
dd1861576f
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/pages/main/performance/analysis.vue
  2. 4 1
      src/pages/main/performance/components/table.vue

+ 2 - 2
src/pages/main/performance/analysis.vue

@@ -57,14 +57,14 @@ export default {
                     label: "主要内容",
                     props: "content",
                     width: 300,
-                    type: "edit",
+                    type: "textarea",
                     align: "left",
                 },
                 {
                     label: "完成标志及计分方法(需体现出完成时间)",
                     props: "mark",
                     width: 500,
-                    type: "edit",
+                    type: "textarea",
                     align: "left",
                 },
                 {

+ 4 - 1
src/pages/main/performance/components/table.vue

@@ -2,7 +2,7 @@
  * @Author       : yuanrunwei
  * @Date         : 2021-11-01 18:02:58
  * @LastEditors  : yuanrunwei
- * @LastEditTime : 2021-12-03 21:22:43
+ * @LastEditTime : 2021-12-04 16:08:24
  * @FilePath     : \spfm-market-front\src\pages\main\performance\components\table.vue
 -->
 <template>
@@ -34,6 +34,9 @@
                         {{ !scope.row[`${props}_${type}`] ? "编辑" : "完成" }}
                     </el-button>
                 </div>
+                <div v-else-if="type === 'textarea'">
+                    <pre>{{ scope.row[props] }}</pre>
+                </div>
                 <div v-else>{{ scope.row[props] }}</div>
             </template>
             <template v-if="children">