|  | @@ -3,20 +3,66 @@
 | 
											
												
													
														|  |      <div class="initialPoint">
 |  |      <div class="initialPoint">
 | 
											
												
													
														|  |        <div class="initia_title">{{initia_head.initial_suername}}</div>
 |  |        <div class="initia_title">{{initia_head.initial_suername}}</div>
 | 
											
												
													
														|  |        <div class="initia_title_1">{{initia_head.initial_suertext}}</div>
 |  |        <div class="initia_title_1">{{initia_head.initial_suertext}}</div>
 | 
											
												
													
														|  | -      <div class="nitia_list" v-for="(v,i) in initia_arr" :key="i">
 |  | 
 | 
											
												
													
														|  | -        <span>{{v.initialName}}</span>
 |  | 
 | 
											
												
													
														|  | -        <!-- <el-tooltip placement="top">
 |  | 
 | 
											
												
													
														|  | -          <div slot="content" class="initia_mark?">多行信息<br/>第二行信息</div>
 |  | 
 | 
											
												
													
														|  | -          <el-button class="initia_el_button"></el-button>
 |  | 
 | 
											
												
													
														|  | -        </el-tooltip>-->
 |  | 
 | 
											
												
													
														|  | -        <p class="initia_mark" v-show="v.initia_mark">?</p>
 |  | 
 | 
											
												
													
														|  | -        <el-input v-model="v.initia_input" placeholder="请输入分值"></el-input>
 |  | 
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      <!-- <el-form :label-width="initia_head.initial_width">
 | 
											
												
													
														|  | 
 |  | +        <el-form-item prop="base_point" style="margin: 20px 0 0 0 "  v-for="(v,i) in initia_arr" :key="i">
 | 
											
												
													
														|  | 
 |  | +            <template slot="label">
 | 
											
												
													
														|  | 
 |  | +              <span :style="'width:'+initia_head.initial_left">{{v.initialName}}</span>
 | 
											
												
													
														|  | 
 |  | +              <el-tooltip placement="top">
 | 
											
												
													
														|  | 
 |  | +                <div slot="content" class="initia_mark_none_text" v-html="v.initial_text"></div>
 | 
											
												
													
														|  | 
 |  | +                <span class="initia_mark" v-show="v.initia_mark">?</span>
 | 
											
												
													
														|  | 
 |  | +              </el-tooltip>
 | 
											
												
													
														|  | 
 |  | +            </template>
 | 
											
												
													
														|  | 
 |  | +            <el-input
 | 
											
												
													
														|  | 
 |  | +              class="nitia_list_input"
 | 
											
												
													
														|  | 
 |  | +              v-model="v.initia_input"
 | 
											
												
													
														|  | 
 |  | +              placeholder="请输入分值"
 | 
											
												
													
														|  | 
 |  | +              oninput="if(this.value=='0'){this.value='';}else{this.value=this.value.replace(/[^0-9]/g,'')}"
 | 
											
												
													
														|  | 
 |  | +            ></el-input>
 | 
											
												
													
														|  | 
 |  | +        </el-form-item>
 | 
											
												
													
														|  | 
 |  | +      </el-form>-->
 | 
											
												
													
														|  | 
 |  | +      <div v-for="(v,i) in initia_arr" :key="i">
 | 
											
												
													
														|  | 
 |  | +        <el-form
 | 
											
												
													
														|  | 
 |  | +          :model="v.initia_input"
 | 
											
												
													
														|  | 
 |  | +          ref="v.initia_input"
 | 
											
												
													
														|  | 
 |  | +          :label-width="initia_head.initial_width"
 | 
											
												
													
														|  | 
 |  | +          class="demo-ruleForm"
 | 
											
												
													
														|  | 
 |  | +        >
 | 
											
												
													
														|  | 
 |  | +          <el-form-item
 | 
											
												
													
														|  | 
 |  | +            style="margin: 20px 0 0 0 "
 | 
											
												
													
														|  | 
 |  | +            prop="age"
 | 
											
												
													
														|  | 
 |  | +            :rules="[
 | 
											
												
													
														|  | 
 |  | +              { required: true, message: '分值不能为空'},
 | 
											
												
													
														|  | 
 |  | +            ]"
 | 
											
												
													
														|  | 
 |  | +          >
 | 
											
												
													
														|  | 
 |  | +            <template slot="label">
 | 
											
												
													
														|  | 
 |  | +              <span :style="'width:'+initia_head.initial_left">{{v.initialName}}</span>
 | 
											
												
													
														|  | 
 |  | +              <el-tooltip placement="top">
 | 
											
												
													
														|  | 
 |  | +                <div slot="content" v-html="v.initial_text"></div>
 | 
											
												
													
														|  | 
 |  | +                <span class="initia_mark" v-show="v.initia_mark">?</span>
 | 
											
												
													
														|  | 
 |  | +              </el-tooltip>
 | 
											
												
													
														|  | 
 |  | +            </template>
 | 
											
												
													
														|  | 
 |  | +            <el-input
 | 
											
												
													
														|  | 
 |  | +              type="age"
 | 
											
												
													
														|  | 
 |  | +              v-model="v.initia_input.age"
 | 
											
												
													
														|  | 
 |  | +              autocomplete="off"
 | 
											
												
													
														|  | 
 |  | +              class="nitia_list_input"
 | 
											
												
													
														|  | 
 |  | +              placeholder="请输入分值"
 | 
											
												
													
														|  | 
 |  | +              oninput="if(this.value=='0'){this.value='';}else{this.value=this.value.replace(/[^0-9]/g,'')}"
 | 
											
												
													
														|  | 
 |  | +            ></el-input>
 | 
											
												
													
														|  | 
 |  | +          </el-form-item>
 | 
											
												
													
														|  | 
 |  | +        </el-form>
 | 
											
												
													
														|  |        </div>
 |  |        </div>
 | 
											
												
													
														|  | -      <button class="initia_button" @click="save()">保存</button>
 |  | 
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      <el-button
 | 
											
												
													
														|  | 
 |  | +        type="primary"
 | 
											
												
													
														|  | 
 |  | +        class="initia_button"
 | 
											
												
													
														|  | 
 |  | +        @click="save()"
 | 
											
												
													
														|  | 
 |  | +        :style="'margin: 20px 0 20px '+initia_head.initial_left"
 | 
											
												
													
														|  | 
 |  | +      >保存</el-button>
 | 
											
												
													
														|  |      </div>
 |  |      </div>
 | 
											
												
													
														|  |    </div>
 |  |    </div>
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |  <script>
 |  |  <script>
 | 
											
												
													
														|  |  export default {
 |  |  export default {
 | 
											
												
													
														|  |    props: {
 |  |    props: {
 | 
											
										
											
												
													
														|  | @@ -32,25 +78,36 @@ export default {
 | 
											
												
													
														|  |      save() {
 |  |      save() {
 | 
											
												
													
														|  |        let arr = [];
 |  |        let arr = [];
 | 
											
												
													
														|  |        for (var i = 0; i < this.initia_arr.length; i++) {
 |  |        for (var i = 0; i < this.initia_arr.length; i++) {
 | 
											
												
													
														|  | -        if (this.initia_arr[i].initia_input !== "") {
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if (this.initia_arr[i].initia_input.age !== "") {
 | 
											
												
													
														|  |            arr.push({
 |  |            arr.push({
 | 
											
												
													
														|  | -            sj: this.initia_arr[i].initia_input,
 |  | 
 | 
											
												
													
														|  | 
 |  | +            sj: this.initia_arr[i].initia_input.age,
 | 
											
												
													
														|  |            });
 |  |            });
 | 
											
												
													
														|  | -          this.initia_arr[i].initia_input = "";
 |  | 
 | 
											
												
													
														|  | 
 |  | +          if (arr.length == this.initia_arr.length) {
 | 
											
												
													
														|  | 
 |  | +            this.$emit("initia", arr);
 | 
											
												
													
														|  | 
 |  | +            this.disableds = false;
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  | 
 |  | +        } else {
 | 
											
												
													
														|  | 
 |  | +          this.$message({
 | 
											
												
													
														|  | 
 |  | +            message: "请输入分值",
 | 
											
												
													
														|  | 
 |  | +            type: "warning",
 | 
											
												
													
														|  | 
 |  | +          });
 | 
											
												
													
														|  | 
 |  | +          return;
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  | -      this.$emit("initia", arr);
 |  | 
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |  };
 |  |  };
 | 
											
												
													
														|  |  </script>
 |  |  </script>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  <style>
 |  |  <style>
 | 
											
												
													
														|  | 
 |  | +.el-form-item__label {
 | 
											
												
													
														|  | 
 |  | +  text-align: left;
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  |  .initialPoint {
 |  |  .initialPoint {
 | 
											
												
													
														|  |    margin-left: 30px;
 |  |    margin-left: 30px;
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  .initia_mark {
 |  |  .initia_mark {
 | 
											
												
													
														|  | -  background: #c0c4cc;
 |  | 
 | 
											
												
													
														|  | 
 |  | +  background: #409eff;
 | 
											
												
													
														|  |    border-radius: 50%;
 |  |    border-radius: 50%;
 | 
											
												
													
														|  |    width: 14px;
 |  |    width: 14px;
 | 
											
												
													
														|  |    height: 14px;
 |  |    height: 14px;
 | 
											
										
											
												
													
														|  | @@ -60,6 +117,7 @@ export default {
 | 
											
												
													
														|  |    line-height: 14px;
 |  |    line-height: 14px;
 | 
											
												
													
														|  |    text-align: center;
 |  |    text-align: center;
 | 
											
												
													
														|  |    margin-left: 4px;
 |  |    margin-left: 4px;
 | 
											
												
													
														|  | 
 |  | +  cursor: default;
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  .initia_title {
 |  |  .initia_title {
 | 
											
												
													
														|  |    font-size: 20px;
 |  |    font-size: 20px;
 | 
											
										
											
												
													
														|  | @@ -72,41 +130,10 @@ export default {
 | 
											
												
													
														|  |    font-size: 14px;
 |  |    font-size: 14px;
 | 
											
												
													
														|  |    margin-top: 10px;
 |  |    margin-top: 10px;
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  | -.nitia_list {
 |  | 
 | 
											
												
													
														|  | -  height: 40px;
 |  | 
 | 
											
												
													
														|  | -  margin-top: 20px;
 |  | 
 | 
											
												
													
														|  | -  display: flex;
 |  | 
 | 
											
												
													
														|  | -  align-items: center;
 |  | 
 | 
											
												
													
														|  | -}
 |  | 
 | 
											
												
													
														|  | -.nitia_list span {
 |  | 
 | 
											
												
													
														|  | -  color: #606266;
 |  | 
 | 
											
												
													
														|  | -  font-size: 14px;
 |  | 
 | 
											
												
													
														|  | -  height: 20px;
 |  | 
 | 
											
												
													
														|  | -  white-space: nowrap;
 |  | 
 | 
											
												
													
														|  | -}
 |  | 
 | 
											
												
													
														|  | -.nitia_list input {
 |  | 
 | 
											
												
													
														|  | 
 |  | +.nitia_list_input {
 | 
											
												
													
														|  |    width: 160px;
 |  |    width: 160px;
 | 
											
												
													
														|  |    height: 40px;
 |  |    height: 40px;
 | 
											
												
													
														|  |    border-radius: 4px;
 |  |    border-radius: 4px;
 | 
											
												
													
														|  |    background-color: rgba(255, 255, 255, 1);
 |  |    background-color: rgba(255, 255, 255, 1);
 | 
											
												
													
														|  | -  border: 1px solid rgba(220, 223, 230, 1);
 |  | 
 | 
											
												
													
														|  | -  margin-left: 11px;
 |  | 
 | 
											
												
													
														|  | -}
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -.initia_button {
 |  | 
 | 
											
												
													
														|  | -  border-radius: 4px;
 |  | 
 | 
											
												
													
														|  | -  background-color: rgba(38, 162, 255, 1);
 |  | 
 | 
											
												
													
														|  | -  width: 68px;
 |  | 
 | 
											
												
													
														|  | -  height: 40px;
 |  | 
 | 
											
												
													
														|  | -  border: 0;
 |  | 
 | 
											
												
													
														|  | -  color: #ffffff;
 |  | 
 | 
											
												
													
														|  | -  text-align: center;
 |  | 
 | 
											
												
													
														|  | -  line-height: 40px;
 |  | 
 | 
											
												
													
														|  | -  margin: 20px 0 0 72px;
 |  | 
 | 
											
												
													
														|  | -  outline: none;
 |  | 
 | 
											
												
													
														|  | -}
 |  | 
 | 
											
												
													
														|  | -.initia_el_button {
 |  | 
 | 
											
												
													
														|  | -  width: 13px;
 |  | 
 | 
											
												
													
														|  | -  border-radius: 50%;
 |  | 
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  </style>
 |  |  </style>
 |