From d79b015163b2ee6ae28eea1c36f2c627d43465d5 Mon Sep 17 00:00:00 2001
From: wangyan <3594713855@qq.com>
Date: Thu, 30 May 2024 17:38:09 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E9=A1=B9=E7=9B=AE=E6=88=90=E6=9C=AC?=
=?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 4 +-
src/views/newproject/list.vue | 69 ++++++++++++++++++++++++++++++++---
2 files changed, 66 insertions(+), 7 deletions(-)
diff --git a/package.json b/package.json
index 656a2b4..8094f91 100644
--- a/package.json
+++ b/package.json
@@ -24,14 +24,15 @@
"clipboard": "1.7.1",
"codemirror": "^5.38.0",
"connect": "3.6.6",
+ "mathjs": "12.4.2",
"echarts": "^4.1.0",
"element-ui": "^2.15.11",
- "moment": "^2.25.3",
"file-saver": "1.3.8",
"js-cookie": "2.2.0",
"jsencrypt": "^3.0.0-rc.1",
"jszip": "3.1.5",
"mavon-editor": "^2.7.0",
+ "moment": "^2.25.3",
"node-sass": "^6.0.1",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
@@ -72,7 +73,6 @@
"html-webpack-plugin": "^3.0.0",
"mini-css-extract-plugin": "0.4.1",
"node-notifier": "5.2.1",
-
"optimize-css-assets-webpack-plugin": "5.0.0",
"ora": "3.0.0",
"portfinder": "1.0.16",
diff --git a/src/views/newproject/list.vue b/src/views/newproject/list.vue
index 91a75c9..9740af9 100644
--- a/src/views/newproject/list.vue
+++ b/src/views/newproject/list.vue
@@ -110,17 +110,34 @@
{{ scope.row.projectCost }}
-
+
- {{ scope.row.projectProfit }}
+
+ {{ maolirun(scope.row) }}
+
+
-
+
- {{ scope.row.projectProfitRate }}
+ {{ maolirunlv(scope.row) }}
+
+
+
+
+ {{ fapiaochengben(scope.row) }}
+
+
+
+
+ {{ jinglirun(scope.row) }}
+
+
+
+
+ {{ jinglirunlv(scope.row) }}
-
0) {
+ return data3.toFixed(2) + "%";
+ } else {
+ return 0;
+ }
+ },
+ fapiaochengben(row) {
+ const data1 = this.$math.multiply(row.xpGuessget, 0.08);
+ return data1.toFixed(2);
+ },
+ jinglirun(row) {
+ const data1 = this.maolirun(row);
+ const data2 = this.fapiaochengben(row);
+ const data3 = this.$math.subtract(data1, data2);
+ return data3.toFixed(2);
+ },
+ jinglirunlv(row) {
+ const data1 = this.jinglirun(row);
+ const data2 = this.$math.divide(data1, row.xpGuessget);
+ const data4 = this.$math.multiply(data2, 100);
+ if (row.xpGuessget > 0) {
+ return data4.toFixed(2) + "%";
+ } else {
+ return 0;
+ }
+ },
// 搜索
searchBtn() {
this.listQuery.page = 1;