|
@@ -234,6 +234,100 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ // function caseBaseDialogres(title,url,deleteUrl,width,height,target) {
|
|
|
+ // parent.index = "";
|
|
|
+ // if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
+ // width='auto';
|
|
|
+ // height='auto';
|
|
|
+ // }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ // top.layer.open({
|
|
|
+ // type: 2,
|
|
|
+ // area: [width, height],
|
|
|
+ // title: title,
|
|
|
+ // maxmin: true, //开启最大化最小化按钮
|
|
|
+ // content: url ,
|
|
|
+ // skin: 'three-btns',
|
|
|
+ // btn: ['重新申请','作废', '关闭'],
|
|
|
+ // btn1: function (index, layero) {
|
|
|
+ // var body = top.layer.getChildFrame('body', index);
|
|
|
+ // var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
+ // var inputForm = body.find('#inputForm');
|
|
|
+ // var top_iframe;
|
|
|
+ // if (target) {
|
|
|
+ // top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
+ // } else {
|
|
|
+ // top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
+ // }
|
|
|
+ // inputForm.attr("target", top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
+ // if (iframeWin.contentWindow.doSubmit(3)) {
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
+ // setTimeout(function () {
|
|
|
+ // top.layer.close(index)
|
|
|
+ // }, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // btn2:function(index,layero){
|
|
|
+ // top.layer.confirm("将该案例项目信息申请作废?", {icon: 3, title:'系统提示'}, function(index){
|
|
|
+ // $.ajax({
|
|
|
+ // type:'post',
|
|
|
+ // url:deleteUrl,
|
|
|
+ // success:function(data){
|
|
|
+ // top.layer.closeAll();//关闭所有对话框。
|
|
|
+ // if(data.code == 1){
|
|
|
+ // top.layer.msg(data.msg, {icon: 1});
|
|
|
+ // }else{
|
|
|
+ // top.layer.msg(data.msg, {icon: 0});
|
|
|
+ // }
|
|
|
+ // window.location.reload();
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // });
|
|
|
+ // return false;
|
|
|
+ // },cancel: function(index){
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+
|
|
|
+ function openDialogreNew(title,url,width,height,target,buttons) {
|
|
|
+
|
|
|
+ if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {//如果是移动端,就使用自适应大小弹窗
|
|
|
+ width = 'auto';
|
|
|
+ height = 'auto';
|
|
|
+ } else {//如果是PC端,根据用户设置的width和height显示。
|
|
|
+
|
|
|
+ }
|
|
|
+ var split = buttons.split(",");
|
|
|
+ top.layer.open({
|
|
|
+ type: 2,
|
|
|
+ area: [width, height],
|
|
|
+ title: title,
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
+ skin: 'three-btns',
|
|
|
+ content: url,
|
|
|
+ btn: split,
|
|
|
+ btn1: function(index, layero){
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
+ var top_iframe;
|
|
|
+ if(target){
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
+ }else{
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
+ }
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
+ if(iframeWin.contentWindow.doSubmit(1) ){
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
+ }
|
|
|
+ },
|
|
|
+ btn3: function (index) {
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
function openDialogreReportSwitch(title,url,width,height,target,buttons) {
|
|
|
|
|
|
if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {//如果是移动端,就使用自适应大小弹窗
|
|
@@ -590,6 +684,11 @@
|
|
|
if(d.caseType != 1 && d.caseStatus ==2){
|
|
|
xml+="<a href=\"javascript:void(0)\" onclick=\"deleteFun('${ctx}/ruralProject/ruralCostProjectMessage/cancelInvalidateCaseBase?projectId=" + d.id + "')\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;' > 撤销案例项目申请</a>";
|
|
|
}
|
|
|
+ if(d.caseType != 1){
|
|
|
+ if(d.caseStatus == 4){
|
|
|
+ xml+="<a href=\"javascript:void(0)\" onclick=\"openDialogreNew('重新申请案例项目','${ctx}/workprojectnotify/workProjectNotify/form?notifyId=" + d.id + "&type=152&remarks=重新申请','95%', '95%','','重新申请,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;' > 重新申请案例项目</a>";
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//报告签发操作
|