Jelajahi Sumber

问题修复

liuyao 1 tahun lalu
induk
melakukan
a5ee3c8704

+ 5 - 5
components/dkbusiness/dk-muti-dropdown-item/dk-muti-dropdown-item.js

@@ -340,13 +340,14 @@ Component({
       let typeName = this.data.typeName
       let docName = this.data.docName
       let name = ''
-      let flgBusiness = ''
       // 部门
       if (typeName === 'org') {
         DataSourceCode = 'org'
-        console.log(666);
-        flgBusiness = true
+        let flgBusiness = true
         name = '业务部门'
+        this.setData({
+          flgBusiness: flgBusiness
+        })
       }
       //业务员
       if (typeName === 'staff') {
@@ -395,8 +396,7 @@ Component({
         name = '结算方式'
       }
       this.setData({
-        DataSourceCode: DataSourceCode,
-        flgBusiness: flgBusiness
+        DataSourceCode: DataSourceCode
       })
     },
     setCheck() {

+ 1 - 4
components/dkbusiness/dk-single-dropdown-item/dk-single-dropdown-item.js

@@ -326,7 +326,6 @@ Component({
    */
   data: {
     DataSourceCode: '',
-    flgBusiness: '',
     // 是否点击清除按钮
     isClickClear: false,
     // datalist: [],
@@ -383,7 +382,6 @@ Component({
 
       if (typeName === 'org') {
         DataSourceCode = 'org'
-        flgBusiness = true
         name = '业务部门'
       }
       //业务员
@@ -425,8 +423,7 @@ Component({
         name = '初始款项'
       }
       this.setData({
-        DataSourceCode: DataSourceCode,
-        flgBusiness: flgBusiness
+        DataSourceCode: DataSourceCode
       })
     },
     /**