|  | @@ -260,44 +260,48 @@ function verify(id) {
 | 
	
		
			
				|  |  |  //驳回
 | 
	
		
			
				|  |  |  function rebut(id) {
 | 
	
		
			
				|  |  |      layer.open({
 | 
	
		
			
				|  |  | -        type: 1, // 页面层
 | 
	
		
			
				|  |  | +        //基本层类型
 | 
	
		
			
				|  |  | +        type: 1,
 | 
	
		
			
				|  |  | +        //宽高
 | 
	
		
			
				|  |  | +        area:['500px','300px'],
 | 
	
		
			
				|  |  | +        //标题
 | 
	
		
			
				|  |  |          title: '驳回原因',
 | 
	
		
			
				|  |  | -        area: ['400px', '200px'], // 宽高
 | 
	
		
			
				|  |  | -        content: '<div style="padding: 20px;">输入驳回原因:<br><input type="text" id="inputValue" class="layui-input"></div>',
 | 
	
		
			
				|  |  | -        success: function(layero, index){ // 成功时的回调函数,这里可以添加按钮等操作
 | 
	
		
			
				|  |  | -          var $ = layui.jquery; // 注意这里的$要和外部保持一致,避免冲突问题,这里用的是layui的$而不是jQuery的$
 | 
	
		
			
				|  |  | -          $(layero).find('.layui-layer-content').append('<button id="submitData" class="layui-btn layui-btn-normal">提交</button>'); 
 | 
	
		
			
				|  |  | -          // 在内容区域动态添加按钮
 | 
	
		
			
				|  |  | -          $('#submitData').on('click', function(){ 
 | 
	
		
			
				|  |  | -            // 为新添加的按钮绑定点击事件,同上提交数据的代码
 | 
	
		
			
				|  |  | -            var inputValue = $('#inputValue').val();
 | 
	
		
			
				|  |  | -            if (inputValue == '') {
 | 
	
		
			
				|  |  | -                layero.msg('请输入驳回原因');
 | 
	
		
			
				|  |  | -                return;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +        //内容
 | 
	
		
			
				|  |  | +        content: $('#rejectionReason'),
 | 
	
		
			
				|  |  | +        //按钮
 | 
	
		
			
				|  |  | +        btn:['确定','取消'],
 | 
	
		
			
				|  |  | +        //确定按钮
 | 
	
		
			
				|  |  | +        yes: function(index, layero){
 | 
	
		
			
				|  |  | +            //获取表单内的所有值
 | 
	
		
			
				|  |  | +            // const formData = layui.form.val("create_table_from");
 | 
	
		
			
				|  |  | +            var reasonVal = $("#reasonTextarea").val();
 | 
	
		
			
				|  |  | +            console.log(reasonVal,'reasonVal');
 | 
	
		
			
				|  |  |              $.ajax({
 | 
	
		
			
				|  |  |                  type: 'POST',
 | 
	
		
			
				|  |  |                  data: {
 | 
	
		
			
				|  |  |                      'id': id,
 | 
	
		
			
				|  |  | -                    "opinion": inputValue
 | 
	
		
			
				|  |  | +                    "opinion": reasonVal
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  url: prefix + '/rebut',
 | 
	
		
			
				|  |  |                  success: function (r) {
 | 
	
		
			
				|  |  |                      if (r.code == 0) {
 | 
	
		
			
				|  |  |                          layero.msg(r.msg);
 | 
	
		
			
				|  |  | +                        layero.close(index);
 | 
	
		
			
				|  |  |                          // 刷新页面
 | 
	
		
			
				|  |  |                          reLoad();
 | 
	
		
			
				|  |  |                      } else {
 | 
	
		
			
				|  |  |                          layero.msg(r.msg);
 | 
	
		
			
				|  |  | +                        layero.close(index);
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  | -            layero.close(index); // 关闭弹出层   
 | 
	
		
			
				|  |  | -          });
 | 
	
		
			
				|  |  | -        }   
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        //取消按钮
 | 
	
		
			
				|  |  | +        btn2: function(index, layero) {
 | 
	
		
			
				|  |  | +            layero.close(index);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      // layer.confirm('确定要驳回选中的备案申请?', {
 | 
	
		
			
				|  |  |      //     btn: ['确定', '取消']
 | 
	
		
			
				|  |  |      // }, function () {
 | 
	
	
		
			
				|  | @@ -364,21 +368,22 @@ function batchRebut() {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      layer.open({
 | 
	
		
			
				|  |  | -        type: 1, // 页面层
 | 
	
		
			
				|  |  | +        //基本层类型
 | 
	
		
			
				|  |  | +        type: 1,
 | 
	
		
			
				|  |  | +        //宽高
 | 
	
		
			
				|  |  | +        area:['500px','300px'],
 | 
	
		
			
				|  |  | +        //标题
 | 
	
		
			
				|  |  |          title: '驳回原因',
 | 
	
		
			
				|  |  | -        area: ['400px', '200px'], // 宽高
 | 
	
		
			
				|  |  | -        content: '<div style="padding: 20px;">输入驳回原因:<br><input type="text" id="inputValue" class="layui-input"></div>',
 | 
	
		
			
				|  |  | -        success: function(layero, index){ // 成功时的回调函数,这里可以添加按钮等操作
 | 
	
		
			
				|  |  | -          var $ = layui.jquery; // 注意这里的$要和外部保持一致,避免冲突问题,这里用的是layui的$而不是jQuery的$
 | 
	
		
			
				|  |  | -          $(layero).find('.layui-layer-content').append('<button id="submitData" class="layui-btn layui-btn-normal">提交</button>'); 
 | 
	
		
			
				|  |  | -          // 在内容区域动态添加按钮
 | 
	
		
			
				|  |  | -          $('#submitData').on('click', function(){ 
 | 
	
		
			
				|  |  | -            // 为新添加的按钮绑定点击事件,同上提交数据的代码
 | 
	
		
			
				|  |  | -            var inputValue = $('#inputValue').val();
 | 
	
		
			
				|  |  | -            if (inputValue == '') {
 | 
	
		
			
				|  |  | -                layero.msg('请输入驳回原因');
 | 
	
		
			
				|  |  | -                return;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +        //内容
 | 
	
		
			
				|  |  | +        content: $('#rejectionReason'),
 | 
	
		
			
				|  |  | +        //按钮
 | 
	
		
			
				|  |  | +        btn:['确定','取消'],
 | 
	
		
			
				|  |  | +        //确定按钮
 | 
	
		
			
				|  |  | +        yes: function(index, layero){
 | 
	
		
			
				|  |  | +            //获取表单内的所有值
 | 
	
		
			
				|  |  | +            // const formData = layui.form.val("create_table_from");
 | 
	
		
			
				|  |  | +            var reasonVal = $("#reasonTextarea").val();
 | 
	
		
			
				|  |  | +            console.log(reasonVal,'reasonVal');
 | 
	
		
			
				|  |  |              var ids = new Array();
 | 
	
		
			
				|  |  |              // 遍历所有选择的行数据,取每条数据对应的ID
 | 
	
		
			
				|  |  |              $.each(rows, function (i, row) {
 | 
	
	
		
			
				|  | @@ -388,76 +393,28 @@ function batchRebut() {
 | 
	
		
			
				|  |  |                  type: 'POST',
 | 
	
		
			
				|  |  |                  data: {
 | 
	
		
			
				|  |  |                      "ids": ids,
 | 
	
		
			
				|  |  | -                    "opinion": inputValue
 | 
	
		
			
				|  |  | +                    "opinion": reasonVal
 | 
	
		
			
				|  |  |                  },
 | 
	
		
			
				|  |  |                  url: prefix + '/batchRebut',
 | 
	
		
			
				|  |  |                  success: function (r) {
 | 
	
		
			
				|  |  |                      if (r.code == 0) {
 | 
	
		
			
				|  |  |                          layero.msg(r.msg);
 | 
	
		
			
				|  |  | +                        layero.close(index);
 | 
	
		
			
				|  |  |                          // 刷新页面
 | 
	
		
			
				|  |  |                          reLoad();
 | 
	
		
			
				|  |  |                      } else {
 | 
	
		
			
				|  |  |                          layero.msg(r.msg);
 | 
	
		
			
				|  |  | +                        layero.close(index);
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  | -            layero.close(index); // 关闭弹出层   
 | 
	
		
			
				|  |  | -          });
 | 
	
		
			
				|  |  | -        }   
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        //取消按钮
 | 
	
		
			
				|  |  | +        btn2: function(index, layero) {
 | 
	
		
			
				|  |  | +            layero.close(index);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    // layer.open({
 | 
	
		
			
				|  |  | -    //     //基本层类型
 | 
	
		
			
				|  |  | -    //     type: 1,
 | 
	
		
			
				|  |  | -    //     //宽高
 | 
	
		
			
				|  |  | -    //     area:['600px','400px'],
 | 
	
		
			
				|  |  | -    //     //标题
 | 
	
		
			
				|  |  | -    //     title: '驳回原因',
 | 
	
		
			
				|  |  | -    //     //内容
 | 
	
		
			
				|  |  | -    //     content: $('#create_table_from'),
 | 
	
		
			
				|  |  | -    //     //按钮
 | 
	
		
			
				|  |  | -    //     btn:['确定','取消'],
 | 
	
		
			
				|  |  | -    //     //确定按钮
 | 
	
		
			
				|  |  | -    //     yes: function(index, layero){
 | 
	
		
			
				|  |  | -    //         //开启loading
 | 
	
		
			
				|  |  | -    //         const loading = layer.load(2);
 | 
	
		
			
				|  |  | -    //         //获取表单内的所有值
 | 
	
		
			
				|  |  | -    //         const formData = layui.form.val("create_table_from");
 | 
	
		
			
				|  |  | -    //         var ids = new Array();
 | 
	
		
			
				|  |  | -    //         // 遍历所有选择的行数据,取每条数据对应的ID
 | 
	
		
			
				|  |  | -    //         $.each(rows, function (i, row) {
 | 
	
		
			
				|  |  | -    //             ids[i] = row['id'];
 | 
	
		
			
				|  |  | -    //         });
 | 
	
		
			
				|  |  | -    //         $.ajax({
 | 
	
		
			
				|  |  | -    //             type: 'POST',
 | 
	
		
			
				|  |  | -    //             data: {
 | 
	
		
			
				|  |  | -    //                 "ids": ids,
 | 
	
		
			
				|  |  | -    //                 "opinion": formData.reason
 | 
	
		
			
				|  |  | -    //             },
 | 
	
		
			
				|  |  | -    //             url: prefix + '/batchRebut',
 | 
	
		
			
				|  |  | -    //             success: function (r) {
 | 
	
		
			
				|  |  | -    //                 if (r.code == 0) {
 | 
	
		
			
				|  |  | -    //                     layer.msg(r.msg);
 | 
	
		
			
				|  |  | -    //                     //关闭loading
 | 
	
		
			
				|  |  | -    //                     layer.close(loading);
 | 
	
		
			
				|  |  | -    //                     layer.close(index);
 | 
	
		
			
				|  |  | -    //                     // 刷新页面
 | 
	
		
			
				|  |  | -    //                     reLoad();
 | 
	
		
			
				|  |  | -    //                 } else {
 | 
	
		
			
				|  |  | -    //                     layer.msg(r.msg);
 | 
	
		
			
				|  |  | -    //                     //关闭loading
 | 
	
		
			
				|  |  | -    //                     layer.close(loading);
 | 
	
		
			
				|  |  | -    //                     layer.close(index);
 | 
	
		
			
				|  |  | -    //                 }
 | 
	
		
			
				|  |  | -    //             }
 | 
	
		
			
				|  |  | -    //         });
 | 
	
		
			
				|  |  | -    //     },
 | 
	
		
			
				|  |  | -    //     //取消按钮
 | 
	
		
			
				|  |  | -    //     btn2: function(index, layero) {
 | 
	
		
			
				|  |  | -    //         layer.close(index);
 | 
	
		
			
				|  |  | -    //     }
 | 
	
		
			
				|  |  | -    // });
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      // layer.confirm("确认要驳回选中的'" + rows.length + "'条备案数据吗?", {
 | 
	
		
			
				|  |  |      //     btn: ['确定', '取消']
 | 
	
		
			
				|  |  |      //     // 按钮
 |