Forráskód Böngészése

月报:单业务线 端 数据无法获取问题修复

洪海涛 4 éve
szülő
commit
6ee78c0b0e

+ 8 - 1
src/store/modules/monthlyReport/baseMixin/actions.js

@@ -24,7 +24,8 @@ import {
   readOnlyTableArrToObj,
   arrToObj,
   objToArr,
-  setTableHeader
+  setTableHeader,
+  setDeptArch
 } from '../utils/index.js'
 import { uuid10 } from '@/utils'
 import { message } from '@/utils/mesDebounce'
@@ -122,6 +123,12 @@ export default {
         id,
         tabsActive
       })
+
+      // 设置端数据
+      if (res.data.dependence.clientType) {
+        state.clientTypeList = [...res.data.dependence.clientType]
+      }
+      setDeptArch(state.clientTypeList)
       commit('SET_LOADING', false)
       // 设置月报子标题
       setTimeout(() => {

+ 6 - 6
src/views/monthlyReport/childrenPage/editReport/index.vue

@@ -419,19 +419,19 @@ export default {
     // 月报更新
     upDateReportFn(key = 'cb', confirmReportBack) {
       this.SET_LOADING(true)
-      setTimeout(()=>{
-        if(this.loading) {
+      setTimeout(() => {
+        if (this.loading) {
           window.location.reload()
         }
       }, 10000)
-      setTimeout(()=>{
-        if(this.loading) {
+      setTimeout(() => {
+        if (this.loading) {
           window.location.reload()
         }
       }, 15000)
 
-      setTimeout(()=>{
-        if(this.loading) {
+      setTimeout(() => {
+        if (this.loading) {
           window.location.reload()
         }
       }, 20000)