         window.modal_dialog.set_body( msg.body )
       .error (msg) ->
         console.log(msg)
-
     # 提交表单(创建)
     window.modal_dialog.get_modal_dialog().on "submit",".modal-body .page-levels-new .simple_form", (event) ->
       event.preventDefault()

        that.set_success_im(msg)
      .error (msg) =>
        that.set_failure_im(msg)

    # 点击头 关闭模态框按钮 通过data 设置@global = false 
    window.modal_dialog.get_modal_dialog().on "click", ".modal-content .modal-header .close", =>
      @global = jQuery(".modal-content .modal-header .close").data("global")

    # 点击脚 关闭模态框按钮 通过data 设置@global = false 
    window.modal_dialog.get_modal_dialog().on "click", ".modal-content .modal-footer .close-modal", =>
      @global = jQuery(".modal-content .modal-footer .close-modal").data("global")

    # 点击 业务种类按钮 设置业务种类树（显示树 隐藏表单）
    window.modal_dialog.get_modal_dialog().on "click", ".modal-content .modal-body .post_business_categories .bsns_btn", =>
      if @global is false

        jQuery(".modal-content .modal-body .simple_form").addClass("hide")
        jQuery(".modal-content .modal-body .tree").removeClass("hide")
        jQuery(".modal-content .modal-body .tree-button").removeClass("hide")
    # 点击树中的确定按钮，隐藏树 显示表单
    window.modal_dialog.get_modal_dialog().on "click", ".modal-content .modal-body .tree-button", =>
      jQuery(".modal-content .modal-body .tree").addClass("hide")
