Browse Source

得分结果修改条件修改

reaper 4 years ago
parent
commit
b38565e349

+ 4 - 4
src/components/knowledgeExtra/AddAssess/index.vue

@@ -14,11 +14,12 @@
     border-bottom: 30px solid #dee2ea;
     .table_top_box {
       display: flex;
-      align-items: center;
-      justify-content: space-between;
+      // align-items: center;
+      // justify-content: space-between;
       padding: 0 37px;
       .table_top_box_left {
         display: flex;
+        flex-wrap: wrap;
         /deep/.el-input--mini .el-input__inner {
           width: 200px;
         }
@@ -196,7 +197,6 @@ it .ql-editor,
               </el-form-item>
             </div>
           </div>
-
           <div class="move_btn" v-if="scaleData.klScaleParent.length > 1">
             <div
               @click="CHANGE_TABLE({ tableIndex, type: 'up' })"
@@ -1078,7 +1078,7 @@ export default {
     // 判断是否需要得分结果
     ScoreResultsShow() {
       const index = this.scaleData.klScaleParent.findIndex(
-        (item) => item.textType === 11
+        (item) => item.resultType === 1
       );
       if (index === -1) {
         return false;

+ 6 - 3
src/components/knowledgeExtra/AddDevKnow.vue

@@ -78,7 +78,7 @@
               评估内容
             </div>
           </div>
-          <div class="tab_box_left" v-if="tabActive == 'one'">
+          <div class="tab_box_left" v-show="tabActive == 'one'">
             <el-form-item
               v-if="
                 form.selectedTerm &&
@@ -157,7 +157,7 @@
               </div>
             </el-form-item>
           </div>
-          <div v-if="tabActive == 'two'">
+          <div v-show="tabActive == 'two'">
             <AddAssess :childScaleData="scaleData" ref="assessRef" />
           </div>
         </el-form>
@@ -740,7 +740,9 @@ export default {
         const assessParam = this.$refs.assessRef.formtParams();
         param.scale = assessParam;
         param.scale.conceptId = this.toAssesTermId;
-        param.scale.modifier = ""; //fix lei 字段暂时未知
+        const userInfo = localStorage.getItem("userLoginDTO");
+        console.log('userInfo',userInfo);
+        param.scale.modifier = userInfo.linkman; //fix lei 字段暂时未知
       }
 
       console.log("param-------");
@@ -895,6 +897,7 @@ export default {
   // background: #fff;
   // padding: 20px 0;
   margin: 70px 20px -20px 20px;
+  min-width: 960px;
   .el-input__inner {
     width: 200px;
   }