|
|
|
@ -53,29 +53,30 @@
|
|
|
|
|
<select id="promote_id" name="promote_id" class="select_gallery" style="width:120px;">
|
|
|
|
|
<option value="">请选择会长账号</option>
|
|
|
|
|
<volist name=":promote_listsOther(1)" id="vo">
|
|
|
|
|
<option promote_id-id="{$vo.id}" value="{$vo.id}" <if condition="$vo.id eq $_GET['promote_id']">selected=selected</if>>{$vo.account}</option>
|
|
|
|
|
<option data-company_belong="{$vo['company_belong']}" data-belong="{:getCompanyBlong($vo['company_belong'])}" promote_id-id="{$vo.id}" value="{$vo.id}" <if condition="$vo.id eq $_GET['promote_id']">selected=selected</if>>{$vo.account}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="company_belong_box" style="display: none;">
|
|
|
|
|
<td class="l">工会归属:</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio">
|
|
|
|
|
<label >
|
|
|
|
|
<input type="radio" value="3" name="company_belong" checked="checked" class="company_belong"> 无
|
|
|
|
|
<input id="company_belong" name="company_belong" value="" type="hidden">
|
|
|
|
|
<span class="form_radio" id="company_belong_str">
|
|
|
|
|
<!-- <label >
|
|
|
|
|
<input type="radio" value="3" name="company_belong" class="company_belong" checked="checked"> 无
|
|
|
|
|
</label >
|
|
|
|
|
<label >
|
|
|
|
|
<input type="radio" value="0" name="company_belong" class="company_belong"> 内团
|
|
|
|
|
<input type="radio" value="0" name="company_belong" class="company_belong"> 内团
|
|
|
|
|
</label >
|
|
|
|
|
<label >
|
|
|
|
|
<input type="radio" value="1" name="company_belong" class="company_belong"> 外团
|
|
|
|
|
</label>
|
|
|
|
|
<label >
|
|
|
|
|
<input type="radio" value="2" name="company_belong" class="company_belong"> 外团-分发联盟
|
|
|
|
|
</label >
|
|
|
|
|
<input type="radio" value="2" name="company_belong" class="company_belong"> 外团-分发联盟
|
|
|
|
|
</label > -->
|
|
|
|
|
</span>
|
|
|
|
|
<!-- <span class="notice-text"></span>-->
|
|
|
|
|
</td>
|
|
|
|
@ -171,8 +172,16 @@
|
|
|
|
|
Think.setValue("category", {$data.category|default = 0});
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#promote_id").on("select2:select",function(e){
|
|
|
|
|
console.log(e);
|
|
|
|
|
$("#promote_id").on("change",function(e){
|
|
|
|
|
|
|
|
|
|
var belong = $("#promote_id option:selected").data();
|
|
|
|
|
$("#company_belong_str").html(belong.belong);
|
|
|
|
|
$("#company_belong").val(belong.company_belong);
|
|
|
|
|
if(belong.company_belong > -1){
|
|
|
|
|
$("#company_belong_box").show();
|
|
|
|
|
}else{
|
|
|
|
|
$("#company_belong_box").hide();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// showTab();
|
|
|
|
|
});
|
|
|
|
|