Browse Source

更新

master
j1ack 2 years ago
parent
commit
8894312a3d
  1. 9
      src/views/dashboard/PieChartCreate.vue
  2. 48
      src/views/user/UserCertification/index.vue
  3. 8
      src/views/user/UserCertification/userDetail.vue

9
src/views/dashboard/PieChartCreate.vue

@ -42,8 +42,8 @@
<span class="t2"> <span class="t2">
总金额 总金额
<span v-if="chartData.collectionAllPrice >= 10000">{{ NumberDiv(chartData.collectionAllPrice, 10000) }}</span> <span v-if="chartData.collectionAllPrice >= 10000">{{ Math.floor( NumberDiv(chartData.collectionAllPrice, 10000) * 100) / 100 }}</span>
<span v-else>{{ chartData.collectionAllPrice }}</span> <span v-else>{{ Math.floor(chartData.collectionAllPrice * 100) / 100 }}</span>
<span v-if="chartData.collectionAllPrice >= 10000">万元</span> <span v-if="chartData.collectionAllPrice >= 10000">万元</span>
<span v-else></span> <span v-else></span>
@ -114,8 +114,9 @@
</span> </span>
<span class="t2"> <span class="t2">
总金额 总金额
<span v-if="chartData.paymentAllPrice >= 10000">{{ NumberDiv(chartData.paymentAllPrice, 10000) }}</span>
<span v-else>{{ chartData.paymentAllPrice }}</span> <span v-if="chartData.paymentAllPrice >= 10000">{{ Math.floor( NumberDiv(chartData.paymentAllPrice, 10000) * 100) / 100 }}</span>
<span v-else>{{ Math.floor(chartData.paymentAllPrice * 100) / 100 }}</span>
<span v-if="chartData.paymentAllPrice >= 10000">万元</span> <span v-if="chartData.paymentAllPrice >= 10000">万元</span>
<span v-else></span> <span v-else></span>

48
src/views/user/UserCertification/index.vue

@ -51,26 +51,29 @@
<!-- <el-table-column label="证件类型" align="center" prop="typeName" /> --> <!-- <el-table-column label="证件类型" align="center" prop="typeName" /> -->
<el-table-column label="证件号" align="center" prop="certId" /> <el-table-column label="证件号" align="center" prop="certId" />
<el-table-column label="证件正面" align="center" prop="certFrontImg" width="115"> <el-table-column label="证件正面" align="center" prop="certFrontImg" width="115">
<template width="90" slot-scope="scope"> <template slot-scope="scope">
<el-image style="width: 80px; height: 80px" :src="scope.row.certFrontImg" <el-image style="width: 80px; height: 80px" :src="scope.row.certFrontImg"
@click="previewImage(scope.row.certFrontImg)" :preview-src-list="srcList" v-if="scope.row.certFrontImg"></el-image> @click="previewImage(scope.row.certFrontImg)" :preview-src-list="srcList"
v-if="scope.row.certFrontImg"></el-image>
<span v-else></span> <span v-else></span>
<!-- <img style="width:80px;height:80px;border:none;" :src="scope.row.chainIconUrl"> --> <!-- <img style="width:80px;height:80px;border:none;" :src="scope.row.chainIconUrl"> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="证件反面" align="center" prop="certReverseImg" width="115"> <el-table-column label="证件反面" align="center" prop="certReverseImg" width="115">
<template width="90" slot-scope="scope"> <template slot-scope="scope">
<el-image style="width: 80px; height: 80px" :src="scope.row.certReverseImg" <el-image style="width: 80px; height: 80px" :src="scope.row.certReverseImg"
@click="previewImage(scope.row.certReverseImg)" :preview-src-list="srcList" v-if="scope.row.certReverseImg"></el-image> @click="previewImage(scope.row.certReverseImg)" :preview-src-list="srcList"
v-if="scope.row.certReverseImg"></el-image>
<span v-else></span> <span v-else></span>
<!-- <img style="width:80px;height:80px;border:none;" :src="scope.row.chainIconUrl"> --> <!-- <img style="width:80px;height:80px;border:none;" :src="scope.row.chainIconUrl"> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="手持证件照" align="center" prop="certHandImg" width="115"> <el-table-column label="手持证件照" align="center" prop="certHandImg" width="115">
<template width="90" slot-scope="scope"> <template slot-scope="scope">
<el-image style="width: 80px; height: 80px" :src="scope.row.certHandImg" <el-image style="width: 80px; height: 80px" :src="scope.row.certHandImg"
@click="previewImage(scope.row.certHandImg)" :preview-src-list="srcList" v-if="scope.row.certHandImg"></el-image> @click="previewImage(scope.row.certHandImg)" :preview-src-list="srcList"
v-if="scope.row.certHandImg"></el-image>
<span v-else></span> <span v-else></span>
<!-- <img style="width:80px;height:80px;border:none;" :src="scope.row.chainIconUrl"> --> <!-- <img style="width:80px;height:80px;border:none;" :src="scope.row.chainIconUrl"> -->
@ -88,9 +91,10 @@
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column label="营业执照" align="center" prop="corporateLicense" width="115"> <el-table-column label="营业执照" align="center" prop="corporateLicense" width="115">
<template width="90" slot-scope="scope"> <template slot-scope="scope">
<el-image style="width: 80px; height: 80px" :src="scope.row.corporateLicense" <el-image style="width: 80px; height: 80px" :src="scope.row.corporateLicense"
@click="previewImage(scope.row.corporateLicense)" :preview-src-list="srcList" v-if="scope.row.corporateLicense"></el-image> @click="previewImage(scope.row.corporateLicense)" :preview-src-list="srcList"
v-if="scope.row.corporateLicense"></el-image>
<span v-else></span> <span v-else></span>
<!-- <img style="width:80px;height:80px;border:none;" :src="scope.row.chainIconUrl"> --> <!-- <img style="width:80px;height:80px;border:none;" :src="scope.row.chainIconUrl"> -->
@ -115,7 +119,9 @@
<!-- <el-button v-if="scope.row.auditStatus == 'apply'" size="medium" type="text" icon="el-icon-edit" <!-- <el-button v-if="scope.row.auditStatus == 'apply'" size="medium" type="text" icon="el-icon-edit"
@click="handleUpdate(scope.row)" v-hasPermi="['user:certification:edit']">审核</el-button> --> @click="handleUpdate(scope.row)" v-hasPermi="['user:certification:edit']">审核</el-button> -->
<el-button size="medium" type="text" @click="handleView(scope.row)">审核</el-button> <el-button size="medium" type="text" @click="handleView(scope.row)">
{{ scope.row.auditStatus == 'apply' ? '审核' : '详情' }}
</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -212,34 +218,40 @@ export default {
srcList: ["http://118.25.187.239:9099/img/adImg/557097620301025280.jpg"], srcList: ["http://118.25.187.239:9099/img/adImg/557097620301025280.jpg"],
}; };
}, },
watch:{ watch: {
$route(to,from){ $route(to, from) {
this.getList() this.getList()
} }
}, },
created() { created() {
this.getList(); this.getList();
this.getDicts("audit_status").then(response => { this.getDicts("audit_status").then(response => {
this.auditStatusOptions = response.data; this.auditStatusOptions = response.data;
this.auditStatusOptions.unshift({ this.auditStatusOptions.unshift({
dictLabel:'全部', dictLabel: '全部',
dictValue:null, dictValue: null,
}); });
}); });
this.getDicts("auth_type").then(response => { this.getDicts("auth_type").then(response => {
this.authTypeOptions = response.data; this.authTypeOptions = response.data;
this.authTypeOptions.unshift({ this.authTypeOptions.unshift({
dictLabel:'全部', dictLabel: '全部',
dictValue:null, dictValue: null,
}); });
}); });
}, },
methods: { methods: {
handleView(row) { handleView(row) {
let title = row.auditStatus=='apply'?'审核':'详情'
this.$router.push( this.$router.push(
{ {
name: 'userDetail', params: { row: row } name: 'userDetail',
}) params: { row: row },
query: {
name: title,
},
}
)
}, },
/** 查询实名认证信息列表 */ /** 查询实名认证信息列表 */
getList() { getList() {

8
src/views/user/UserCertification/userDetail.vue

@ -247,6 +247,14 @@ export default {
srcList: ["http://118.25.187.239:9099/img/adImg/557097620301025280.jpg"], srcList: ["http://118.25.187.239:9099/img/adImg/557097620301025280.jpg"],
}; };
}, },
//
beforeRouteEnter(to, from, next) {
//to,from,next
if (to.query.name) {
to.meta.title = to.query.name //name
}
next() //,
},
created() { created() {
this.getDicts("user_role").then(response => { this.getDicts("user_role").then(response => {
this.userRoleOptions = response.data; this.userRoleOptions = response.data;

Loading…
Cancel
Save