{
    template:'${tmpl}',
    data:function(){
        return {
           currentServicesitem:{},
        }
    },
    mounted:function(){
      /*alert(this.$router.history.current.params.id);*/
      this.fetchData();
    },
    created:function(){
      console.log("xxxxxxxxxxxxxxxxxxxxyyy");
      this.$store.commit('increment');
      console.log(this.count);
      console.log("xxxxxxxxxxxxxxxxxxxxyyy");
    },
    methods:{
      fetchData(){
        var aid=this.$router.history.current.params.id;
        this.$root.postReq("/web/servicesitemCtl/findById",{id:aid}).then(d=>{
          console.log("---------------servicesitemCtl/findById-------------");
          console.log(d.data);
          if(d && d.status==0){
            this.currentServicesitem=d.data;
          }
        });
      }
    },
    computed: Vuex.mapState({
      count:state=>state.count
    }),
    vname:"gsb-servicesitemdetail"
}
