| | |
| | | <div class="form-group"> |
| | | <table class="table table-striped table-bordered table-hover" id="opList"> |
| | | <thead> |
| | | <tr><th class="col-md-6">通道</th><th class="col-md-4">权重</th><th class="col-md-2">操作</th></tr> |
| | | <tr><th class="col-md-6">通道</th><th class="col-md-4">权重</th><th class="col-md-2">操作</th></tr> |
| | | </thead> |
| | | <tbody> |
| | | |
| | |
| | | html.push("<tr>"); |
| | | html.push("<td><select class='form-control' name='opid'>"); |
| | | $.each(opList, function (i) { |
| | | html.push("<option value='" + this.OpID + "' "+((this.OpID == opid) ? "selected" : "")+">" + this.OpName + "</option>"); |
| | | html.push("<option value='" + this.OpID + "' "+((this.OpID == opid) ? "selected" : "")+">" +this.OpID+"-"+ this.OpName + "</option>"); |
| | | }); |
| | | html.push("</select></td>"); |
| | | html.push("<td><input type='text' class='form-control' name='weight' value='"+weight+"'></td>"); |