motion-list.vue
687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
<div></div>
</template>
<script>
module.exports = {
data: function() {
return {
allList:{},
commodity: {},
listNum:0,
listMon:0,
// readonlyFlag:true
};
},
methods: {
getData: function() {
var self = this;
Ajax.post('/hospitalTrmedplan/isNextTpauto')
.then(function(response) {
var res = response.data.data;
if(!res){
self.$router.go({'path':'/motionPlan'});
}else{
self.$router.go({'path':'/motionPlan2'});
}
})
},
},
// 画面初始化
route: {
activate: function() {
this.getData();
}
},
};
</script>