qinzhipeng_v@didiglobal.com 4 жил өмнө
parent
commit
8fcb735eb1

+ 5 - 5
src/views/monthlyReport/childrenPage/setReport/components/general.vue

@@ -119,11 +119,6 @@ export default {
   },
   methods: {
     async getSponsorList() {
-      const res = await getSponsorList() // 获取月报发起人
-      if (res.code === 200 && res.data) {
-        this.sponsorList = res.data.map(x => { return x.name })
-        this.monthlySponsor.sponsors = res.data.map(x => { return x.ename })
-      }
       const resBiz = await monthlyReportSettingList() // 获取业务线设置
       if (resBiz.code === 200 && resBiz.data.length > 0) {
         this.bizSetList = resBiz.data.map(item => ({
@@ -135,6 +130,11 @@ export default {
           confirmerNames: item.confirmer ? item.confirmer.map(x => { return x.name }) : null
         }))
       }
+      const res = await getSponsorList() // 获取月报发起人
+      if (res.code === 200 && res.data) {
+        this.sponsorList = res.data.map(x => { return x.name })
+        this.monthlySponsor.sponsors = res.data.map(x => { return x.ename })
+      }
     },
     async GetReportBizInfo() { // 获取业务线option
       const res = await settingGetBizList({})