hare8999@163.com 3 лет назад
Родитель
Сommit
27bf58e634

+ 1 - 1
src/views/elective/generation/components/elective-generation-table.vue

@@ -10,7 +10,7 @@
             <span v-if="value.star">*</span>
             <span>{{ value && value.value }}</span>
           </template>
-          <over-under-badge v-else :value="value.value" exchange></over-under-badge>
+          <over-under-badge v-else :value="value.value"></over-under-badge>
         </div>
       </el-tooltip>
     </template>

+ 1 - 1
src/views/elective/publish/components/steps/fauclty/faculty-result.vue

@@ -2,7 +2,7 @@
   <div class="fx-column">
     <mx-table :prop-defines="facultyTableDefines" :rows="rows">
       <template #tag="{value}">
-        <over-under-badge :value="value"></over-under-badge>
+        <over-under-badge :value="value" exchange></over-under-badge>
       </template>
     </mx-table>
     <div class="fx-column mt15">

+ 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: {}