coys há 2 anos atrás
pai
commit
652a32f050

+ 1 - 1
src/config/env.development.js

@@ -2,7 +2,7 @@
 module.exports = {
   title: 'soc-app-dev',
   baseUrl: 'http://10.87.10.55:8080', // 本地图片地址
-  baseApi: '/jingyuanchao', // 本地api请求地址,注意:如果你使用了代理,请设置成'/'
+  baseApi: '/dev', // 本地api请求地址,注意:如果你使用了代理,请设置成'/'
   APPID: 'xxx',
   APPSECRET: 'xxx',
   $cdn: 'https://www.sunniejs.cn/static'  //静态资源

+ 2 - 0
src/views/home/works.vue

@@ -10,7 +10,9 @@
         ><van-badge :content="item.nums" color="#1989fa" >
           <a :href="`#${worksLink(1, item.taskType)}`">{{ item.taskTypeText }}</a>
         </van-badge>
+        
       </van-step>
+     
     </van-steps>
   </div>
     <div class="big_box" @scroll="scrolling">

+ 12 - 11
src/views/menu/rehearsalTask/components/rehearsalTaskSign.vue

@@ -229,20 +229,21 @@ export default {
         this.content = data.comment
         this.value = +data.commentScore
         this.trainingData = data
-        this.trainingData.taskUserList.map(item => {
-          if (item.type == 1) {
-            this.taskUserList.push(item.userName)
-          }
-        })
+        if (this.trainingData.taskUserList && this.trainingData.taskUserList.length > 0) {
+          this.trainingData.taskUserList.forEach(item => {
+            if (item.type == 1) {
+              this.taskUserList.push(item.userName)
+            } else {
+              this.qsUserList.push(item.userName)
+            }
+          })
+        }
+      
         this.taskUserList = this.taskUserList.join(',')
-        this.trainingData.taskUserList.map(item => {
-          if (item.type == 2) {
-            this.qsUserList.push(item.userName)
-          }
-        })
+        
         this.qsUserList = this.qsUserList.join(',')
+
         this.signUserList = data.taskUserList || []
-        let list = data.fileList || []
         if (list.length > 0) {
           list.forEach(item => {
             let i = JSON.parse(item)