|
@@ -108,7 +108,7 @@
|
|
|
<button type="button" class="close" data-dismiss="modal"><span
|
|
|
aria-hidden="true">×</span><span class="sr-only">Close</span>
|
|
|
</button>
|
|
|
- <!--<h4 class="modal-title">[[${visualization_plan.TITLE}]]</h4>-->
|
|
|
+ <h4 class="modal-title">[[${visualization_plan.TITLE}]]</h4>
|
|
|
</div>
|
|
|
<small>
|
|
|
<div class="modal-body">
|
|
@@ -262,7 +262,25 @@
|
|
|
},function(){
|
|
|
$(this).css("border-color","#d8d8d8")
|
|
|
});
|
|
|
+ function setCookie(key, value, t) {
|
|
|
+ var oDate = new Date();
|
|
|
+ oDate.setDate(oDate.getDate() + t);
|
|
|
+ //使用escape()对内容进行编码
|
|
|
+ document.cookie = key + '=' + escape(value) + ';expires=' + oDate.toGMTString();
|
|
|
+ }
|
|
|
+ function getCookie(key) {
|
|
|
+ var arr1 = document.cookie.split(';');
|
|
|
+ for (var i = 0; i < arr1.length; i++) {
|
|
|
+ var arr2 = arr1[i].split('=');
|
|
|
+ if (arr2[0] == key) {
|
|
|
+ return unescape(arr2[1]);//对编码后的内容进行解码
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$(function(){
|
|
|
+ setCookie("flushpage_switch","false",1000000000000)
|
|
|
+ console.log("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$",getCookie("flushpage_switch"))
|
|
|
$(".hq_tit2 span").on('click',function(){
|
|
|
$(this).addClass('on').siblings('span').removeClass('on');
|
|
|
$(".tit_div").eq($(this).index()).show().siblings('.tit_div').hide();
|
|
@@ -291,20 +309,29 @@
|
|
|
}
|
|
|
|
|
|
function drivingEvents(id,type,action){
|
|
|
- type = "reserveplan_type_1"
|
|
|
+ // type = "reserveplan_type_1"
|
|
|
confirmReport(id,type,action);
|
|
|
|
|
|
}
|
|
|
function confirmReport(eventId,eventType,action) {
|
|
|
+
|
|
|
+
|
|
|
confirm_id = eventId;
|
|
|
confirm_type = eventType;
|
|
|
confirm_action = action;
|
|
|
+
|
|
|
+ console.log("1111111111111111",eventType)
|
|
|
+ debugger
|
|
|
var options = {
|
|
|
title: '消息通知',
|
|
|
width: $(document).width(),
|
|
|
url: "/visualization/confirm/selectUser",
|
|
|
callBack: doSubmitConfirm
|
|
|
};
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
//无异常不弹窗
|
|
|
if(confirm_action == "nomarl"){
|
|
|
var obj = new Object();
|
|
@@ -320,6 +347,27 @@
|
|
|
return;
|
|
|
}
|
|
|
$.modal.openOptions(options);
|
|
|
+ $(".layui-layer-btn0").click(function () {
|
|
|
+ setTimeout(function () {
|
|
|
+ parent.window.location.reload();//父页面刷新
|
|
|
+ window.location.reload();//页面刷新
|
|
|
+ }, 500);
|
|
|
+ })
|
|
|
+ $(".layui-layer-btn1").click(function () {
|
|
|
+ setTimeout(function () {
|
|
|
+ parent.window.location.reload();//父页面刷新
|
|
|
+ window.location.reload();//页面刷新
|
|
|
+ }, 500);
|
|
|
+ })
|
|
|
+ $(".layui-layer-close1").click(function () {
|
|
|
+ setTimeout(function () {
|
|
|
+ parent.window.location.reload();//父页面刷新
|
|
|
+ window.location.reload();//页面刷新
|
|
|
+ }, 500);
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -327,6 +375,7 @@
|
|
|
|
|
|
|
|
|
function doSubmitConfirm(index, layero){
|
|
|
+ setCookie("flushpage_switch","true",1000000000000)
|
|
|
var body = layer.getChildFrame('body', index);
|
|
|
|
|
|
var userIds = body.find('#selectorx').val();
|
|
@@ -339,7 +388,14 @@
|
|
|
var obj = new Object();
|
|
|
obj.id = confirm_id;
|
|
|
obj.userIds = userIds.toString();
|
|
|
- drivingFireEvents(confirm_action,obj);
|
|
|
+ console.log("^^^^^^^^^^^",confirm_action)
|
|
|
+ debugger;
|
|
|
+ if(confirm_type == 'reserveplan_type_1'){
|
|
|
+ drivingFireEvents(confirm_action,obj);
|
|
|
+ }else{
|
|
|
+ drivingOthersEvents(confirm_action,obj)
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function drivingFireEvents(action,obj) {
|
|
@@ -350,6 +406,9 @@
|
|
|
}else{
|
|
|
url += "/confirmFireEvent";
|
|
|
}
|
|
|
+
|
|
|
+ console.log("*************************",url)
|
|
|
+ debugger;
|
|
|
ajaxPost(url,obj);
|
|
|
|
|
|
|
|
@@ -362,6 +421,7 @@
|
|
|
}else{
|
|
|
url += "/confirmOthersEvent";
|
|
|
}
|
|
|
+ console.log("########",action)
|
|
|
ajaxPost(url,obj);
|
|
|
}
|
|
|
|