Ver código fonte

优化工艺参数输入框样式并统一表头必填项空格格式

yusheng 5 meses atrás
pai
commit
6908df6f1d

+ 11 - 5
src/views/inspectionTemplate/AddorUpdate.vue

@@ -237,7 +237,11 @@
                 message: ' ',
                 trigger: 'change'
               }"
-              :prop="'inspectionItemVOList.' + $index + (row.textType == 3 ? '.minValue' : '.defaultValue')"
+              :prop="
+                'inspectionItemVOList.' +
+                $index +
+                (row.textType == 3 ? '.minValue' : '.defaultValue')
+              "
             >
               <div style="width: 100%; display: flex">
                 <DictSelection
@@ -257,7 +261,9 @@
                 </div>
 
                 <div v-else style="width: 100%">
-                  <el-input v-model="row.defaultValue"></el-input>
+                  <!-- <el-input v-model="row.defaultValue"></el-input> -->
+                  <el-input type="textarea" autosize v-model="row.defaultValue">
+                  </el-input>
                 </div>
 
                 <DictSelection
@@ -517,7 +523,7 @@
             prop: 'inspectionName',
             slot: 'inspectionName',
             label: '名称',
-            headerSlot:'isRequired',
+            headerSlot: 'isRequired',
             showOverflowTooltip: true,
             align: 'center',
             minWidth: 150
@@ -525,7 +531,7 @@
           {
             prop: 'defaultValue',
             slot: 'defaultValue',
-            headerSlot:'isRequired',
+            headerSlot: 'isRequired',
             label: '工艺参数',
             align: 'center',
             minWidth: 400,
@@ -534,7 +540,7 @@
           {
             prop: 'executionMethod',
             slot: 'executionMethod',
-            headerSlot:'isRequired',
+            headerSlot: 'isRequired',
             label: '执行方式',
             showOverflowTooltip: true,
             align: 'center',

+ 2 - 3
src/views/inspectionWork/components/experimentReport.vue

@@ -262,13 +262,12 @@
           <experimentationProcess
             ref="experimentationProcess1"
             :edit="false"
-
           ></experimentationProcess> </el-col
       ></el-row>
       <header-title title="工艺要求"> </header-title>
       <el-input
         type="textarea"
-        :rows="1"
+        autosize
         placeholder="请输入内容"
         :disabled="true"
         v-model="form.processRequirementsJson"
@@ -694,7 +693,7 @@
         this.$refs.releaseRulesRef.open(type);
       },
       releaseRulesSuccess(data) {
-        if (this.releaseRulesType ==1) {
+        if (this.releaseRulesType == 1) {
           this.$refs.experimentationProcess1.init(data.tempJson.tempJson);
         }