Browse Source

添加执行时长

seimin 1 year ago
parent
commit
8f310c028c
2 changed files with 4 additions and 3 deletions
  1. 2 2
      package.json
  2. 2 1
      src/views/AppIndex.vue

+ 2 - 2
package.json

@@ -3,8 +3,8 @@
3 3
   "version": "0.1.0",
4 4
   "private": true,
5 5
   "scripts": {
6
-    "start": "vue-cli-service serve",
7
-    "build": "vue-cli-service build",
6
+    "start": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
7
+    "build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
8 8
     "lint": "vue-cli-service lint",
9 9
     "development": "node ./upload/development.js",
10 10
     "production": "node ./upload/production.js"

+ 2 - 1
src/views/AppIndex.vue

@@ -202,6 +202,7 @@
202 202
                     v-if="data.workingFlag"
203 203
                     >{{ data.gdState }}</span
204 204
                   >
205
+                  <span v-if="data.workTime" class="fr" style="margin-right: 8px;">{{ data.workTime }}</span>
205 206
                 </div>
206 207
               </div>
207 208
             </div>
@@ -1477,7 +1478,7 @@ export default {
1477 1478
       this.loading1 = true;
1478 1479
       let loginUser = JSON.parse(localStorage.getItem("user"));
1479 1480
       this.userData = loginUser ? loginUser.user : [];
1480
-      
1481
+
1481 1482
       this.getWorkType();
1482 1483
       this.getSysNameAndLogo();
1483 1484
     },