浏览代码

超缺状态交换

hare8999@163.com 3 年之前
父节点
当前提交
6f787ecf81
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/views/elective/publish/components/steps/fauclty/over-under-badge.vue

+ 5 - 5
src/views/elective/publish/components/steps/fauclty/over-under-badge.vue

@@ -41,13 +41,13 @@ export default {
     },
     badgeValue() {
       if (!this.valid) return ''
-      if (this.value * 1 > 0) return this.exchange ? this.underText : this.overText
-      return this.exchange ? this.overText : this.underText
+      if (this.value * 1 > 0) return !this.exchange ? this.underText : this.overText
+      return !this.exchange ? this.overText : this.underText
     },
     badgeType() {
-      if (!this.valid) return this.exchange ? this.overType : this.underType
-      if (this.value * 1 > 0) return this.exchange ? this.underType : this.overType
-      return this.exchange ? this.overType : this.underType
+      if (!this.valid) return !this.exchange ? this.overType : this.underType
+      if (this.value * 1 > 0) return !this.exchange ? this.underType : this.overType
+      return !this.exchange ? this.overType : this.underType
     }
   },
   methods: {}