| | |
| | | add as householdAdd, |
| | | update as householdUpdate, |
| | | getDetatil as getHouseholdDetatil |
| | | } from "@/api/userHouse/list/houseHold.js" |
| | | } from "@/ssoapi/userHouse/list/houseHold.js" |
| | | import { |
| | | getList, |
| | | getPageList, |
| | |
| | | add, |
| | | update, |
| | | getDetatil |
| | | } from "@/api/userHouse/list/houseRental.js" |
| | | } from "@/ssoapi/userHouse/list/houseRental.js" |
| | | import { |
| | | getList as getHouseList, |
| | | getDetatil as getHouseDetail |
| | | } from "@/api/userHouse/list/house.js" |
| | | } from "@/ssoapi/userHouse/list/house.js" |
| | | import { |
| | | exportBlob |
| | | } from "@/api/common" |
| | | } from "@/ssoapi/common" |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | |
| | | // label: "关系", |
| | | // prop: "relationship", |
| | | // type: "select", |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=roleRelation", |
| | | // dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=roleRelation", |
| | | // dataType: "number", |
| | | // props: { |
| | | // label: "dictValue", |
| | |
| | | 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", |
| | |
| | | search: true, |
| | | dataType: "number", |
| | | width: 100, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=rentalUseType", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=rentalUseType", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey", |
| | |
| | | width: 80, |
| | | type: "upload", |
| | | listType: "picture-img", |
| | | action: "/api/blade-resource/oss/endpoint/put-file", |
| | | action: "/ssoapi/blade-resource/oss/endpoint/put-file", |
| | | propsHttp: { |
| | | 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-houseRental/houseRental/export-houseRental?${this.website.tokenHeader}=${getToken()}&` + |
| | | `/ssoapi/blade-houseRental/houseRental/export-houseRental?${this.website.tokenHeader}=${getToken()}&` + |
| | | data |
| | | ).then(res => { |
| | | downloadXls(res.data, `出租信息数据表${dateNow()}.xlsx`) |
| | |
| | | }) |
| | | }, |
| | | 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") |
| | | }) |
| | | }, |