前段动态值和页面的拼接

    '<tr>

           <td width="100px">'+data.rows[i].friendlyName+'<input type="hidden" value="'+data.rows[i].id+'"></td>

           <td width="480px">

                    <div class="form-tr clearfix">

                              <div class="form-td col-sm-6 ">

                                       <div class="form-item">

                                                <div class="item-name">

                                                     <span class="text-red">*</span>是否接收:

                                                </div>

                                                <div class="item-value">

                                                             <div class="sui-select" name="reciveIf'+data.rows[i].id+'" id="reciveIf'+data.rows[i].id+'" onchange="changeSelect('+data.rows[i].id+')" validate=\'{"require":true}\' title=""  value="0" mode="editable" dataSource=\'[{\"name\":\"是\",\"value\":0},{\"name\":\"否\",\"value\":1}]\' selectStyle="radio">

                                                             </div>

                                                 </div>

                                       </div>

                             </div>

                  </div>

      <div class="form-tr clearfix" id="refuseTypeDiv'+data.rows[i].id+'">

               <div class="form-td col-sm-7 ">

                      <div class="form-item">

                              <div class="item-name">

                                      <span class="text-red">*</span>接受类型:

                              </div>

                              <div class="item-value">

                                      <div class="sui-select" name="refuseType'+data.rows[i].id+'" id="refuseType'+data.rows[i].id+'"  validate=\'{\"require\":true}\' title="" value="1" mode="editable" dataSource=\'[{\"name\":\"实时接收\",\"value\":0},{\"name\":\"定时接收\",\"value\":1}]\' onchange="changeSelect('+data.rows[i].id+')" selectStyle="radio">

                                      </div>

                              </div>

                      </div>

               </div>

        </div>

        <div class="form-tr clearfix" id="refuseTimeDiv'+data.rows[i].id+'">

                <div class="form-td col-sm-7 ">

                       <div class="form-item">

                               <div class="item-name">

                                       <span class="text-red">*</span>接收时间:

                               </div>

                               <div class="sui-daterange datetime" name="refuseTime'+data.rows[i].id+'" id="refuseTime'+data.rows[i].id+'"  name="refuseTime'+data.rows[i].id+'" mode="editable" title="接收时间"  validate=\'{\"require\":false}\'  onchange="changeSelect('+data.rows[i].id+')" format="HH:mm:ss" dateRange=\'{\"view\":\"time\"}\'>

                               </div>

                        </div>

                 </div>

          </div>

     </td>

</tr>'

posted @ 2019-01-07 10:22  凌风翱翔  阅读(135)  评论(0编辑  收藏  举报