From f100ef511bfd5cb27e553a41abcb8fbd7dcc3fe4 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 16 Jan 2024 17:41:11 +0800
Subject: [PATCH] 字段添加
---
src/views/cGovernance/gridWorkLog.vue | 44 +++++++++++++++++++++++++++-----------------
1 files changed, 27 insertions(+), 17 deletions(-)
diff --git a/src/views/cGovernance/gridWorkLog.vue b/src/views/cGovernance/gridWorkLog.vue
index 9edb103..26573fb 100644
--- a/src/views/cGovernance/gridWorkLog.vue
+++ b/src/views/cGovernance/gridWorkLog.vue
@@ -20,7 +20,8 @@
</template>
<script>
-import { getAllHouseHold } from "@/api/userHouse/list/houseHold"
+import { getPersonPublicSelect } from "@/api/public"
+import { getDetatils as householdDetail } from "@/api/userHouse/list/houseHold"
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"
@@ -42,13 +43,14 @@
option: {
labelWidth: 120,
searchLabelWidth: 96,
+ searchShow: true,
+ searchMenuSpan: 3,
+ menuWidth: 210,
+
height: "auto",
calcHeight: 54,
dialogWidth: 950,
tip: false,
- searchShow: true,
- searchMenuSpan: 3,
- menuWidth: 280,
border: false,
//stripe:true,
index: true,
@@ -58,6 +60,7 @@
dialogClickModal: false,
column: [
{
+ width: 120,
label: "走访类型",
prop: "type",
span: 12,
@@ -127,12 +130,6 @@
value: 'id',
},
dicData: [],
- formatter: (row) => {
- this.form.phone = row.phoneNumber
- this.form.address = row.currentAddress
-
- return row.name
- },
rules: [
{
required: true,
@@ -151,6 +148,7 @@
searchSpan: 4,
search: true,
},
+
{
width: 156,
overHidden: true,
@@ -235,6 +233,7 @@
},
{
+ dispaly: false,
width: 144,
label: "上报时间",
prop: "createTime",
@@ -257,6 +256,21 @@
},
watch: {
+ "form.householdId": {
+ handler (val) {
+ if (val) {
+
+ householdDetail(val).then(res => {
+ let data = res.data.data
+
+ this.form.phone = data.phoneNumber
+ this.form.address = data.currentAddress
+ })
+
+ }
+ }
+ },
+
'form.personType': {
handler (newData) {
let householdIdColumn = this.findObject(
@@ -330,11 +344,9 @@
methods: {
getUserList (param = '') {
- let dicUrl = `/blade-household/household/selectHouseholdList?labelId=${param}&searchKey={{key}}`
+ let dicUrl = `/api/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) {
@@ -456,11 +468,9 @@
this.form.url = urls.join(",")
}
- let params = {
+ getPersonPublicSelect({
id: this.form.householdId
- }
-
- getAllHouseHold(params).then(res => {
+ }).then(res => {
const column = this.findObject(this.option.column, "householdId")
column.dicData = res.data.data
})
--
Gitblit v1.9.3