Browse Source

月报设置:本月优秀&持续改进,编辑状态时无法编辑问题修复

洪海涛 4 years ago
parent
commit
56252b4c17

+ 11 - 5
src/views/monthlyReport/childrenPage/editReport/components/RichText.vue

@@ -6,9 +6,17 @@
       :id="item.domKey"
       :id="item.domKey"
       :value.sync="item.value"
       :value.sync="item.value"
       :height="200"
       :height="200"
-      :full-position-style="{ top:'20px',left:'15%', right: '15%' }"
+      :full-position-style="{ top: '20px', left: '15%', right: '15%' }"
+    />
+    <div
+      v-else
+      style="cursor: pointer;color: #333;"
+      :style="{
+        paddingLeft: pageDate.status > 10 && item.value ? '30px' : '0'
+      }"
+      @click.stop="editDom"
+      v-html="item.value || '请点此处击添加数据!'"
     />
     />
-    <div v-else style="cursor: pointer;color: #333;padding-left: 30px;" @click.stop="editDom" v-html="item.value||'请点此处击添加数据!'" />
   </div>
   </div>
 </template>
 </template>
 
 
@@ -53,6 +61,4 @@ export default {
 }
 }
 </script>
 </script>
 
 
-<style scoped>
-
-</style>
+<style scoped></style>

+ 1 - 1
src/views/monthlyReport/childrenPage/editReport/components/core.vue

@@ -226,7 +226,7 @@ export default {
        * 当页面处于全部查看时,并且页面数据状态 大于 10 ,并且 是业务线标题,并且 tab页签是·本月优秀·时,才进行判断当前数据是否显示*/
        * 当页面处于全部查看时,并且页面数据状态 大于 10 ,并且 是业务线标题,并且 tab页签是·本月优秀·时,才进行判断当前数据是否显示*/
 
 
       if (
       if (
-        this.tabsActive.search(/本月优秀/ > -1) &&
+        this.pageDate.status > 10 &&
         this.tabsActive.search(/本月优秀/ > -1) &&
         this.tabsActive.search(/本月优秀/ > -1) &&
         this.baseData &&
         this.baseData &&
         this.baseData.content[0] &&
         this.baseData.content[0] &&