|
@@ -87,7 +87,7 @@
|
|
<el-table-column label="所属区域" prop="provinceCode" :resizable="false" min-width="150" align="center">
|
|
<el-table-column label="所属区域" prop="provinceCode" :resizable="false" min-width="150" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<span>{{
|
|
<span>{{
|
|
- scope.row.province + "-" + scope.row.city + "-" + scope.row.district
|
|
|
|
|
|
+ provinceCodeFormat(scope.row)
|
|
}}</span>
|
|
}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -402,5 +402,21 @@
|
|
const handleMigration = (falg) =>{
|
|
const handleMigration = (falg) =>{
|
|
migrationViewRef.value.open(falg);
|
|
migrationViewRef.value.open(falg);
|
|
}
|
|
}
|
|
|
|
+ const provinceCodeFormat = (row)=>{
|
|
|
|
+ const array = [];
|
|
|
|
+ if(row.province !== undefined && row.province.length > 0 ){
|
|
|
|
+ array.push(row.province);
|
|
|
|
+ }
|
|
|
|
+ if(row.city !== undefined && row.city.length > 0 ){
|
|
|
|
+ array.push(row.city);
|
|
|
|
+ }
|
|
|
|
+ if(row.district !== undefined && row.district.length > 0 ){
|
|
|
|
+ array.push(row.district);
|
|
|
|
+ }
|
|
|
|
+ // array.push(row.province || "");
|
|
|
|
+ // array.push(row.city|| "");
|
|
|
|
+ // array.push(row.district|| "");
|
|
|
|
+ return array.join('-');
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
<style scope></style>
|
|
<style scope></style>
|