From ebfc739bdbbc0dd0fccd0bf47b7d2d5397c3c511 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Fri, 22 Mar 2024 12:44:21 +0800
Subject: [PATCH] 轮播图片
---
src/views/district/index.vue | 36 ++++++++++++++----------------------
1 files changed, 14 insertions(+), 22 deletions(-)
diff --git a/src/views/district/index.vue b/src/views/district/index.vue
index b47dd06..234c45e 100644
--- a/src/views/district/index.vue
+++ b/src/views/district/index.vue
@@ -32,14 +32,16 @@
datetime: "",
selectionList: [],
option: {
- labelWidth: 120,
+ labelWidth: 96,
+ searchLabelWidth: 96,
+ searchShow: true,
+ searchMenuSpan: 3,
+ menuWidth: 210,
+
height: "auto",
calcHeight: 54,
dialogWidth: 950,
tip: false,
- searchShow: true,
- searchMenuSpan: 3,
- menuWidth: 280,
border: true,
//stripe:true,
index: true,
@@ -54,6 +56,7 @@
prop: "name",
searchSpan: 4,
search: true,
+ searchLabelWidth: 76,
span: 12,
rules: [
{
@@ -67,12 +70,11 @@
{
width: 110,
- overHidden: true,
+ label: "所属街道",
parent: false,
addDisplay: false,
editDisplay: false,
viewDisplay: false,
- label: "所属街道",
prop: "townStreetName",
search: true,
searchSpan: 4
@@ -81,8 +83,8 @@
{
width: 156,
overHidden: true,
- parent: false,
label: "所属社区",
+ parent: false,
prop: "communityCode",
search: true,
searchSpan: 4,
@@ -105,10 +107,10 @@
{
width: 110,
overHidden: true,
+ label: "所属网格",
addDisplay: false,
editDisplay: false,
viewDisplay: false,
- label: "所属网格",
prop: "gridName",
},
@@ -315,20 +317,11 @@
this.onLoad(this.page, this.query)
},
onLoad (page, params = {}) {
- const { dateTime, communityCode } = this.query
- let values = {
- ...params,
- }
+ this.loading = true
- if (dateTime) {
- values = {
- ...params,
- startTime: dateTime[0],
- endTime: dateTime[1],
- ...this.query,
- }
- values.dateTime = null
- }
+ let values = Object.assign(params, this.query)
+
+ const { communityCode } = this.query
if (communityCode) {
values = {
@@ -339,7 +332,6 @@
delete values.communityCode
}
- this.loading = true
getList(page.currentPage, page.pageSize, values).then((res) => {
const data = res.data.data
this.page.total = data.total
--
Gitblit v1.9.3