{$_page|default=''}
@@ -302,6 +331,42 @@
});
}
+ $("#del_check").click(function () {
+ var text = $("input:checkbox[name='ids[]']:checked").map(function(index,elem) {
+ return $(elem).val();
+ }).get();
+
+ if(text.length < 1){
+ layer.msg("
" + '没有需要删除的数据' + "");
+ return;
+ }
+ layer.confirm('删除后将无法恢复,请慎重选择', {
+ btn: ['确认','取消'],
+ title:false
+ }, function(){
+ $.ajax({
+ type: "POST",
+ url: "{:U('del_check')}",
+ dataType: 'json',
+ async: false,
+ data: {ids:text},
+ success:function(data){
+ if(data.status==1){
+ layer.msg("
" + data.info + "");
+ setTimeout(function(){
+ window.location.reload();
+ },1500);
+ }else{
+ layer.msg("
" + data.info + "");
+ return false;
+ }
+ }
+ });
+ });
+
+ });
+
+
$(function() {
areaInit();
mapInit();
@@ -311,6 +376,12 @@
//导航高亮
highlight_subnav("{:U('lists')}");
$(function(){
+ $("#downloads").on("click",function(){
+ var url = $(this).attr("url");
+ window.location.href = url;
+ return false;;
+
+ });
$("#excel_in").click(function () {
$(".search_list").hide();
$(".excel_list").show();
@@ -318,6 +389,46 @@
$(".model").show();
return false;
});
+
+ $("#submit").click(function () {
+ var fileObj = document.getElementById("excelData").files[0]; // js 获取文件对象
+ var url = $(this).attr('url');
+ var oReq = new XMLHttpRequest();
+
+ var formFile = new FormData();
+ formFile.append("excelData", fileObj); //加入文件对象
+
+ layer.confirm('【提示】是否确认导入公会信息', {
+ btn: ['确认','取消'],
+ title:false
+ }, function(index){
+ $.ajax({
+ url:url,
+ type:"post",
+ data:formFile,
+ dataType:'json',
+ cache: false,
+ processData: false,
+ contentType: false,
+ success:function(data){
+ if (data.status == 1) {
+ layer.msg(data.msg);
+ setTimeout(function(){
+ // window.parent.reload()
+ window.location.href = "{:U('lists')}";
+ },2000)
+
+ } else {
+ layer.msg(data.msg);
+ }
+
+ }
+ })
+ });
+
+ return false;
+ });
+
$("#excel_back").click(function () {
$(".search_list").show();
$(".excel_list").hide();
diff --git a/Application/Admin/View/SocietyInfo/view.html b/Application/Admin/View/SocietyInfo/view.html
new file mode 100644
index 000000000..04f57c86c
--- /dev/null
+++ b/Application/Admin/View/SocietyInfo/view.html
@@ -0,0 +1,300 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{$meta_title}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Application/Admin/View/User/edit.html b/Application/Admin/View/User/edit.html
index 84f1118de..1aa028c6a 100644
--- a/Application/Admin/View/User/edit.html
+++ b/Application/Admin/View/User/edit.html
@@ -68,17 +68,29 @@