| | |
| | | update, |
| | | getDetatil, |
| | | getDetatils |
| | | } from "@/api/userHouse/list/houseHold.js" |
| | | } from "@/ssoapi/userHouse/list/houseHold.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" |
| | |
| | | prop: "ethnicity", |
| | | type: "select", |
| | | hide: true, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=nationType", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=nationType", |
| | | dataType: "number", |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | 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-household/household/export-household?${this.website.tokenHeader}=${getToken()}&` + data |
| | | `/ssoapi/blade-household/household/export-household?${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") |
| | | }) |
| | | }, |