|
@@ -2,10 +2,10 @@
|
|
|
<div class="app-container">
|
|
|
<div class="table1" v-if="isTable1">
|
|
|
<div class="search">
|
|
|
- <el-select v-model="table1.getdataListParm.parammaps.enable" filterable placeholder="全部牧场" class="filter-item" style="width: 120px;" clearable>
|
|
|
- <el-option v-for="item in table1.pastureList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
+ <el-select v-model="table1.parammaps.pastureid" filterable placeholder="全部牧场" class="filter-item" style="width: 120px;" clearable>
|
|
|
+ <el-option v-for="item in table1.pastureList" :key="item.pastureid" :label="item.pasturename" :value="item.pastureid" />
|
|
|
</el-select>
|
|
|
- <el-date-picker v-model="table1.getdataListParm.parammaps.date" type="date" placeholder="选择日期" />
|
|
|
+ <el-date-picker v-model="table1.parammaps.inputDatetime" type="daterange" class="filter-item" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
|
|
|
<el-button class="successBorder" @click="handleSearch1">查询</el-button>
|
|
|
<el-button class="successBorder" @click="handleRefresh1">重置</el-button>
|
|
|
</div>
|
|
@@ -29,61 +29,61 @@
|
|
|
<span v-else>1</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="牧场" min-width="60px" align="center" prop="filed1" />
|
|
|
- <el-table-column sortable label="成母牛数" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="脖环佩戴数" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="泌乳牛未佩戴" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="干奶牛未佩戴" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="青年牛未佩戴" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="脖环工作数" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="异常脖环" min-width="60px" align="center" prop="filed2">
|
|
|
+ <el-table-column sortable label="牧场" min-width="60px" align="center" prop="牧场" />
|
|
|
+ <el-table-column sortable label="成母牛数" min-width="60px" align="center" prop="成母牛数" />
|
|
|
+ <el-table-column sortable label="脖环佩戴数" min-width="60px" align="center" prop="佩戴脖环数" />
|
|
|
+ <el-table-column sortable label="泌乳牛未佩戴" min-width="60px" align="center" prop="泌乳牛未佩戴脖环数" />
|
|
|
+ <el-table-column sortable label="干奶牛未佩戴" min-width="60px" align="center" prop="干奶牛未佩戴" />
|
|
|
+ <el-table-column sortable label="青年牛未佩戴" min-width="60px" align="center" prop="青年牛未佩戴" />
|
|
|
+ <el-table-column sortable label="脖环工作数" min-width="60px" align="center" prop="脖环工作数量" />
|
|
|
+ <el-table-column sortable label="异常脖环" min-width="60px" align="center" prop="异常脖环">
|
|
|
<template slot-scope="{row}">
|
|
|
- <a @click="clickCell1(row)" style="text-decoration: underline;color: #0000FF;">{{ row.filed2 }}</a>
|
|
|
+ <a @click="clickCell1(row)" style="text-decoration: underline;color: #0000FF;">{{ row['异常脖环数量'] }}</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="安装接收器数量" min-width="60px" align="center" prop="filed2">
|
|
|
+ <el-table-column sortable label="安装接收器数量" min-width="60px" align="center" prop="接收器安装数量">
|
|
|
<template slot-scope="{row}">
|
|
|
- <a @click="clickCell2(row)" style="text-decoration: underline;color: #0000FF;">{{ row.filed2 }}</a>
|
|
|
+ <a @click="clickCell2(row)" style="text-decoration: underline;color: #0000FF;">{{ row['接收器安装数量'] }}</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column sortable label="接收器工作数量" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="8小时接收率" min-width="60px" align="center" prop="filed2">
|
|
|
+ <el-table-column sortable label="接收器工作数量" min-width="60px" align="center" prop="接收器工作数量" />
|
|
|
+ <el-table-column sortable label="8小时接收率" min-width="60px" align="center" prop="8小时接收率">
|
|
|
<template slot-scope="{row}">
|
|
|
- <a @click="clickCell3(row)" style="text-decoration: underline;color: #0000FF;">{{ row.filed2 }}</a>
|
|
|
+ <a @click="clickCell3(row)" style="text-decoration: underline;color: #0000FF;">{{ row['8小时接收率'] }}</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="脖环数据丢失头数" min-width="60px" align="center" prop="filed2">
|
|
|
+ <el-table-column sortable label="脖环数据丢失头数" min-width="60px" align="center" prop="记录丢失牛只数">
|
|
|
<template slot-scope="{row}">
|
|
|
- <a @click="clickCell4(row)" style="text-decoration: underline;color: #0000FF;">{{ row.filed2 }}</a>
|
|
|
+ <a @click="clickCell4(row)" style="text-decoration: underline;color: #0000FF;">{{ row['记录丢失牛只数'] }}</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="脖环数据丢失数量" min-width="60px" align="center" prop="filed2">
|
|
|
+ <el-table-column sortable label="脖环数据丢失数量" min-width="60px" align="center" prop="丢失记录数">
|
|
|
<template slot-scope="{row}">
|
|
|
- <a @click="clickCell5(row)" style="text-decoration: underline;color: #0000FF;">{{ row.filed2 }}</a>
|
|
|
+ <a @click="clickCell5(row)" style="text-decoration: underline;color: #0000FF;">{{ row['丢失记录数'] }}</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="统计时间" min-width="60px" align="center" prop="filed14" />
|
|
|
+ <el-table-column sortable label="统计时间" min-width="60px" align="center" prop="统计时间" />
|
|
|
</el-table>
|
|
|
- <pagination v-show="table1.total>0" :total="table1.total" :page.sync="table1.getdataListParm.offset" :limit.sync="table1.getdataListParm.pagecount" @pagination="getList1" />
|
|
|
+ <pagination v-show="table1.total>0" :total="table1.total" :page.sync="table1.offset" :limit.sync="table1.pagecount" @pagination="getList1" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!-- 异常脖环 -->
|
|
|
<div class="table2" v-if="isTable2">
|
|
|
<div class="search">
|
|
|
- <el-select v-model="table2.getdataListParm.parammaps.enable" filterable placeholder="异常类型" class="filter-item" style="width: 120px;" clearable>
|
|
|
+ <el-select v-model="table2.parammaps.reason" filterable placeholder="异常类型" class="filter-item" style="width: 120px;" clearable>
|
|
|
<el-option v-for="item in table2.exceptionTypeList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="table2.getdataListParm.parammaps.enable" filterable placeholder="检查结果" class="filter-item" style="width: 120px;" clearable>
|
|
|
+ <el-select v-model="table2.parammaps.measure" filterable placeholder="检查结果" class="filter-item" style="width: 120px;" clearable>
|
|
|
<el-option v-for="item in table2.inspectionResultsList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
<el-button class="successBorder" @click="handleSearch2">查询</el-button>
|
|
|
<el-button class="successBorder" @click="handleRefresh2">重置</el-button>
|
|
|
</div>
|
|
|
<div class="top">
|
|
|
- 牧场:{{temp.filed1}}<br/>
|
|
|
- 日期:{{temp.filed14}}<br/>
|
|
|
+ 牧场:{{temp['牧场']}}<br/>
|
|
|
+ 日期:{{temp['统计时间']}}<br/>
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
<el-table
|
|
@@ -105,18 +105,18 @@
|
|
|
<span v-else>1</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="牛号" min-width="60px" align="center" prop="filed1" />
|
|
|
- <el-table-column sortable label="脖环号" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="脖环佩戴日期" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="牛舍号" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="异常类型" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="接收数量" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="高活动量数量" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="电池电量" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="检查结果" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="最后统计时间" min-width="60px" align="center" prop="filed14" />
|
|
|
+ <el-table-column sortable label="牛号" min-width="60px" align="center" prop="COW_NUM" />
|
|
|
+ <el-table-column sortable label="脖环号" min-width="60px" align="center" prop="REGIST_NUM_2" />
|
|
|
+ <el-table-column sortable label="脖环佩戴日期" min-width="60px" align="center" prop="REGIST_NUM_2DATE" />
|
|
|
+ <el-table-column sortable label="牛舍号" min-width="60px" align="center" prop="HOUSE_NAME" />
|
|
|
+ <el-table-column sortable label="异常类型" min-width="60px" align="center" prop="reason" />
|
|
|
+ <el-table-column sortable label="接收数量" min-width="60px" align="center" prop="lose" />
|
|
|
+ <el-table-column sortable label="高活动量数量" min-width="60px" align="center" prop=" loseh" />
|
|
|
+ <el-table-column sortable label="电池电量" min-width="60px" align="center" prop="voltage" />
|
|
|
+ <el-table-column sortable label="检查结果" min-width="60px" align="center" prop="measure" />
|
|
|
+ <el-table-column sortable label="最后统计时间" min-width="60px" align="center" prop="createtime" />
|
|
|
</el-table>
|
|
|
- <pagination v-show="table2.total>=0" :total="table2.total" :page.sync="table2.getdataListParm.offset" :limit.sync="table2.getdataListParm.pagecount" @pagination="getList2" />
|
|
|
+ <pagination v-show="table2.total>=0" :total="table2.total" :page.sync="table2.offset" :limit.sync="table2.pagecount" @pagination="getList2()" />
|
|
|
</div>
|
|
|
<el-button class="export" style="float: right;margin-top: 10px;" @click="goBack()">返回</el-button>
|
|
|
</div>
|
|
@@ -124,8 +124,8 @@
|
|
|
<!-- 安装接收器数量 -->
|
|
|
<div class="table3" v-if="isTable3">
|
|
|
<div class="top">
|
|
|
- 牧场:{{temp.filed1}}<br/>
|
|
|
- 日期:{{temp.filed14}}<br/>
|
|
|
+ 牧场:{{temp['牧场']}}<br/>
|
|
|
+ 日期:{{temp['统计时间']}}<br/>
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
<el-table
|
|
@@ -147,21 +147,21 @@
|
|
|
<span v-else>1</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="牛舍号" min-width="60px" align="center" prop="filed1" />
|
|
|
+ <el-table-column sortable label="牛舍号" min-width="60px" align="center" prop="PHYSICALNAME" />
|
|
|
<el-table-column sortable label="接收器编号" min-width="60px" align="center" prop="filed2" />
|
|
|
<el-table-column sortable label="接收器定位" min-width="60px" align="center" prop="filed2">
|
|
|
<template slot-scope="{row}">
|
|
|
<a @click="clickReceiverPositioning(row)" style="text-decoration: underline;color: #0000FF;">{{ row.filed2 }}</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="2小时接收数量" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="4小时接收数量" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="6小时接收数量" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="8小时接收率" min-width="60px" align="center" prop="filed14" />
|
|
|
- <el-table-column sortable label="24小时接收率" min-width="60px" align="center" prop="filed14" />
|
|
|
- <el-table-column sortable label="最后统计时间" min-width="60px" align="center" prop="filed14" />
|
|
|
+ <el-table-column sortable label="2小时接收率" min-width="60px" align="center" prop="p2h" />
|
|
|
+ <el-table-column sortable label="4小时接收率" min-width="60px" align="center" prop="p4h" />
|
|
|
+ <el-table-column sortable label="6小时接收率" min-width="60px" align="center" prop="p6h" />
|
|
|
+ <el-table-column sortable label="8小时接收率" min-width="60px" align="center" prop="p8h" />
|
|
|
+ <el-table-column sortable label="24小时接收率" min-width="60px" align="center" prop="p24h" />
|
|
|
+ <el-table-column sortable label="最后统计时间" min-width="60px" align="center" prop="createtime" />
|
|
|
</el-table>
|
|
|
- <pagination v-show="table3.total>=0" :total="table3.total" :page.sync="table3.getdataListParm.offset" :limit.sync="table3.getdataListParm.pagecount" @pagination="getList3" />
|
|
|
+ <pagination v-show="table3.total>=0" :total="table3.total" :page.sync="table3.offset" :limit.sync="table3.pagecount" @pagination="getList3()" />
|
|
|
</div>
|
|
|
<el-button class="export" style="float: right;margin-top: 10px;" @click="goBack()">返回</el-button>
|
|
|
|
|
@@ -184,8 +184,8 @@
|
|
|
<!-- 8小时接收率 -->
|
|
|
<div class="table4" v-if="isTable4">
|
|
|
<div class="top">
|
|
|
- 牧场:{{temp.filed1}}<br/>
|
|
|
- 日期:{{temp.filed14}}<br/>
|
|
|
+ 牧场:{{temp['牧场']}}<br/>
|
|
|
+ 日期:{{temp['统计时间']}}<br/>
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
<el-table
|
|
@@ -207,14 +207,14 @@
|
|
|
<span v-else>1</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="牛舍名称" min-width="60px" align="center" prop="filed1" />
|
|
|
- <el-table-column sortable label="2小时接收率" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="4小时接收率" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="6小时接收率" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="8小时接收率" min-width="60px" align="center" prop="filed14" />
|
|
|
- <el-table-column sortable label="最后统计时间" min-width="60px" align="center" prop="filed14" />
|
|
|
+ <el-table-column sortable label="牛舍名称" min-width="60px" align="center" prop="HOUSE_NAME" />
|
|
|
+ <el-table-column sortable label="2小时接收率" min-width="60px" align="center" prop="p2h" />
|
|
|
+ <el-table-column sortable label="4小时接收率" min-width="60px" align="center" prop="p4h" />
|
|
|
+ <el-table-column sortable label="6小时接收率" min-width="60px" align="center" prop="p6h" />
|
|
|
+ <el-table-column sortable label="8小时接收率" min-width="60px" align="center" prop="p8h" />
|
|
|
+ <el-table-column sortable label="最后统计时间" min-width="60px" align="center" prop="createtime" />
|
|
|
</el-table>
|
|
|
- <pagination v-show="table4.total>0" :total="table4.total" :page.sync="table4.getdataListParm.offset" :limit.sync="table4.getdataListParm.pagecount" @pagination="getList4" />
|
|
|
+ <pagination v-show="table4.total>0" :total="table4.total" :page.sync="table4.offset" :limit.sync="table4.pagecount" @pagination="getList4()" />
|
|
|
</div>
|
|
|
<el-button class="export" style="float: right;margin-top: 10px;" @click="goBack()">返回</el-button>
|
|
|
</div>
|
|
@@ -222,8 +222,8 @@
|
|
|
<!-- 脖环数据丢失头数 -->
|
|
|
<div class="table5" v-if="isTable5">
|
|
|
<div class="top">
|
|
|
- 牧场:{{temp.filed1}}<br/>
|
|
|
- 日期:{{temp.filed14}}<br/>
|
|
|
+ 牧场:{{temp['牧场']}}<br/>
|
|
|
+ 日期:{{temp['统计时间']}}<br/>
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
<el-table
|
|
@@ -245,15 +245,15 @@
|
|
|
<span v-else>1</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="牛号" min-width="60px" align="center" prop="filed1" />
|
|
|
- <el-table-column sortable label="脖环号" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="脖环佩戴日期" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="牛舍号" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="丢失数据条数" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="电池电量" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="最后统计时间" min-width="60px" align="center" prop="filed14" />
|
|
|
+ <el-table-column sortable label="牛号" min-width="60px" align="center" prop="COW_NUM" />
|
|
|
+ <el-table-column sortable label="脖环号" min-width="60px" align="center" prop="REGIST_NUM_2" />
|
|
|
+ <el-table-column sortable label="脖环佩戴日期" min-width="60px" align="center" prop="REGIST_NUM_2DATE" />
|
|
|
+ <el-table-column sortable label="牛舍号" min-width="60px" align="center" prop="HOUSE_NAME" />
|
|
|
+ <el-table-column sortable label="丢失数据条数" min-width="60px" align="center" prop="lose" />
|
|
|
+ <el-table-column sortable label="电池电量" min-width="60px" align="center" prop="voltage" />
|
|
|
+ <el-table-column sortable label="最后统计时间" min-width="60px" align="center" prop="createtime" />
|
|
|
</el-table>
|
|
|
- <pagination v-show="table5.total>0" :total="table5.total" :page.sync="table5.getdataListParm.offset" :limit.sync="table5.getdataListParm.pagecount" @pagination="getList5" />
|
|
|
+ <pagination v-show="table5.total>0" :total="table5.total" :page.sync="table5.offset" :limit.sync="table5.pagecount" @pagination="getList5()" />
|
|
|
</div>
|
|
|
<el-button class="export" style="float: right;margin-top: 10px;" @click="goBack()">返回</el-button>
|
|
|
</div>
|
|
@@ -261,8 +261,8 @@
|
|
|
<!-- 脖环数据丢失数量 -->
|
|
|
<div class="table6" v-if="isTable6">
|
|
|
<div class="top">
|
|
|
- 牧场:{{temp.filed1}}<br/>
|
|
|
- 日期:{{temp.filed14}}<br/>
|
|
|
+ 牧场:{{temp['牧场']}}<br/>
|
|
|
+ 日期:{{temp['统计时间']}}<br/>
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
<el-table
|
|
@@ -284,15 +284,14 @@
|
|
|
<span v-else>1</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column sortable label="牛号" min-width="60px" align="center" prop="filed1" />
|
|
|
- <el-table-column sortable label="脖环号" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="脖环佩戴日期" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="牛舍号" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="丢失数据条数" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="电池电量" min-width="60px" align="center" prop="filed2" />
|
|
|
- <el-table-column sortable label="最后统计时间" min-width="60px" align="center" prop="filed14" />
|
|
|
+ <el-table-column sortable label="牛号" min-width="60px" align="center" prop="COW_NUM" />
|
|
|
+ <el-table-column sortable label="脖环号" min-width="60px" align="center" prop="REGIST_NUM_2" />
|
|
|
+ <el-table-column sortable label="脖环佩戴日期" min-width="60px" align="center" prop="REGIST_NUM_2DATE" />
|
|
|
+ <el-table-column sortable label="牛舍号" min-width="60px" align="center" prop="HOUSE_NAME" />
|
|
|
+ <el-table-column sortable label="电池电量" min-width="60px" align="center" prop="voltage" />
|
|
|
+ <el-table-column sortable label="最后统计时间" min-width="60px" align="center" prop="createtime" />
|
|
|
</el-table>
|
|
|
- <pagination v-show="table6.total>0" :total="table6.total" :page.sync="table6.getdataListParm.offset" :limit.sync="table6.getdataListParm.pagecount" @pagination="getList6" />
|
|
|
+ <pagination v-show="table6.total>0" :total="table6.total" :page.sync="table6.offset" :limit.sync="table6.pagecount" @pagination="getList6" />
|
|
|
</div>
|
|
|
<el-button class="export" style="float: right;margin-top: 10px;" @click="goBack()">返回</el-button>
|
|
|
</div>
|
|
@@ -302,7 +301,8 @@
|
|
|
|
|
|
<script>
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
- import { postJson } from '@/api/common'
|
|
|
+ import { postJson,getJson } from '@/api/common'
|
|
|
+ import { parseTime } from '@/utils/index.js'
|
|
|
import Cookies from 'js-cookie'
|
|
|
export default {
|
|
|
name: 'NeckRingOperation',
|
|
@@ -310,62 +310,43 @@
|
|
|
data() {
|
|
|
return {
|
|
|
table1:{
|
|
|
- pastureList:[{id:'1',name:'牧场1'},{id:'2',name:'牧场2'}],
|
|
|
- getdataListParm: {
|
|
|
- name: 'getDriverList', page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')), returntype: 'Map',
|
|
|
- parammaps: { pastureid: '', date:'' }
|
|
|
- },
|
|
|
- tableKey: 0, list: [], total: 0, listLoading: true
|
|
|
+ pastureList:[],
|
|
|
+ page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')),
|
|
|
+ parammaps: { pastureid:'',inputDatetime:'',startdate:'',enddate:'' },
|
|
|
+ tableKey: 0, list: [], total: 0, listLoading: false
|
|
|
},
|
|
|
// 异常脖环
|
|
|
table2:{
|
|
|
- exceptionTypeList:[{id:'1',name:'无信号'},{id:'2',name:'接收少'}],
|
|
|
- inspectionResultsList:[{id:'1',name:'牛只不在信号范围内'},{id:'2',name:'无脖环'}],
|
|
|
- getdataListParm: {
|
|
|
- name: 'getDriverList', page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')), returntype: 'Map',
|
|
|
- parammaps: { pastureid: '', date:'' }
|
|
|
- },
|
|
|
- tableKey: 0, list: [], total: 0, listLoading: true
|
|
|
+ exceptionTypeList:[{id:-1,name:'疑似脱落'},{id:1,name:'无信号'},{id:2,name:'接收少'},{id:3,name:'电量低'},{id:4,name:'数据延迟'},{id:5,name:'活动量低'},{id:6,name:'数据丢失'},{id:7,name:'数据丢失明细'}],
|
|
|
+ inspectionResultsList:[{id:0,name:'信号范围之外'},{id:1,name:'更换'}],
|
|
|
+ page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')),
|
|
|
+ parammaps: { reason:'',measure:''},
|
|
|
+ tableKey: 0, list: [], total: 0, listLoading: false
|
|
|
},
|
|
|
// 安装接收器数量
|
|
|
table3:{
|
|
|
- exceptionTypeList:[{id:'1',name:'无信号'},{id:'2',name:'接收少'}],
|
|
|
- inspectionResultsList:[{id:'1',name:'牛只不在信号范围内'},{id:'2',name:'无脖环'}],
|
|
|
- getdataListParm: {
|
|
|
- name: 'getDriverList', page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')), returntype: 'Map',
|
|
|
- parammaps: { pastureid: '', date:'' }
|
|
|
- },
|
|
|
- tableKey: 0, list: [], total: 0, listLoading: true
|
|
|
+ page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')),
|
|
|
+ parammaps: {},
|
|
|
+ tableKey: 0, list: [], total: 0, listLoading: false
|
|
|
},
|
|
|
+
|
|
|
// 8小时接收率
|
|
|
table4:{
|
|
|
- exceptionTypeList:[{id:'1',name:'无信号'},{id:'2',name:'接收少'}],
|
|
|
- inspectionResultsList:[{id:'1',name:'牛只不在信号范围内'},{id:'2',name:'无脖环'}],
|
|
|
- getdataListParm: {
|
|
|
- name: 'getDriverList', page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')), returntype: 'Map',
|
|
|
- parammaps: { pastureid: '', date:'' }
|
|
|
- },
|
|
|
- tableKey: 0, list: [], total: 0, listLoading: true
|
|
|
+ page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')),
|
|
|
+ parammaps: {},
|
|
|
+ tableKey: 0, list: [], total: 0, listLoading: false
|
|
|
},
|
|
|
// 脖环数据丢失头数
|
|
|
table5:{
|
|
|
- exceptionTypeList:[{id:'1',name:'无信号'},{id:'2',name:'接收少'}],
|
|
|
- inspectionResultsList:[{id:'1',name:'牛只不在信号范围内'},{id:'2',name:'无脖环'}],
|
|
|
- getdataListParm: {
|
|
|
- name: 'getDriverList', page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')), returntype: 'Map',
|
|
|
- parammaps: { pastureid: '', date:'' }
|
|
|
- },
|
|
|
- tableKey: 0, list: [], total: 0, listLoading: true
|
|
|
+ page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')),
|
|
|
+ parammaps: {},
|
|
|
+ tableKey: 0, list: [], total: 0, listLoading: false
|
|
|
},
|
|
|
// 脖环数据丢失数量
|
|
|
table6:{
|
|
|
- exceptionTypeList:[{id:'1',name:'无信号'},{id:'2',name:'接收少'}],
|
|
|
- inspectionResultsList:[{id:'1',name:'牛只不在信号范围内'},{id:'2',name:'无脖环'}],
|
|
|
- getdataListParm: {
|
|
|
- name: 'getDriverList', page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')), returntype: 'Map',
|
|
|
- parammaps: { pastureid: '', date:'' }
|
|
|
- },
|
|
|
- tableKey: 0, list: [], total: 0, listLoading: true
|
|
|
+ page: 1, offset: 1, pagecount: parseInt(Cookies.get('pageCount')),
|
|
|
+ parammaps: {},
|
|
|
+ tableKey: 0, list: [], total: 0, listLoading: false
|
|
|
},
|
|
|
temp:{},
|
|
|
isTable1:true,
|
|
@@ -390,16 +371,38 @@
|
|
|
},
|
|
|
created() {
|
|
|
this.getList1()
|
|
|
+ this.getPastureList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getPastureList(){
|
|
|
+ let data = 'index=' + 1
|
|
|
+ + '&pagesize=' + ''
|
|
|
+ let url = 'public/pasture?'
|
|
|
+ getJson(url,data).then(response => {
|
|
|
+ if (response.code == 200) {
|
|
|
+ this.table1.pastureList = response.data.list
|
|
|
+ } else {
|
|
|
+ this.table1.pastureList = []
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getList1() {
|
|
|
this.table1.listLoading = true
|
|
|
- let data = this.table1.getdataListParm
|
|
|
+ if(this.table1.parammaps.inputDatetime !== '' && this.table1.parammaps.inputDatetime !== null){
|
|
|
+ this.table1.parammaps.startdate = parseTime(this.table1.parammaps.inputDatetime[0],'{y}-{m}-{d}')
|
|
|
+ this.table1.parammaps.enddate = parseTime(this.table1.parammaps.inputDatetime[1],'{y}-{m}-{d}')
|
|
|
+ }else{
|
|
|
+ this.table1.parammaps.startdate = ''
|
|
|
+ this.table1.parammaps.enddate = ''
|
|
|
+ this.table1.parammaps.inputDatetime = ''
|
|
|
+ }
|
|
|
+ let data = {
|
|
|
+ name:'getOperation',
|
|
|
+ page: this.table1.page, offset: this.table1.offset, pagecount: this.table1.pagecount, returntype: 'Map',
|
|
|
+ parammaps: this.table1.parammaps
|
|
|
+ }
|
|
|
let url = 'authdata/GetDataByName'
|
|
|
- postJson(url,data).then(response => {
|
|
|
- response.data.list = [{
|
|
|
- 'filed1':'牧场A','filed2':'123','filed14':'2022-06-22 16:53:42'
|
|
|
- }]
|
|
|
+ postJson(url,data).then(response => {
|
|
|
if (response.data.list !== null) {
|
|
|
console.log('table数据', response.data.list)
|
|
|
this.table1.list = response.data.list
|
|
@@ -415,12 +418,14 @@
|
|
|
})
|
|
|
},
|
|
|
handleSearch1(){
|
|
|
- this.table1.getdataListParm.offset = 1
|
|
|
- this.getList2()
|
|
|
+ this.table1.offset = 1
|
|
|
+ this.getList1()
|
|
|
},
|
|
|
handleRefresh1(){
|
|
|
- this.table1.getdataListParm.offset = 1
|
|
|
- this.getList2()
|
|
|
+ this.table1.offset = 1
|
|
|
+ this.table1.parammaps.pastureid = ''
|
|
|
+ this.table1.parammaps.inputDatetime = ''
|
|
|
+ this.getList1()
|
|
|
},
|
|
|
clickCell1(row){
|
|
|
//异常脖环
|
|
@@ -480,12 +485,14 @@
|
|
|
//异常脖环
|
|
|
getList2() {
|
|
|
this.table2.listLoading = true
|
|
|
- let data = this.table2.getdataListParm
|
|
|
+ this.table2.parammaps.pastureid = this.temp.FARM_UUID
|
|
|
+ let data = {
|
|
|
+ name:'getAbnormal',
|
|
|
+ page: this.table2.page, offset: this.table2.offset, pagecount: this.table2.pagecount, returntype: 'Map',
|
|
|
+ parammaps: this.table2.parammaps
|
|
|
+ }
|
|
|
let url = 'authdata/GetDataByName'
|
|
|
postJson(url,data).then(response => {
|
|
|
- response.data.list = [{
|
|
|
- 'filed1':'牧场A','filed2':'123','filed14':'2022-06-22 16:53:42'
|
|
|
- }]
|
|
|
if (response.data.list !== null) {
|
|
|
console.log('table数据', response.data.list)
|
|
|
this.table2.list = response.data.list
|
|
@@ -501,22 +508,24 @@
|
|
|
})
|
|
|
},
|
|
|
handleSearch2(){
|
|
|
- this.table2.getdataListParm.offset = 1
|
|
|
+ this.table2.offset = 1
|
|
|
this.getList2()
|
|
|
},
|
|
|
handleRefresh2(){
|
|
|
- this.table2.getdataListParm.offset = 1
|
|
|
+ this.table2.offset = 1
|
|
|
this.getList2()
|
|
|
},
|
|
|
// 安装接收器数量
|
|
|
getList3() {
|
|
|
this.table3.listLoading = true
|
|
|
- let data = this.table3.getdataListParm
|
|
|
+ this.table3.parammaps.pastureid = this.temp.FARM_UUID
|
|
|
+ let data = {
|
|
|
+ name:'getNumberOfReceivers',
|
|
|
+ page: this.table3.page, offset: this.table3.offset, pagecount: this.table3.pagecount, returntype: 'Map',
|
|
|
+ parammaps: this.table3.parammaps
|
|
|
+ }
|
|
|
let url = 'authdata/GetDataByName'
|
|
|
postJson(url,data).then(response => {
|
|
|
- response.data.list = [{
|
|
|
- 'filed1':'牧场A','filed2':'123','filed14':'2022-06-22 16:53:42'
|
|
|
- }]
|
|
|
if (response.data.list !== null) {
|
|
|
console.log('table数据', response.data.list)
|
|
|
this.table3.list = response.data.list
|
|
@@ -560,12 +569,14 @@
|
|
|
// 8小时接收率
|
|
|
getList4() {
|
|
|
this.table4.listLoading = true
|
|
|
- let data = this.table4.getdataListParm
|
|
|
+ this.table4.parammaps.pastureid = this.temp.FARM_UUID
|
|
|
+ let data = {
|
|
|
+ name:'getReceiverReceptionRate',
|
|
|
+ page: this.table4.page, offset: this.table4.offset, pagecount: this.table4.pagecount, returntype: 'Map',
|
|
|
+ parammaps: this.table4.parammaps
|
|
|
+ }
|
|
|
let url = 'authdata/GetDataByName'
|
|
|
postJson(url,data).then(response => {
|
|
|
- response.data.list = [{
|
|
|
- 'filed1':'牧场A','filed2':'123','filed14':'2022-06-22 16:53:42'
|
|
|
- }]
|
|
|
if (response.data.list !== null) {
|
|
|
console.log('table数据', response.data.list)
|
|
|
this.table4.list = response.data.list
|
|
@@ -583,12 +594,14 @@
|
|
|
// 脖环数据丢失头数
|
|
|
getList5() {
|
|
|
this.table5.listLoading = true
|
|
|
- let data = this.table5.getdataListParm
|
|
|
+ this.table5.parammaps.pastureid = this.temp.FARM_UUID
|
|
|
+ let data = {
|
|
|
+ name:'getLoseCattleNumbers',
|
|
|
+ page: this.table5.page, offset: this.table5.offset, pagecount: this.table5.pagecount, returntype: 'Map',
|
|
|
+ parammaps: this.table5.parammaps
|
|
|
+ }
|
|
|
let url = 'authdata/GetDataByName'
|
|
|
postJson(url,data).then(response => {
|
|
|
- response.data.list = [{
|
|
|
- 'filed1':'牧场A','filed2':'123','filed14':'2022-06-22 16:53:42'
|
|
|
- }]
|
|
|
if (response.data.list !== null) {
|
|
|
console.log('table数据', response.data.list)
|
|
|
this.table5.list = response.data.list
|
|
@@ -607,12 +620,14 @@
|
|
|
// 脖环数据丢失数量
|
|
|
getList6() {
|
|
|
this.table6.listLoading = true
|
|
|
- let data = this.table6.getdataListParm
|
|
|
+ this.table6.parammaps.pastureid = this.temp.FARM_UUID
|
|
|
+ let data = {
|
|
|
+ name:'getMissingRecord',
|
|
|
+ page: this.table6.page, offset: this.table6.offset, pagecount: this.table6.pagecount, returntype: 'Map',
|
|
|
+ parammaps: this.table6.parammaps
|
|
|
+ }
|
|
|
let url = 'authdata/GetDataByName'
|
|
|
postJson(url,data).then(response => {
|
|
|
- response.data.list = [{
|
|
|
- 'filed1':'牧场A','filed2':'123','filed14':'2022-06-22 16:53:42'
|
|
|
- }]
|
|
|
if (response.data.list !== null) {
|
|
|
console.log('table数据', response.data.list)
|
|
|
this.table6.list = response.data.list
|