|
|
@ -35,25 +35,40 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="是否在线" class="isonLineClass">
|
|
|
|
<el-form-item label="是否在线" class="isonLineClass">
|
|
|
|
<el-select v-model="formdata.isonline" filterable>
|
|
|
|
<el-select v-model="formdata.isonline" filterable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in onlineOptions"
|
|
|
|
v-for="item in onlineOptions"
|
|
|
|
:key="item.id"
|
|
|
|
:key="item.id"
|
|
|
|
:label="item.name"
|
|
|
|
:label="item.name"
|
|
|
|
:value="item.id"
|
|
|
|
:value="item.id"
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="规约" class="isonLineClass">
|
|
|
|
<el-form-item label="规约" class="isonLineClass">
|
|
|
|
<el-select v-model="formdata.protocol" filterable>
|
|
|
|
<el-select v-model="formdata.protocol" filterable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in protocolOptions"
|
|
|
|
v-for="item in protocolOptions"
|
|
|
|
:key="item.id"
|
|
|
|
:key="item.id"
|
|
|
|
:label="item.name"
|
|
|
|
:label="item.name"
|
|
|
|
:value="item.id"
|
|
|
|
:value="item.id"
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="活动" class="activitybox">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
@keyup.enter.native="onSubmit()"
|
|
|
|
|
|
|
|
v-model="formdata.activityId"
|
|
|
|
|
|
|
|
filterable
|
|
|
|
|
|
|
|
@change="changeActive"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in activityOptions"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
:label="item.name"
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="开始日期" class="dateclass">
|
|
|
|
<el-form-item label="开始日期" class="dateclass">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="formdata.starttime"
|
|
|
|
v-model="formdata.starttime"
|
|
|
@ -96,7 +111,6 @@
|
|
|
|
stripe
|
|
|
|
stripe
|
|
|
|
style="width: 100%"
|
|
|
|
style="width: 100%"
|
|
|
|
:height="tableheight"
|
|
|
|
:height="tableheight"
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot="empty">
|
|
|
|
<template slot="empty">
|
|
|
|
<el-empty :image-size="160" description="暂无数据"></el-empty>
|
|
|
|
<el-empty :image-size="160" description="暂无数据"></el-empty>
|
|
|
@ -106,108 +120,188 @@
|
|
|
|
{{ (page - 1) * pageSize + scope.$index + 1 }}
|
|
|
|
{{ (page - 1) * pageSize + scope.$index + 1 }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="dyName" label="电压等级" fixed show-overflow-tooltip> </el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="lineName" label="线路名称" min-width="180" fixed> </el-table-column>
|
|
|
|
prop="dyName"
|
|
|
|
<el-table-column prop="towerName" label="杆塔名称" min-width="180" show-overflow-tooltip fixed> </el-table-column>
|
|
|
|
label="电压等级"
|
|
|
|
|
|
|
|
fixed
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="lineName" label="线路名称" min-width="180" fixed>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="towerName"
|
|
|
|
|
|
|
|
label="杆塔名称"
|
|
|
|
|
|
|
|
min-width="180"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
fixed
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<!-- <el-table-column prop="displayName" label="设备名称" min-width="180" fixed> </el-table-column> -->
|
|
|
|
<!-- <el-table-column prop="displayName" label="设备名称" min-width="180" fixed> </el-table-column> -->
|
|
|
|
<el-table-column prop="cmdid" label="装置id" min-width="180" fixed>
|
|
|
|
<el-table-column prop="cmdid" label="装置id" min-width="180" fixed>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.cmdid }}
|
|
|
|
{{ scope.row.cmdid }}
|
|
|
|
</template
|
|
|
|
</template>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="sim" label="SIM卡号" min-width="180">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="sim" label="SIM卡号" min-width="180"> </el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="netType" label="网络类型">
|
|
|
|
<el-table-column prop="netType" label="网络类型">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span v-if="scope.row.netType == 1">移动</span>
|
|
|
|
<span v-if="scope.row.netType == 1">移动</span>
|
|
|
|
<span v-else-if="scope.row.netType == 2">联通</span>
|
|
|
|
<span v-else-if="scope.row.netType == 2">联通</span>
|
|
|
|
<span v-else-if="scope.row.netType == 3">电信</span>
|
|
|
|
<span v-else-if="scope.row.netType == 3">电信</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="onlinestatus" label="状态">
|
|
|
|
<el-table-column prop="onlinestatus" label="状态">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span style="color: #169e8c" v-if="scope.row.onlinestatus == 1"
|
|
|
|
<span style="color: #169e8c" v-if="scope.row.onlinestatus == 1"
|
|
|
|
>在线</span
|
|
|
|
>在线</span
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<span style="color: #f56c6c" v-else-if="scope.row.onlinestatus == 0"
|
|
|
|
<span
|
|
|
|
>离线</span
|
|
|
|
style="color: #f56c6c"
|
|
|
|
>
|
|
|
|
v-else-if="scope.row.onlinestatus == 0"
|
|
|
|
</template>
|
|
|
|
>离线</span
|
|
|
|
</el-table-column>
|
|
|
|
>
|
|
|
|
<el-table-column prop="model" label="装置型号" min-width="120">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</template>
|
|
|
|
<el-table-column prop="bsManufacturer" label="装置厂家">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="model" label="装置型号" min-width="120"> </el-table-column>
|
|
|
|
<el-table-column prop="protocolName" label="规约版本" min-width="180">
|
|
|
|
<el-table-column prop="bsManufacturer" label="装置厂家"> </el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="protocolName" label="规约版本" min-width="180"> </el-table-column>
|
|
|
|
<el-table-column prop="workingDate" label="投运日期" min-width="140">
|
|
|
|
<el-table-column prop="workingDate" label="投运日期" min-width="140"> </el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="onlinestatus" label="最新运行状态"> </el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="photoInfo.totalDays" label="在线天数"> </el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="photoInfo.photoCount" label="图片数量"> </el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="photoInfo.lastRecvTime" label="最后数据上送时间" min-width="140"> </el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="photoInfo.lastPhotoTime" label="最后图片上送时间" min-width="140"> </el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="onlinestatus" label="最新运行状态">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="photoInfo.totalDays" label="在线天数">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="photoInfo.photoCount" label="图片数量">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="photoInfo.lastRecvTime"
|
|
|
|
|
|
|
|
label="最后数据上送时间"
|
|
|
|
|
|
|
|
min-width="140"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="photoInfo.lastPhotoTime"
|
|
|
|
|
|
|
|
label="最后图片上送时间"
|
|
|
|
|
|
|
|
min-width="140"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="lastInfo.updateTimeStr" label="最新基本信息采集时间" min-width="140"> </el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="lastInfo.equipName" label="装置名称" min-width="150"> </el-table-column>
|
|
|
|
prop="lastInfo.updateTimeStr"
|
|
|
|
<el-table-column prop="lastInfo.model" label="装置型号" min-width="120"> </el-table-column>
|
|
|
|
label="最新基本信息采集时间"
|
|
|
|
<el-table-column prop="lastInfo.version" label="装置版本号"> </el-table-column>
|
|
|
|
min-width="140"
|
|
|
|
<el-table-column prop="lastInfo.bsManu" label="生产厂家" min-width="120" show-overflow-tooltip> </el-table-column>
|
|
|
|
>
|
|
|
|
<el-table-column prop="lastInfo.productionDate" label="生产日期" min-width="140"> </el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="lastInfo.bsId" label="出厂编号" min-width="150"> </el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="lastInfo.equipName"
|
|
|
|
|
|
|
|
label="装置名称"
|
|
|
|
|
|
|
|
min-width="150"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="lastInfo.model" label="装置型号" min-width="120">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="lastInfo.version" label="装置版本号">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="lastInfo.bsManu"
|
|
|
|
|
|
|
|
label="生产厂家"
|
|
|
|
|
|
|
|
min-width="120"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="lastInfo.productionDate"
|
|
|
|
|
|
|
|
label="生产日期"
|
|
|
|
|
|
|
|
min-width="140"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="lastInfo.bsId" label="出厂编号" min-width="150">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="workingStatus.wsUpdateTime" label="最新工作状态采集时间" min-width="140">
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="workingStatus.wsUpdateTime"
|
|
|
|
|
|
|
|
label="最新工作状态采集时间"
|
|
|
|
|
|
|
|
min-width="140"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{
|
|
|
|
{{
|
|
|
|
scope.row.workingStatus.wsUpdateTime == 0 ||
|
|
|
|
scope.row.workingStatus.wsUpdateTime == 0 || scope.row.workingStatus.wsUpdateTime == null
|
|
|
|
scope.row.workingStatus.wsUpdateTime == null
|
|
|
|
? ""
|
|
|
|
? ""
|
|
|
|
: $moment(scope.row.workingStatus.wsUpdateTime * 1000).format(
|
|
|
|
: $moment(scope.row.workingStatus.wsUpdateTime * 1000).format(
|
|
|
|
"YYYY-MM-DD HH:mm:ss"
|
|
|
|
"YYYY-MM-DD HH:mm:ss"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}}</template
|
|
|
|
}}</template
|
|
|
|
> </el-table-column>
|
|
|
|
>
|
|
|
|
<el-table-column prop="workingStatus.batteryVoltage" label="电源电压"> </el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="workingStatus.opTemperature" label="工作温度"> </el-table-column>
|
|
|
|
<el-table-column prop="workingStatus.batteryVoltage" label="电源电压">
|
|
|
|
<el-table-column prop="workingStatus.batteryCapacity" label="电池电量"> </el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="workingStatus.floatingCharge" label="浮充状态"> </el-table-column>
|
|
|
|
<el-table-column prop="workingStatus.opTemperature" label="工作温度">
|
|
|
|
<el-table-column prop="workingStatus.totalWorkingTime" label="工作总时间"> </el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="workingStatus.workingTime" label="连续工作时间"> </el-table-column>
|
|
|
|
<el-table-column prop="workingStatus.batteryCapacity" label="电池电量">
|
|
|
|
<el-table-column prop="workingStatus.connectionState" label="网络连接状态"> </el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="workingStatus.floatingCharge" label="浮充状态">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="workingStatus.totalWorkingTime"
|
|
|
|
|
|
|
|
label="工作总时间"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="workingStatus.workingTime" label="连续工作时间">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="workingStatus.connectionState"
|
|
|
|
|
|
|
|
label="网络连接状态"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="workingStatus.wsUpdateTime" label="最新运行状态采集时间" min-width="140">
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="workingStatus.wsUpdateTime"
|
|
|
|
|
|
|
|
label="最新运行状态采集时间"
|
|
|
|
|
|
|
|
min-width="140"
|
|
|
|
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{
|
|
|
|
{{
|
|
|
|
scope.row.workingStatus.wsUpdateTime == 0 ||
|
|
|
|
scope.row.workingStatus.wsUpdateTime == 0 || scope.row.workingStatus.wsUpdateTime == null
|
|
|
|
scope.row.workingStatus.wsUpdateTime == null
|
|
|
|
? ""
|
|
|
|
? ""
|
|
|
|
: $moment(scope.row.workingStatus.wsUpdateTime * 1000).format(
|
|
|
|
: $moment(scope.row.workingStatus.wsUpdateTime * 1000).format(
|
|
|
|
"YYYY-MM-DD HH:mm:ss"
|
|
|
|
"YYYY-MM-DD HH:mm:ss"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}}</template
|
|
|
|
}}</template
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="workingStatus.signalStrength4g" label="4G信号强度"> </el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column prop="workingStatus.signalStrength2g" label="2G信号强度"> </el-table-column>
|
|
|
|
prop="workingStatus.signalStrength4g"
|
|
|
|
<el-table-column prop="workingStatus.remainingRam" label="剩余运行内存"> </el-table-column>
|
|
|
|
label="4G信号强度"
|
|
|
|
<el-table-column prop="workingStatus.remainingRom" label="剩余存储内"> </el-table-column>
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="workingStatus.signalStrength2g"
|
|
|
|
|
|
|
|
label="2G信号强度"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="workingStatus.remainingRam" label="剩余运行内存">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="workingStatus.remainingRom" label="剩余存储内">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="lastGps.updatetime" label="最新GPS位置采集时间" min-width="140"> </el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="lastGps.updatetime"
|
|
|
|
|
|
|
|
label="最新GPS位置采集时间"
|
|
|
|
|
|
|
|
min-width="140"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="lastGps.radius" label="半径"> </el-table-column>
|
|
|
|
<el-table-column prop="lastGps.radius" label="半径"> </el-table-column>
|
|
|
|
<el-table-column prop="lastGps.latitude" label="维度"> </el-table-column>
|
|
|
|
<el-table-column prop="lastGps.latitude" label="维度">
|
|
|
|
<el-table-column prop="lastGps.longitude" label="经度"> </el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="lastGps.longitude" label="经度">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
<div class="pageNation">
|
|
|
|
<div class="pageNation">
|
|
|
|
<el-pagination
|
|
|
|
<el-pagination
|
|
|
@ -227,7 +321,12 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { gettermAllList, getSearchInfo , getProtocolList,} from "@/utils/api/reportApi";
|
|
|
|
import {
|
|
|
|
|
|
|
|
gettermAllList,
|
|
|
|
|
|
|
|
getSearchInfo,
|
|
|
|
|
|
|
|
getProtocolList,
|
|
|
|
|
|
|
|
getActivityApi,
|
|
|
|
|
|
|
|
} from "@/utils/api/reportApi";
|
|
|
|
// import ipDialog from "./components/ipDialog";
|
|
|
|
// import ipDialog from "./components/ipDialog";
|
|
|
|
// import photoDialog from "./components/termAllList";
|
|
|
|
// import photoDialog from "./components/termAllList";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -247,6 +346,7 @@ export default {
|
|
|
|
dyOptions: [{ id: -1, name: "全部" }], //电压数据
|
|
|
|
dyOptions: [{ id: -1, name: "全部" }], //电压数据
|
|
|
|
xlOptions: [{ id: -1, name: "全部" }], //线路数据
|
|
|
|
xlOptions: [{ id: -1, name: "全部" }], //线路数据
|
|
|
|
gtOptions: [{ id: -1, name: "全部" }], //杆塔数据
|
|
|
|
gtOptions: [{ id: -1, name: "全部" }], //杆塔数据
|
|
|
|
|
|
|
|
activityOptions: [{ id: -1, name: "全部" }], //活动
|
|
|
|
onlineOptions: [
|
|
|
|
onlineOptions: [
|
|
|
|
{ id: -1, name: "全部" },
|
|
|
|
{ id: -1, name: "全部" },
|
|
|
|
{ id: 1, name: "在线" },
|
|
|
|
{ id: 1, name: "在线" },
|
|
|
@ -257,8 +357,9 @@ export default {
|
|
|
|
dyid: -1,
|
|
|
|
dyid: -1,
|
|
|
|
lineid: -1,
|
|
|
|
lineid: -1,
|
|
|
|
towerid: -1,
|
|
|
|
towerid: -1,
|
|
|
|
isonline:-1,
|
|
|
|
isonline: -1,
|
|
|
|
protocol:-1,
|
|
|
|
protocol: -1,
|
|
|
|
|
|
|
|
activityId: -1,
|
|
|
|
starttime: new Date(new Date().setHours(0, 0, 0, 0)).getTime(), // 设置开始时间为当天凌晨00:00:00的时间戳
|
|
|
|
starttime: new Date(new Date().setHours(0, 0, 0, 0)).getTime(), // 设置开始时间为当天凌晨00:00:00的时间戳
|
|
|
|
endtime: new Date(new Date().setHours(23, 59, 59, 0)).getTime(), // 设置结束时间为当天夜晚23:59:59的时间戳
|
|
|
|
endtime: new Date(new Date().setHours(23, 59, 59, 0)).getTime(), // 设置结束时间为当天夜晚23:59:59的时间戳
|
|
|
|
search: "",
|
|
|
|
search: "",
|
|
|
@ -275,6 +376,7 @@ export default {
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
this.getSearchdy();
|
|
|
|
this.getSearchdy();
|
|
|
|
this.getProtocol();
|
|
|
|
this.getProtocol();
|
|
|
|
|
|
|
|
this.getactiveList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {},
|
|
|
|
watch: {},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -316,6 +418,28 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {});
|
|
|
|
.catch((err) => {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//获取活动列表
|
|
|
|
|
|
|
|
getactiveList() {
|
|
|
|
|
|
|
|
getActivityApi()
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
// this.activityOptions = this.activityOptions.concat(res.data.list);
|
|
|
|
|
|
|
|
let activeArr = res.data.map((item) => ({
|
|
|
|
|
|
|
|
id: item.id,
|
|
|
|
|
|
|
|
name: item.title,
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
this.activityOptions = this.activityOptions.concat(activeArr);
|
|
|
|
|
|
|
|
this.formdata.activityId = this.activityOptions[0].id;
|
|
|
|
|
|
|
|
// this.formdata.activityId =
|
|
|
|
|
|
|
|
// JSON.parse(localStorage.getItem("activeId")) !== null
|
|
|
|
|
|
|
|
// ? JSON.parse(localStorage.getItem("activeId"))
|
|
|
|
|
|
|
|
// : this.activityOptions[0].id;
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
changeActive(val) {
|
|
|
|
|
|
|
|
//localStorage.setItem("activeId", JSON.stringify(val));
|
|
|
|
|
|
|
|
},
|
|
|
|
onSubmit() {
|
|
|
|
onSubmit() {
|
|
|
|
if (this.formdata.starttime > this.formdata.endtime) {
|
|
|
|
if (this.formdata.starttime > this.formdata.endtime) {
|
|
|
|
return this.$message({
|
|
|
|
return this.$message({
|
|
|
@ -355,6 +479,9 @@ export default {
|
|
|
|
if (this.formdata.protocol !== -1) {
|
|
|
|
if (this.formdata.protocol !== -1) {
|
|
|
|
params.protocol = this.formdata.protocol;
|
|
|
|
params.protocol = this.formdata.protocol;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.formdata.activityId !== -1) {
|
|
|
|
|
|
|
|
params.activityId = this.formdata.activityId;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (this.formdata.search !== "") {
|
|
|
|
if (this.formdata.search !== "") {
|
|
|
|
params.cmdid = this.formdata.search;
|
|
|
|
params.cmdid = this.formdata.search;
|
|
|
|
}
|
|
|
|
}
|
|
|
|