Explorar o código

部分提交测试

1
mo %!s(int64=3) %!d(string=hai) anos
pai
achega
49eeb6a1ff

+ 5 - 1
src/views/resetTeaming/components/archicesComponents/modals/surveyMask.vue

@@ -63,7 +63,7 @@
             '.questionnaireQuestionItemIdList'
           "
         >
-          <p>{{ index + 1 }}{{ item.content }}</p>
+          <p><span v-if="item.isRequire" class="start">*</span>{{ index + 1 }}{{ item.content }}</p>
           <el-select
             :disabled="isdisabled"
             v-if="item.type == 'radio'"
@@ -197,4 +197,8 @@ export default {
 .marginBtm22 {
   margin-bottom: 22px;
 }
+.start {
+  color: #f56c6c;
+  margin-right: 4px;
+}
 </style>

+ 14 - 0
src/views/resetTeaming/components/archicesComponents/teamInfo.vue

@@ -23,6 +23,11 @@
       <el-table-column align="center" prop="author" label="作者">
       </el-table-column>
       <el-table-column align="center" prop="linkUrl" label="资讯链接">
+        <template slot-scope="scope">
+          <div @click="gotoLink(scope.row.linkUrl)" class="link">
+            {{scope.row.linkUrl}}
+          </div>
+        </template>
       </el-table-column>
       <el-table-column align="center" prop="id" label="添加时间">
         <template slot-scope="scope">
@@ -202,6 +207,11 @@ export default {
         }
       });
     },
+    gotoLink(url){
+      var p = window.location.protocol;
+      window.open(`${p}//${url}`,"_blank")
+
+    }
   },
 };
 </script>
@@ -243,5 +253,9 @@ export default {
     z-index: 500;
   }
 }
+.link {
+  color: #14928a;
+  cursor: pointer;
+}
 </style>
 

+ 0 - 1
src/views/resetTeaming/components/archicesComponents/trainPlan.vue

@@ -319,7 +319,6 @@ export default {
         year: this.searchForm.year,
         courseScheduleType: this.searchForm.courseScheduleType,
       };
-      console.log(obj);
       this.getList(obj);
     },
     async getList(obj) {

+ 11 - 1
src/views/resetTeaming/components/archicesComponents/trainTimer.vue

@@ -76,7 +76,10 @@
           :key="index"
           v-for="(item, index) in dataList"
         >
-          {{ item.currentClassTimes }}/{{ item.totalClassTimes }}课时
+        <div v-if="item.totalClassTimes">
+           {{ item.currentClassTimes }}/{{ item.totalClassTimes }}课时
+        </div>
+
         </descriptions-item>
       </descriptions>
     </div>
@@ -126,6 +129,13 @@ export default {
           term: this.searchForm.term,
         });
         this.dataList = res.data;
+        if(this.dataList.length > 0&&this.dataList.length<4){
+          // 样式丑 至少对齐一排
+          for(let i=0;i<=4-this.dataList.length;i++){
+            this.dataList.push({name:null,totalClassTimes:null,currentClassTimes:null})
+          }
+        }
+        console.log(this.dataList )
       } catch (e) {}
     },
   },