|
@@ -0,0 +1,78 @@
|
|
|
+<template>
|
|
|
+ <div class="qpage qpage-popwin">
|
|
|
+ <el-form :inline="true" :model="queryForm" class="query-form-inline" label-width="auto">
|
|
|
+ <el-form-item label=" ">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="queryForm.dataTime"
|
|
|
+ type="daterange"
|
|
|
+ start-placeholder="开始时间"
|
|
|
+ end-placeholder="截止时间"
|
|
|
+ :unlink-panels="true"
|
|
|
+ value-format="YYYY-MM-DD"
|
|
|
+ style="width:220px"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" :loading="isQuerying" @click="queryHandle">检索</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <div class="qpage-body">
|
|
|
+ <CrudTable
|
|
|
+ ref="crudTable"
|
|
|
+ page-info-opts="total, prev, pager, next,sizes"
|
|
|
+ url="/analysis/ipr/queryRegression"
|
|
|
+ :initWhere="{wellId:$attrs.id}"
|
|
|
+ :pageSize="20"
|
|
|
+ >
|
|
|
+
|
|
|
+ <template #tabColumns={indexGenerate}>
|
|
|
+ <el-table-column type="index" :index="indexGenerate" label="序号" width="60" align="center" fixed/>
|
|
|
+ <el-table-column prop="createTime" label="创建时间" width="160" fixed/>
|
|
|
+ <el-table-column prop="liquidExpression" label="液量回归方程" width="240" />
|
|
|
+ <el-table-column prop="oilExpression" label="油量回归方程" width="240" />
|
|
|
+ <el-table-column prop="waterExpression" label="水量回归方程" width="240" />
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </CrudTable>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+ import {reactive,ref,toRaw} from 'vue'
|
|
|
+ import CrudTable from '../../components/crudtable/CrudTable.vue'
|
|
|
+ const crudTable=ref(null)
|
|
|
+
|
|
|
+ const isQuerying=ref(false)
|
|
|
+ const queryForm = reactive({
|
|
|
+ dataTime: null
|
|
|
+ })
|
|
|
+
|
|
|
+ const queryHandle=()=>{
|
|
|
+ isQuerying.value=true
|
|
|
+ let formdata=toRaw(queryForm)
|
|
|
+ formdata['startTime']=formdata.dataTime?formdata.dataTime[0]:null
|
|
|
+ formdata['endTime']=formdata.dataTime?(formdata.dataTime[1]+' 23:59:59'):null
|
|
|
+ crudTable.value.query(queryForm).then(resp=>{
|
|
|
+ isQuerying.value=false
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+ @import url('../../assets/css/qpage.css');
|
|
|
+
|
|
|
+ .qpage-popwin{
|
|
|
+ height: 60vh;
|
|
|
+ }
|
|
|
+ .edit-form-item{
|
|
|
+ width:260px;
|
|
|
+ }
|
|
|
+</style>
|