| | |
| | | update, |
| | | getDetatil, |
| | | getDetatils |
| | | } from "@/api/userHouse/list/house.js" |
| | | } from "@/ssoapi/userHouse/list/house.js" |
| | | import { |
| | | removeHouseholdLabel, |
| | | saveOrUpdateHouseholdLabel |
| | | } from "@/api/userHouse/list/userHouseList.js" |
| | | } from "@/ssoapi/userHouse/list/userHouseList.js" |
| | | import { |
| | | getLabelList, |
| | | } from '@/api/label/label' |
| | | } from '@/ssoapi/label/label' |
| | | import { |
| | | exportBlob |
| | | } from "@/api/common" |
| | | } from "@/ssoapi/common" |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | |
| | | label: "小区名称", |
| | | prop: "districtCode", |
| | | type: 'tree', |
| | | dicUrl: `/api/blade-district/district/getDistrictTree`, |
| | | dicUrl: `/ssoapi/blade-district/district/getDistrictTree`, |
| | | props: { |
| | | label: "name", |
| | | value: "id" |
| | |
| | | prop: "neiCode", |
| | | search: false, |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/region/tree", |
| | | dicUrl: "/ssoapi/blade-system/region/tree", |
| | | props: { |
| | | label: "name", |
| | | value: "id", |
| | |
| | | value: "gridCode", |
| | | }, |
| | | dicUrl: |
| | | "/api/blade-grid/grid/getGridList?communityCode={{neiCode}}", |
| | | "/ssoapi/blade-grid/grid/getGridList?communityCode={{neiCode}}", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | listType: "picture-card", |
| | | dataType: "string", |
| | | multiple: true, |
| | | action: "/api/blade-resource/oss/endpoint/put-file", |
| | | action: "/ssoapi/blade-resource/oss/endpoint/put-file", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | |
| | | res: 'data' |
| | | }, |
| | | tip: '请上传 .xls,.xlsx 标准格式文件', |
| | | action: "/api/blade-system/user/import-user" |
| | | action: "/ssoapi/blade-system/user/import-user" |
| | | }, |
| | | { |
| | | label: "数据覆盖", |
| | |
| | | } |
| | | data = Qs.stringify(data) |
| | | exportBlob( |
| | | `/api/blade-house/house/export-house?${this.website.tokenHeader}=${getToken()}&` + data |
| | | `/ssoapi/blade-house/house/export-house?${this.website.tokenHeader}=${getToken()}&` + data |
| | | ).then(res => { |
| | | downloadXls(res.data, `房屋数据表${dateNow()}.xlsx`) |
| | | NProgress.done() |
| | |
| | | }) |
| | | }, |
| | | handleTemplate () { |
| | | exportBlob(`/api/blade-system/user/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => { |
| | | exportBlob(`/ssoapi/blade-system/user/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => { |
| | | downloadXls(res.data, "房屋数据模板.xlsx") |
| | | }) |
| | | }, |