|
|
|
@ -47,7 +47,14 @@
|
|
|
|
|
>装置总数:<el-tag type="info">{{ tableData.length }}</el-tag></span
|
|
|
|
|
>
|
|
|
|
|
</p>
|
|
|
|
|
<el-button type="primary" @click="handleExport">导出</el-button>
|
|
|
|
|
|
|
|
|
|
<el-tooltip class="item" effect="dark" content="导出" placement="top">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-tickets"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
></el-button>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
<el-tooltip class="item" effect="dark" content="扩展列" placement="top">
|
|
|
|
|
<el-button
|
|
|
|
|
class="drawBox"
|
|
|
|
@ -63,7 +70,7 @@
|
|
|
|
|
v-loading="tableLoaidng"
|
|
|
|
|
id="ywTable"
|
|
|
|
|
ref="ywMultipleTable"
|
|
|
|
|
:data="tableData"
|
|
|
|
|
:data="tableDataWithEditing"
|
|
|
|
|
border
|
|
|
|
|
:row-style="isRed"
|
|
|
|
|
:row-key="getRowKey"
|
|
|
|
@ -78,15 +85,13 @@
|
|
|
|
|
<u-table-column
|
|
|
|
|
type="selection"
|
|
|
|
|
:reserve-selection="true"
|
|
|
|
|
width="50"
|
|
|
|
|
width="30"
|
|
|
|
|
fixed
|
|
|
|
|
>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column type="index" width="50" label="序号" fixed>
|
|
|
|
|
<u-table-column type="index" width="40" label="序号" fixed>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<!-- <u-table-column prop="id" label="ID" width="60" sortable>
|
|
|
|
|
</u-table-column> -->
|
|
|
|
|
<u-table-column prop="oid" label="出厂ID" width="180" sortable fixed>
|
|
|
|
|
<u-table-column prop="oid" label="出厂ID" width="134" sortable fixed>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
class="redMlxf"
|
|
|
|
@ -118,9 +123,9 @@
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column prop="cmdid" label="装置编号" width="150" sortable fixed>
|
|
|
|
|
<u-table-column prop="cmdid" label="装置编号" width="136" sortable fixed>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="状态" width="72" fixed>
|
|
|
|
|
<u-table-column label="状态" width="54" fixed>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag
|
|
|
|
|
type="success"
|
|
|
|
@ -130,13 +135,7 @@
|
|
|
|
|
<el-tag type="danger" v-else>离线</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="运维"
|
|
|
|
|
prop="in_maintain"
|
|
|
|
|
width="100"
|
|
|
|
|
sortable
|
|
|
|
|
fixed
|
|
|
|
|
>
|
|
|
|
|
<u-table-column label="运维" prop="in_maintain" width="68" sortable fixed>
|
|
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
|
|
<p :class="ywNumber != 0 ? 'redClass' : 'noClass'">
|
|
|
|
|
{{ ywNumber }}<span> / {{ tableData.length }}</span>
|
|
|
|
@ -164,7 +163,7 @@
|
|
|
|
|
></el-checkbox>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="快心跳" prop="quick_hb" width="108" sortable fixed>
|
|
|
|
|
<u-table-column label="快心跳" prop="quick_hb" width="90" sortable fixed>
|
|
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
|
|
<p :class="kxtNumber != 0 ? 'redClass' : 'noClass'">
|
|
|
|
|
{{ kxtNumber }}<span> / {{ tableData.length }}</span>
|
|
|
|
@ -195,20 +194,22 @@
|
|
|
|
|
<u-table-column
|
|
|
|
|
prop="last_heartbeat"
|
|
|
|
|
label="最后心跳"
|
|
|
|
|
width="142"
|
|
|
|
|
width="130"
|
|
|
|
|
sortable
|
|
|
|
|
class-name="hbClass"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span @click="handleMsgClick(scope.row)">{{
|
|
|
|
|
scope.row.last_heartbeat
|
|
|
|
|
}}</span>
|
|
|
|
|
<span
|
|
|
|
|
@click="handleMsgClick(scope.row)"
|
|
|
|
|
:title="scope.row.last_heartbeat"
|
|
|
|
|
>{{ scope.row.last_heartbeat }}</span
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="传图"
|
|
|
|
|
prop="raw_report.pic"
|
|
|
|
|
width="80"
|
|
|
|
|
width="50"
|
|
|
|
|
class-name="picBg"
|
|
|
|
|
sortable
|
|
|
|
|
>
|
|
|
|
@ -229,7 +230,7 @@
|
|
|
|
|
{{ protocolMap[scope.row.protocol] }}
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="电池状态" width="138" key="dc" v-if="dccheck">
|
|
|
|
|
<u-table-column label="电池状态" width="126" key="dc" v-if="dccheck">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.raw_report.hasOwnProperty('XyDev')">{{
|
|
|
|
|
scope.row.raw_report.battary
|
|
|
|
@ -245,7 +246,7 @@
|
|
|
|
|
<u-table-column label="心跳信息" v-if="xtcheck" key="xt">
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="次数"
|
|
|
|
|
min-width="68"
|
|
|
|
|
min-width="48"
|
|
|
|
|
sortable
|
|
|
|
|
:sort-method="sortnumberOfHb"
|
|
|
|
|
>
|
|
|
|
@ -272,7 +273,7 @@
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="CMA消息" min-width="60">
|
|
|
|
|
<u-table-column label="CMA消息" min-width="48">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.raw_report.hasOwnProperty('XyDev')">{{
|
|
|
|
|
scope.row.raw_report.recv
|
|
|
|
@ -287,7 +288,7 @@
|
|
|
|
|
</u-table-column>
|
|
|
|
|
|
|
|
|
|
<u-table-column label="拍照" v-if="pzcheck" key="pz">
|
|
|
|
|
<u-table-column label="计划/实际" min-width="60">
|
|
|
|
|
<u-table-column label="计划/实际" min-width="48">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.raw_report.hasOwnProperty('XyDev')">{{
|
|
|
|
|
scope.row.raw_report.photoTimes
|
|
|
|
@ -301,7 +302,7 @@
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="成功"
|
|
|
|
|
min-width="70"
|
|
|
|
|
min-width="48"
|
|
|
|
|
sortable
|
|
|
|
|
:sort-method="sortSuccess"
|
|
|
|
|
>
|
|
|
|
@ -318,7 +319,7 @@
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="失败"
|
|
|
|
|
min-width="70"
|
|
|
|
|
min-width="48"
|
|
|
|
|
sortable
|
|
|
|
|
:sort-method="sortFailure"
|
|
|
|
|
>
|
|
|
|
@ -386,7 +387,7 @@
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="错误"
|
|
|
|
|
min-width="58"
|
|
|
|
|
min-width="48"
|
|
|
|
|
prop="networkError"
|
|
|
|
|
sortable
|
|
|
|
|
:sort-method="sortNumbersErr"
|
|
|
|
@ -407,7 +408,7 @@
|
|
|
|
|
<u-table-column label="重启次数" v-if="cqcheck" key="cq">
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="系统"
|
|
|
|
|
min-width="58"
|
|
|
|
|
min-width="48"
|
|
|
|
|
prop="rebootTimes"
|
|
|
|
|
sortable
|
|
|
|
|
:sort-method="sortNumbers"
|
|
|
|
@ -475,7 +476,7 @@
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="磁盘剩余空间"
|
|
|
|
|
v-if="freecheck"
|
|
|
|
|
min-width="120"
|
|
|
|
|
min-width="66"
|
|
|
|
|
key="free"
|
|
|
|
|
sortable
|
|
|
|
|
:sort-method="sortfreeNumbers"
|
|
|
|
@ -491,7 +492,7 @@
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="CMA服务器" v-if="cmacheck" width="160" key="cma">
|
|
|
|
|
<u-table-column label="CMA服务器" v-if="cmacheck" width="140" key="cma">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.raw_report.hasOwnProperty('XyDev')">
|
|
|
|
|
{{ scope.row.raw_report.cma }}</span
|
|
|
|
@ -503,7 +504,7 @@
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="I1版本" v-if="i1check" min-width="160" key="I1">
|
|
|
|
|
<u-table-column label="I1版本" v-if="i1check" min-width="192" key="I1">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.raw_report.hasOwnProperty('XyDev')">{{
|
|
|
|
|
scope.row.raw_report.i1Version
|
|
|
|
@ -518,7 +519,7 @@
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="运维版本"
|
|
|
|
|
v-if="ywbbcheck"
|
|
|
|
|
min-width="260"
|
|
|
|
|
min-width="248 "
|
|
|
|
|
key="ywbb"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -537,7 +538,7 @@
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="Camera版本"
|
|
|
|
|
v-if="Cameracheck"
|
|
|
|
|
width="100"
|
|
|
|
|
min-width="80"
|
|
|
|
|
key="Camera"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -548,7 +549,7 @@
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="AI版本" v-if="AIcheck" width="80" key="AI">
|
|
|
|
|
<u-table-column label="AI版本" v-if="AIcheck" min-width="80" key="AI">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
scope.row.raw_report.msgs.hasOwnProperty("aiVersion")
|
|
|
|
@ -557,7 +558,7 @@
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="MCU版本" v-if="MCUcheck" min-width="180" key="MCU">
|
|
|
|
|
<u-table-column label="MCU版本" v-if="MCUcheck" min-width="210" key="MCU">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{
|
|
|
|
|
scope.row.raw_report.msgs.hasOwnProperty("mcu")
|
|
|
|
@ -566,6 +567,32 @@
|
|
|
|
|
}}
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column
|
|
|
|
|
label="备注"
|
|
|
|
|
v-if="notecheck"
|
|
|
|
|
min-width="210"
|
|
|
|
|
key="note"
|
|
|
|
|
sortable
|
|
|
|
|
:sort-method="sortNote"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div
|
|
|
|
|
@click="handlecolEditClick(scope)"
|
|
|
|
|
style="height: 22px; cursor: pointer"
|
|
|
|
|
>
|
|
|
|
|
<el-input
|
|
|
|
|
class="noteclass"
|
|
|
|
|
v-if="scope.$index == cellIndex"
|
|
|
|
|
v-model="scope.row.comment"
|
|
|
|
|
@blur="handleCommentBlur(scope)"
|
|
|
|
|
placeholder="请输入备注"
|
|
|
|
|
></el-input>
|
|
|
|
|
<span v-else :title="scope.row.comment">{{
|
|
|
|
|
scope.row.comment
|
|
|
|
|
}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
</u-table>
|
|
|
|
|
<el-drawer
|
|
|
|
|
class="drawerBox"
|
|
|
|
@ -625,6 +652,9 @@
|
|
|
|
|
<el-checkbox v-model="MCUcheck" @change="saveLocalStorage"
|
|
|
|
|
>MCU版本</el-checkbox
|
|
|
|
|
>
|
|
|
|
|
<el-checkbox v-model="notecheck" @change="saveLocalStorage"
|
|
|
|
|
>备注</el-checkbox
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-drawer>
|
|
|
|
@ -816,7 +846,11 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getdoActionApi, getqueryUpgradesApi } from "@/utils/api/index";
|
|
|
|
|
import {
|
|
|
|
|
getdoActionApi,
|
|
|
|
|
getqueryUpgradesApi,
|
|
|
|
|
updComment,
|
|
|
|
|
} from "@/utils/api/index";
|
|
|
|
|
import rowMsgDialog from "./rowMsgDialog.vue";
|
|
|
|
|
import htmlToExcel from "@/utils/htmlToExcel";
|
|
|
|
|
import { saveAs } from "file-saver";
|
|
|
|
@ -894,6 +928,7 @@ export default {
|
|
|
|
|
kxtNumber: 0,
|
|
|
|
|
|
|
|
|
|
nowTime: new Date().getTime() / 1000,
|
|
|
|
|
|
|
|
|
|
gycheck: true,
|
|
|
|
|
dccheck: false,
|
|
|
|
|
xtcheck: false,
|
|
|
|
@ -911,6 +946,7 @@ export default {
|
|
|
|
|
AIcheck: false,
|
|
|
|
|
MCUcheck: false,
|
|
|
|
|
freecheck: false,
|
|
|
|
|
notecheck: false,
|
|
|
|
|
//运维操作列表
|
|
|
|
|
operateOptions: [
|
|
|
|
|
{ id: 1, name: "重启设备" },
|
|
|
|
@ -1056,6 +1092,7 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
newupdatatime: null,
|
|
|
|
|
cellIndex: null,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
@ -1063,6 +1100,15 @@ export default {
|
|
|
|
|
this.calculateHeight(this.showFlag);
|
|
|
|
|
window.addEventListener("resize", this.calculateHeight(this.showFlag));
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
// 使用计算属性来扩展数据,为每个项目添加 isEditing 字段
|
|
|
|
|
tableDataWithEditing() {
|
|
|
|
|
return this.tableData.map((row) => ({
|
|
|
|
|
...row, // 复制原始行的所有属性
|
|
|
|
|
isEditing: false, // 添加 isEditing 字段并初始化为 false
|
|
|
|
|
}));
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
tableData: {
|
|
|
|
|
handler(newVal) {
|
|
|
|
@ -1081,9 +1127,9 @@ export default {
|
|
|
|
|
this.showFlag = val;
|
|
|
|
|
this.screenHeight = window.innerHeight; // 获取屏幕高度
|
|
|
|
|
if (val) {
|
|
|
|
|
this.tableHeight = this.screenHeight - 240; // 假设你想从屏幕高度中减去270px
|
|
|
|
|
this.tableHeight = this.screenHeight - 230; // 假设你想从屏幕高度中减去270px
|
|
|
|
|
} else {
|
|
|
|
|
this.tableHeight = this.screenHeight - 160; // 假设你想从屏幕高度中减去190px
|
|
|
|
|
this.tableHeight = this.screenHeight - 150; // 假设你想从屏幕高度中减去190px
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 根据你的需求计算高度,这里只是一个简单的示例
|
|
|
|
@ -1144,6 +1190,23 @@ export default {
|
|
|
|
|
parseInt(b.raw_report.msgs.freeROM)
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
sortNote(a, b) {
|
|
|
|
|
// 确保 a和b都是字符串,如果不是,则转换为字符串
|
|
|
|
|
const aValue = a.comment === null ? "" : String(a.comment);
|
|
|
|
|
const bValue = b.comment === null ? "" : String(b.comment);
|
|
|
|
|
// const aValue = typeof a === "string" ? a : String(a);
|
|
|
|
|
// const bValue = typeof b === "string" ? b : String(b);
|
|
|
|
|
|
|
|
|
|
// 处理null值,将它们视为最低优先级
|
|
|
|
|
if (aValue === "" || bValue === "") {
|
|
|
|
|
return aValue === "" ? 1 : -1; // 空字符串排在非空字符串后面
|
|
|
|
|
}
|
|
|
|
|
console.log(aValue, bValue);
|
|
|
|
|
// 使用localeCompare进行中文排序
|
|
|
|
|
return aValue.localeCompare(bValue, "zh-Hans-CN", {
|
|
|
|
|
sensitivity: "base",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// sortSignature1(a, b) {
|
|
|
|
|
// return (
|
|
|
|
|
// Number(a.raw_report.msgs.signature1.split("/")[0]) -
|
|
|
|
@ -1228,7 +1291,8 @@ export default {
|
|
|
|
|
"MCU版本",
|
|
|
|
|
];
|
|
|
|
|
// 准备 CSV 文件的内容数据
|
|
|
|
|
let csvContent = headers.join(",") + "\n";
|
|
|
|
|
//let csvContent = headers.join(",") + "\n";
|
|
|
|
|
let csvContent = headers.map((header) => `"${header}"`).join(",") + "\n"; // 对所有头部使用双引号
|
|
|
|
|
this.tableData.forEach((item) => {
|
|
|
|
|
const rawReport = item.raw_report;
|
|
|
|
|
const msgs = item.raw_report.msgs;
|
|
|
|
@ -1245,7 +1309,8 @@ export default {
|
|
|
|
|
msgs.numberOfHb || "",
|
|
|
|
|
msgs.heartbeatDuration || "",
|
|
|
|
|
msgs.recv || "",
|
|
|
|
|
msgs.photoTimes || "",
|
|
|
|
|
//msgs.photoTimes || "",
|
|
|
|
|
String(msgs.photoTimes + "," || ""), // 确保是字符串
|
|
|
|
|
msgs.success || "",
|
|
|
|
|
msgs.failure || "",
|
|
|
|
|
msgs.signature1 || "",
|
|
|
|
@ -1253,8 +1318,10 @@ export default {
|
|
|
|
|
msgs.networkError || "",
|
|
|
|
|
msgs.rebootTimes || "",
|
|
|
|
|
msgs.i1RebootTimes || "",
|
|
|
|
|
msgs.simcard1 || "",
|
|
|
|
|
msgs.simcard2 || "",
|
|
|
|
|
// msgs.simcard1 || "",
|
|
|
|
|
// msgs.simcard2 || "",
|
|
|
|
|
String(msgs.simcard1 + "," || ""), // 确保是字符串
|
|
|
|
|
String(msgs.simcard2 + "," || ""), // 确保是字符串
|
|
|
|
|
msgs.freeROM || "",
|
|
|
|
|
msgs.cma || "",
|
|
|
|
|
msgs.i1Version || "",
|
|
|
|
@ -1266,13 +1333,19 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 如果需要处理 msgs 数据,可以在这里添加逻辑
|
|
|
|
|
// 将数据添加到 CSV 内容中
|
|
|
|
|
csvContent += rawReportData.join(",") + "\n";
|
|
|
|
|
//csvContent += rawReportData.join(",") + "\n";
|
|
|
|
|
csvContent +=
|
|
|
|
|
rawReportData.map((value) => `"${value}"`).join(",") + "\n"; // 对每个值使用双引号
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 创建一个 Blob 对象,并指定其类型为 text/csv 以及编码为 UTF-8
|
|
|
|
|
// 获取当前时间并格式化
|
|
|
|
|
const now = this.$moment(new Date());
|
|
|
|
|
const formattedTime = now.format("YYYY年MM月DD日HH时mm分"); // 格式化时间字符串,例如 "2023-04-01_15_30_00"
|
|
|
|
|
console.log(formattedTime);
|
|
|
|
|
// 创建CSV文件的Blob对象
|
|
|
|
|
const blob = new Blob([csvContent], { type: "text/csv;charset=utf-8" });
|
|
|
|
|
// 使用 FileSaver 保存文件
|
|
|
|
|
saveAs(blob, "运维数据报表.csv");
|
|
|
|
|
// 使用FileSaver.js保存文件,文件名后加上当前时间
|
|
|
|
|
saveAs(blob, `运维数据报表_${formattedTime}.csv`);
|
|
|
|
|
},
|
|
|
|
|
// 保存选中的数据id,row-key就是要指定一个key标识这一行的数据
|
|
|
|
|
getRowKey(row) {
|
|
|
|
@ -1646,6 +1719,7 @@ export default {
|
|
|
|
|
localStorage.setItem("AIcheck", this.AIcheck);
|
|
|
|
|
localStorage.setItem("MCUcheck", this.MCUcheck);
|
|
|
|
|
localStorage.setItem("freecheck", this.freecheck);
|
|
|
|
|
localStorage.setItem("notecheck", this.notecheck);
|
|
|
|
|
|
|
|
|
|
this.adjustTableHeight();
|
|
|
|
|
},
|
|
|
|
@ -1656,6 +1730,7 @@ export default {
|
|
|
|
|
this.checkAllYW = localStorage.getItem("checkAllYW", this.checkAllYW)
|
|
|
|
|
? JSON.parse(localStorage.getItem("checkAllYW"))
|
|
|
|
|
: false;
|
|
|
|
|
|
|
|
|
|
this.gycheck = localStorage.getItem("gycheck")
|
|
|
|
|
? JSON.parse(localStorage.getItem("gycheck"))
|
|
|
|
|
: true;
|
|
|
|
@ -1705,6 +1780,9 @@ export default {
|
|
|
|
|
this.freecheck = localStorage.getItem("freecheck")
|
|
|
|
|
? JSON.parse(localStorage.getItem("freecheck"))
|
|
|
|
|
: false;
|
|
|
|
|
this.notecheck = localStorage.getItem("notecheck")
|
|
|
|
|
? JSON.parse(localStorage.getItem("notecheck"))
|
|
|
|
|
: false;
|
|
|
|
|
|
|
|
|
|
console.log(
|
|
|
|
|
"规约:" + this.gycheck,
|
|
|
|
@ -1715,7 +1793,7 @@ export default {
|
|
|
|
|
"重启次数:" + this.cqcheck,
|
|
|
|
|
"sim卡:" + this.simcheck,
|
|
|
|
|
"cma服务器:" + this.cmacheck,
|
|
|
|
|
"版本:" + this.bbcheck
|
|
|
|
|
"版本:" + this.ywbbcheck
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
adjustTableHeight() {
|
|
|
|
@ -1770,6 +1848,30 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//更新备注
|
|
|
|
|
handlecolEditClick({ $index, row }) {
|
|
|
|
|
this.cellIndex = $index;
|
|
|
|
|
},
|
|
|
|
|
handleCommentBlur({ row }) {
|
|
|
|
|
console.log(row);
|
|
|
|
|
updComment({
|
|
|
|
|
id: row.id,
|
|
|
|
|
comment: row.comment,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.data) {
|
|
|
|
|
this.cellIndex = null;
|
|
|
|
|
} else {
|
|
|
|
|
this.$message({
|
|
|
|
|
duration: 1500,
|
|
|
|
|
showClose: true,
|
|
|
|
|
message: res.errorMsg,
|
|
|
|
|
type: "error",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy() {
|
|
|
|
|
window.removeEventListener("resize", this.calculateHeight);
|
|
|
|
@ -1789,11 +1891,14 @@ export default {
|
|
|
|
|
.el-form-item--small.el-form-item {
|
|
|
|
|
margin-bottom: 0px;
|
|
|
|
|
}
|
|
|
|
|
.el-select {
|
|
|
|
|
width: 158px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.zzMsg {
|
|
|
|
|
display: flex;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
margin-right: 48px;
|
|
|
|
|
margin-right: 44px;
|
|
|
|
|
.total {
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
//width: 100%;
|
|
|
|
@ -1802,7 +1907,7 @@ export default {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #333;
|
|
|
|
|
span {
|
|
|
|
|
margin-right: 12px;
|
|
|
|
|
margin-right: 4px;
|
|
|
|
|
}
|
|
|
|
|
.el-tag--info {
|
|
|
|
|
color: #333;
|
|
|
|
@ -1813,7 +1918,17 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#ywTable {
|
|
|
|
|
.el-input--small .el-input__inner {
|
|
|
|
|
height: 20px;
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.plTableBox {
|
|
|
|
|
/* 横向滚动条的整体样式 */
|
|
|
|
|
// ::-webkit-scrollbar {
|
|
|
|
|
// height: 12px; /* 尝试设置滚动条的宽度,但这可能不会在所有浏览器上生效 */
|
|
|
|
|
// }
|
|
|
|
|
.el-table {
|
|
|
|
|
thead {
|
|
|
|
|
color: #333;
|
|
|
|
@ -1831,8 +1946,8 @@ export default {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.cell {
|
|
|
|
|
padding-left: 4px;
|
|
|
|
|
padding-right: 4px;
|
|
|
|
|
padding-left: 4px !important;
|
|
|
|
|
padding-right: 4px !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.hbClass {
|
|
|
|
@ -1850,6 +1965,9 @@ export default {
|
|
|
|
|
.has-color td.el-table__cell {
|
|
|
|
|
background: #ffb8b8 !important;
|
|
|
|
|
}
|
|
|
|
|
.el-table__fixed::before {
|
|
|
|
|
height: 0px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.ywTableBox {
|
|
|
|
|
color: #333;
|
|
|
|
@ -1963,6 +2081,7 @@ export default {
|
|
|
|
|
right: 0;
|
|
|
|
|
top: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.drawerBox {
|
|
|
|
|
.el-drawer {
|
|
|
|
|
width: 240px !important;
|
|
|
|
|