|
|
|
@ -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>
|
|
|
|
@ -203,7 +216,7 @@
|
|
|
|
|
<span
|
|
|
|
|
@click="handleMsgClick(scope.row)"
|
|
|
|
|
:title="formatLastHeartbeat(scope.row.mntnStatus.rawReportTime)"
|
|
|
|
|
>{{ formatLastHeartbeat(scope.row.mntnStatus.rawReportTime) }}</span
|
|
|
|
|
>{{ formatLastHeartbeat(scope.row.mntnStatus.rawReportTime) }}</span
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
@ -216,9 +229,12 @@
|
|
|
|
|
:sort-method="picSort"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.mntnStatus.reportMap && scope.row.mntnStatus.reportMap.hasOwnProperty("pic")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.pic)
|
|
|
|
|
: 0 }}
|
|
|
|
|
{{
|
|
|
|
|
scope.row.mntnStatus.reportMap &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("pic")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.pic)
|
|
|
|
|
: 0
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
@ -236,9 +252,10 @@
|
|
|
|
|
<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.battery
|
|
|
|
|
:""
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("battery")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.battery
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
@ -251,28 +268,34 @@
|
|
|
|
|
:sort-method="sortnumberOfHb"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span> {{ scope.row.mntnStatus.reportMap && scope.row.mntnStatus.reportMap.hasOwnProperty("numberOfHb")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.numberOfHb)
|
|
|
|
|
: 0 }} </span>
|
|
|
|
|
<span>
|
|
|
|
|
{{
|
|
|
|
|
scope.row.mntnStatus.reportMap &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("numberOfHb")
|
|
|
|
|
? Number(scope.row.mntnStatus.reportMap.numberOfHb)
|
|
|
|
|
: 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>
|
|
|
|
|
: 0
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
: 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>
|
|
|
|
|
|
|
|
|
|
: 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>
|
|
|
|
|
|
|
|
|
|
: 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>
|
|
|
|
|
|
|
|
|
|
: 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.signature1.split("/")[0]
|
|
|
|
|
:""
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
<span>{{
|
|
|
|
|
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 >
|
|
|
|
|
<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.signature2.split("/")[0]
|
|
|
|
|
:""
|
|
|
|
|
}}</span>
|
|
|
|
|
<span>{{
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
: 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")
|
|
|
|
|
?Number(scope.row.mntnStatus.reportMap.rebootTimes)
|
|
|
|
|
:0
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
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")
|
|
|
|
|
?Number(scope.row.mntnStatus.reportMap.i1RebootTimes)
|
|
|
|
|
:0
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
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,20 +446,21 @@
|
|
|
|
|
<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.simcard1
|
|
|
|
|
:""
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
|
|
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.simcard2
|
|
|
|
|
:""
|
|
|
|
|
}}</span>
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("simcard2")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.simcard2
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
</u-table-column>
|
|
|
|
@ -443,28 +474,30 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("freeROM")
|
|
|
|
|
?scope.row.mntnStatus.reportMap.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.cma
|
|
|
|
|
:""
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("cma")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.cma
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<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.i1Version
|
|
|
|
|
:""
|
|
|
|
|
scope.row.mntnStatus.reportMap !== null &&
|
|
|
|
|
scope.row.mntnStatus.reportMap.hasOwnProperty("i1Version")
|
|
|
|
|
? scope.row.mntnStatus.reportMap.i1Version
|
|
|
|
|
: ""
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
@ -476,11 +509,11 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{
|
|
|
|
|
scope.row.mntnStatus.reportMap!==null&&scope.row.mntnStatus.reportMap.hasOwnProperty("maintainVersion")
|
|
|
|
|
?scope.row.mntnStatus.reportMap.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.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
|
|
|
|
@ -735,8 +768,8 @@
|
|
|
|
|
<el-button type="primary" @click="handleupgradation">确 定</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 升级 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
<!-- 升级 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
class="upDialogBox"
|
|
|
|
|
title="请选择OTA升级文件"
|
|
|
|
|
:visible.sync="upgradationVisibleOta"
|
|
|
|
@ -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">
|
|
|
|
@ -871,8 +900,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- 下载文件 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
<!-- 下载文件 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="上传文件"
|
|
|
|
|
:visible.sync="pullFileVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
@ -886,7 +915,7 @@
|
|
|
|
|
<el-form-item label="文件路径:" prop="pullFile">
|
|
|
|
|
<el-input
|
|
|
|
|
type="textarea"
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4}"
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
|
|
v-model="pullFileForm.pullFile"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -905,31 +934,28 @@
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
width="454px"
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<el-form
|
|
|
|
|
<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-form-item label="文件上传:">
|
|
|
|
|
<el-upload
|
|
|
|
|
class="upload-demo"
|
|
|
|
|
ref="upload"
|
|
|
|
|
action="#"
|
|
|
|
|
:limit="1"
|
|
|
|
|
:file-list="fileList"
|
|
|
|
|
:before-upload="beforeUpload"
|
|
|
|
|
:auto-upload="false"
|
|
|
|
|
>
|
|
|
|
|
<el-button slot="trigger" size="small" type="primary"
|
|
|
|
|
>选取文件</el-button
|
|
|
|
|
class="upload-demo"
|
|
|
|
|
ref="upload"
|
|
|
|
|
action="#"
|
|
|
|
|
:limit="1"
|
|
|
|
|
:file-list="fileList"
|
|
|
|
|
:before-upload="beforeUpload"
|
|
|
|
|
:auto-upload="false"
|
|
|
|
|
>
|
|
|
|
|
</el-upload>
|
|
|
|
|
<el-button slot="trigger" size="small" type="primary"
|
|
|
|
|
>选取文件</el-button
|
|
|
|
|
>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
@ -1018,8 +1044,8 @@ export default {
|
|
|
|
|
65285: "河南全景",
|
|
|
|
|
65286: "河南郑州",
|
|
|
|
|
65290: "河南统一视频v2020",
|
|
|
|
|
65298:"宁夏",
|
|
|
|
|
2:"南网"
|
|
|
|
|
65298: "宁夏",
|
|
|
|
|
2: "南网",
|
|
|
|
|
},
|
|
|
|
|
multipleSelection: [],
|
|
|
|
|
|
|
|
|
@ -1051,9 +1077,7 @@ export default {
|
|
|
|
|
notecheck: false,
|
|
|
|
|
lastIpcheck: false,
|
|
|
|
|
//运维操作列表
|
|
|
|
|
operateOptions:[
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
operateOptions: [],
|
|
|
|
|
|
|
|
|
|
formIssue: {
|
|
|
|
|
operate: "",
|
|
|
|
@ -1231,11 +1255,11 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
//上传文件base64
|
|
|
|
|
pushFileVisible:false,
|
|
|
|
|
pushFileVisible: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
pushFileForm:{
|
|
|
|
|
name:"",
|
|
|
|
|
fileData:"",
|
|
|
|
|
pushFileForm: {
|
|
|
|
|
name: "",
|
|
|
|
|
fileData: "",
|
|
|
|
|
},
|
|
|
|
|
pushFileRules: {
|
|
|
|
|
name: [
|
|
|
|
@ -1246,14 +1270,12 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.loadLocalStorage();
|
|
|
|
|
this.calculateHeight(this.showFlag);
|
|
|
|
|
window.addEventListener("resize", this.calculateHeight(this.showFlag));
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
// 使用计算属性来扩展数据,为每个项目添加 isEditing 字段
|
|
|
|
@ -1277,21 +1299,21 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getCmdOptionsFun()
|
|
|
|
|
this.getCmdOptionsFun();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//获取命令列表
|
|
|
|
|
getCmdOptionsFun(){
|
|
|
|
|
getCmdOptionsFun() {
|
|
|
|
|
getCmdActionApi()
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.operateOptions = res.data
|
|
|
|
|
//this.operateOptions = this.operateOptions.concat(res.data);
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.operateOptions = res.data;
|
|
|
|
|
//this.operateOptions = this.operateOptions.concat(res.data);
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
formatLastHeartbeat(timestamp) {
|
|
|
|
|
return this.$moment(timestamp * 1000).format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
|
return this.$moment(timestamp * 1000).format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
|
},
|
|
|
|
|
calculateHeight(val) {
|
|
|
|
|
console.log(val);
|
|
|
|
@ -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值,将它们视为最低优先级
|
|
|
|
@ -1628,7 +1671,7 @@ export default {
|
|
|
|
|
case 1:
|
|
|
|
|
console.log("重启");
|
|
|
|
|
var params = {
|
|
|
|
|
action:"yw_cmd_android_reboot",
|
|
|
|
|
action: "yw_cmd_android_reboot",
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
@ -1636,7 +1679,7 @@ export default {
|
|
|
|
|
case 2:
|
|
|
|
|
console.log("重启MCU");
|
|
|
|
|
var params = {
|
|
|
|
|
action:"yw_cmd_mcu_reboot",
|
|
|
|
|
action: "yw_cmd_mcu_reboot",
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
@ -1656,7 +1699,7 @@ export default {
|
|
|
|
|
case 6:
|
|
|
|
|
console.log("上传日志");
|
|
|
|
|
var params = {
|
|
|
|
|
action:"yw_cmd_upload_i1_zip_log",
|
|
|
|
|
action: "yw_cmd_upload_i1_zip_log",
|
|
|
|
|
//url: "http://180.166.218.222:40101/upload/",
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
@ -1675,7 +1718,7 @@ export default {
|
|
|
|
|
case 9:
|
|
|
|
|
console.log("停止frpc");
|
|
|
|
|
var params = {
|
|
|
|
|
action:"yw_cmd_stop_frpc",
|
|
|
|
|
action: "yw_cmd_stop_frpc",
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
@ -1683,7 +1726,7 @@ export default {
|
|
|
|
|
case 10:
|
|
|
|
|
console.log("停止老化测试");
|
|
|
|
|
var params = {
|
|
|
|
|
action:"i1_cmd_stop_aging_test",
|
|
|
|
|
action: "i1_cmd_stop_aging_test",
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
@ -1724,7 +1767,7 @@ export default {
|
|
|
|
|
this.$refs.ieRuleForm.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
var params = {
|
|
|
|
|
action:"i1_cmd_set_i1_server_ip_port",
|
|
|
|
|
action: "i1_cmd_set_i1_server_ip_port",
|
|
|
|
|
ip: this.ieform.ip,
|
|
|
|
|
port: this.ieform.port,
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
@ -1740,7 +1783,7 @@ export default {
|
|
|
|
|
this.$refs.operationRuleForm.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
var params = {
|
|
|
|
|
action:"i1_cmd_set_xy_yw_ip_port",
|
|
|
|
|
action: "i1_cmd_set_xy_yw_ip_port",
|
|
|
|
|
ip: this.operationform.ip,
|
|
|
|
|
port: this.operationform.port,
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
@ -1756,7 +1799,7 @@ export default {
|
|
|
|
|
this.$refs.heartBeatRuleForm.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
var params = {
|
|
|
|
|
action:"i1_cmd_set_i1_heart_beat_time",
|
|
|
|
|
action: "i1_cmd_set_i1_heart_beat_time",
|
|
|
|
|
hb: this.heartBeatform.heart,
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
@ -1767,19 +1810,19 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//获取升级apkList
|
|
|
|
|
getUpgradeList() {
|
|
|
|
|
upgradeListApi({type:0})
|
|
|
|
|
upgradeListApi({ type: 0 })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.upOptions = res.data
|
|
|
|
|
this.upOptions = res.data;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
//获取Ota升级apkList
|
|
|
|
|
getUpgradeOtaList() {
|
|
|
|
|
upgradeListApi({type:1})
|
|
|
|
|
//获取Ota升级apkList
|
|
|
|
|
getUpgradeOtaList() {
|
|
|
|
|
upgradeListApi({ type: 1 })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.upOptionsOta = res.data
|
|
|
|
|
this.upOptionsOta = res.data;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
@ -1805,7 +1848,7 @@ export default {
|
|
|
|
|
this.$refs.upgradationRuleForm.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
var params = {
|
|
|
|
|
action:"upgrade",
|
|
|
|
|
action: "upgrade",
|
|
|
|
|
url: this.upgradationform.upVal,
|
|
|
|
|
md5: this.selectUpObj.md5,
|
|
|
|
|
fn: this.selectUpObj.fileName,
|
|
|
|
@ -1816,12 +1859,12 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//升级OTa确定阿
|
|
|
|
|
handleupgradationOta() {
|
|
|
|
|
//升级OTa确定阿
|
|
|
|
|
handleupgradationOta() {
|
|
|
|
|
this.$refs.upgradationRuleFormOta.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
var params = {
|
|
|
|
|
action:"yw_upd_ota",
|
|
|
|
|
action: "yw_upd_ota",
|
|
|
|
|
url: this.upgradationformOta.upVal,
|
|
|
|
|
md5: this.selectUpObjOta.md5,
|
|
|
|
|
fn: this.selectUpObjOta.fileName,
|
|
|
|
@ -1852,7 +1895,7 @@ export default {
|
|
|
|
|
this.$refs.frpcRuleForm.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
var params = {
|
|
|
|
|
action:"yw_cmd_start_frpc",
|
|
|
|
|
action: "yw_cmd_start_frpc",
|
|
|
|
|
server_addr: this.frpcform.server_addr,
|
|
|
|
|
server_port: this.frpcform.server_port,
|
|
|
|
|
local_ip: this.frpcform.local_ip,
|
|
|
|
@ -1869,32 +1912,32 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//删除文件
|
|
|
|
|
handleDelete(){
|
|
|
|
|
handleDelete() {
|
|
|
|
|
console.log(this.$refs.delFileFormref);
|
|
|
|
|
this.$refs.delFileFormref.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
var params = {
|
|
|
|
|
action:"del_file",
|
|
|
|
|
action: "del_file",
|
|
|
|
|
path: this.delFileForm.delFile,
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
console.log(params)
|
|
|
|
|
console.log(params);
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
|
this.deleteFileVisible = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//下载文件
|
|
|
|
|
handlePull(){
|
|
|
|
|
handlePull() {
|
|
|
|
|
console.log(this.$refs.pullFileFormref);
|
|
|
|
|
this.$refs.pullFileFormref.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
var params = {
|
|
|
|
|
action:"upload_file",
|
|
|
|
|
action: "upload_file",
|
|
|
|
|
path: this.pullFileForm.pullFile,
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
console.log(params)
|
|
|
|
|
console.log(params);
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
|
this.pullFileVisible = false;
|
|
|
|
|
}
|
|
|
|
@ -1903,46 +1946,48 @@ 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);
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
sendToBackend(base64Data){
|
|
|
|
|
sendToBackend(base64Data) {
|
|
|
|
|
this.$refs.pushFileFormref.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
var params = {
|
|
|
|
|
action:"download_file",
|
|
|
|
|
action: "download_file",
|
|
|
|
|
path: this.pushFileForm.name,
|
|
|
|
|
content:base64Data,
|
|
|
|
|
content: base64Data,
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
console.log(params)
|
|
|
|
|
console.log(params);
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
|
this.pushFileVisible = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handlePush(){
|
|
|
|
|
handlePush() {
|
|
|
|
|
this.$refs.upload.submit();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -2435,8 +2480,8 @@ export default {
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.pushBoxDialog{
|
|
|
|
|
.el-dialog__body{
|
|
|
|
|
.pushBoxDialog {
|
|
|
|
|
.el-dialog__body {
|
|
|
|
|
height: 172px;
|
|
|
|
|
}
|
|
|
|
|
.upload-demo {
|
|
|
|
@ -2469,7 +2514,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.contenBoxMsg {
|
|
|
|
@ -2485,6 +2529,5 @@ export default {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|