Browse Source

裂解炉炉管测温测压coil、max默认带出上一个月的数据

wangggziwen 1 năm trước cách đây
mục cha
commit
9cd2ab5039

+ 4 - 1
master/src/main/resources/mybatis/production/TFurnancePressureMapper.xml

@@ -42,7 +42,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectTFurnancePressureVo"/>
         <where>  
             <if test="furnanceName != null  and furnanceName != ''"> and furnance_name = #{furnanceName}</if>
-            <if test="recordTime != null "> and record_time = #{recordTime}</if>
+            <if test="recordTime != null ">
+                and extract (year from record_time) = extract (year from #{recordTime})
+                and extract (month from record_time) = extract (month from #{recordTime})
+            </if>
             <if test="pass1 != null  and pass1 != ''"> and pass1 = #{pass1}</if>
             <if test="pass2 != null  and pass2 != ''"> and pass2 = #{pass2}</if>
             <if test="pass3 != null  and pass3 != ''"> and pass3 = #{pass3}</if>

+ 4 - 1
ui/src/views/production/pressure/coil.vue

@@ -6,7 +6,8 @@
           v-model="queryParams.recordTime"
           type="month"
           value-format="yyyy-MM"
-          placeholder="选择巡检日期">
+          placeholder="选择巡检日期"
+          :clearable="false">
         </el-date-picker>
       </el-form-item>
       <el-form-item>
@@ -211,6 +212,8 @@
     },
     methods: {
       init() {
+        let now = new Date();
+        this.queryParams.recordTime = now.getFullYear() + "-" + now.getMonth();
         this.getList();
       },
       /** 查询裂解炉炉管测压列表 */

+ 4 - 1
ui/src/views/production/pressure/max.vue

@@ -6,7 +6,8 @@
           v-model="queryParams.recordTime"
           type="month"
           value-format="yyyy-MM"
-          placeholder="选择巡检日期">
+          placeholder="选择巡检日期"
+          :clearable="false">
         </el-date-picker>
       </el-form-item>
       <el-form-item>
@@ -145,6 +146,8 @@
     },
     methods: {
       init() {
+        let now = new Date();
+        this.queryParams.recordTime = now.getFullYear() + "-" + now.getMonth();
         this.getList();
       },
       /** 查询裂解炉炉管测压列表 */

+ 4 - 1
ui/src/views/production/temperature/coil.vue

@@ -6,7 +6,8 @@
           v-model="queryParams.recordTime"
           type="month"
           value-format="yyyy-MM"
-          placeholder="选择巡检日期">
+          placeholder="选择巡检日期"
+          :clearable="false">
         </el-date-picker>
       </el-form-item>
       <el-form-item>
@@ -211,6 +212,8 @@
     },
     methods: {
       init() {
+        let now = new Date();
+        this.queryParams.recordTime = now.getFullYear() + "-" + now.getMonth();
         this.getList();
       },
       /** 查询裂解炉炉管测温列表 */

+ 4 - 1
ui/src/views/production/temperature/max.vue

@@ -6,7 +6,8 @@
           v-model="queryParams.recordTime"
           type="month"
           value-format="yyyy-MM"
-          placeholder="选择巡检日期">
+          placeholder="选择巡检日期"
+          :clearable="false">
         </el-date-picker>
       </el-form-item>
       <el-form-item>
@@ -145,6 +146,8 @@
     },
     methods: {
       init() {
+        let now = new Date();
+        this.queryParams.recordTime = now.getFullYear() + "-" + now.getMonth();
         this.getList();
       },
       /** 查询裂解炉炉管测温列表 */