From fed36d52707c61dbff16bf75fceb6370cca54ea2 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 18 Dec 2023 17:58:29 +0800
Subject: [PATCH] 住房管理和房屋管理更改
---
src/views/userHouse/houseHoldList.vue | 35 ++++++++++++++++++++++++++++++++++-
1 files changed, 34 insertions(+), 1 deletions(-)
diff --git a/src/views/userHouse/houseHoldList.vue b/src/views/userHouse/houseHoldList.vue
index 543241f..f92c68d 100644
--- a/src/views/userHouse/houseHoldList.vue
+++ b/src/views/userHouse/houseHoldList.vue
@@ -32,6 +32,11 @@
<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>
@@ -44,6 +49,8 @@
<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>
@@ -139,6 +146,7 @@
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import Qs from "qs"
+import { lintOnSave } from "../../../vue.config"
export default {
data () {
@@ -171,6 +179,7 @@
dialogType: 'drawer',
dialogClickModal: false,
menuWidth: 280,
+ menuFixed: 'right',
column: [{
label: "姓名",
prop: "name",
@@ -185,12 +194,12 @@
slot: true,
},
{
+ width: 160,
label: "身份证号",
prop: "idCard",
search: true,
searchSpan: 4,
slot: true,
-
},
{
label: "性别",
@@ -230,6 +239,19 @@
{
label: "地址",
prop: "address",
+ display: false
+ },
+
+ {
+ label: "地址",
+ prop: "address",
+ display: false
+ },
+
+ {
+ width: 210,
+ label: "标签",
+ prop: "householdLabelList",
display: false
},
]
@@ -348,6 +370,12 @@
}
}
}
+ },
+
+ labelDispose () {
+ return (list) => {
+ return list.map(item => item.labelName).join(',')
+ }
}
},
mounted () { },
@@ -359,6 +387,8 @@
labelId: this.currentLabel.id
}
removeHouseholdLabel(params).then(res => {
+ this.onLoad(this.page)
+
this.$message({
type: "success",
message: "操作成功!"
@@ -372,7 +402,10 @@
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: "操作成功!"
--
Gitblit v1.9.3