Prechádzať zdrojové kódy

优化质检样本列表对话框,修复比较符号逻辑错误并添加单位显示

yusheng 9 mesiacov pred
rodič
commit
fa4c30cb57

+ 7 - 2
src/views/inspectionWork/components/sampleListDialog.vue

@@ -129,7 +129,11 @@
                     @input="
                       handleInput(scope.row, scope.row.qualityResultContent)
                     "
-                  ></el-input>
+                  >
+                    <template slot="append" v-if="scope.row.unitName">
+                      {{ scope.row.unitName }}
+                    </template>
+                  </el-input>
                 </template>
               </el-table-column>
               <el-table-column
@@ -425,7 +429,7 @@
           }
         }
         if (symbol == '<') {
-          if (Ivalue > Dvalue) {
+          if (Ivalue < Dvalue) {
             return 1;
           } else {
             return 2;
@@ -436,6 +440,7 @@
       },
 
       handleInput(item, value) {
+        console.log(item,'item')
         if (value) {
           if (item.textType == '1') {
             if (!item.symbol) {