| | |
| | | v-model="form" :permission="permissionList" @row-del="rowDel" @row-update="rowUpdate" @row-save="rowSave" |
| | | :before-open="beforeOpen" :page.sync="page" @search-change="searchChange" @search-reset="searchReset" |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <!-- <template slot="menuLeft"> |
| | | <el-button type="danger" size="small" plain icon="el-icon-delete" v-if="permission.household_delete" |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | <el-button type="success" size="small" plain v-if="this.permission.household_import" icon="el-icon-upload2" |
| | | @click="handleImport">导入 |
| | | </el-button> |
| | | <el-button type="warning" size="small" plain v-if="this.permission.household_export" icon="el-icon-download" |
| | | @click="handleExport">导出 |
| | | </el-button> |
| | | </template> --> |
| | | @refresh-change="refreshChange"> |
| | | |
| | | <template slot-scope="{row, size}" slot="menu"> |
| | | <el-button :size="size" type="text" icon="el-icon-circle-plus-outline" v-if="permission.househould_manager" |
| | |
| | | </el-dialog> |
| | | |
| | | <el-dialog title="标签管理" append-to-body :visible.sync="labelFlag" center width="600px"> |
| | | <div v-for="(item, index) in labelData" :key="index"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <div> |
| | | <el-divider content-position="left">{{ item.name }}</el-divider> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <div class="grid-container2" v-if="item.children"> |
| | | <div class="grid-item" :style="{ backgroundColor: item2.color }" v-for="(item2, index2) in item.children" |
| | | <div> |
| | | <div class="grid-container2"> |
| | | <div class="grid-item" :style="{ backgroundColor: item2.color }" v-for="(item2, index2) in labelData" |
| | | @click="changLabel(item2)" :key="index2"> |
| | | {{ item2.name }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="labelFlag = false">取 消</el-button> |
| | | <el-button type="primary" @click="submitRole">确 定</el-button> |
| | | </span> --> |
| | | </el-dialog> |
| | | |
| | | <el-dialog :title="'编辑标签 ' + currentLabel.name" append-to-body :visible.sync="editLabelFlge" width="655px"> |
| | |
| | | |
| | | <script> |
| | | import { |
| | | getList, |
| | | getKeynotePersonnelPage, |
| | | remove, |
| | | add, |
| | | 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" |
| | |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | viewBtn: true, |
| | | addBtn: true, |
| | | viewBtn: false, |
| | | addBtn: false, |
| | | delBtn: false, |
| | | editBtn: false, |
| | | dialogType: 'drawer', |
| | | dialogClickModal: false, |
| | | menuFixed: 'right', |
| | |
| | | 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", |
| | | hide: true, |
| | | props: { |
| | |
| | | label: "证件类型", |
| | | prop: "cardType", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=cardType", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=cardType", |
| | | dataType: "number", |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | prop: "residentialStatus", |
| | | type: "select", |
| | | hide: true, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=residentialStatusType", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=residentialStatusType", |
| | | dataType: "number", |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | label: "是否主要联系人", |
| | | prop: "isPrimaryContact", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=primaryContactType", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=primaryContactType", |
| | | dataType: "number", |
| | | hide: true, |
| | | props: { |
| | |
| | | // label: "关系", |
| | | // prop: "roleType", |
| | | // type: "select", |
| | | // dicUrl: "/api/blade-system/dict-biz/dictionary?code=roleType", |
| | | // dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=roleType", |
| | | // dataType: "number", |
| | | // props: { |
| | | // label: "dictValue", |
| | |
| | | label: 'name', |
| | | value: 'id' |
| | | }, |
| | | dicUrl: `/api/blade-system/region/getBaseTree`, |
| | | dicUrl: `/ssoapi/blade-system/region/getBaseTree`, |
| | | }, |
| | | |
| | | { |
| | |
| | | label: "户籍类型", |
| | | prop: "residentType", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=residentType", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=residentType", |
| | | dataType: "number", |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | label: 'name', |
| | | value: 'id' |
| | | }, |
| | | dicUrl: `/api/blade-system/region/getBaseTree`, |
| | | dicUrl: `/ssoapi/blade-system/region/getBaseTree`, |
| | | }, |
| | | |
| | | { |
| | |
| | | label: 'name', |
| | | value: 'code' |
| | | }, |
| | | dicUrl: `/api/blade-system/region/select?code=361102`, |
| | | dicUrl: `/ssoapi/blade-system/region/select?code=361102`, |
| | | }, |
| | | |
| | | { |
| | |
| | | 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", |
| | |
| | | prop: "education", |
| | | type: "select", |
| | | hide: true, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=educationType", |
| | | dataType: "number", |
| | | props: { |
| | | label: "dictValue", |
| | |
| | | prop: "workStatus", |
| | | type: "select", |
| | | 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", |
| | |
| | | prop: "maritalStatus", |
| | | type: "select", |
| | | 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", |
| | |
| | | label: "健康状态", |
| | | prop: "healthStatus", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=healthStatus", |
| | | dicUrl: "/ssoapi/blade-system/dict-biz/dictionary?code=healthStatus", |
| | | 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: "数据覆盖", |
| | |
| | | mounted() {}, |
| | | methods: { |
| | | init(row) { |
| | | |
| | | if (row.regionCode) { |
| | | this.query.regionCode = row.regionCode.slice(0, 10) |
| | | } |
| | | if (row.communityCode) { |
| | | this.query.regionCode = row.communityCode |
| | | } |
| | | this.query.labelId = row.labelId |
| | | this.query.parentId = 103 |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onsubmit() { |
| | | if (this.labelForm.color === '#EBEDF0') { |
| | |
| | | this.labelForm.houseCode = this.currentRow.houseCode |
| | | this.labelForm.householdId = this.currentRow.id |
| | | this.labelForm.labelId = this.currentLabel.id |
| | | this.labelForm.userId = this.currentRow.associatedUserId |
| | | this.labelForm.lableType = 1 |
| | | |
| | | saveOrUpdateHouseholdLabel(this.labelForm).then(res => { |
| | |
| | | this.currentRow = item |
| | | this.labelFlag = true |
| | | let params = { |
| | | parentId: 1000 |
| | | parentId: 103 |
| | | } |
| | | // 查询标签 |
| | | getLabelList(Object.assign(params)).then(res => { |
| | |
| | | } |
| | | 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") |
| | | }) |
| | | }, |
| | |
| | | onLoad(page, params = {}) { |
| | | this.loading = true |
| | | |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | getKeynotePersonnelPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | const data = { |
| | | ...res.data.data, |
| | | records: res.data.data.records.map(item => { |
| | |
| | | .box .el-scrollbar__wrap { |
| | | overflow: scroll; |
| | | } |
| | | </style> |
| | | </style> |