|
@@ -10,6 +10,7 @@
|
|
:rencaiShowList="rencaiShowList"
|
|
:rencaiShowList="rencaiShowList"
|
|
:liebiaoList="liebiaoList"
|
|
:liebiaoList="liebiaoList"
|
|
@detail="clickDetail"
|
|
@detail="clickDetail"
|
|
|
|
+ @detailgz="clickDetailgz"
|
|
></personnel-detail>
|
|
></personnel-detail>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -21,7 +22,7 @@ import { createNamespacedHelpers, mapGetters } from 'vuex';
|
|
const { mapActions: mapSite } = createNamespacedHelpers('site');
|
|
const { mapActions: mapSite } = createNamespacedHelpers('site');
|
|
const { mapActions: mapColumn } = createNamespacedHelpers('policiesColumn');
|
|
const { mapActions: mapColumn } = createNamespacedHelpers('policiesColumn');
|
|
const { mapActions: mapNews } = createNamespacedHelpers('policiesNew');
|
|
const { mapActions: mapNews } = createNamespacedHelpers('policiesNew');
|
|
-
|
|
|
|
|
|
+const { mapActions: mapxinxi } = createNamespacedHelpers('policiesxinxi');
|
|
export default {
|
|
export default {
|
|
name: 'personnel',
|
|
name: 'personnel',
|
|
props: {},
|
|
props: {},
|
|
@@ -92,12 +93,14 @@ export default {
|
|
this.searchSite();
|
|
this.searchSite();
|
|
this.searchColumn();
|
|
this.searchColumn();
|
|
this.searchInfo();
|
|
this.searchInfo();
|
|
|
|
+ this.searchInfos();
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
...mapSite(['showInfo']),
|
|
...mapSite(['showInfo']),
|
|
...mapColumn({ columnList: 'query', columnInfo: 'fetch' }),
|
|
...mapColumn({ columnList: 'query', columnInfo: 'fetch' }),
|
|
...mapNews({ newsList: 'query', newsInfo: 'fetch' }),
|
|
...mapNews({ newsList: 'query', newsInfo: 'fetch' }),
|
|
|
|
+ ...mapxinxi({ xinxiList: 'query', xinxiInfo: 'fetch' }),
|
|
|
|
|
|
// 查询站点信息
|
|
// 查询站点信息
|
|
async searchSite() {
|
|
async searchSite() {
|
|
@@ -125,10 +128,21 @@ export default {
|
|
this.$set(this, `rencaiData`, res.data);
|
|
this.$set(this, `rencaiData`, res.data);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ async searchInfos({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
|
+ const res = await this.xinxiList({ skip, limit, ...info });
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ this.$set(this, `jobsData`, res.data);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
clickDetail({ data }) {
|
|
clickDetail({ data }) {
|
|
// 点击这个方法,跳转页面,并把id传过去,并用id查询详情
|
|
// 点击这个方法,跳转页面,并把id传过去,并用id查询详情
|
|
this.$router.push({ path: '/personnel/rencai', query: { id: data.id } });
|
|
this.$router.push({ path: '/personnel/rencai', query: { id: data.id } });
|
|
},
|
|
},
|
|
|
|
+ clickDetailgz({ data }) {
|
|
|
|
+ // 点击这个方法,跳转页面,并把id传过去,并用id查询详情
|
|
|
|
+ this.$router.push({ path: '/personnel/personnelwork', query: { id: data.id } });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|