Pārlūkot izejas kodu

修改table参数展示

noob 3 gadi atpakaļ
vecāks
revīzija
dd1861576f

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

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

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

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