|
|
|
@ -100,9 +100,11 @@
|
|
|
|
|
scope.row.list[0].estimatedPublishTime * 1000 - newupdatatime > 0
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<b v-if="scope.row.list[0].desc == ''||scope.row.list[0].desc == null">{{
|
|
|
|
|
cmdCn[scope.row.list[0].name]
|
|
|
|
|
}}</b
|
|
|
|
|
<b
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.list[0].desc == '' || scope.row.list[0].desc == null
|
|
|
|
|
"
|
|
|
|
|
>{{ cmdCn[scope.row.list[0].name] }}</b
|
|
|
|
|
><b v-else>{{ scope.row.list[0].desc }}</b>
|
|
|
|
|
|
|
|
|
|
<b
|
|
|
|
@ -116,7 +118,8 @@
|
|
|
|
|
</span>
|
|
|
|
|
<span v-else>
|
|
|
|
|
{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("oid")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("oid")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.oid
|
|
|
|
|
: ""
|
|
|
|
|
}}
|
|
|
|
@ -127,15 +130,19 @@
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="状态" width="54" fixed>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag
|
|
|
|
|
type="success"
|
|
|
|
|
v-if=" scope.row.onlinestatus ==1"
|
|
|
|
|
<el-tag type="success" v-if="scope.row.onlinestatus == 1"
|
|
|
|
|
>在线</el-tag
|
|
|
|
|
>
|
|
|
|
|
<el-tag type="danger" v-else>离线</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="运维" prop="mntnStatus.inMaintain" width="68" sortable fixed>
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="运维"
|
|
|
|
|
prop="mntnStatus.inMaintain"
|
|
|
|
|
width="68"
|
|
|
|
|
sortable
|
|
|
|
|
fixed
|
|
|
|
|
>
|
|
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
|
|
<p :class="ywNumber != 0 ? 'redClass' : 'noClass'">
|
|
|
|
|
{{ ywNumber }}<span> / {{ tableData.length }}</span>
|
|
|
|
@ -163,7 +170,13 @@
|
|
|
|
|
></el-checkbox>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="快心跳" prop="mntnStatus.quickHb" width="90" sortable fixed>
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="快心跳"
|
|
|
|
|
prop="mntnStatus.quickHb"
|
|
|
|
|
width="90"
|
|
|
|
|
sortable
|
|
|
|
|
fixed
|
|
|
|
|
>
|
|
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
|
|
<p :class="kxtNumber != 0 ? 'redClass' : 'noClass'">
|
|
|
|
|
{{ kxtNumber }}<span> / {{ tableData.length }}</span>
|
|
|
|
@ -216,9 +229,12 @@
|
|
|
|
|
:sort-method="picSort"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.mntnStatus.reportMap && scope.row.mntnStatus.reportMap.hasOwnProperty("pic")
|
|
|
|
|
{{
|
|
|
|
|
scope.row.mntnStatus.reportMap &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("pic")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.pic)
|
|
|
|
|
: 0 }}
|
|
|
|
|
: 0
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
@ -236,7 +252,8 @@
|
|
|
|
|
<u-table-column label="电池状态" width="126" key="dc" v-if="dccheck">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("battery")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("battery")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.battery
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
@ -251,15 +268,21 @@
|
|
|
|
|
:sort-method="sortnumberOfHb"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span> {{ scope.row.mntnStatus.reportMap && scope.row.mntnStatus.reportMap.hasOwnProperty("numberOfHb")
|
|
|
|
|
<span>
|
|
|
|
|
{{
|
|
|
|
|
scope.row.mntnStatus.reportMap &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("numberOfHb")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.numberOfHb)
|
|
|
|
|
: 0 }} </span>
|
|
|
|
|
: 0
|
|
|
|
|
}}
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="周期" min-width="48">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("heartbeatDuration")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("heartbeatDuration")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.heartbeatDuration
|
|
|
|
|
: 0
|
|
|
|
|
}}</span>
|
|
|
|
@ -268,11 +291,11 @@
|
|
|
|
|
<u-table-column label="CMA消息" min-width="48">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("recv")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("recv")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.recv
|
|
|
|
|
: 0
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
</u-table-column>
|
|
|
|
@ -281,11 +304,11 @@
|
|
|
|
|
<u-table-column label="计划/实际" min-width="48">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("photoTimes")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("photoTimes")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.photoTimes
|
|
|
|
|
: 0
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
@ -296,11 +319,11 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("success")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("success")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.success)
|
|
|
|
|
: 0
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
@ -311,11 +334,11 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("failure")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("failure")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.failure)
|
|
|
|
|
: 0
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
</u-table-column>
|
|
|
|
@ -326,38 +349,45 @@
|
|
|
|
|
<el-tooltip
|
|
|
|
|
class="item"
|
|
|
|
|
effect="dark"
|
|
|
|
|
:content='scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("signature1")? scope.row.mntnStatus.reportMap.signature1
|
|
|
|
|
:""'
|
|
|
|
|
:content="
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty('signature1')
|
|
|
|
|
? scope.row.mntnStatus.reportMap.signature1
|
|
|
|
|
: ''
|
|
|
|
|
"
|
|
|
|
|
placement="top"
|
|
|
|
|
>
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("signature1")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("signature1")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.signature1.split("/")[0]
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="卡2" min-width="60" prop="signature2">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
<el-tooltip
|
|
|
|
|
class="item"
|
|
|
|
|
effect="dark"
|
|
|
|
|
:content='scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("signature2")? scope.row.mntnStatus.reportMap.signature2
|
|
|
|
|
:""'
|
|
|
|
|
:content="
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty('signature2')
|
|
|
|
|
? scope.row.mntnStatus.reportMap.signature2
|
|
|
|
|
: ''
|
|
|
|
|
"
|
|
|
|
|
placement="top"
|
|
|
|
|
>
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("signature2")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("signature2")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.signature2.split("/")[0]
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
@ -369,11 +399,11 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("networkError")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("networkError")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.networkError)
|
|
|
|
|
: 0
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
</u-table-column>
|
|
|
|
@ -388,11 +418,11 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("rebootTimes")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("rebootTimes")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.rebootTimes)
|
|
|
|
|
: 0
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
@ -404,11 +434,11 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("i1RebootTimes")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("i1RebootTimes")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.i1RebootTimes)
|
|
|
|
|
: 0
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
</u-table-column>
|
|
|
|
@ -416,17 +446,18 @@
|
|
|
|
|
<u-table-column label="卡1(ICCID)" width="158" prop="simcard1">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("simcard1")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("simcard1")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.simcard1
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="卡2(ICCID)" width="158" prop="simcard2">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("simcard2")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("simcard2")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.simcard2
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
@ -443,17 +474,18 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("freeROM")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("freeROM")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.freeROM
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="CMA服务器" v-if="cmacheck" width="140" key="cma">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("cma")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("cma")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.cma
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
@ -462,7 +494,8 @@
|
|
|
|
|
<u-table-column label="I1版本" v-if="i1check" min-width="192" key="I1">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("i1Version")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("i1Version")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.i1Version
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
@ -476,11 +509,11 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("maintainVersion")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("maintainVersion")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.maintainVersion
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
@ -491,31 +524,31 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("cameraService")
|
|
|
|
|
?scope.row.mntnStatus.reportMap.cameraService
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("cameraVersion")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.cameraVersion
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="AI版本" v-if="AIcheck" min-width="80" key="AI">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("aiVersion")
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("aiVersion")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.aiVersion
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="MCU版本" v-if="MCUcheck" min-width="210" key="MCU">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("mcu")
|
|
|
|
|
?scope.row.mntnStatus.reportMap.mcu
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("mcuVersion")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.mcuVersion
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
@ -771,7 +804,9 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="upgradationVisibleOta = false">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="handleupgradationOta">确 定</el-button>
|
|
|
|
|
<el-button type="primary" @click="handleupgradationOta"
|
|
|
|
|
>确 定</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 开启frpc服务器 -->
|
|
|
|
@ -854,15 +889,9 @@
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
width="30%"
|
|
|
|
|
>
|
|
|
|
|
<el-form
|
|
|
|
|
:model="delFileForm"
|
|
|
|
|
ref="delFileFormref"
|
|
|
|
|
:rules="delFileRules"
|
|
|
|
|
>
|
|
|
|
|
<el-form :model="delFileForm" ref="delFileFormref" :rules="delFileRules">
|
|
|
|
|
<el-form-item label="删除文件路径:" prop="delFile">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="delFileForm.delFile"
|
|
|
|
|
></el-input>
|
|
|
|
|
<el-input v-model="delFileForm.delFile"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
@ -905,16 +934,13 @@
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
width="454px"
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<el-form
|
|
|
|
|
:model="pushFileForm"
|
|
|
|
|
ref="pushFileFormref"
|
|
|
|
|
:rules="pushFileRules"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="文件路径:" prop="name">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="pushFileForm.name"
|
|
|
|
|
></el-input>
|
|
|
|
|
<el-input v-model="pushFileForm.name"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="文件上传:">
|
|
|
|
|
<el-upload
|
|
|
|
@ -1019,7 +1045,7 @@ export default {
|
|
|
|
|
65286: "河南郑州",
|
|
|
|
|
65290: "河南统一视频v2020",
|
|
|
|
|
65298: "宁夏",
|
|
|
|
|
2:"南网"
|
|
|
|
|
2: "南网",
|
|
|
|
|
},
|
|
|
|
|
multipleSelection: [],
|
|
|
|
|
|
|
|
|
@ -1051,9 +1077,7 @@ export default {
|
|
|
|
|
notecheck: false,
|
|
|
|
|
lastIpcheck: false,
|
|
|
|
|
//运维操作列表
|
|
|
|
|
operateOptions:[
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
operateOptions: [],
|
|
|
|
|
|
|
|
|
|
formIssue: {
|
|
|
|
|
operate: "",
|
|
|
|
@ -1246,14 +1270,12 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.loadLocalStorage();
|
|
|
|
|
this.calculateHeight(this.showFlag);
|
|
|
|
|
window.addEventListener("resize", this.calculateHeight(this.showFlag));
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
// 使用计算属性来扩展数据,为每个项目添加 isEditing 字段
|
|
|
|
@ -1277,7 +1299,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getCmdOptionsFun()
|
|
|
|
|
this.getCmdOptionsFun();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//获取命令列表
|
|
|
|
@ -1285,7 +1307,7 @@ export default {
|
|
|
|
|
getCmdActionApi()
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.operateOptions = res.data
|
|
|
|
|
this.operateOptions = res.data;
|
|
|
|
|
//this.operateOptions = this.operateOptions.concat(res.data);
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
@ -1309,7 +1331,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//判断磁盘空间
|
|
|
|
|
tableRowSetting({ row }) {
|
|
|
|
|
if (!row.mntnStatus || !row.mntnStatus.reportMap || !row.mntnStatus.reportMap.hasOwnProperty("freeROM")) {
|
|
|
|
|
if (
|
|
|
|
|
!row.mntnStatus ||
|
|
|
|
|
!row.mntnStatus.reportMap ||
|
|
|
|
|
!row.mntnStatus.reportMap.hasOwnProperty("freeROM")
|
|
|
|
|
) {
|
|
|
|
|
// 如果freeROM属性不存在,返回默认类名
|
|
|
|
|
return "no-color";
|
|
|
|
|
}
|
|
|
|
@ -1334,8 +1360,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//心跳次数排序
|
|
|
|
|
sortnumberOfHb(a, b) {
|
|
|
|
|
const aNum = (a.mntnStatus.reportMap && a.mntnStatus.reportMap.numberOfHb) || 0;
|
|
|
|
|
const bNum = (b.mntnStatus.reportMap && b.mntnStatus.reportMap.numberOfHb) || 0;
|
|
|
|
|
const aNum =
|
|
|
|
|
(a.mntnStatus.reportMap && a.mntnStatus.reportMap.numberOfHb) || 0;
|
|
|
|
|
const bNum =
|
|
|
|
|
(b.mntnStatus.reportMap && b.mntnStatus.reportMap.numberOfHb) || 0;
|
|
|
|
|
const numA = Number(aNum);
|
|
|
|
|
const numB = Number(bNum);
|
|
|
|
|
return numA - numB;
|
|
|
|
@ -1343,40 +1371,49 @@ export default {
|
|
|
|
|
|
|
|
|
|
//成功和失败
|
|
|
|
|
sortSuccess(a, b) {
|
|
|
|
|
const aNum = (a.mntnStatus.reportMap && a.mntnStatus.reportMap.success) || 0;
|
|
|
|
|
const bNum = (b.mntnStatus.reportMap && b.mntnStatus.reportMap.success) || 0;
|
|
|
|
|
const aNum =
|
|
|
|
|
(a.mntnStatus.reportMap && a.mntnStatus.reportMap.success) || 0;
|
|
|
|
|
const bNum =
|
|
|
|
|
(b.mntnStatus.reportMap && b.mntnStatus.reportMap.success) || 0;
|
|
|
|
|
const numA = Number(aNum);
|
|
|
|
|
const numB = Number(bNum);
|
|
|
|
|
return numA - numB;
|
|
|
|
|
},
|
|
|
|
|
sortFailure(a, b) {
|
|
|
|
|
const aNum = (a.mntnStatus.reportMap && a.mntnStatus.reportMap.failure) || 0;
|
|
|
|
|
const bNum = (b.mntnStatus.reportMap && b.mntnStatus.reportMap.failure) || 0;
|
|
|
|
|
const aNum =
|
|
|
|
|
(a.mntnStatus.reportMap && a.mntnStatus.reportMap.failure) || 0;
|
|
|
|
|
const bNum =
|
|
|
|
|
(b.mntnStatus.reportMap && b.mntnStatus.reportMap.failure) || 0;
|
|
|
|
|
const numA = Number(aNum);
|
|
|
|
|
const numB = Number(bNum);
|
|
|
|
|
return numA - numB;
|
|
|
|
|
},
|
|
|
|
|
//网络错误
|
|
|
|
|
sortNumbersErr(a, b) {
|
|
|
|
|
const aNum = (a.mntnStatus.reportMap && a.mntnStatus.reportMap.networkError) || 0;
|
|
|
|
|
const bNum = (b.mntnStatus.reportMap && b.mntnStatus.reportMap.networkError) || 0;
|
|
|
|
|
const aNum =
|
|
|
|
|
(a.mntnStatus.reportMap && a.mntnStatus.reportMap.networkError) || 0;
|
|
|
|
|
const bNum =
|
|
|
|
|
(b.mntnStatus.reportMap && b.mntnStatus.reportMap.networkError) || 0;
|
|
|
|
|
const numA = Number(aNum);
|
|
|
|
|
const numB = Number(bNum);
|
|
|
|
|
return numA - numB;
|
|
|
|
|
},
|
|
|
|
|
//重启次数
|
|
|
|
|
sortRebootTimes(a, b) {
|
|
|
|
|
const aNum = (a.mntnStatus.reportMap && a.mntnStatus.reportMap.rebootTimes) || 0;
|
|
|
|
|
const bNum = (b.mntnStatus.reportMap && b.mntnStatus.reportMap.rebootTimes) || 0;
|
|
|
|
|
const aNum =
|
|
|
|
|
(a.mntnStatus.reportMap && a.mntnStatus.reportMap.rebootTimes) || 0;
|
|
|
|
|
const bNum =
|
|
|
|
|
(b.mntnStatus.reportMap && b.mntnStatus.reportMap.rebootTimes) || 0;
|
|
|
|
|
const numA = Number(aNum);
|
|
|
|
|
const numB = Number(bNum);
|
|
|
|
|
return numA - numB;
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
//I1重启次数
|
|
|
|
|
sortI1Reb(a, b) {
|
|
|
|
|
const aNum = (a.mntnStatus.reportMap && a.mntnStatus.reportMap.i1RebootTimes) || 0;
|
|
|
|
|
const bNum = (b.mntnStatus.reportMap && b.mntnStatus.reportMap.i1RebootTimes) || 0;
|
|
|
|
|
const aNum =
|
|
|
|
|
(a.mntnStatus.reportMap && a.mntnStatus.reportMap.i1RebootTimes) || 0;
|
|
|
|
|
const bNum =
|
|
|
|
|
(b.mntnStatus.reportMap && b.mntnStatus.reportMap.i1RebootTimes) || 0;
|
|
|
|
|
const numA = Number(aNum);
|
|
|
|
|
const numB = Number(bNum);
|
|
|
|
|
return numA - numB;
|
|
|
|
@ -1388,7 +1425,11 @@ export default {
|
|
|
|
|
const bFree = b.mntnStatus.reportMap && b.mntnStatus.reportMap.freeROM;
|
|
|
|
|
// 定义一个函数来将百分比字符串转换为数值,或者如果值为 null 或非百分比字符串,则返回 0
|
|
|
|
|
function parsePercentage(value) {
|
|
|
|
|
if (value === null || typeof value !== 'string' || !value.endsWith('%')) {
|
|
|
|
|
if (
|
|
|
|
|
value === null ||
|
|
|
|
|
typeof value !== "string" ||
|
|
|
|
|
!value.endsWith("%")
|
|
|
|
|
) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
// 去除百分比符号,并将剩余的字符串转换为数值
|
|
|
|
@ -1403,12 +1444,14 @@ export default {
|
|
|
|
|
const numA = parsePercentage(aFree);
|
|
|
|
|
const numB = parsePercentage(bFree);
|
|
|
|
|
// 这里假设你想要升序排序(从小到大)
|
|
|
|
|
return numA - numB
|
|
|
|
|
return numA - numB;
|
|
|
|
|
},
|
|
|
|
|
sortNote(a, b) {
|
|
|
|
|
// 确保 a和b都是字符串,如果不是,则转换为字符串
|
|
|
|
|
const aValue = a.mntnStatus.comment === null ? "" : String(a.mntnStatus.comment);
|
|
|
|
|
const bValue = b.mntnStatus.comment === null ? "" : String(b.mntnStatus.comment);
|
|
|
|
|
const aValue =
|
|
|
|
|
a.mntnStatus.comment === null ? "" : String(a.mntnStatus.comment);
|
|
|
|
|
const bValue =
|
|
|
|
|
b.mntnStatus.comment === null ? "" : String(b.mntnStatus.comment);
|
|
|
|
|
// const aValue = typeof a === "string" ? a : String(a);
|
|
|
|
|
// const bValue = typeof b === "string" ? b : String(b);
|
|
|
|
|
// 处理null值,将它们视为最低优先级
|
|
|
|
@ -1770,7 +1813,7 @@ export default {
|
|
|
|
|
upgradeListApi({ type: 0 })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.upOptions = res.data
|
|
|
|
|
this.upOptions = res.data;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
@ -1779,7 +1822,7 @@ export default {
|
|
|
|
|
upgradeListApi({ type: 1 })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.upOptionsOta = res.data
|
|
|
|
|
this.upOptionsOta = res.data;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
@ -1878,7 +1921,7 @@ export default {
|
|
|
|
|
path: this.delFileForm.delFile,
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
console.log(params)
|
|
|
|
|
console.log(params);
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
|
this.deleteFileVisible = false;
|
|
|
|
|
}
|
|
|
|
@ -1894,7 +1937,7 @@ export default {
|
|
|
|
|
path: this.pullFileForm.pullFile,
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
console.log(params)
|
|
|
|
|
console.log(params);
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
|
this.pullFileVisible = false;
|
|
|
|
|
}
|
|
|
|
@ -1903,26 +1946,28 @@ export default {
|
|
|
|
|
|
|
|
|
|
//上传文件
|
|
|
|
|
beforeUpload(file) {
|
|
|
|
|
console.log(file)
|
|
|
|
|
console.log(file);
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
|
const reader = new FileReader();
|
|
|
|
|
reader.readAsDataURL(file);
|
|
|
|
|
reader.onload = (e) => {
|
|
|
|
|
console.log("asdasdad",e)
|
|
|
|
|
console.log("asdasdad", e);
|
|
|
|
|
this.pushFileForm.fileData = e.target.result; // Base64 编码的数据
|
|
|
|
|
const base64Index = this.pushFileForm.fileData.indexOf('base64,');
|
|
|
|
|
const base64Index = this.pushFileForm.fileData.indexOf("base64,");
|
|
|
|
|
if (base64Index > 0) {
|
|
|
|
|
// 提取base64编码部分
|
|
|
|
|
const base64Data = this.pushFileForm.fileData.substring(base64Index + 7); // 7 是 "base64," 的长度
|
|
|
|
|
const base64Data = this.pushFileForm.fileData.substring(
|
|
|
|
|
base64Index + 7
|
|
|
|
|
); // 7 是 "base64," 的长度
|
|
|
|
|
this.pushFileForm.fileData = base64Data; // 保存Base64编码部分
|
|
|
|
|
this.sendToBackend(this.pushFileForm.fileData);
|
|
|
|
|
resolve(true);
|
|
|
|
|
} else {
|
|
|
|
|
// 如果找不到"base64,",则可能不是预期的格式
|
|
|
|
|
reject(new Error('Invalid data URL format'));
|
|
|
|
|
reject(new Error("Invalid data URL format"));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
reader.onerror = error => {
|
|
|
|
|
reader.onerror = (error) => {
|
|
|
|
|
reject(error);
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
@ -1936,7 +1981,7 @@ export default {
|
|
|
|
|
content: base64Data,
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
console.log(params)
|
|
|
|
|
console.log(params);
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
|
this.pushFileVisible = false;
|
|
|
|
|
}
|
|
|
|
@ -2469,7 +2514,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.contenBoxMsg {
|
|
|
|
@ -2485,6 +2529,5 @@ export default {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|