| | |
| | | add, |
| | | update, |
| | | getDetail |
| | | } from "@/api/owners/ownersCommittee.js" |
| | | } from "@/ssoapi/owners/ownersCommittee.js" |
| | | |
| | | import { |
| | | getUserByDistrictId |
| | | } from "@/api/system/user.js" |
| | | } from "@/ssoapi/system/user.js" |
| | | |
| | | // import { |
| | | // update as committeeUpdate, |
| | | // } from "@/api/owners_committee" |
| | | // } from "@/ssoapi/owners_committee" |
| | | |
| | | import { |
| | | mapGetters |
| | |
| | | type: "tree", |
| | | remote: true, |
| | | hide: true, |
| | | // dicUrl: `/api/blade-system/user/searchUserByDistrictId?districtId={{key}}`, |
| | | // dicUrl: `/ssoapi/blade-system/user/searchUserByDistrictId?districtId={{key}}`, |
| | | dicData: [], |
| | | props: { |
| | | label: 'name', |
| | |
| | | prop: "areaId", |
| | | searchSpan: 5, |
| | | type: 'tree', |
| | | dicUrl: `/api/blade-district/district/getDistrictTree`, |
| | | dicUrl: `/ssoapi/blade-district/district/getDistrictTree`, |
| | | props: { |
| | | label: "name", |
| | | value: "id" |
| | |
| | | type: "select", |
| | | hide: true, |
| | | labelWidth: 120, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=sex", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=sex", |
| | | dataType: "number", |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | type: "select", |
| | | hide: true, |
| | | labelWidth: 120, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=nationType", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=nationType", |
| | | dataType: "number", |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | type: "select", |
| | | hide: true, |
| | | labelWidth: 120, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=educationType", |
| | | dataType: "number", |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | // type: "select", |
| | | // labelWidth: 120, |
| | | // hide: true, |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=workStatusType", |
| | | // dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=workStatusType", |
| | | // dataType: "number", |
| | | // props: { |
| | | // label: "dictValue", |
| | |
| | | // type: "select", |
| | | // labelWidth: 120, |
| | | // hide: true, |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=marriageStatusType", |
| | | // dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=marriageStatusType", |
| | | // dataType: "number", |
| | | // props: { |
| | | // label: "dictValue", |
| | |
| | | prop: "profile", |
| | | component: "AvueUeditor", |
| | | options: { |
| | | action: "/api/blade-resource/oss/endpoint/put-file", |
| | | action: "/ssoapi/blade-resource/oss/endpoint/put-file", |
| | | props: { |
| | | res: "data", |
| | | url: "link", |
| | |
| | | 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") |
| | | }) |
| | | }, |