diff --git a/src/views/dashboard/PieChartCreate.vue b/src/views/dashboard/PieChartCreate.vue
index 15aada0..08fc36a 100644
--- a/src/views/dashboard/PieChartCreate.vue
+++ b/src/views/dashboard/PieChartCreate.vue
@@ -42,8 +42,8 @@
总金额:
- {{ NumberDiv(chartData.collectionAllPrice, 10000) }}
- {{ chartData.collectionAllPrice }}
+ {{ Math.floor( NumberDiv(chartData.collectionAllPrice, 10000) * 100) / 100 }}
+ {{ Math.floor(chartData.collectionAllPrice * 100) / 100 }}
万元
元
@@ -114,8 +114,9 @@
总金额:
- {{ NumberDiv(chartData.paymentAllPrice, 10000) }}
- {{ chartData.paymentAllPrice }}
+
+ {{ Math.floor( NumberDiv(chartData.paymentAllPrice, 10000) * 100) / 100 }}
+ {{ Math.floor(chartData.paymentAllPrice * 100) / 100 }}
万元
元
diff --git a/src/views/user/UserCertification/index.vue b/src/views/user/UserCertification/index.vue
index 2a116cd..0eb80f6 100644
--- a/src/views/user/UserCertification/index.vue
+++ b/src/views/user/UserCertification/index.vue
@@ -51,27 +51,30 @@
-
+
- 无
+ @click="previewImage(scope.row.certFrontImg)" :preview-src-list="srcList"
+ v-if="scope.row.certFrontImg">
+ 无
-
+
- 无
+ @click="previewImage(scope.row.certReverseImg)" :preview-src-list="srcList"
+ v-if="scope.row.certReverseImg">
+ 无
-
+
- 无
+ @click="previewImage(scope.row.certHandImg)" :preview-src-list="srcList"
+ v-if="scope.row.certHandImg">
+ 无
@@ -88,10 +91,11 @@
-->
-
+
- 无
+ @click="previewImage(scope.row.corporateLicense)" :preview-src-list="srcList"
+ v-if="scope.row.corporateLicense">
+ 无
@@ -115,7 +119,9 @@
- 审核
+
+ {{ scope.row.auditStatus == 'apply' ? '审核' : '详情' }}
+
@@ -212,34 +218,40 @@ export default {
srcList: ["http://118.25.187.239:9099/img/adImg/557097620301025280.jpg"],
};
},
- watch:{
- $route(to,from){
- this.getList()
- }
-},
+ watch: {
+ $route(to, from) {
+ this.getList()
+ }
+ },
created() {
this.getList();
this.getDicts("audit_status").then(response => {
this.auditStatusOptions = response.data;
this.auditStatusOptions.unshift({
- dictLabel:'全部',
- dictValue:null,
+ dictLabel: '全部',
+ dictValue: null,
});
});
this.getDicts("auth_type").then(response => {
this.authTypeOptions = response.data;
this.authTypeOptions.unshift({
- dictLabel:'全部',
- dictValue:null,
+ dictLabel: '全部',
+ dictValue: null,
});
});
},
methods: {
handleView(row) {
+ let title = row.auditStatus=='apply'?'审核':'详情'
this.$router.push(
{
- name: 'userDetail', params: { row: row }
- })
+ name: 'userDetail',
+ params: { row: row },
+ query: {
+ name: title,
+ },
+ }
+ )
},
/** 查询实名认证信息列表 */
getList() {
diff --git a/src/views/user/UserCertification/userDetail.vue b/src/views/user/UserCertification/userDetail.vue
index 574c362..0e1d249 100644
--- a/src/views/user/UserCertification/userDetail.vue
+++ b/src/views/user/UserCertification/userDetail.vue
@@ -247,6 +247,14 @@ export default {
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() {
this.getDicts("user_role").then(response => {
this.userRoleOptions = response.data;