From 37bdbfe57736dda2b2ee368f90ac7e27f26bacda Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 07 Jun 2024 13:55:52 +0800
Subject: [PATCH] 环境api 修改

---
 src/views/district/index.vue |   59 ++++++++++++++++++++++++++++-------------------------------
 1 files changed, 28 insertions(+), 31 deletions(-)

diff --git a/src/views/district/index.vue b/src/views/district/index.vue
index dd07e86..d152a5d 100644
--- a/src/views/district/index.vue
+++ b/src/views/district/index.vue
@@ -15,7 +15,7 @@
 </template>
 
 <script>
-import { getList, remove, update, add, getDistrict } from "@/api/district/index"
+import { getList, remove, update, add, getDistrict } from "@/ssoapi/district/index"
 import { mapGetters } from "vuex"
 import website from '@/config/website'
 export default {
@@ -32,13 +32,16 @@
             datetime: "",
             selectionList: [],
             option: {
+                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,
@@ -47,13 +50,14 @@
                 dialogClickModal: false,
                 column: [
                     {
-                        label: "小区名称",
+                        width: 220,
+                        overHidden: true,
+                        label: '小区名称',
                         prop: "name",
                         searchSpan: 4,
                         search: true,
+                        searchLabelWidth: 76,
                         span: 12,
-                        labelWidth: 120,
-                        width: 220,
                         rules: [
                             {
                                 required: true,
@@ -65,27 +69,28 @@
 
 
                     {
+                        width: 110,
+                        label: "所属街道",
                         parent: false,
                         addDisplay: false,
                         editDisplay: false,
                         viewDisplay: false,
-                        width: 96,
-                        label: "所属街道",
                         prop: "townStreetName",
                         search: true,
                         searchSpan: 4
                     },
 
                     {
-                        parent: false,
+                        width: 156,
+                        overHidden: true,
                         label: "所属社区",
+                        parent: false,
                         prop: "communityCode",
                         search: true,
                         searchSpan: 4,
                         searchType: 'input',
-                        width: 150,
                         type: "tree",
-                        dicUrl: "/api/blade-system/region/tree",
+                        dicUrl: "/ssoapi/blade-system/region/tree",
                         props: {
                             label: "name",
                             value: "id"
@@ -100,21 +105,22 @@
                     },
 
                     {
+                        width: 110,
+                        overHidden: true,
+                        label: "所属网格",
                         addDisplay: false,
                         editDisplay: false,
                         viewDisplay: false,
-                        width: 96,
-                        label: "所属网格",
                         prop: "gridName",
                     },
 
                     {
+                        width: 110,
                         label: "小区图片",
                         prop: "picUrl",
-                        width: 80,
                         type: "upload",
                         listType: "picture-img",
-                        action: "/api/blade-resource/oss/endpoint/put-file",
+                        action: "/ssoapi/blade-resource/oss/endpoint/put-file",
                         propsHttp: {
                             res: "data",
                             url: "link",
@@ -127,7 +133,7 @@
                         prop: "remark",
                         component: "AvueUeditor",
                         options: {
-                            action: "/api/blade-resource/oss/endpoint/put-file",
+                            action: "/ssoapi/blade-resource/oss/endpoint/put-file",
                             props: {
                                 res: "data",
                                 url: "link",
@@ -142,6 +148,7 @@
                         label: "地址",
                         prop: "address",
                         span: 24,
+                        overHidden: true,
                         rules: [
                             {
                                 required: true,
@@ -310,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 = {
@@ -334,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