zrj
2024-06-07 fa0fc3195858a592d2ad1bdad0fa6126602ebf55
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,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: [
                            {
@@ -80,14 +83,14 @@
                    {
                        width: 156,
                        overHidden: true,
                        parent: false,
                        label: "所属社区",
                        parent: false,
                        prop: "communityCode",
                        search: true,
                        searchSpan: 4,
                        searchType: 'input',
                        type: "tree",
                        dicUrl: "/api/blade-system/region/tree",
                        dicUrl: "/ssoapi/blade-system/region/tree",
                        props: {
                            label: "name",
                            value: "id"
@@ -104,10 +107,10 @@
                    {
                        width: 110,
                        overHidden: true,
                        label: "所属网格",
                        addDisplay: false,
                        editDisplay: false,
                        viewDisplay: false,
                        label: "所属网格",
                        prop: "gridName",
                    },
@@ -117,7 +120,7 @@
                        prop: "picUrl",
                        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",
@@ -130,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",
@@ -314,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 = {
@@ -338,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