소스 검색

供应商代码

wangyingjie 2 년 전
부모
커밋
b543933191
1개의 변경된 파일9개의 추가작업 그리고 3개의 파일을 삭제
  1. 9 3
      components/dkbusiness/dk-single-dropdown-item/dk-single-dropdown-item.js

+ 9 - 3
components/dkbusiness/dk-single-dropdown-item/dk-single-dropdown-item.js

@@ -137,7 +137,9 @@ Component({
                   datalist.push(item)
                 })
                 this.setData({
-                  radio: this.properties.contentID ? (nmb - 1) : ''
+                  radio: this.properties.contentID ? (nmb - 1) : '',
+                  valueKey: 'id',
+                  labelKey: 'name'
                 })
               }
               // 供应商类别
@@ -186,7 +188,9 @@ Component({
                   datalist.push(item)
                 })
                 this.setData({
-                  radio: this.properties.contentID ? (nmb - 1) : ''
+                  radio: this.properties.contentID ? (nmb - 1) : '',
+                  valueKey: 'id',
+                  labelKey: 'name'
                 })
               }
               // 员工
@@ -211,7 +215,9 @@ Component({
                   datalist.push(item)
                 })
                 this.setData({
-                  radio: this.properties.contentID ? (nmb - 1) : ''
+                  radio: this.properties.contentID ? (nmb - 1) : '',
+                  valueKey: 'id',
+                  labelKey: 'name'
                 })
               }
               // 角色