master
fanluyan 1 year ago
parent 6ad7413cb1
commit 14fafba4e4

@ -70,7 +70,7 @@
v-loading="tableLoaidng" v-loading="tableLoaidng"
id="ywTable" id="ywTable"
ref="ywMultipleTable" ref="ywMultipleTable"
:data="tableDataWithEditing" :data="tableData"
border border
:row-style="isRed" :row-style="isRed"
:row-key="getRowKey" :row-key="getRowKey"
@ -359,9 +359,11 @@
<el-tooltip <el-tooltip
class="item" class="item"
effect="dark" effect="dark"
:content="scope.row.raw_report.simcard2" :content="scope.row.raw_report.msgs.signature2"
placement="top" placement="top"
><span>{{ scope.row.raw_report.simcard2 }}</span></el-tooltip ><span>{{
scope.row.raw_report.msgs.signature2
}}</span></el-tooltip
></span ></span
> >
<span v-else> <span v-else>
@ -444,7 +446,7 @@
</u-table-column> </u-table-column>
</u-table-column> </u-table-column>
<u-table-column label="SIM卡" v-if="simcheck" min-width="160" key="sim"> <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="卡1ICCID" width="158" prop="simcard1">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.raw_report.hasOwnProperty('XyDev')"> <span v-if="scope.row.raw_report.hasOwnProperty('XyDev')">
{{ scope.row.raw_report.simcard1 }}</span {{ scope.row.raw_report.simcard1 }}</span
@ -458,7 +460,7 @@
> >
</template> </template>
</u-table-column> </u-table-column>
<u-table-column label="卡2" width="158" prop="simcard2"> <u-table-column label="卡2ICCID" width="158" prop="simcard2">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.raw_report.hasOwnProperty('XyDev')"> <span v-if="scope.row.raw_report.hasOwnProperty('XyDev')">
{{ scope.row.raw_report.simcard2 }}</span {{ scope.row.raw_report.simcard2 }}</span
@ -1118,12 +1120,13 @@ export default {
}, },
computed: { computed: {
// 使 isEditing // 使 isEditing
tableDataWithEditing() { // tableDataWithEditing() {
return this.tableData.map((row) => ({ // console.log(this.tableData);
...row, // // return this.tableData.map((row) => ({
isEditing: false, // isEditing false // ...row, //
})); // isEditing: false, // isEditing false
}, // }));
// },
}, },
watch: { watch: {
tableData: { tableData: {

@ -718,7 +718,7 @@ export default {
align-items: center; align-items: center;
.el-input { .el-input {
margin-right: 8px; margin-right: 8px;
width: 150px; width: 162px;
} }
} }
} }

Loading…
Cancel
Save