From f43ef46477430546e8d6b449ced08ae03aaac6ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98=E6=AE=BF=E6=98=95?=
Date: Wed, 4 Nov 2020 11:50:39 +0800
Subject: [PATCH] fixed .
---
src/components/shop-cloud/shop-cloud.vue | 10 ++--
src/pages/user/my-coin.vue | 49 +++++++++++--------
.../user/questions-answers/community.vue | 6 ++-
src/pages/user/questions-answers/my-qa.vue | 8 ++-
4 files changed, 46 insertions(+), 27 deletions(-)
diff --git a/src/components/shop-cloud/shop-cloud.vue b/src/components/shop-cloud/shop-cloud.vue
index 9ff1545..7c00bb8 100644
--- a/src/components/shop-cloud/shop-cloud.vue
+++ b/src/components/shop-cloud/shop-cloud.vue
@@ -1175,7 +1175,7 @@ export default {
this.formOld.appDuration >= 1 ? this.formOld.appDuration : 0
}个月`;
}
- console.log(sumCM, sumDisk)
+ // console.log(sumCM, sumDisk)
this.amounts_payable = Number((Number(sumCM) + Number(sumDisk)).toFixed(2));
// this.total_money = sumCM + sumDisk - a_deductions;
return this.amounts_payable;
@@ -1688,8 +1688,8 @@ export default {
},
disks: [
{
- disk_num: this.formNew.dataDisk ? this.formNew.dataDisk + "" : "0",
- disk_cap: this.formNew.perDataDisk ? this.formNew.perDataDisk + "" : "0",
+ disk_num: this.formNew.dataDisk ? this.formNew.dataDisk : 0,
+ disk_cap: this.formNew.perDataDisk ? this.formNew.perDataDisk : 0,
store_type: "nfs-client",
},
],
@@ -1734,8 +1734,8 @@ export default {
},
disks: [
{
- disk_num: this.formOld.dataDisk ? this.formOld.dataDisk + "" : "0",
- disk_cap: this.formOld.perDataDisk ? this.formOld.perDataDisk + "" : "0",
+ disk_num: this.formOld.dataDisk ? this.formOld.dataDisk : 0,
+ disk_cap: this.formOld.perDataDisk ? this.formOld.perDataDisk : 0,
store_type: "nfs-client",
},
],
diff --git a/src/pages/user/my-coin.vue b/src/pages/user/my-coin.vue
index 11d8cae..e5bfd6d 100644
--- a/src/pages/user/my-coin.vue
+++ b/src/pages/user/my-coin.vue
@@ -24,10 +24,7 @@
账户余额
- {{ helper.numberFormat(user_info.account_balance)
- }}
- 万
-
+ {{ user_info.account_balance }}
@@ -45,7 +42,7 @@
-
+
充值记录
@@ -70,19 +67,20 @@
@change="getCoinList"
>
-
+
@@ -117,13 +115,15 @@ export default {
}),
watch: {},
methods: {
- handleSizeChange(val) {
- this.pagination.rowsPerPage = val;
- this.refreshData();
+ changePageSize(val) {
+ this.currentlimit = val;
+ this.currentPage = 1;
+ this.getCoinList();
},
- handleCurrentChange(val) {
- this.pagination.page += val;
- this.refreshData();
+ changeCurrentPage(val) {
+ console.log(val);
+ this.currentPage = val;
+ this.getCoinList();
},
getUserCoins() {
this.$api.user.getUserCoins().then((response) => {
@@ -151,7 +151,6 @@ export default {
this.tableData = [];
this.currentPage = 1;
}
-
this.total_list = response.data.total;
}
});
@@ -382,4 +381,14 @@ export default {
.czjl .el-date-editor .el-range__icon {
margin-right: 8px;
}
+.apa_table .apass_table {
+ height: 100%;
+}
+.apa_table .apass_table .el-table {
+ height: 100%;
+}
+.apa_table .apass_table .el-table .el-table__body-wrapper {
+ max-height: calc(100% - 49px);
+ overflow: auto;
+}
\ No newline at end of file
diff --git a/src/pages/user/questions-answers/community.vue b/src/pages/user/questions-answers/community.vue
index d17b53b..56e0c27 100644
--- a/src/pages/user/questions-answers/community.vue
+++ b/src/pages/user/questions-answers/community.vue
@@ -134,9 +134,13 @@ export default {
reason: [
{
required: true,
+ message: "请填写删除理由",
+ trigger: "blur",
+ },
+ {
max: 20,
min: 5,
- message: "请填写活动形式",
+ message: "请输入5至20个字符",
trigger: "blur",
},
],
diff --git a/src/pages/user/questions-answers/my-qa.vue b/src/pages/user/questions-answers/my-qa.vue
index 1e802a1..8886452 100644
--- a/src/pages/user/questions-answers/my-qa.vue
+++ b/src/pages/user/questions-answers/my-qa.vue
@@ -79,7 +79,13 @@
{{ item.title }}
- {{ item.content.replace(/<[^<>]+>/g, "") }}
+ {{
+ item.question_content && item.question_content != ""
+ ? item.question_content.replace(/<[^<>]+>/g, "")
+ : item.content && item.content != ""
+ ? item.content.replace(/<[^<>]+>/g, "")
+ : ""
+ }}
--
2.26.0