Quellcode durchsuchen

优化提测报告富文本赋值问题

qinzhipeng_v vor 5 Jahren
Ursprung
Commit
f21b22ef41

+ 3 - 1
src/views/Platform/presentation/PresentReport.vue

@@ -169,7 +169,6 @@ export default {
     getRouterData() {
       console.log(this.clienData, '提测客户端')
       this.dataChange = this.clienData
-      this.dataChange.joinTest !== null ? this.DetailsOfProposal.txt.html(this.dataChange.joinTest) : ''
       if (this.dataChange.lateStatus === 1) {
         this.lateStatusBtn1 = 'success'
         this.lateStatusBtn = 'info'
@@ -203,6 +202,9 @@ export default {
         this.dependent = 2
         this.showRelyOn = false
       }
+      this.$nextTick(() => {
+        this.DetailsOfProposal.txt.html(this.dataChange.joinTest)
+      })
     },
     getQueryData(ele) {
       this.dataChange = ele

+ 1 - 1
src/views/projectManage/requirement/list/index.vue

@@ -98,7 +98,7 @@
           </template>
         </el-table-column>
         <el-table-column prop="belongingProjectName" label="归属的项目" min-width="140" show-overflow-tooltip align="center">
-          <template slot-scope="scope">
+          <template v-slot="scope">
             {{ scope.row.belongingProjectName }}
           </template>
         </el-table-column>