ysy пре 1 година
родитељ
комит
c7c135e91f

+ 2 - 0
src/views/inspectionProject/components/user-edit.vue

@@ -320,6 +320,8 @@
         minValue: '',
         unitName: '',
 
+        status: 1,
+
         inspectionStandard: '',
         unit: '',
         symbol: '',

+ 16 - 1
src/views/inspectionProject/index.vue

@@ -33,7 +33,19 @@
           >
         </template>
 
-        <template v-slot:status="{ row }"> </template>
+        <template v-slot:maxValue="{ row }">
+          {{ row.maxValue }} <span v-if="row.maxValue  ">{{row.unitName}}</span>
+        </template>
+
+        <template v-slot:minValue="{ row }">
+          {{ row.minValue }}  <span v-if="row.minValue   ">{{row.unitName}}</span>
+        </template>
+
+        
+        <template v-slot:defaultValue="{ row }">
+          {{ row.defaultValue }} <span v-if="row.defaultValue ">{{row.unitName}}</span>
+        </template>
+
 
         <template v-slot:textType="{ row }">
           {{
@@ -151,18 +163,21 @@ import dictMixins from '@/mixins/dictMixins'
 
           {
             prop: 'maxValue',
+            slot: 'maxValue',
             label: '参数上限',
             align: 'center',
             showOverflowTooltip: true
           },
           {
             prop: 'minValue',
+            slot: 'minValue',
             label: '参数下限',
             align: 'center',
             showOverflowTooltip: true
           },
           {
             prop: 'defaultValue',
+            slot: 'defaultValue',
             label: '默认值',
             align: 'center',
             showOverflowTooltip: true