wangyingjie 2 anni fa
parent
commit
b543933191

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

@@ -137,7 +137,9 @@ Component({
                   datalist.push(item)
                   datalist.push(item)
                 })
                 })
                 this.setData({
                 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)
                   datalist.push(item)
                 })
                 })
                 this.setData({
                 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)
                   datalist.push(item)
                 })
                 })
                 this.setData({
                 this.setData({
-                  radio: this.properties.contentID ? (nmb - 1) : ''
+                  radio: this.properties.contentID ? (nmb - 1) : '',
+                  valueKey: 'id',
+                  labelKey: 'name'
                 })
                 })
               }
               }
               // 角色
               // 角色