props: [ 'charHeightTop', 'bindData' ], computed:{ ...mapState([ 'sysUser' ]), //选中的年份 queryYear(){ return this.bindData.queryYear }, //是否为贫困人口 povertyPeople(){ return this.bindData.povertyPeople }, //机构代码编号 querySysCode(){ return this.bindData.querySysCode }, //区域代码编号 queryAreaCode(){ return this.bindData.queryAreaCode } },
watch :{ queryYear(){ this.searchAjax(); // console.log('年份发生了变化'+this.queryYear); }, //是否为贫困人口 povertyPeople(){ this.searchAjax(); // console.log('是否为贫困人口发生了变化'+this.povertyPeople); }, //机构代码编号 querySysCode(){ this.searchAjax(); // console.log('机构代码编号发生了变化'+this.querySysCode); }, //区域代码编号 queryAreaCode(){ // console.log('区域代码编号发生了变化'+this.queryAreaCode); this.searchAjax(); }, },