Browse Source

储罐运营数据增加当前储量数据
可视化获取当前运营数据增加当前储量

Memory_LG 9 months ago
parent
commit
fd98cec199

+ 18 - 10
data-ui/src/views/data/housingconstruction/log/index.vue

@@ -80,6 +80,11 @@
       <el-table-column type="selection" width="55" align="center"/>
       <el-table-column label="企业名称" align="center" prop="enterpriseName"/>
       <el-table-column label="储罐名称" align="center" prop="storagetankName"/>
+      <el-table-column label="当前储量" align="center" prop="storageCapacity">
+        <template slot-scope="scope">
+          <span>{{ scope.row.storageCapacity }} L</span>
+        </template>
+      </el-table-column>
       <el-table-column label="液体液位" align="center" prop="level">
         <template slot-scope="scope">
           <span :class="getColumnClass(scope.row, 'level')">{{ scope.row.level }} m</span>
@@ -108,14 +113,6 @@
       <el-table-column label="创建时间" align="center" prop="createTime"/>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
-<!--          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleUpdate(scope.row)"
-            v-hasPermi="['housingconstruction:log:edit']"
-          >修改
-          </el-button>-->
           <el-button
             size="mini"
             type="text"
@@ -189,6 +186,13 @@
             </el-form-item>
           </el-col>
         </el-row>
+        <el-row :gutter="24">
+          <el-col :span="12">
+            <el-form-item label="当前储量" prop="storageCapacity">
+              <el-input v-model="form.storageCapacity" placeholder="请输入内部气压(单位: L)"/>
+            </el-form-item>
+          </el-col>
+        </el-row>
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
@@ -257,6 +261,9 @@ export default {
         runState: [
           {required: true, message: "运行状态不能为空", trigger: "blur"}
         ],
+        storageCapacity: [
+          {required: true, message: "当前储量不能为空", trigger: "blur"}
+        ],
       }
     };
   },
@@ -311,7 +318,8 @@ export default {
         pressure: null,
         gasLeak: null,
         securityState: null,
-        runState: null
+        runState: null,
+        storageCapacity: null
       };
       this.resetForm("form");
     },
@@ -390,7 +398,7 @@ export default {
         level: '1',
         heat: '2',
         pressure: '3',
-        gasLeak: '4'
+        gasLeak: '4',
       };
       return runState.includes(columnMappings[columnProp]) ? 'red-font' : '';
     }

+ 2 - 0
src/main/resources/mapper/housingconstruction/CenterdataTHousingconstructionViewMapper.xml

@@ -323,6 +323,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             a.enterprise_name enterpriseName,
             a.id storagetankId,
             a.name storagetankName,
+            b.storage_capacity storageCapacity,
             b.level,
             b.heat,
             b.pressure,
@@ -332,6 +333,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from centerdata_t_housingconstruction_storagetank a
         left join (SELECT
                     b.storagetank_id,
+                    b.storage_capacity,
                     b.level,
                     b.heat,
                     b.pressure,