|
|
|
@ -34,6 +34,20 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
// $.ajaxSetup({ |
|
|
|
// complete:function(XMLHttpRequest,textStatus){ |
|
|
|
// //通过XMLHttpRequest取得响应头,sessionstatus, |
|
|
|
// var sessionstatus=XMLHttpRequest.getResponseHeader("sessionstatus"); |
|
|
|
// let reponseCode =XMLHttpRequest.responseJSON; |
|
|
|
// if(reponseCode.code==555){ |
|
|
|
// this.jump(); |
|
|
|
// } |
|
|
|
// if(sessionstatus=="timeout"){ |
|
|
|
// //如果超时就处理 ,指定要跳转的页面(比如登陆页) |
|
|
|
// window.location.replace("/login/index.php"); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }); |
|
|
|
import TimeC from "./time" |
|
|
|
export default { |
|
|
|
name: "scheduledBoard", |
|
|
|
@ -118,7 +132,7 @@ export default { |
|
|
|
that.itemNum = data.rows.length; |
|
|
|
/* console.log(itemNum)*/ |
|
|
|
} else { |
|
|
|
alert(data.msg); |
|
|
|
// alert(data.msg); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -154,11 +168,12 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
getBoardData() { |
|
|
|
let that=this; |
|
|
|
$.ajax({ |
|
|
|
url: "/board/getBoardData", |
|
|
|
type: "POST", |
|
|
|
contentType: 'application/json;charset=utf-8', |
|
|
|
async: false, |
|
|
|
async: true, |
|
|
|
data: null,// 你的formid |
|
|
|
dataType: "JSON", |
|
|
|
success: (data) => { |
|
|
|
@ -169,9 +184,12 @@ export default { |
|
|
|
this.jump(); |
|
|
|
} |
|
|
|
}, |
|
|
|
error: () => { |
|
|
|
this.jump(); |
|
|
|
} |
|
|
|
// error: () => { |
|
|
|
// this.jump(); |
|
|
|
// } |
|
|
|
}).fail( (jqXHR, textStatus, errorThrown)=> { |
|
|
|
that.jump(); |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
@ -475,4 +493,4 @@ export default { |
|
|
|
.container { |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |