<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                >[warning] 使用前請務必在js頁面引入**selector.js** #### 崗位選擇組件 >[info] selectPost: function (callback, options) {} * callback:確認選擇后的回調函數 * options:初始化參數 * checked:已選擇的崗位信息 * selectMode:選擇模式 radio-單選 checkbox-多選 * startOrgId:選擇的起始組織機構節點編碼 * checkLevel:可以選擇的組織機構節點類型(此處配置可選擇單位及科室) * title:彈出選擇框標題 ```php { "checked":"1,b,c", "selectMode":"radio", "startOrgId":'HBDBKJ', "checkLevel":"2,3" } ``` >[success]回調函數 選擇后的回調函數為二維數組,其格式如下: ```php [{"id":"22C45E6D-2E30-89E8-D3BA-03A385A07FB3","name":"科員","state":1,"text":"科員"}] ``` >[success]示例代碼 表單頁面代碼 ```html <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">選擇崗位:</label> <div class="col-xs-12 col-sm-8"> <div class="input-group" style="width:60%;"> <input type="text" name="PostName" id="PostName" value="" class="form-control" placeholder="選擇崗位" readonly="readonly"/> <input type="hidden" name="row[PostId]" id="PostId" value=""/> <div class="input-group-btn"> <button type="button" name="btnPostSelector" id="btnPostSelector" class="btn btn-success"><i class="fa fa-search"></i> 選擇</button> </div> </div> </div> </div> ``` js頁面代碼 ```js $('#btnPostSelector').on('click',function(){ var options={ selectModel :'radio', checked :$('#PostId').val() }; Selector.api.selectPost(function(data){ if(data && data.length>0){ var post =data[0]; $('#PostId').val(post.id); $('#PostName').val(post.name); }else{ $('#PostId').val(''); $('#PostName').val(''); } },options); }); ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看