xsh_1997 6 日 前
コミット
fd7114d9a9
共有2 個のファイルを変更した4 個の追加5 個の削除を含む
  1. 1 1
      ruoyi-ui/src/lang/zh/breedingStd.js
  2. 3 4
      ruoyi-ui/src/views/breedingStandards/diseaseTreatment/drugIncompatibility/index.vue

+ 1 - 1
ruoyi-ui/src/lang/zh/breedingStd.js

@@ -255,7 +255,7 @@ export default {
255 255
     formCompatResult: "配伍结果",
256 256
     formCompanions: "配伍药物",
257 257
     phMainDrug: "请输入主药名称(1~20字)",
258
-    phCompatResult: "配伍结果(选填,≤20字)",
258
+    phCompatResult: "配伍结果(选填,≤50字)",
259 259
     phCompanion: "配伍药物名称(1~20字)",
260 260
     addCompanionRow: "添加配伍药物",
261 261
     ruleMainRequired: "请输入主药名称",

+ 3 - 4
ruoyi-ui/src/views/breedingStandards/diseaseTreatment/drugIncompatibility/index.vue

@@ -103,8 +103,8 @@
103 103
           <el-input
104 104
             v-model="form.mainDrugName"
105 105
             :placeholder="stdT('phMainDrug')"
106
-            maxlength="20"
107 106
             show-word-limit
107
+            maxlength="20"
108 108
             @blur="touchCompanionsValidate"
109 109
           />
110 110
         </el-form-item>
@@ -113,7 +113,7 @@
113 113
           <el-input
114 114
             v-model="form.compatResult"
115 115
             :placeholder="stdT('phCompatResult')"
116
-            maxlength="20"
116
+            maxlength="50"
117 117
             show-word-limit
118 118
           />
119 119
         </el-form-item>
@@ -228,9 +228,8 @@ export default {
228 228
       return {
229 229
         mainDrugName: [
230 230
           { required: true, message: this.stdT("ruleMainRequired"), trigger: "blur" },
231
-          { min: 1, max: 20, message: this.stdT("ruleMainLen"), trigger: "blur" }
232 231
         ],
233
-        compatResult: [{ max: 20, message: this.stdT("ruleCompatLen"), trigger: "blur" }],
232
+        compatResult: [{ max: 50, message: this.stdT("ruleCompatLen"), trigger: "blur" }],
234 233
         companions: [{ validator: this.validateCompanionsField, trigger: ["change", "blur"] }]
235 234
       }
236 235
     }