qinzhipeng_v@didiglobal.com 4 lat temu
rodzic
commit
df867176d7

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

@@ -122,6 +122,7 @@ export default {
       numberValidateForm: {},
       numberValidateForm: {},
       bizModules: [], // 点击的模块
       bizModules: [], // 点击的模块
       generalSet: {},
       generalSet: {},
+      bool: true,
       monthlySponsor: {
       monthlySponsor: {
         sponsor: ''
         sponsor: ''
       }, // 月报发起人
       }, // 月报发起人
@@ -186,14 +187,15 @@ export default {
       if (this.radio === 3) {
       if (this.radio === 3) {
         this.updatabizSetting({ id: this.moduleId, isAll: true })
         this.updatabizSetting({ id: this.moduleId, isAll: true })
       } else if (this.radio === 6) {
       } else if (this.radio === 6) {
-        let bool = true
+        this.bool = true
         this.bizModules.map(item => {
         this.bizModules.map(item => {
-          if (!item.moduleIds) {
-            bool = false
+          if (!item.moduleIds[0]) {
+            this.bool = false
             this.$message({ message: '模块不能为空', type: 'warning' })
             this.$message({ message: '模块不能为空', type: 'warning' })
           }
           }
         })
         })
-        bool && this.updatabizSetting({ id: this.moduleId, isAll: false, bizModules: this.bizModules })
+        console.log(this.bizModules, this.bool, '你知道吗')
+        this.bool && this.updatabizSetting({ id: this.moduleId, isAll: false, bizModules: this.bizModules })
       }
       }
     },
     },
     async updatabizSetting(val) { // 更新业务线设置
     async updatabizSetting(val) { // 更新业务线设置

+ 11 - 0
src/views/monthlyReport/components/monthlyEards.vue

@@ -82,6 +82,17 @@ export default {
   >>> .el-card__body {
   >>> .el-card__body {
     padding: 0;
     padding: 0;
   }
   }
+  >>>.el-tooltip__popper {
+    position: absolute;
+    border-radius: 4px;
+    padding: 10px;
+    z-index: 2000;
+    font-size: 12px;
+    line-height: 1.2;
+    min-width: 10px;
+    max-width: 200px;
+    word-wrap: break-word;
+}
   .Layout-flex {
   .Layout-flex {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;