优化会长信息被置空bug

master
chenzhi 3 years ago
parent 91354a0908
commit c0c6a2b640

@ -193,6 +193,9 @@
<script>
var dataTransfer = '';
$(function () {
layui.use(['transfer', 'layer', 'util'], function(){
var $ = layui.$ ,transfer = layui.transfer,layer = layui.layer ,util = layui.util;
$.ajax({
url: "{:U('getRootPromote')}",
type: "post",
@ -200,12 +203,6 @@
dataType: 'json',
success: function (data) {
// datas = data;
layui.use(['transfer', 'layer', 'util'], function(){
var $ = layui.$
,transfer = layui.transfer
,layer = layui.layer
,util = layui.util;
var data1 =data;
var data2 = [];
if (JSON.parse(data1).data_president) {
@ -274,14 +271,16 @@
}
});
});
}
});
$(function () {
var status = $('input:radio[name="data_empower_type"]:checked').val();
$('#status').val(status);
});
ajaxPostCallback(function(){
dataTransfer = transfer.getData('key123');
$('#promote_data').val(JSON.stringify(dataTransfer));
})
$(":radio").click(function () {
var status = $('input:radio[name="data_empower_type"]:checked').val();
$('#status').val(status);
@ -293,6 +292,8 @@
$('#promote_data').val(JSON.stringify(dataTransfer));
}
})
});
});
</script>
<script type="text/javascript" charset="utf-8">
@ -300,7 +301,7 @@
location.href = this.value;
});
//导航高亮
highlight_subnav('{:U('AuthManager/index')}');
highlight_subnav("{:U('AuthManager/index')}");
</script>
<style>

@ -406,6 +406,36 @@ function showTab() {
$("." + target).addClass("in");
}).filter("[data-tab=tab" + window.location.hash.substr(1) + "]").click();
}
function ajaxPostCallback(callback){
$('.ajax-post').off("click");
$('.ajax-post').click(function(){
callback();
var that = $(this);
if(check_post_submit(that)) {
if ( that.hasClass('confirm') ) {
post_delnotic(that);
} else if(that.hasClass('confirm_dialog')){
post_confirm_dialog(that);
} else if(that.hasClass('pack')) {
post_submit(that);
} else if(that.hasClass('ajax-loading')) {
updateAlert('正在提交');
post_submit(that);
} else {
post_submit(that);
}
} else {
updateAlert('请选择需要操作的数据','tip_error');
setTimeout(function(){
$('#tip').find('.tipclose').click();
},1500);
}
return false;
});
}
function oldshowTab() {
$(".tab-nav li").click(function(){
var self = $(this), target = self.data("tab");

Loading…
Cancel
Save