From c9b3952131b7273bf4f29c00975b6d737a3aae64 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 08 Jan 2024 14:46:39 +0800
Subject: [PATCH] 走访日志和议事管理,人员选择更改
---
src/views/cGovernance/gridWorkLog.vue | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 deletions(-)
diff --git a/src/views/cGovernance/gridWorkLog.vue b/src/views/cGovernance/gridWorkLog.vue
index 9edb103..3b37650 100644
--- a/src/views/cGovernance/gridWorkLog.vue
+++ b/src/views/cGovernance/gridWorkLog.vue
@@ -20,7 +20,7 @@
</template>
<script>
-import { getAllHouseHold } from "@/api/userHouse/list/houseHold"
+import { getPersonPublicSelect } from "@/api/public"
import { getList, remove, update, add, getGridWorkLog } from "@/api/grid/gridWorkLog"
import { getList as getHouseholdList, getDetatils as getHouseholdDetail } from "@/api/userHouse/list/houseHold"
import { mapGetters } from "vuex"
@@ -128,8 +128,7 @@
},
dicData: [],
formatter: (row) => {
- this.form.phone = row.phoneNumber
- this.form.address = row.currentAddress
+ console.log(row, 1111)
return row.name
},
@@ -257,6 +256,24 @@
},
watch: {
+ "form.householdId": {
+ handler (val) {
+ if (val) {
+
+ getPersonPublicSelect({
+ id: val
+ }).then(res => {
+ const column = this.findObject(this.option.column, "householdId")
+ column.dicData = res.data.data
+
+ this.form.phone = res.data.data[0].phoneNumber
+ this.form.address = res.data.data[0].currentAddress
+ })
+
+ }
+ }
+ },
+
'form.personType': {
handler (newData) {
let householdIdColumn = this.findObject(
@@ -330,11 +347,9 @@
methods: {
getUserList (param = '') {
- let dicUrl = `/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}`
+ let dicUrl = `/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}&limit=20`
const column = this.findObject(this.option.column, "householdId")
column.dicUrl = dicUrl
-
- console.log(param, this.option.column, 9999)
},
rowSave (row, done, loading) {
@@ -455,15 +470,6 @@
})
this.form.url = urls.join(",")
}
-
- let params = {
- id: this.form.householdId
- }
-
- getAllHouseHold(params).then(res => {
- const column = this.findObject(this.option.column, "householdId")
- column.dicData = res.data.data
- })
})
}
// con
--
Gitblit v1.9.3