Przeglądaj źródła

4月12日bug修改

杨青 2 lat temu
rodzic
commit
116926df7b

+ 1 - 1
src/xt_pages/device/objectTableDisinfectTwo.vue Wyświetl plik

28
           <div class="tab_air">
28
           <div class="tab_air">
29
             <el-table  :data="tableData" :fit="true" stripe>
29
             <el-table  :data="tableData" :fit="true" stripe>
30
                 <el-table-column prop="year" label="名称" width="150" align="center">
30
                 <el-table-column prop="year" label="名称" width="150" align="center">
31
-                    <el-table-column prop="year" label="消毒时间/min" align="center" width="150">
31
+                    <el-table-column prop="year" label="消毒时间" align="center" width="150">
32
                         <el-table-column prop="year" label="日期" align="center" width="150">
32
                         <el-table-column prop="year" label="日期" align="center" width="150">
33
                             <template slot-scope="scope">
33
                             <template slot-scope="scope">
34
                                 {{getTimes(scope.row.record_date) }}
34
                                 {{getTimes(scope.row.record_date) }}

+ 1 - 1
src/xt_pages/management/components/RepairForm.vue Wyświetl plik

12
           ></el-option>
12
           ></el-option>
13
         </el-select>
13
         </el-select>
14
       </el-col> -->
14
       </el-col> -->
15
-      <el-col :span="11">
15
+      <el-col :span="10">
16
         <span class="machineClass">日期查询:</span>
16
         <span class="machineClass">日期查询:</span>
17
         <el-date-picker
17
         <el-date-picker
18
           v-model="forms.start_time"
18
           v-model="forms.start_time"

+ 18 - 17
src/xt_pages/management/components/WaterForm.vue Wyświetl plik

97
                 <span>一级</span>
97
                 <span>一级</span>
98
             </el-col>
98
             </el-col>
99
             <el-col :span="4">
99
             <el-col :span="4">
100
-                <el-input v-model.number="form.first_ro_membrane_water" style="width:100px" type="number"></el-input>
100
+                <el-input v-model="form.first_ro_membrane_water" style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
101
             </el-col>
101
             </el-col>
102
             <el-col :span="4">
102
             <el-col :span="4">
103
-                <el-input v-model.number="form.first_ro_film_thick_water" style="width:100px" type="number"></el-input>
103
+                <el-input v-model="form.first_ro_film_thick_water" style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
104
             </el-col>
104
             </el-col>
105
             <el-col :span="4">
105
             <el-col :span="4">
106
-                <el-input v-model.number="form.first_ro_membrane_effluent" style="width:100px" type="number"></el-input>
106
+                <el-input v-model="form.first_ro_membrane_effluent" style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
107
             </el-col>
107
             </el-col>
108
             <el-col :span="4">
108
             <el-col :span="4">
109
-                <el-input v-model.number="form.first_production_of_water_conductivity" style="width:100px" type="number"></el-input>
109
+                <el-input v-model="form.first_production_of_water_conductivity" style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
110
             </el-col>
110
             </el-col>
111
             <el-col :span="4">
111
             <el-col :span="4">
112
-                <el-input v-model.number="form.first_water_yield" style="width:100px" type="number"></el-input>
112
+                <el-input v-model="form.first_water_yield" style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
113
             </el-col>
113
             </el-col>
114
          </el-row>
114
          </el-row>
115
          <el-row :gutter="20">
115
          <el-row :gutter="20">
117
                 <span>二级</span>
117
                 <span>二级</span>
118
             </el-col>
118
             </el-col>
119
             <el-col :span="4">
119
             <el-col :span="4">
120
-                <el-input v-model.number="form.last_ro_membrane_water"  style="width:100px" type="number"></el-input>
120
+                <el-input v-model="form.last_ro_membrane_water"  style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
121
             </el-col>
121
             </el-col>
122
             <el-col :span="4">
122
             <el-col :span="4">
123
-                <el-input v-model="form.last_ro_film_thick_water"  style="width:100px" type="number"></el-input>
123
+                <el-input v-model="form.last_ro_film_thick_water"  style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
124
             </el-col>
124
             </el-col>
125
             <el-col :span="4">
125
             <el-col :span="4">
126
-                <el-input  v-model="form.last_ro_membrane_effluent"  style="width:100px" type="number"></el-input>
126
+                <el-input  v-model="form.last_ro_membrane_effluent"  style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
127
             </el-col>
127
             </el-col>
128
             <el-col :span="4">
128
             <el-col :span="4">
129
-                <el-input v-model="form.last_production_of_water_conductivity"  style="width:100px" type="number"></el-input>
129
+                <el-input v-model="form.last_production_of_water_conductivity"  style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
130
             </el-col>
130
             </el-col>
131
             <el-col :span="4">
131
             <el-col :span="4">
132
-                <el-input v-model.number="form.last_water_yield"  style="width:100px" type="number"></el-input>
132
+                <el-input v-model="form.last_water_yield"  style="width:100px"  oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
133
             </el-col>
133
             </el-col>
134
          </el-row>
134
          </el-row>
135
          <el-row>
135
          <el-row>
136
             <el-col :span="8">
136
             <el-col :span="8">
137
                 <el-form-item label="碳罐(MPa):"  class="st">
137
                 <el-form-item label="碳罐(MPa):"  class="st">
138
-                    <el-input  v-model="form.carbon_tank" type="number" style="width:100px"></el-input>
138
+                    <el-input  v-model="form.carbon_tank"  style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
139
                 </el-form-item>
139
                 </el-form-item>
140
             </el-col>
140
             </el-col>
141
             <el-col :span="8">
141
             <el-col :span="8">
142
                 <el-form-item label="砂罐(MPa):"  class="st">
142
                 <el-form-item label="砂罐(MPa):"  class="st">
143
-                    <el-input  v-model="form.snd_tank" type="number" style="width:100px"></el-input>
143
+                    <el-input  v-model="form.snd_tank"  style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
144
                 </el-form-item>
144
                 </el-form-item>
145
             </el-col>
145
             </el-col>
146
             <el-col :span="8">
146
             <el-col :span="8">
147
                 <el-form-item label="树脂罐(MPa):"  class="st">
147
                 <el-form-item label="树脂罐(MPa):"  class="st">
148
-                    <el-input  v-model="form.resin_tank" type="number" style="width:100px"></el-input>
148
+                    <el-input  v-model="form.resin_tank"  style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
149
                 </el-form-item>
149
                 </el-form-item>
150
             </el-col>
150
             </el-col>
151
          </el-row>
151
          </el-row>
152
          <el-row>
152
          <el-row>
153
             <el-col :span="8">
153
             <el-col :span="8">
154
                 <el-form-item label="精密过滤器(MPa):"  class="st">
154
                 <el-form-item label="精密过滤器(MPa):"  class="st">
155
-                    <el-input  v-model="form.ultrafilter" type="number" style="width:100px"></el-input>
155
+                    <el-input  v-model.number="form.ultrafilter"  style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
156
                 </el-form-item>
156
                 </el-form-item>
157
             </el-col>
157
             </el-col>
158
          </el-row>
158
          </el-row>
214
             </el-col>
214
             </el-col>
215
             <el-col :span="8">
215
             <el-col :span="8">
216
                 <el-form-item label="时长(h):"  class="st">
216
                 <el-form-item label="时长(h):"  class="st">
217
-                    <el-input  v-model="form.first_disinfection_time" type="number" style="width:100px"></el-input>
217
+                    <el-input  v-model="form.first_disinfection_time" type="number" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
218
                 </el-form-item>
218
                 </el-form-item>
219
             </el-col>
219
             </el-col>
220
          </el-row>
220
          </el-row>
237
             </el-col>
237
             </el-col>
238
             <el-col :span="8">
238
             <el-col :span="8">
239
                 <el-form-item label="时长(h):"  class="st">
239
                 <el-form-item label="时长(h):"  class="st">
240
-                    <el-input  v-model="form.last_disinfection_time" type="number" style="width:100px"></el-input>
240
+                    <el-input  v-model="form.last_disinfection_time" type="number" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
241
                 </el-form-item>
241
                 </el-form-item>
242
             </el-col>
242
             </el-col>
243
          </el-row>
243
          </el-row>
247
             <el-col :span="8">
247
             <el-col :span="8">
248
                 <el-form-item label="过滤器更换(只):"  class="st">
248
                 <el-form-item label="过滤器更换(只):"  class="st">
249
                     <el-input  v-model="form.filter_replacement" style="width:100px" 
249
                     <el-input  v-model="form.filter_replacement" style="width:100px" 
250
-                    oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
250
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
251
+                    ></el-input>
251
                 </el-form-item>
252
                 </el-form-item>
252
             </el-col>
253
             </el-col>
253
 
254