Browse Source

上传文件

master
ruanqi 4 years ago
parent
commit
ba83331d2f
  1. 20
      src/views/orderBoard.vue
  2. 30
      src/views/scheduledBoard.vue
  3. 2
      vue.config.js

20
src/views/orderBoard.vue

@ -37,6 +37,17 @@
</template> </template>
<script> <script>
// $.ajaxSetup({
// complete:function(XMLHttpRequest,textStatus){
//
// //XMLHttpRequestsessionstatus
// var sessionstatus=XMLHttpRequest.getResponseHeader("sessionstatus");
// if(sessionstatus=="timeout"){
// // ()
// window.location.replace("/login/index.php");
// }
// }
// });
import TimeC from "./time" import TimeC from "./time"
export default { export default {
@ -120,7 +131,7 @@ export default {
that.itemNum = data.rows.length; that.itemNum = data.rows.length;
/* console.log(itemNum)*/ /* console.log(itemNum)*/
} else { } else {
alert(data.msg);
// alert(data.msg);
} }
} }
}) })
@ -422,11 +433,12 @@ export default {
} }
}, },
}, },
activated() {
this.load2();
},
mounted() { mounted() {
this.load(); this.load();
this.getItemNoNumber(); this.getItemNoNumber();
this.load2();
}, },
destroyed() { destroyed() {
// if (this.myChart0) { // if (this.myChart0) {
@ -480,4 +492,4 @@ export default {
.container { .container {
height: 100%; height: 100%;
} }
</style>
</style>

30
src/views/scheduledBoard.vue

@ -34,6 +34,20 @@
</template> </template>
<script> <script>
// $.ajaxSetup({
// complete:function(XMLHttpRequest,textStatus){
// //XMLHttpRequestsessionstatus
// 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" import TimeC from "./time"
export default { export default {
name: "scheduledBoard", name: "scheduledBoard",
@ -118,7 +132,7 @@ export default {
that.itemNum = data.rows.length; that.itemNum = data.rows.length;
/* console.log(itemNum)*/ /* console.log(itemNum)*/
} else { } else {
alert(data.msg);
// alert(data.msg);
} }
} }
}); });
@ -154,11 +168,12 @@ export default {
}, },
getBoardData() { getBoardData() {
let that=this;
$.ajax({ $.ajax({
url: "/board/getBoardData", url: "/board/getBoardData",
type: "POST", type: "POST",
contentType: 'application/json;charset=utf-8', contentType: 'application/json;charset=utf-8',
async: false,
async: true,
data: null,// formid data: null,// formid
dataType: "JSON", dataType: "JSON",
success: (data) => { success: (data) => {
@ -169,9 +184,12 @@ export default {
this.jump(); this.jump();
} }
}, },
error: () => {
this.jump();
}
// error: () => {
// this.jump();
// }
}).fail( (jqXHR, textStatus, errorThrown)=> {
that.jump();
}); });
}, },
@ -475,4 +493,4 @@ export default {
.container { .container {
height: 100%; height: 100%;
} }
</style>
</style>

2
vue.config.js

@ -6,4 +6,4 @@ module.exports = {
// proxy: 'http://localhost:8083' // proxy: 'http://localhost:8083'
proxy: 'http://172.26.68.16:8091' proxy: 'http://172.26.68.16:8091'
} }
}
}
Loading…
Cancel
Save