                 (dom/div {:className "col-sm-10"}
                   (cond 
                     (= (:fieldtype (nth text 1)  )  0)
-                      ;;(dom/input {:type "text" :id (name (first text) ) :onChange #(handle-change %)})
-                      (dom/div {:className "col-sm-10"}
-                        (b/button-group
-                          {:id  (name (first text) ) }
-                          (b/dropdown {:title
-                          (if
-                            (= ( (keyword (nth text 0)) (:leaveapp @app-state)) nil )
-                              (:name  (nth text 1))  
-                              ( (keyword (nth text 0)) (:leaveapp @app-state))  
-
-                          ) 
-
-                          }
-                            (map (fn [item]
-                              (b/menu-item {:key (get item "code")
-                                :on-select  (fn [e](alertselected1 e (name (first text) )))
-                              } (get item "value"))
-                              )(:values (nth text 1))
-                            )                  
-                          )
-                        )
-                      )
-                    
+                      (desplayComboboxField text)
                     (= (:fieldtype (nth text 1)  )  1)
                       (dom/input {:type "text" :id (name (first text) ) :oninput #(handle-change %)})
                     (= (:fieldtype (nth text 1)  )  2)
                       (dom/input {:type "text" :id (name (first text) ) :onChange #(handle-change %)})
                     (= (:fieldtype (nth text 1)  )  3)
-                      (dom/input {:type "checkbox"   :id (name (first text)) :label (:name  (nth text 1))
-                      ;;:onClick #(handle-chkb-click %)
+                      (dom/input {:type "checkbox" :defaultChecked true :id (name (first text)) :label (:name  (nth text 1))
                       :onChange ( fn [e]( handle-chkb-change  e )   ) 
                       }) 
+                    (= (:fieldtype (nth text 1)  )  5)
+                      (dom/input {:type "text" :disabled true :value ((keyword (name (first text) )) (:leaveapp @app-state))  :ref (name (first text) ) :id (name (first text) )})
+
                   )
-
-
                 )
               )            
               )

        :hide (get fielddef "hide") :values (get fielddef "values")} }
    ]
    (swap! fieldnum inc)
    newdata
  )
)

(def ch (chan (dropping-buffer 2)))
(enable-console-print!)
(def jquery (js* "$"))
(defonce app-state (atom  {:view 0 :leavecode "" :leavetypes [] :leaveapp {:leavecode "请选择"} } )) ;; :leavedays 0 :leavehours 0



