| | |
| | | label: "区划等级", |
| | | prop: "regionLevel", |
| | | type: "radio", |
| | | dicUrl: "/api/blade-system/dict/dictionary?code=region", |
| | | dicUrl: "/api/-system/dict/dictionary?code=region", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | |
| | | res: 'data' |
| | | }, |
| | | tip: '请上传 .xls,.xlsx 标准格式文件', |
| | | action: "/api/blade-system/region/import-region" |
| | | action: "/api/-system/region/import-region" |
| | | }, |
| | | { |
| | | label: "数据覆盖", |
| | |
| | | value: 'code' |
| | | }, |
| | | cascader: ['city'], |
| | | dicUrl: '/api/blade-system/region/select', |
| | | dicUrl: '/api/-system/region/select', |
| | | span: 24, |
| | | }, |
| | | { |
| | |
| | | }, |
| | | cascader: ['district'], |
| | | dicFlag: false, |
| | | dicUrl: '/api/blade-system/region/select?code={{province}}', |
| | | dicUrl: '/api/-system/region/select?code={{province}}', |
| | | span: 24, |
| | | }, |
| | | { |
| | |
| | | value: 'code' |
| | | }, |
| | | dicFlag: false, |
| | | dicUrl: '/api/blade-system/region/select?code={{city}}', |
| | | dicUrl: '/api/-system/region/select?code={{city}}', |
| | | span: 24, |
| | | } |
| | | ] |
| | |
| | | 'excelForm.isCovered'() { |
| | | if (this.excelForm.isCovered !== '') { |
| | | const column = this.findObject(this.excelOption.column, "excelFile"); |
| | | column.action = `/api/blade-system/region/import-region?isCovered=${this.excelForm.isCovered}`; |
| | | column.action = `/api/-system/region/import-region?isCovered=${this.excelForm.isCovered}`; |
| | | } |
| | | } |
| | | }, |
| | |
| | | type: "warning" |
| | | }).then(() => { |
| | | NProgress.start(); |
| | | exportBlob(`/api/blade-system/region/export-region?${this.website.tokenHeader}=${getToken()}`).then(res => { |
| | | exportBlob(`/api/-system/region/export-region?${this.website.tokenHeader}=${getToken()}`).then(res => { |
| | | downloadXls(res.data, `行政区划数据${dateNow()}.xlsx`); |
| | | NProgress.done(); |
| | | }) |
| | | }); |
| | | }, |
| | | handleTemplate() { |
| | | exportBlob(`/api/blade-system/region/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => { |
| | | exportBlob(`/api/-system/region/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => { |
| | | downloadXls(res.data, "行政区划模板.xlsx"); |
| | | }) |
| | | }, |