|
|
|
@ -70,7 +70,7 @@
|
|
|
|
|
v-loading="tableLoaidng"
|
|
|
|
|
id="ywTable"
|
|
|
|
|
ref="ywMultipleTable"
|
|
|
|
|
:data="tableDataWithEditing"
|
|
|
|
|
:data="tableData"
|
|
|
|
|
border
|
|
|
|
|
:row-style="isRed"
|
|
|
|
|
:row-key="getRowKey"
|
|
|
|
@ -359,9 +359,11 @@
|
|
|
|
|
<el-tooltip
|
|
|
|
|
class="item"
|
|
|
|
|
effect="dark"
|
|
|
|
|
:content="scope.row.raw_report.simcard2"
|
|
|
|
|
:content="scope.row.raw_report.msgs.signature2"
|
|
|
|
|
placement="top"
|
|
|
|
|
><span>{{ scope.row.raw_report.simcard2 }}</span></el-tooltip
|
|
|
|
|
><span>{{
|
|
|
|
|
scope.row.raw_report.msgs.signature2
|
|
|
|
|
}}</span></el-tooltip
|
|
|
|
|
></span
|
|
|
|
|
>
|
|
|
|
|
<span v-else>
|
|
|
|
@ -444,7 +446,7 @@
|
|
|
|
|
</u-table-column>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="SIM卡" v-if="simcheck" min-width="160" key="sim">
|
|
|
|
|
<u-table-column label="卡1" width="158" prop="simcard1">
|
|
|
|
|
<u-table-column label="卡1(ICCID)" width="158" prop="simcard1">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.raw_report.hasOwnProperty('XyDev')">
|
|
|
|
|
{{ scope.row.raw_report.simcard1 }}</span
|
|
|
|
@ -458,7 +460,7 @@
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</u-table-column>
|
|
|
|
|
<u-table-column label="卡2" width="158" prop="simcard2">
|
|
|
|
|
<u-table-column label="卡2(ICCID)" width="158" prop="simcard2">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.raw_report.hasOwnProperty('XyDev')">
|
|
|
|
|
{{ scope.row.raw_report.simcard2 }}</span
|
|
|
|
@ -1118,12 +1120,13 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
// 使用计算属性来扩展数据,为每个项目添加 isEditing 字段
|
|
|
|
|
tableDataWithEditing() {
|
|
|
|
|
return this.tableData.map((row) => ({
|
|
|
|
|
...row, // 复制原始行的所有属性
|
|
|
|
|
isEditing: false, // 添加 isEditing 字段并初始化为 false
|
|
|
|
|
}));
|
|
|
|
|
},
|
|
|
|
|
// tableDataWithEditing() {
|
|
|
|
|
// console.log(this.tableData);
|
|
|
|
|
// return this.tableData.map((row) => ({
|
|
|
|
|
// ...row, // 复制原始行的所有属性
|
|
|
|
|
// isEditing: false, // 添加 isEditing 字段并初始化为 false
|
|
|
|
|
// }));
|
|
|
|
|
// },
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
tableData: {
|
|
|
|
|