Selaa lähdekoodia

月报2.0改造(2.0)

洪海涛 4 vuotta sitten
vanhempi
sitoutus
ff9a179aa0

+ 6 - 4
src/store/modules/monthlyReport/edit/index.js

@@ -940,13 +940,15 @@ export default {
               if (title.search(/上月问题跟进/) > -1) {
                 elm.content = [{ ...res.data.content[0] }]
               } else if (title.search(/线上问题/) > -1) {
-                console.log(res, 937)
-                console.log(elm.content, 938)
+                // console.log(res, 937)
+                // console.log(elm.content, 938)
+                elm.subTitles = _.cloneDeep(res.data.subTitles)
+                elm.content = _.cloneDeep(res.data.content)
                 // elm.subTitles = [...res.data.subTitles]
-                elm.content[1] = { ...res.data.content[0] }
+                // elm.content[1] = { ...res.data.content[0] }
               } else if (title.search(/线下缺陷/) > -1) {
                 // elm = _.cloneDeep(res.data)
-                // elm.content = [{ ...res.data.content[0] }]
+                elm.content = [{ ...res.data.content[0] }]
                 elm.subTitles = [...res.data.subTitles]
               } else if (title.search(/发布&回滚/) > -1) {
                 const value = `${elm.content[0].value || ''}`

+ 2 - 2
src/views/monthlyReport/childrenPage/editReport/components/OnlineQuestion.vue

@@ -4,7 +4,7 @@
     <span v-for="(item, index) in subTitle" :key="index" class="item">
       <span v-if="isShowItem(item.copywriter)">{{ item.copywriter === '已完成' ? '线上故障改进项:已完成' : item.copywriter }}<span :class="{ red: isShowColor(item.copywriter, item.label) }"><span class="fontWeight">{{ item.label }}</span>
         <span v-if="isShow(item.copywriter)" class="fontWeight">%</span></span><span
-        v-if="item.copywriter !== '全量回滚率' && item.copywriter !== '逾期率'">个</span>
+        v-if="item.copywriter !== '全量回滚率' && item.copywriter !== '逾期率' && item.copywriter !== '故障率'">个</span>
         <span v-if="index < subTitle.length - 1">{{ item.copywriter.search(/发布次数|未定级故障/) > -1 ? ';' : isComma(item.copywriter) }}</span>
         <span v-if="index === subTitle.length - 1">。</span>
       </span>
@@ -29,7 +29,7 @@ export default {
   },
   methods: {
     isShow(label) {
-      return label.search(/逾期率/) > -1
+      return label.search(/逾期率|故障率/) > -1
     },
     isShowItem(label) {
       let isShow = true