JeecgBoot 2.4.6版本发布

This commit is contained in:
zhangdaiscott
2021-08-13 15:26:20 +08:00
parent 986f909628
commit 664413e5d7
57 changed files with 1306 additions and 329 deletions

View File

@ -1,5 +1,3 @@
import { pcaa } from 'area-data'
/**
* 省市区
*/
@ -8,7 +6,7 @@ export default class Area {
* 构造器
* @param express
*/
constructor() {
constructor(pcaa) {
let arr = []
const province = pcaa['86']
Object.keys(province).map(key=>{
@ -17,9 +15,11 @@ export default class Area {
Object.keys(city).map(key2=>{
arr.push({id:key2, text:city[key2], pid:key, index:2});
const qu = pcaa[key2];
Object.keys(qu).map(key3=>{
arr.push({id:key3, text:qu[key3], pid:key2, index:3});
})
if(qu){
Object.keys(qu).map(key3=>{
arr.push({id:key3, text:qu[key3], pid:key2, index:3});
})
}
})
})
this.all = arr;