CzRger дней назад: 3
Родитель
Сommit
e6d13abe78
1 измененных файлов с 2 добавлено и 9 удалено
  1. 2 9
      src/views/manage/index/text-detail.vue

+ 2 - 9
src/views/manage/index/text-detail.vue

@@ -99,7 +99,6 @@
             </template>
             <template #minGram-column-value="{scope}">
               <CusFormColumn
-                v-if="scope.row.key === 'ngram_pinyin_IndexAnalyzer'"
                 class="__cus-table-form-column"
                 :span="24"
                 v-model:param="scope.row.minGram"
@@ -107,17 +106,11 @@
                 :precision="0"
                 :min="1"
                 :max="50"
-                :rules="[
-                  {
-                    handle: (val) => Number(val) <= Number(scope.row.maxGram),
-                    message: '最小步长需小于等于最大步长'
-                  }
-                ]"
               />
             </template>
             <template #maxGram-column-value="{scope}">
               <CusFormColumn
-                v-if="scope.row.key === 'ngram_pinyin_IndexAnalyzer'"
+                v-if="scope.row.key.includes('ngram')"
                 class="__cus-table-form-column"
                 :span="24"
                 v-model:param="scope.row.maxGram"
@@ -128,7 +121,7 @@
                 :rules="[
                   {
                     handle: (val) => Number(val) >= Number(scope.row.minGram),
-                    message: '最小步长需小于等于最大步长'
+                    message: '最大步长需大于等于最小步长'
                   }
                 ]"
               />