|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div style="cursor: default">
|
|
|
|
|
|
|
+ <div style="cursor: default; height: 100%">
|
|
|
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
|
<el-breadcrumb-item>测报系统</el-breadcrumb-item>
|
|
<el-breadcrumb-item>测报系统</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item>性诱测报</el-breadcrumb-item>
|
|
<el-breadcrumb-item>性诱测报</el-breadcrumb-item>
|
|
@@ -12,6 +12,7 @@
|
|
|
@fun4="getSaleUser"
|
|
@fun4="getSaleUser"
|
|
|
ref="screenData"
|
|
ref="screenData"
|
|
|
>
|
|
>
|
|
|
|
|
+ <template slot="type-check"><span></span> </template>
|
|
|
<template slot="search-box">
|
|
<template slot="search-box">
|
|
|
<!-- <template v-if="role == 'admin'">
|
|
<!-- <template v-if="role == 'admin'">
|
|
|
<el-select
|
|
<el-select
|
|
@@ -29,75 +30,76 @@
|
|
|
</template> -->
|
|
</template> -->
|
|
|
</template>
|
|
</template>
|
|
|
</SearchBar>
|
|
</SearchBar>
|
|
|
- <template v-if="displayType == 1">
|
|
|
|
|
- <el-row :gutter="10" v-loading="loading">
|
|
|
|
|
- <el-col
|
|
|
|
|
- :xs="24"
|
|
|
|
|
- :sm="24"
|
|
|
|
|
- :md="12"
|
|
|
|
|
- :lg="8"
|
|
|
|
|
- :xl="6"
|
|
|
|
|
- v-for="item in equipList"
|
|
|
|
|
- :key="item.imei"
|
|
|
|
|
- >
|
|
|
|
|
- <el-card class="box-card">
|
|
|
|
|
- <equip-item :is_online="item.device_status">
|
|
|
|
|
- <span
|
|
|
|
|
- slot="set"
|
|
|
|
|
- v-show="userType == 1"
|
|
|
|
|
- class="superOperate el-icon-setting"
|
|
|
|
|
- @click="equipOperation(item.device_model, item.d_id, item.imei, item.device_name)"
|
|
|
|
|
- ></span>
|
|
|
|
|
- <span slot="title">{{ (item.device_name || '无') | ellipsis }}</span>
|
|
|
|
|
- <div slot="content" class="content">
|
|
|
|
|
- <!-- <p :title="item.device_name">
|
|
|
|
|
|
|
+ <div class="content">
|
|
|
|
|
+ <template v-if="displayType == 1">
|
|
|
|
|
+ <el-row :gutter="10" v-loading="loading">
|
|
|
|
|
+ <el-col
|
|
|
|
|
+ :xs="24"
|
|
|
|
|
+ :sm="24"
|
|
|
|
|
+ :md="12"
|
|
|
|
|
+ :lg="8"
|
|
|
|
|
+ :xl="6"
|
|
|
|
|
+ v-for="item in equipList"
|
|
|
|
|
+ :key="item.imei"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-card class="box-card">
|
|
|
|
|
+ <equip-item :is_online="item.device_status">
|
|
|
|
|
+ <span
|
|
|
|
|
+ slot="set"
|
|
|
|
|
+ v-show="userType == 1"
|
|
|
|
|
+ class="superOperate el-icon-setting"
|
|
|
|
|
+ @click="equipOperation(item.device_model, item.d_id, item.imei, item.device_name)"
|
|
|
|
|
+ ></span>
|
|
|
|
|
+ <span slot="title">{{ (item.device_name || '无') | ellipsis }}</span>
|
|
|
|
|
+ <div slot="content" class="content">
|
|
|
|
|
+ <!-- <p :title="item.device_name">
|
|
|
<i class="yficonfont icon-biaoqian"></i>
|
|
<i class="yficonfont icon-biaoqian"></i>
|
|
|
设备名称:{{ (item.device_name || '无') | ellipsis }}
|
|
设备名称:{{ (item.device_name || '无') | ellipsis }}
|
|
|
</p> -->
|
|
</p> -->
|
|
|
- <p>
|
|
|
|
|
- <i class="yficonfont icon-yonghu"></i>
|
|
|
|
|
- 设备ID:{{ item.imei }}
|
|
|
|
|
- </p>
|
|
|
|
|
- <p class="onlineState">
|
|
|
|
|
- <i class="yficonfont icon-diannao"></i>在线状态:
|
|
|
|
|
- <span
|
|
|
|
|
- :class="{
|
|
|
|
|
- red: item.is_online == 0,
|
|
|
|
|
- green: item.is_online == 1,
|
|
|
|
|
- }"
|
|
|
|
|
- >{{ item.is_online == 0 ? '离线' : '在线' }}</span
|
|
|
|
|
- >
|
|
|
|
|
- </p>
|
|
|
|
|
- <!-- <p>
|
|
|
|
|
|
|
+ <p>
|
|
|
|
|
+ <i class="yficonfont icon-yonghu"></i>
|
|
|
|
|
+ 设备ID:{{ item.imei }}
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <p class="onlineState">
|
|
|
|
|
+ <i class="yficonfont icon-diannao"></i>在线状态:
|
|
|
|
|
+ <span
|
|
|
|
|
+ :class="{
|
|
|
|
|
+ red: item.is_online == 0,
|
|
|
|
|
+ green: item.is_online == 1
|
|
|
|
|
+ }"
|
|
|
|
|
+ >{{ item.is_online == 0 ? '离线' : '在线' }}</span
|
|
|
|
|
+ >
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <!-- <p>
|
|
|
<i class="yficonfont icon-dizhi"></i>
|
|
<i class="yficonfont icon-dizhi"></i>
|
|
|
设备型号:
|
|
设备型号:
|
|
|
{{ item.device_model == 1 ? 'I' + '型' : 'II' + '型' }}
|
|
{{ item.device_model == 1 ? 'I' + '型' : 'II' + '型' }}
|
|
|
</p> -->
|
|
</p> -->
|
|
|
- <p>
|
|
|
|
|
- <i class="yficonfont icon-shijian"></i>
|
|
|
|
|
- 最新上报时间 : {{ (item.addtime * 1000) | formatTime }}
|
|
|
|
|
- </p>
|
|
|
|
|
- <p>
|
|
|
|
|
- <i class="yficonfont icon-chouchongbug"></i>
|
|
|
|
|
- 最近3天/7天/30天杀虫数量 :
|
|
|
|
|
- <el-tag size="mini"
|
|
|
|
|
- >{{ item.pest_count[0] }}/{{ item.pest_count[1] }}/{{
|
|
|
|
|
- item.pest_count[2]
|
|
|
|
|
- }}</el-tag
|
|
|
|
|
- >
|
|
|
|
|
- </p>
|
|
|
|
|
- <p :title="item.address" class="address">
|
|
|
|
|
- <i class="yficonfont icon-dizhi"></i>
|
|
|
|
|
- 地址 : {{ (item.address || '无') | ellipsis }}
|
|
|
|
|
- </p>
|
|
|
|
|
- <!-- <p>
|
|
|
|
|
|
|
+ <p>
|
|
|
|
|
+ <i class="yficonfont icon-shijian"></i>
|
|
|
|
|
+ 最新上报时间 : {{ (item.addtime * 1000) | formatTime }}
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <p>
|
|
|
|
|
+ <i class="yficonfont icon-chouchongbug"></i>
|
|
|
|
|
+ 最近3天/7天/30天杀虫数量 :
|
|
|
|
|
+ <el-tag size="mini"
|
|
|
|
|
+ >{{ item.pest_count[0] }}/{{ item.pest_count[1] }}/{{
|
|
|
|
|
+ item.pest_count[2]
|
|
|
|
|
+ }}</el-tag
|
|
|
|
|
+ >
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <p :title="item.address" class="address">
|
|
|
|
|
+ <i class="yficonfont icon-dizhi"></i>
|
|
|
|
|
+ 地址 : {{ (item.address || '无') | ellipsis }}
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <!-- <p>
|
|
|
<i class="yficonfont icon-shijian"></i>
|
|
<i class="yficonfont icon-shijian"></i>
|
|
|
添加诱芯<span
|
|
添加诱芯<span
|
|
|
@click="addYx(item.d_id)"
|
|
@click="addYx(item.d_id)"
|
|
|
class="el-icon-edit"
|
|
class="el-icon-edit"
|
|
|
></span>
|
|
></span>
|
|
|
</p> -->
|
|
</p> -->
|
|
|
- <!-- <p>
|
|
|
|
|
|
|
+ <!-- <p>
|
|
|
<i class="yficonfont icon-shijian"></i>
|
|
<i class="yficonfont icon-shijian"></i>
|
|
|
{{
|
|
{{
|
|
|
item.decoy !== "" || item.decoy == undefined
|
|
item.decoy !== "" || item.decoy == undefined
|
|
@@ -105,32 +107,32 @@
|
|
|
: "待添加诱芯"
|
|
: "待添加诱芯"
|
|
|
}}<span @click="addYx(item.d_id)" class="el-icon-edit"></span>
|
|
}}<span @click="addYx(item.d_id)" class="el-icon-edit"></span>
|
|
|
</p> -->
|
|
</p> -->
|
|
|
- <p>
|
|
|
|
|
- <i class="yficonfont icon-biaoqian"></i>
|
|
|
|
|
- 诱芯名称 : {{ item.decoy == '' ? '待添加诱芯' : item.decoy }}
|
|
|
|
|
- </p>
|
|
|
|
|
- <p>
|
|
|
|
|
- <i class="yficonfont icon-shijian"></i>
|
|
|
|
|
- 诱芯到期时间 :
|
|
|
|
|
- <span
|
|
|
|
|
- :style="{
|
|
|
|
|
- color:
|
|
|
|
|
- item.xy_expire.indexOf('已经到期') != -1
|
|
|
|
|
- ? 'red'
|
|
|
|
|
- : item.xy_expire.indexOf('即将到期') != -1
|
|
|
|
|
- ? 'red'
|
|
|
|
|
- : '',
|
|
|
|
|
- }"
|
|
|
|
|
- >{{ item.xy_expire }}</span
|
|
|
|
|
- >
|
|
|
|
|
- </p>
|
|
|
|
|
- <p v-if="userType == 1">
|
|
|
|
|
- <i class="yficonfont icon-yonghu"></i>
|
|
|
|
|
- 销售用户:{{ item.sale_user || '无' }}
|
|
|
|
|
- </p>
|
|
|
|
|
- <p class="btns">
|
|
|
|
|
- <i class="yficonfont icon-yemiancaozuo"></i>
|
|
|
|
|
- <!-- <template v-if="item.device_model == 2">
|
|
|
|
|
|
|
+ <p>
|
|
|
|
|
+ <i class="yficonfont icon-biaoqian"></i>
|
|
|
|
|
+ 诱芯名称 : {{ item.decoy == '' ? '待添加诱芯' : item.decoy }}
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <p>
|
|
|
|
|
+ <i class="yficonfont icon-shijian"></i>
|
|
|
|
|
+ 诱芯到期时间 :
|
|
|
|
|
+ <span
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ color:
|
|
|
|
|
+ item.xy_expire.indexOf('已经到期') != -1
|
|
|
|
|
+ ? 'red'
|
|
|
|
|
+ : item.xy_expire.indexOf('即将到期') != -1
|
|
|
|
|
+ ? 'red'
|
|
|
|
|
+ : ''
|
|
|
|
|
+ }"
|
|
|
|
|
+ >{{ item.xy_expire }}</span
|
|
|
|
|
+ >
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <p v-if="userType == 1">
|
|
|
|
|
+ <i class="yficonfont icon-yonghu"></i>
|
|
|
|
|
+ 销售用户:{{ item.sale_user || '无' }}
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <p class="btns">
|
|
|
|
|
+ <i class="yficonfont icon-yemiancaozuo"></i>
|
|
|
|
|
+ <!-- <template v-if="item.device_model == 2">
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="info"
|
|
type="info"
|
|
@@ -138,123 +140,129 @@
|
|
|
>查看图片</el-button
|
|
>查看图片</el-button
|
|
|
>
|
|
>
|
|
|
</template> -->
|
|
</template> -->
|
|
|
- <el-button
|
|
|
|
|
- v-if="$QueryPermission(65)"
|
|
|
|
|
- v-btnRight:deviceControl="$route.path"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="warning"
|
|
|
|
|
- @click="
|
|
|
|
|
- EquipControl(
|
|
|
|
|
- item.device_model,
|
|
|
|
|
- item.d_id,
|
|
|
|
|
- item.imei,
|
|
|
|
|
- item.device_name,
|
|
|
|
|
- item.dtype
|
|
|
|
|
- )
|
|
|
|
|
- "
|
|
|
|
|
- >设备控制</el-button
|
|
|
|
|
- >
|
|
|
|
|
- <el-button
|
|
|
|
|
- v-btnRight:sim="$route.path"
|
|
|
|
|
- v-if="$QueryPermission(66)"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="success"
|
|
|
|
|
- @click="lookSIMCode(item.d_id)"
|
|
|
|
|
- >SIM卡</el-button
|
|
|
|
|
- >
|
|
|
|
|
- <el-button
|
|
|
|
|
- v-if="$QueryPermission(67)"
|
|
|
|
|
- v-btnRight:dataDetails="$route.path"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="danger"
|
|
|
|
|
- @click="
|
|
|
|
|
- dataDetails(
|
|
|
|
|
- item.imei,
|
|
|
|
|
- item.d_id,
|
|
|
|
|
- item.device_name,
|
|
|
|
|
- item.address,
|
|
|
|
|
- item.device_model,
|
|
|
|
|
- item.addtime
|
|
|
|
|
- )
|
|
|
|
|
- "
|
|
|
|
|
- >数据详情</el-button
|
|
|
|
|
- >
|
|
|
|
|
- </p>
|
|
|
|
|
- </div>
|
|
|
|
|
- </equip-item>
|
|
|
|
|
- </el-card>
|
|
|
|
|
- </el-col>
|
|
|
|
|
- </el-row>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template v-if="displayType == 2">
|
|
|
|
|
- <el-card class="box-card">
|
|
|
|
|
- <el-table v-loading="loading" :data="equipList" stripe style="width: 100%">
|
|
|
|
|
- <el-table-column prop="device_name" label="设备名称" width="180">
|
|
|
|
|
- <template slot-scope="scope">{{ scope.row.device_name || '无' }}</template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="device_id" label="设备ID" width="180">
|
|
|
|
|
- <template slot-scope="scope">{{ scope.row.imei }}</template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="device_code" label="设备编号" width="180">
|
|
|
|
|
- <template slot-scope="scope">{{ scope.row.device_code || '无' }}</template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="device_status" label="在线状态">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <p style="color: #17bb89" v-if="scope.row.is_online == 1">在线</p>
|
|
|
|
|
- <p style="color: #eb6765" v-if="scope.row.is_online == 0">离线</p>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="xy_type" label="设备型号">
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-if="$QueryPermission(65)"
|
|
|
|
|
+ v-btnRight:deviceControl="$route.path"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="warning"
|
|
|
|
|
+ @click="
|
|
|
|
|
+ EquipControl(
|
|
|
|
|
+ item.device_model,
|
|
|
|
|
+ item.d_id,
|
|
|
|
|
+ item.imei,
|
|
|
|
|
+ item.device_name,
|
|
|
|
|
+ item.dtype
|
|
|
|
|
+ )
|
|
|
|
|
+ "
|
|
|
|
|
+ >设备控制</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-btnRight:sim="$route.path"
|
|
|
|
|
+ v-if="$QueryPermission(66)"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ @click="lookSIMCode(item.d_id)"
|
|
|
|
|
+ >SIM卡</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-if="$QueryPermission(67)"
|
|
|
|
|
+ v-btnRight:dataDetails="$route.path"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ @click="
|
|
|
|
|
+ dataDetails(
|
|
|
|
|
+ item.imei,
|
|
|
|
|
+ item.d_id,
|
|
|
|
|
+ item.device_name,
|
|
|
|
|
+ item.address,
|
|
|
|
|
+ item.device_model,
|
|
|
|
|
+ item.addtime
|
|
|
|
|
+ )
|
|
|
|
|
+ "
|
|
|
|
|
+ >数据详情</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </equip-item>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-if="displayType == 2">
|
|
|
|
|
+ <el-card class="box-card" style="height: calc(100% - 60px); overflow: auto">
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ v-loading="loading"
|
|
|
|
|
+ :data="equipList"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ :header-cell-style="{ background: '#F7F9FA' }"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column prop="address" label="地区" width="250">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.address || '无' }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="device_name" label="测报点" width="180">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.device_name || '无' }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="device_id" label="终端ID" width="180">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.imei }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="device_code" label="设备编号" width="180">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.device_code || '无' }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="device_status" label="在线状态">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <p style="color: #17bb89" v-if="scope.row.is_online == 1">在线</p>
|
|
|
|
|
+ <p style="color: #eb6765" v-if="scope.row.is_online == 0">离线</p>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <!-- <el-table-column prop="xy_type" label="设备型号">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<p v-if="scope.row.device_model == 1">I型</p>
|
|
<p v-if="scope.row.device_model == 1">I型</p>
|
|
|
<p v-if="scope.row.device_model == 2">II型</p>
|
|
<p v-if="scope.row.device_model == 2">II型</p>
|
|
|
</template>
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="status_time" label="最新上报时间" width="180">
|
|
|
|
|
- <template slot-scope="scope">{{ (scope.row.addtime * 1000) | formatTime }}</template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="address" label="最近3天杀虫数量">
|
|
|
|
|
- <template slot-scope="scope">{{ scope.row.pest_count[0] }}</template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="address" label="最近7天杀虫数量">
|
|
|
|
|
- <template slot-scope="scope">{{ scope.row.pest_count[1] }}</template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="address" label="最近30天杀虫数量">
|
|
|
|
|
- <template slot-scope="scope">{{ scope.row.pest_count[2] }}</template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="address" label="地址" width="250">
|
|
|
|
|
- <template slot-scope="scope">{{ scope.row.address || '无' }}</template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="decoy" label="诱芯名称" width="100">
|
|
|
|
|
- <template slot-scope="scope">{{
|
|
|
|
|
- scope.row.decoy == '' ? '待添加诱芯' : scope.row.decoy
|
|
|
|
|
- }}</template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="xy_expire" label="诱芯到期时间" width="180">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <span
|
|
|
|
|
- :style="{
|
|
|
|
|
- color:
|
|
|
|
|
- scope.row.xy_expire.indexOf('已经到期') != -1
|
|
|
|
|
- ? 'red'
|
|
|
|
|
- : scope.row.xy_expire.indexOf('即将到期') != -1
|
|
|
|
|
- ? 'red'
|
|
|
|
|
- : '',
|
|
|
|
|
- }"
|
|
|
|
|
- >{{ scope.row.xy_expire }}</span
|
|
|
|
|
- >
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="操作" fixed="right" width="300">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <!-- <el-button
|
|
|
|
|
|
|
+ </el-table-column> -->
|
|
|
|
|
+ <el-table-column prop="status_time" label="最新上报时间" width="180">
|
|
|
|
|
+ <template slot-scope="scope">{{ (scope.row.addtime * 1000) | formatTime }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="3天诱虫量" width="120">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.pest_count[0] }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="7天诱虫量">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.pest_count[1] }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="30天诱虫量">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.pest_count[2] }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+
|
|
|
|
|
+ <el-table-column prop="decoy" label="诱芯名称" width="100">
|
|
|
|
|
+ <template slot-scope="scope">{{
|
|
|
|
|
+ scope.row.decoy == '' ? '待添加诱芯' : scope.row.decoy
|
|
|
|
|
+ }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column prop="xy_expire" label="诱芯到期时间" width="180">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ color:
|
|
|
|
|
+ scope.row.xy_expire.indexOf('已经到期') != -1
|
|
|
|
|
+ ? 'red'
|
|
|
|
|
+ : scope.row.xy_expire.indexOf('即将到期') != -1
|
|
|
|
|
+ ? 'red'
|
|
|
|
|
+ : ''
|
|
|
|
|
+ }"
|
|
|
|
|
+ >{{ scope.row.xy_expire }}</span
|
|
|
|
|
+ >
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="操作" fixed="right" width="200">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <!-- <el-button
|
|
|
v-if="scope.row.device_model == 2"
|
|
v-if="scope.row.device_model == 2"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="info"
|
|
type="info"
|
|
|
@click="viewImage(scope.row.imei, scope.row.d_id)"
|
|
@click="viewImage(scope.row.imei, scope.row.d_id)"
|
|
|
>查看图片</el-button
|
|
>查看图片</el-button
|
|
|
> -->
|
|
> -->
|
|
|
- <el-button
|
|
|
|
|
|
|
+ <!-- <el-button
|
|
|
v-if="$QueryPermission(65)"
|
|
v-if="$QueryPermission(65)"
|
|
|
v-btnRight:deviceControl="$route.path"
|
|
v-btnRight:deviceControl="$route.path"
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -269,51 +277,58 @@
|
|
|
)
|
|
)
|
|
|
"
|
|
"
|
|
|
>设备控制</el-button
|
|
>设备控制</el-button
|
|
|
- >
|
|
|
|
|
- <el-button
|
|
|
|
|
|
|
+ > -->
|
|
|
|
|
+ <!-- <el-button
|
|
|
v-btnRight:sim="$route.path"
|
|
v-btnRight:sim="$route.path"
|
|
|
v-if="$QueryPermission(66)"
|
|
v-if="$QueryPermission(66)"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="success"
|
|
type="success"
|
|
|
@click="lookSIMCode(scope.row.d_id)"
|
|
@click="lookSIMCode(scope.row.d_id)"
|
|
|
>SIM卡</el-button
|
|
>SIM卡</el-button
|
|
|
- >
|
|
|
|
|
- <el-button
|
|
|
|
|
- v-if="$QueryPermission(67)"
|
|
|
|
|
- v-btnRight:dataDetails="$route.path"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="danger"
|
|
|
|
|
- @click="
|
|
|
|
|
- dataDetails(
|
|
|
|
|
- scope.row.imei,
|
|
|
|
|
- scope.row.d_id,
|
|
|
|
|
- scope.row.device_name,
|
|
|
|
|
- scope.row.address,
|
|
|
|
|
- scope.device_model
|
|
|
|
|
- )
|
|
|
|
|
- "
|
|
|
|
|
- >数据详情</el-button
|
|
|
|
|
- >
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- </el-table>
|
|
|
|
|
- </el-card>
|
|
|
|
|
- </template>
|
|
|
|
|
- <!-- 暂无数据 -->
|
|
|
|
|
- <div
|
|
|
|
|
- class="expertDiagnosis_referral_units_not"
|
|
|
|
|
- v-if="equipList.length <= 0 && displayType == 1"
|
|
|
|
|
- >
|
|
|
|
|
- <img :src="$imghost + zanwu" alt class="expertDiagnosis_referral_units_notImg" />
|
|
|
|
|
|
|
+ > -->
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-if="$QueryPermission(67)"
|
|
|
|
|
+ v-btnRight:dataDetails="$route.path"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="
|
|
|
|
|
+ dataDetails(
|
|
|
|
|
+ scope.row.imei,
|
|
|
|
|
+ scope.row.d_id,
|
|
|
|
|
+ scope.row.device_name,
|
|
|
|
|
+ scope.row.address,
|
|
|
|
|
+ scope.device_model
|
|
|
|
|
+ )
|
|
|
|
|
+ "
|
|
|
|
|
+ >详情</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="viewImage(scope.row.imei, scope.row.d_id)"
|
|
|
|
|
+ >诱芯更换记录</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 暂无数据 -->
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="expertDiagnosis_referral_units_not"
|
|
|
|
|
+ v-if="equipList.length <= 0 && displayType == 1"
|
|
|
|
|
+ >
|
|
|
|
|
+ <img :src="$imghost + zanwu" alt class="expertDiagnosis_referral_units_notImg" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-pagination
|
|
|
|
|
+ background
|
|
|
|
|
+ :page-size="8"
|
|
|
|
|
+ layout="total, sizes,jumper, next,pager , prev"
|
|
|
|
|
+ :total="totalNum"
|
|
|
|
|
+ :current-page="queryInfo.page"
|
|
|
|
|
+ @current-change="changePage"
|
|
|
|
|
+ ></el-pagination>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-pagination
|
|
|
|
|
- background
|
|
|
|
|
- :page-size="8"
|
|
|
|
|
- layout="prev, pager, next, jumper"
|
|
|
|
|
- :total="totalNum"
|
|
|
|
|
- :current-page="queryInfo.page"
|
|
|
|
|
- @current-change="changePage"
|
|
|
|
|
- ></el-pagination>
|
|
|
|
|
<!-- SIM卡对话框 -->
|
|
<!-- SIM卡对话框 -->
|
|
|
<SIM v-if="simCodeVisible" :d_id="d_id" @closeSim="simCodeVisible = false"></SIM>
|
|
<SIM v-if="simCodeVisible" :d_id="d_id" @closeSim="simCodeVisible = false"></SIM>
|
|
|
<!-- 设备控制对话框II型,目前平台只有I型 -->
|
|
<!-- 设备控制对话框II型,目前平台只有I型 -->
|
|
@@ -450,7 +465,7 @@
|
|
|
:picker-options="{
|
|
:picker-options="{
|
|
|
start: '0:00',
|
|
start: '0:00',
|
|
|
step: '1:00',
|
|
step: '1:00',
|
|
|
- end: '23:00',
|
|
|
|
|
|
|
+ end: '23:00'
|
|
|
}"
|
|
}"
|
|
|
></el-time-select>
|
|
></el-time-select>
|
|
|
<span style="margin: 0 10px">至</span>
|
|
<span style="margin: 0 10px">至</span>
|
|
@@ -461,7 +476,7 @@
|
|
|
:picker-options="{
|
|
:picker-options="{
|
|
|
start: '0:00',
|
|
start: '0:00',
|
|
|
step: '1:00',
|
|
step: '1:00',
|
|
|
- end: '23:00',
|
|
|
|
|
|
|
+ end: '23:00'
|
|
|
}"
|
|
}"
|
|
|
></el-time-select>
|
|
></el-time-select>
|
|
|
</div>
|
|
</div>
|
|
@@ -594,14 +609,14 @@ export default {
|
|
|
case 7:
|
|
case 7:
|
|
|
return '销号'
|
|
return '销号'
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
user_tag: null, // 1超级管理员,2经销商,3农林政府单位,4普通用户,5销售用户
|
|
user_tag: null, // 1超级管理员,2经销商,3农林政府单位,4普通用户,5销售用户
|
|
|
zanwu: '/images/expertDiagnosis/zanwu.png',
|
|
zanwu: '/images/expertDiagnosis/zanwu.png',
|
|
|
// 图表和表格切换
|
|
// 图表和表格切换
|
|
|
- displayType: '',
|
|
|
|
|
|
|
+ displayType: 2,
|
|
|
// 设备列表
|
|
// 设备列表
|
|
|
equipList: [],
|
|
equipList: [],
|
|
|
role: 'admin',
|
|
role: 'admin',
|
|
@@ -617,7 +632,7 @@ export default {
|
|
|
data_plan: 0, // 套餐大小
|
|
data_plan: 0, // 套餐大小
|
|
|
data_usage: 0, // 当月用量
|
|
data_usage: 0, // 当月用量
|
|
|
data_balance: 0, // 剩余流量
|
|
data_balance: 0, // 剩余流量
|
|
|
- expiry_date: 0, // 到期日期
|
|
|
|
|
|
|
+ expiry_date: 0 // 到期日期
|
|
|
},
|
|
},
|
|
|
code: null, // 标识
|
|
code: null, // 标识
|
|
|
simLoading: true,
|
|
simLoading: true,
|
|
@@ -627,13 +642,13 @@ export default {
|
|
|
is_online: null,
|
|
is_online: null,
|
|
|
dver: '',
|
|
dver: '',
|
|
|
f_id: '',
|
|
f_id: '',
|
|
|
- ename: '',
|
|
|
|
|
|
|
+ ename: ''
|
|
|
// device_model: null
|
|
// device_model: null
|
|
|
},
|
|
},
|
|
|
equipInfo: {
|
|
equipInfo: {
|
|
|
// 设备控制回显
|
|
// 设备控制回显
|
|
|
device_id: '',
|
|
device_id: '',
|
|
|
- device_name: '',
|
|
|
|
|
|
|
+ device_name: ''
|
|
|
},
|
|
},
|
|
|
// 设备控制I 型
|
|
// 设备控制I 型
|
|
|
equipContrlForm1: {
|
|
equipContrlForm1: {
|
|
@@ -648,7 +663,7 @@ export default {
|
|
|
pic_f: '', // 定时拍照时间间隔
|
|
pic_f: '', // 定时拍照时间间隔
|
|
|
dat_t: null, // 数据上传时间间隔
|
|
dat_t: null, // 数据上传时间间隔
|
|
|
turn_t: null, // 定时转动沾虫板
|
|
turn_t: null, // 定时转动沾虫板
|
|
|
- ds: '', // 开关,1开机,0关机
|
|
|
|
|
|
|
+ ds: '' // 开关,1开机,0关机
|
|
|
},
|
|
},
|
|
|
totalNum: 0,
|
|
totalNum: 0,
|
|
|
// SIM卡对话框
|
|
// SIM卡对话框
|
|
@@ -664,8 +679,8 @@ export default {
|
|
|
setYxDialogVisible: false,
|
|
setYxDialogVisible: false,
|
|
|
yx: {
|
|
yx: {
|
|
|
d_id: '',
|
|
d_id: '',
|
|
|
- decoy: '',
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ decoy: ''
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -702,7 +717,7 @@ export default {
|
|
|
data_balance_per: function () {
|
|
data_balance_per: function () {
|
|
|
let aa = Number(this.sim.data_balance / this.sim.data_plan) * 100
|
|
let aa = Number(this.sim.data_balance / this.sim.data_plan) * 100
|
|
|
return aa
|
|
return aa
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
watch: {},
|
|
watch: {},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -739,8 +754,8 @@ export default {
|
|
|
page: this.queryInfo.page,
|
|
page: this.queryInfo.page,
|
|
|
device_status: this.queryInfo.is_online,
|
|
device_status: this.queryInfo.is_online,
|
|
|
device_model: 1,
|
|
device_model: 1,
|
|
|
- customer_uid: this.sale_user_uid, // 销售用户id
|
|
|
|
|
- }),
|
|
|
|
|
|
|
+ customer_uid: this.sale_user_uid // 销售用户id
|
|
|
|
|
+ })
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
if (res.data.message == '') {
|
|
if (res.data.message == '') {
|
|
|
this.equipList = res.data.data.data
|
|
this.equipList = res.data.data.data
|
|
@@ -772,7 +787,7 @@ export default {
|
|
|
// query: { device_model, name, add, addtime },
|
|
// query: { device_model, name, add, addtime },
|
|
|
// });
|
|
// });
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
- path: `/index/xycbDataDetail?e_id=` + e_id + '&d_id=' + d_id,
|
|
|
|
|
|
|
+ path: `/index/xycbDataDetail?e_id=` + e_id + '&d_id=' + d_id
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// sim卡状态
|
|
// sim卡状态
|
|
@@ -784,7 +799,7 @@ export default {
|
|
|
this.currImei = id
|
|
this.currImei = id
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: `/index/xycbDataPhotos/${id}`,
|
|
path: `/index/xycbDataPhotos/${id}`,
|
|
|
- query: { d_id: d_id },
|
|
|
|
|
|
|
+ query: { d_id: d_id }
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 设备控制操作
|
|
// 设备控制操作
|
|
@@ -799,7 +814,7 @@ export default {
|
|
|
this.$axios({
|
|
this.$axios({
|
|
|
method: 'POST',
|
|
method: 'POST',
|
|
|
url: '/api/api_gateway?method=forecast.send_control.device_control_info',
|
|
url: '/api/api_gateway?method=forecast.send_control.device_control_info',
|
|
|
- data: this.qs.stringify({ d_id, cmd: 'paramconf' }),
|
|
|
|
|
|
|
+ data: this.qs.stringify({ d_id, cmd: 'paramconf' })
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
if (res.data.message == '') {
|
|
if (res.data.message == '') {
|
|
|
if (res.data.data && Object.keys(res.data.data).length > 0) {
|
|
if (res.data.data && Object.keys(res.data.data).length > 0) {
|
|
@@ -810,7 +825,7 @@ export default {
|
|
|
timctrl: data.work_tim.timctrl,
|
|
timctrl: data.work_tim.timctrl,
|
|
|
ds: data.power.ds,
|
|
ds: data.power.ds,
|
|
|
dat_f: data.data_tim.dat_f,
|
|
dat_f: data.data_tim.dat_f,
|
|
|
- clt_t: data.clt_tim.clt_t,
|
|
|
|
|
|
|
+ clt_t: data.clt_tim.clt_t
|
|
|
}
|
|
}
|
|
|
obj.st = obj.st && obj.st < 10 ? '0' + obj.st + ':00' : obj.st + ':00'
|
|
obj.st = obj.st && obj.st < 10 ? '0' + obj.st + ':00' : obj.st + ':00'
|
|
|
obj.et = obj.et && obj.et < 10 ? '0' + obj.et + ':00' : obj.et + ':00'
|
|
obj.et = obj.et && obj.et < 10 ? '0' + obj.et + ':00' : obj.et + ':00'
|
|
@@ -855,7 +870,7 @@ export default {
|
|
|
work_tim: { timctrl: newForm.timctrl, st: newForm.st, et: newForm.et },
|
|
work_tim: { timctrl: newForm.timctrl, st: newForm.st, et: newForm.et },
|
|
|
data_tim: { dat_f: newForm.dat_f },
|
|
data_tim: { dat_f: newForm.dat_f },
|
|
|
power: { ds: newForm.ds },
|
|
power: { ds: newForm.ds },
|
|
|
- clt_tim: { clt_t: newForm.clt_t },
|
|
|
|
|
|
|
+ clt_tim: { clt_t: newForm.clt_t }
|
|
|
}
|
|
}
|
|
|
// console.log(obj);
|
|
// console.log(obj);
|
|
|
this.$axios({
|
|
this.$axios({
|
|
@@ -864,8 +879,8 @@ export default {
|
|
|
data: this.qs.stringify({
|
|
data: this.qs.stringify({
|
|
|
device_type_id: 4,
|
|
device_type_id: 4,
|
|
|
d_id: this.d_id,
|
|
d_id: this.d_id,
|
|
|
- config: JSON.stringify(obj),
|
|
|
|
|
- }),
|
|
|
|
|
|
|
+ config: JSON.stringify(obj)
|
|
|
|
|
+ })
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
if (res.data.message == '') {
|
|
if (res.data.message == '') {
|
|
|
this.$resetMessage.success('设备控制修改成功')
|
|
this.$resetMessage.success('设备控制修改成功')
|
|
@@ -1014,7 +1029,7 @@ export default {
|
|
|
this.$confirm('此操作对设备进行' + name + ', 是否继续?', '提示', {
|
|
this.$confirm('此操作对设备进行' + name + ', 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
|
|
|
|
+ type: 'warning'
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
this.$axios({
|
|
this.$axios({
|
|
@@ -1023,8 +1038,8 @@ export default {
|
|
|
data: this.qs.stringify({
|
|
data: this.qs.stringify({
|
|
|
cmd,
|
|
cmd,
|
|
|
device_type_id: 4,
|
|
device_type_id: 4,
|
|
|
- d_id: this.d_id,
|
|
|
|
|
- }),
|
|
|
|
|
|
|
+ d_id: this.d_id
|
|
|
|
|
+ })
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
if (res.data.message == '') {
|
|
if (res.data.message == '') {
|
|
|
this.$resetMessage.success('指令下发成功!')
|
|
this.$resetMessage.success('指令下发成功!')
|
|
@@ -1034,7 +1049,7 @@ export default {
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'info',
|
|
type: 'info',
|
|
|
- message: '已取消',
|
|
|
|
|
|
|
+ message: '已取消'
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -1047,8 +1062,8 @@ export default {
|
|
|
url: '/api/api_gateway?method=device.device_manage.get_spore_time',
|
|
url: '/api/api_gateway?method=device.device_manage.get_spore_time',
|
|
|
data: this.qs.stringify({
|
|
data: this.qs.stringify({
|
|
|
device_type_id: 4,
|
|
device_type_id: 4,
|
|
|
- d_id,
|
|
|
|
|
- }),
|
|
|
|
|
|
|
+ d_id
|
|
|
|
|
+ })
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
if (res.data.message == '') {
|
|
if (res.data.message == '') {
|
|
|
let data = res.data.data
|
|
let data = res.data.data
|
|
@@ -1068,8 +1083,8 @@ export default {
|
|
|
data: this.qs.stringify({
|
|
data: this.qs.stringify({
|
|
|
device_type_id: 4,
|
|
device_type_id: 4,
|
|
|
d_id: this.yx.d_id,
|
|
d_id: this.yx.d_id,
|
|
|
- decoy: this.yx.decoy,
|
|
|
|
|
- }),
|
|
|
|
|
|
|
+ decoy: this.yx.decoy
|
|
|
|
|
+ })
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
if (res.data.message == '') {
|
|
if (res.data.message == '') {
|
|
|
this.$message.success('添加成功!')
|
|
this.$message.success('添加成功!')
|
|
@@ -1078,13 +1093,13 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.setYxDialogVisible = false
|
|
this.setYxDialogVisible = false
|
|
|
})
|
|
})
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
SearchBar,
|
|
SearchBar,
|
|
|
EquipItem,
|
|
EquipItem,
|
|
|
- SIM,
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ SIM
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
@@ -1120,6 +1135,11 @@ export default {
|
|
|
text-align: right;
|
|
text-align: right;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+.content {
|
|
|
|
|
+ height: calc(100% - 116px);
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+}
|
|
|
.handAddForm {
|
|
.handAddForm {
|
|
|
/deep/.el-form-item {
|
|
/deep/.el-form-item {
|
|
|
margin-bottom: 8px;
|
|
margin-bottom: 8px;
|
|
@@ -1183,4 +1203,20 @@ export default {
|
|
|
/deep/.el-table .cell {
|
|
/deep/.el-table .cell {
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
}
|
|
}
|
|
|
|
|
+.custom-ffffff .el-pagination {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ bottom: 20px;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ padding: 0 20px;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ text-align: justify;
|
|
|
|
|
+ margin-bottom: 0;
|
|
|
|
|
+ /deep/.el-pagination__jump,
|
|
|
|
|
+ /deep/.el-pager,
|
|
|
|
|
+ /deep/.btn-next,
|
|
|
|
|
+ /deep/.btn-prev {
|
|
|
|
|
+ float: right;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|