| | |
| | | <el-button type="text" @click="showStringDispose(row, 'idCardflag')" |
| | | v-text="textDispose(row, 'idCardflag', 'idCard')"></el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{row}" slot="householdLabelList"> |
| | | {{ labelDispose(row.householdLabelList) }} |
| | | </template> |
| | | |
| | | <template slot-scope="{row}" slot="tenantName"> |
| | | <el-tag>{{ row.tenantName }}</el-tag> |
| | | </template> |
| | |
| | | <template slot-scope="{row}" slot="userTypeName"> |
| | | <el-tag>{{ row.userTypeName }}</el-tag> |
| | | </template> |
| | | |
| | | |
| | | </avue-crud> |
| | | <el-dialog title="用户角色配置" append-to-body :visible.sync="roleBox" width="345px" center> |
| | | |
| | |
| | | import NProgress from 'nprogress' |
| | | import 'nprogress/nprogress.css' |
| | | import Qs from "qs" |
| | | import { lintOnSave } from "../../../vue.config" |
| | | |
| | | export default { |
| | | data () { |
| | |
| | | dialogType: 'drawer', |
| | | dialogClickModal: false, |
| | | menuWidth: 280, |
| | | menuFixed: 'right', |
| | | column: [{ |
| | | label: "姓名", |
| | | prop: "name", |
| | |
| | | slot: true, |
| | | }, |
| | | { |
| | | width: 160, |
| | | label: "身份证号", |
| | | prop: "idCard", |
| | | search: true, |
| | | searchSpan: 4, |
| | | slot: true, |
| | | |
| | | }, |
| | | { |
| | | label: "性别", |
| | |
| | | { |
| | | label: "地址", |
| | | prop: "address", |
| | | display: false |
| | | }, |
| | | |
| | | { |
| | | label: "地址", |
| | | prop: "address", |
| | | display: false |
| | | }, |
| | | |
| | | { |
| | | width: 210, |
| | | label: "标签", |
| | | prop: "householdLabelList", |
| | | display: false |
| | | }, |
| | | ] |
| | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | |
| | | labelDispose () { |
| | | return (list) => { |
| | | return list.map(item => item.labelName).join(',') |
| | | } |
| | | } |
| | | }, |
| | | mounted () { }, |
| | |
| | | labelId: this.currentLabel.id |
| | | } |
| | | removeHouseholdLabel(params).then(res => { |
| | | this.onLoad(this.page) |
| | | |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | |
| | | this.labelForm.householdId = this.currentRow.id |
| | | this.labelForm.labelId = this.currentLabel.id |
| | | this.labelForm.lableType = 1 |
| | | |
| | | saveOrUpdateHouseholdLabel(this.labelForm).then(res => { |
| | | this.onLoad(this.page) |
| | | |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |