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>
<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"
export default {
@ -120,7 +131,7 @@ export default {
that.itemNum = data.rows.length;
/* console.log(itemNum)*/
} else {
alert(data.msg);
// alert(data.msg);
}
}
})
@ -422,11 +433,12 @@ export default {
}
},
},
activated() {
this.load2();
},
mounted() {
this.load();
this.getItemNoNumber();
this.load2();
},
destroyed() {
// if (this.myChart0) {
@ -480,4 +492,4 @@ export default {
.container {
height: 100%;
}
</style>
</style>

30
src/views/scheduledBoard.vue

@ -34,6 +34,20 @@
</template>
<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"
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>

2
vue.config.js

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