zyycjxhynr
2024-04-18 5bdd47cc0cb21c33070f1037536a3483b7ff7ee5
考核分数增加可小数点进行
1 files modified
5 ■■■■■ changed files
src/views/toexamine/index.vue 5 ●●●●● patch | view | raw | blame | history
src/views/toexamine/index.vue
@@ -37,7 +37,7 @@
        clickable
        @touchstart.stop="show = true"
      />
      <van-number-keyboard v-model="score" :show="show" :maxlength="6" @blur="show = false" />
      <van-number-keyboard v-model="score" :show="show" :maxlength="6" extra-key="."  @blur="show = false" />
      <p class="title">评分说明</p>
      <van-field v-model="instructions" rows="3" type="textarea" placeholder="请描述" />
      <van-button type="primary" block @click="submit()" :disabled="disabledsubmit">提交</van-button>
@@ -84,8 +84,7 @@
  methods: {
    submit() {
      let beId = "";
      let outRange =
        this.poepleinfo.rangeVal == "-1" ? 50 : this.poepleinfo.rangeVal;
      let outRange =this.poepleinfo.rangeVal;
      if (parseFloat(this.score) > 100 + outRange) {
        this.$toast.fail("超出评分范围");
      } else if (parseFloat(this.score) < 100 - outRange) {