修复报错问题,更改渲染格式
This commit is contained in:
@@ -41,17 +41,19 @@
|
||||
scope.row.os == "android" ? "安卓" : "苹果"
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="sim卡信息" width="200"
|
||||
<el-table-column align="center" label="sim卡信息" width="150"
|
||||
><template v-slot="scope">
|
||||
<div v-html="tableArrFormat(scope.row)"></div>
|
||||
<div v-html="tableArrFormat(scope.row)"></div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="系统语言"
|
||||
<el-table-column align="center" label="系统语言" width="200"
|
||||
><template v-slot="scope">{{
|
||||
scope.row.lang == "zh-CN,zh-CN" ? "简体中文" : scope.row.lang
|
||||
scope.row.lang == "zh-CN,zh-CN"
|
||||
? `${scope.row.lang}【简体中文】`
|
||||
: scope.row.lang
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="操作" width="400">
|
||||
<el-table-column align="center" label="操作" width="300">
|
||||
<template v-slot="scope">
|
||||
<el-button
|
||||
@click="unfreeze(scope.row)"
|
||||
@@ -261,14 +263,40 @@ export default {
|
||||
this.getData();
|
||||
},
|
||||
tableArrFormat(val) {
|
||||
console.log('aaaaaaaaaaaaa',val.simCards);
|
||||
console.log("aaaaaaaaaaaaa", val.simCards);
|
||||
var str = "";
|
||||
if(val.simCards.length<=0){
|
||||
return
|
||||
if (!val.simCards) {
|
||||
return;
|
||||
}
|
||||
val.simCards.forEach((res, i) => {
|
||||
str += `
|
||||
sim卡${i + 1}: ${res ? res : "空"}<br>
|
||||
sim卡${i + 1}: ${
|
||||
res == 452
|
||||
? "越南"
|
||||
: res == 454
|
||||
? "香港"
|
||||
: res == 460
|
||||
? "中国"
|
||||
: res == 466
|
||||
? "台湾"
|
||||
: res == 456
|
||||
? "柬埔寨"
|
||||
: res == 502
|
||||
? "马来西亚"
|
||||
: res == 525
|
||||
? "新加坡"
|
||||
: res == 510
|
||||
? "印尼"
|
||||
: res == 414
|
||||
? "缅甸"
|
||||
: res == 515
|
||||
? "菲律宾"
|
||||
: res == 520
|
||||
? "泰国"
|
||||
: res == 457
|
||||
? "老挝"
|
||||
: res
|
||||
}<br>
|
||||
`;
|
||||
});
|
||||
return str;
|
||||
|
Reference in New Issue
Block a user