|
@@ -0,0 +1,93 @@
|
|
|
|
+<template>
|
|
|
|
+ <div id="exportDetail">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="24" class="style">
|
|
|
|
+ <el-col :span="24" class="top">
|
|
|
|
+ <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="main">
|
|
|
|
+ <exportDetails :exportInfo="exportInfo"></exportDetails>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+import NavBar from '@/layout/common/topInfo.vue';
|
|
|
|
+import footInfo from '@/layout/common/footInfo.vue';
|
|
|
|
+import exportDetails from '@/layout/market/exportDetails.vue';
|
|
|
|
+import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
|
+const { mapActions: expertsuser } = createNamespacedHelpers('expertsuser');
|
|
|
|
+export default {
|
|
|
|
+ name: 'exportDetail',
|
|
|
|
+ props: {},
|
|
|
|
+ components: {
|
|
|
|
+ NavBar,
|
|
|
|
+ exportDetails, //专家详情
|
|
|
|
+ },
|
|
|
|
+ data: () => ({
|
|
|
|
+ // 头部标题
|
|
|
|
+ title: '',
|
|
|
|
+ // meta为true
|
|
|
|
+ isleftarrow: '',
|
|
|
|
+ // 返回
|
|
|
|
+ navShow: true,
|
|
|
|
+ exportInfo: {},
|
|
|
|
+ }),
|
|
|
|
+ created() {
|
|
|
|
+ this.searchInfo();
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ id() {
|
|
|
|
+ return this.$route.query.id;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ ...expertsuser(['fetch']),
|
|
|
|
+ async searchInfo() {
|
|
|
|
+ if (this.id) {
|
|
|
|
+ const res = await this.fetch(this.id);
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ res.data.phone = this.phoneNumFilter(res.data.phone);
|
|
|
|
+ res.data.cardnumber = this.cardnumberNumFilter(res.data.cardnumber);
|
|
|
|
+ this.$set(this, `exportInfo`, res.data);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ phoneNumFilter(phone) {
|
|
|
|
+ let start = phone.slice(0, 3);
|
|
|
|
+ let end = phone.slice(-4);
|
|
|
|
+ return `${start}****${end}`;
|
|
|
|
+ },
|
|
|
|
+ cardnumberNumFilter(cardnumber) {
|
|
|
|
+ let start = cardnumber.slice(0, 4);
|
|
|
|
+ let end = cardnumber.slice(-3);
|
|
|
|
+ return `${start}****${end}`;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ this.title = this.$route.meta.title;
|
|
|
|
+ this.isleftarrow = this.$route.meta.isleftarrow;
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style lang="less" scoped>
|
|
|
|
+.style {
|
|
|
|
+ width: 100%;
|
|
|
|
+ min-height: 667px;
|
|
|
|
+ position: relative;
|
|
|
|
+ background-color: #f9fafc;
|
|
|
|
+}
|
|
|
|
+.top {
|
|
|
|
+ height: 46px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ position: relative;
|
|
|
|
+ z-index: 999;
|
|
|
|
+}
|
|
|
|
+.main {
|
|
|
|
+ min-height: 600px;
|
|
|
|
+ background: #fff;
|
|
|
|
+}
|
|
|
|
+</style>
|