فهرست منبع

月报:优化

洪海涛 4 سال پیش
والد
کامیت
225a0dc1b7

+ 8 - 8
src/store/modules/monthlyReport/edit/index.js

@@ -405,9 +405,9 @@ export default {
     },
     // 获取部门数据
     SET_SELECT_ENUM(state, params) {
-      console.log(params);
+      console.log(params)
       state.selectEnum = params
-      console.log(state.selectEnum);
+      console.log(state.selectEnum)
       // setDeptArch(state.selectEnum)
     },
     // 标记为本月重点问题
@@ -655,9 +655,9 @@ export default {
           // commit('SET_SELECT_ENUM', res.data.dependence.deptArch.children)
           commit('SET_PAGE_DATA', res.data)
         }
-        console.log(res);
+        console.log(res)
         if (pageType === 'readAll' && params.catalogTitle.search(/服务端详情|客户端详情/) > -1) {
-          res.data.splice(0,0,{depth: 1, fromUser: false, hiddenAncestor: null, isVisible: true, subTitles: null, title: "整体概览", type: "Head1", content: []})
+          res.data.splice(0, 0, { depth: 1, fromUser: false, hiddenAncestor: null, isVisible: true, subTitles: null, title: '整体概览', type: 'Head1', content: [{ type: 'overallOverviewo' }] })
           console.log(params)
         }
         commit('SET_TAB_PAGE_DATA', {
@@ -724,14 +724,14 @@ export default {
     // 获取部门数据
     async setSelectEnum({ commit }, reportId) {
       const depth = JSON.parse(window.localStorage.getItem('depth'))
-      console.log(depth);
-      if(!depth){
-          const res = await getDeptArch({ reportId })
+      console.log(depth)
+      if (!depth) {
+        const res = await getDeptArch({ reportId })
         if (res.code === 200) {
           window.localStorage.setItem('depth', JSON.stringify(res.data.children))
           commit('SET_SELECT_ENUM', res.data.children)
         }
-      } else{
+      } else {
         commit('SET_SELECT_ENUM', depth)
       }
     },

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

@@ -8,13 +8,13 @@
   </div>
 </template>
 <script>
-import headTitle from '@/components/headTitle'
+// import headTitle from '@/components/headTitle'
 import onlineQuestion from './onlineQuestion'
 import qualityProcess from './qualityProcess'
 
 export default {
   components: {
-    headTitle,
+    // headTitle,
     onlineQuestion,
     qualityProcess
   },

+ 4 - 4
src/views/monthlyReport/childrenPage/editReport/components/OverallOverviewOfTheServer.vue

@@ -50,13 +50,13 @@
 </template>
 <script>
 import { getOverallOverview } from '@/api/qualityMonthlyReport/edit'
-import headTitle from '@/components/headTitle'
+// import headTitle from '@/components/headTitle'
 
 export default {
   name: 'OverallOverviewOfTheServer',
-  components: {
-    headTitle
-  },
+  // components: {
+  //   headTitle
+  // },
   data() {
     return {
       tableList: null

+ 9 - 0
src/views/monthlyReport/childrenPage/editReport/components/content.vue

@@ -21,6 +21,11 @@
         <div v-else-if="title.search(/重点问题/) > -1" style="margin-top: 10px;color: #666">本月无重点问题!</div>
         <div v-else-if="title.search(/两轮车|代驾|货运|硬件|中台/) > -1" style="margin-top: 10px;color: #666">{{ setNoDataTitle(title) }}</div>
       </div>
+      <div v-else-if="item.type === 'overallOverviewo'">
+         <OverallOverviewOfTheServer v-if="pageType.search(/readAll/) > -1 && tabsActive.search(/服务端/) > -1" />
+        <OverallOverviewOfTheClient v-if="pageType.search(/readAll/) > -1 && tabsActive.search(/客户端/) > -1" />
+    <markingIssues ref="markingIssues" />
+      </div>
       <!--   表格和富文本:TableAndRichText   -->
       <div v-else-if="item.type === 'TableAndRichText'">
         <mrTable
@@ -88,12 +93,16 @@
 import mrTable from './MrTable/index'
 import RichText from './RichText'
 import VarText from './VarText'
+import OverallOverviewOfTheServer from './OverallOverviewOfTheServer'
+import OverallOverviewOfTheClient from './OverallOverviewOfTheClient/index'
 
 export default {
   name: 'Content',
   components: {
     mrTable,
     RichText,
+    OverallOverviewOfTheServer,
+    OverallOverviewOfTheClient,
     VarText
   },
   props: {

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

@@ -83,8 +83,6 @@
         />
       </div>
     </div>
-    <OverallOverviewOfTheServer v-if="pageType.search(/readAll/) > -1 && tabsActive.search(/服务端/) > -1" />
-    <OverallOverviewOfTheClient v-if="pageType.search(/readAll/) > -1 && tabsActive.search(/客户端/) > -1" />
     <markingIssues ref="markingIssues" />
   </div>
 </template>
@@ -92,8 +90,6 @@
 <script>
 import _ from 'lodash'
 import headTitle from '@/components/headTitle'
-import OverallOverviewOfTheServer from './OverallOverviewOfTheServer'
-import OverallOverviewOfTheClient from './OverallOverviewOfTheClient/index'
 import contentDom from './content'
 import SubTitle from './SubTitle'
 import PushAndBanck from './PushAndBanck'
@@ -109,8 +105,6 @@ export default {
     markingIssues,
     SubTitle,
     PushAndBanck,
-    OverallOverviewOfTheServer,
-    OverallOverviewOfTheClient,
     Refresh
   },
   props: {