motion-list.vue 687 Bytes
<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>