Procházet zdrojové kódy

Merge branch 'feature_20250617_文本输入框等优化' into release

zhujindu před 5 měsíci
rodič
revize
0929e96bc0

+ 5 - 4
src/views/clew/complaintDetail/radioGroup.vue

@@ -34,7 +34,8 @@
             v-model="val.answerValue"
             :placeholder="val.remark"
             :minTextLength="val.minTextLength"
-            :error-message="val.remark"
+            autosize
+            type="textarea"
             :class="{
               fieldInput: true,
               rulesClass: val.answerValue != null && val.answerValue.length < val.minTextLength,
@@ -250,12 +251,12 @@ export default {
   }
   .van-field {
     padding: 0;
-    width: 100%;
+    width: 97%;
     border-radius: 4px;
     overflow: hidden;
     background-color: unset;
-    height: 30px;
-    line-height: 30px;
+    // height: 30px;
+    // line-height: 30px;
     border: 1px solid #cdc8c8;
   }
   .van-field__control {

+ 2 - 0
src/views/week/SUPTaskApproval/detailItem.vue

@@ -72,6 +72,8 @@
             :disabled="true"
             v-model="item.answerValue"
             :formatter="formatter"
+            autosize
+            type="textarea"
             :placeholder="item.customName"></van-field>
           <!-- <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
             {{ item.remark }}

+ 2 - 0
src/views/week/VisitSummaryAdd.vue

@@ -78,6 +78,8 @@
             <van-field
               v-model="item.answerValue"
               :formatter="formatter"
+              autosize
+              type="textarea"
               :placeholder="item.customName"></van-field>
             <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
               {{ item.remark }}

+ 2 - 0
src/views/week/allowWriteAgainSummary.vue

@@ -77,6 +77,8 @@
             :disabled="!item.allowWriteAgain"
             v-model="item.answerValue"
             :formatter="formatter"
+            autosize
+            type="textarea"
             :placeholder="item.customName"></van-field>
           <p
             v-if="item.allowWriteAgain"

+ 8 - 4
src/views/week/assignAwait/radioGroup.vue

@@ -24,7 +24,11 @@
           </template>
           <!-- 回答类型:wb-文本,sz-数字,rq-日期,zp-照片,dx -->
           <template v-if="item.answerType == 'wb'">
-            <van-field v-model="item.answerValue" :placeholder="item.remark" />
+            <van-field
+              v-model="item.answerValue"
+              autosize
+              type="textarea"
+              :placeholder="item.remark" />
           </template>
           <template v-if="item.answerType == 'sz'">
             <van-field
@@ -124,12 +128,12 @@ export default {
   .van-field {
     border: 1px solid #cdc8c8;
     padding: 0;
-    width: 100%;
+    width: 97%;
     border-radius: 4px;
     overflow: hidden;
     background-color: unset;
-    height: 30px;
-    line-height: 30px;
+    // height: 30px;
+    // line-height: 30px;
     margin: 5px 0;
   }
   .van-field__control {

+ 2 - 0
src/views/week/componVisitSummary.vue

@@ -64,6 +64,8 @@
           <van-field
             v-model="item.answerValue"
             :formatter="formatter"
+            autosize
+            type="textarea"
             :placeholder="item.customName"></van-field>
           <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
             {{ item.remark }}