zhongrj
2023-11-18 f6a92065c83f146f8a4d278a61b3db1f55780eb8
解决一些加载问题,minio 图片基础路径修改
9 files modified
66 ■■■■ changed files
common/setting.js 8 ●●●● patch | view | raw | blame | history
subPackage/house/houseNumber/index.vue 27 ●●●●● patch | view | raw | blame | history
subPackage/house/member/householdLabel.vue 10 ●●●● patch | view | raw | blame | history
subPackage/house/roomControl/index.vue 2 ●●● patch | view | raw | blame | history
subPackage/house/roomDetails/index.vue 1 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/cscj.vue 8 ●●●●● patch | view | raw | blame | history
subPackage/workbench/views/cshw.vue 3 ●●●●● patch | view | raw | blame | history
subPackage/workbench/views/csjl.vue 4 ●●● patch | view | raw | blame | history
subPackage/workbench/views/rental.vue 3 ●●●● patch | view | raw | blame | history
common/setting.js
@@ -11,11 +11,11 @@
    // 开发环境接口Url
    // devUrl: 'https://sk.hubeishuiyi.cn',
    // devUrl: 'http://192.168.1.156:9528',
    // devUrl:'http://192.168.1.50:9528',
    devUrl: 'http://192.168.0.102:9528',
    devUrl:'http://192.168.1.50:9528',
    // devUrl: 'http://192.168.0.102:9528',
    // devUrl: 'https://srgdjczzxtpt.com:2080/api',
    // minioBaseUrl: "https://srgdjczzxtpt.com:2080/gminio/jczz/",
    minioBaseUrl: 'https://srgdjczzxtpt.com:2080/',
    minioBaseUrl: "https://srgdjczzxtpt.com:2080/gminio/jczz/",
    // minioBaseUrl: 'https://srgdjczzxtpt.com:2080/',
    // 数据中台接口url
    // dataCenterUrl: 'http://10.10.2.192/services',
    dataCenterUrl: 'https://sk.hubeishuiyi.cn/services',
subPackage/house/houseNumber/index.vue
@@ -63,6 +63,7 @@
        getPlaceDetail
    } from '@/api/place/place.js'
    import boxTitle from '../components/boxTitle/index2.vue'
    import { minioBaseUrl } from "../../../common/setting";
    export default {
        components: {
            lineItem,
@@ -205,16 +206,12 @@
        },
        methods: {
            async getBuildingDetail() {
                this.$refs.uToast.show({
                    type: 'loading',
                    message: '正在加载',
                    duration: 9999999
                })
                // const {
                //     code,
                //     data
                // } = await getDoorplateAddressDetail({
                //     stdId: this.stdId
                // this.$nextTick(() => {
                //     this.$refs.uToast.show({
                //         type: 'loading',
                //         message: '正在加载',
                //         duration: 9999999
                //     })
                // })
                const {
                    code,
@@ -222,7 +219,6 @@
                } = await getPlaceDetail({
                    houseCode: this.stdId
                })
                console.log(data);
                if (code !== 200) {
                    uni.showToast({
                        title: "数据请求失败",
@@ -231,6 +227,7 @@
                    })
                    return
                }
                if(data){
                const doorplateAddressEntity = data?.doorplateAddressEntity || {}
                const placePoiLabelVOList = data?.placePoiLabelVOList || {}
                this.houseNumberData.forEach(item => {
@@ -264,9 +261,11 @@
                        item.value = data.doorplateAddressEntity[item.name] || '未完善'
                    } else {
                        item.value = data[item.name] || '未完善'
                            if(item.name == "imageUrls" ){
                                item.value = minioBaseUrl + data[item.name] || '未完善'
                            }
                    }
                })
                this.policeData.forEach(item => {
                    if (!data[item.name]) {
@@ -291,9 +290,7 @@
                    latitude: lat,
                    longitude: lng,
                }]
                this.$nextTick(() => {
                    this.$refs.uToast.isShow = false
                })
                }
            },
            imgPreview(value) {
                uni.previewImage({
subPackage/house/member/householdLabel.vue
@@ -119,11 +119,11 @@
        created() {},
        mounted() {
            this.getDoorPlateAddressDetail()
            this.$nextTick(() => {
                if (this.labelBtnList.length === 0) {
                    this.getLabelList()
                }
            })
            // this.$nextTick(() => {
            //     if (this.labelBtnList.length === 0) {
            //         this.getLabelList()
            //     }
            // })
        },
        onLoad(option) {
            const data = JSON.parse(option.data);
subPackage/house/roomControl/index.vue
@@ -223,7 +223,7 @@
                        imageUrls,
                        houseLabelVOList
                    } = res.data
                    if (imageUrls.length > 0) {
                    if (imageUrls && imageUrls.length > 0) {
                        const urls = imageUrls.split(',')
                        // 遍历
                        urls.forEach(e => {
subPackage/house/roomDetails/index.vue
@@ -245,7 +245,6 @@
                    householdList,
                    subAoi
                } = res.data
                console.log(res.data);
                this.houseCode = addressCode
                this.rentOutList = houseRentalList
                this.ownerInfoList = householdList
subPackage/workbench/views/cscj.vue
@@ -172,6 +172,7 @@
        format
    } from "echarts";
    import boxTitle from '../components/boxTitle/index.vue'
import { minioBaseUrl } from "../../../common/setting";
    export default {
        mixins: [uploadMixin],
        components: {
@@ -354,11 +355,9 @@
            },
            "form.buildingCode": {
                handler(newVal) {
                    console.log(newVal)
                }
            },
            showLabelList(newVal) {
                console.log(newVal);
            }
        },
@@ -505,6 +504,9 @@
                                item.value = gridEntity[item.name] || '未完善'
                            } else {
                                item.value = data[item.name] || '未完善'
                                if(item.name == "imageUrls" ){
                                    item.value = minioBaseUrl + data[item.name] || '未完善'
                                }
                            }
                        })
                        this.publicData[key].forEach(item => {
@@ -712,7 +714,7 @@
            },
            imgPreview(value) {
                uni.previewImage({
                    urls: [value],
                    urls: minioBaseUrl + [value],
                })
            },
        }
subPackage/workbench/views/cshw.vue
@@ -84,12 +84,15 @@
        },
        methods: {
            async getSiteList() {
                this.$nextTick(() => {
                this.$refs.uToast.show({
                    type: 'loading',
                    message: '正在加载',
                    duration: 9999999
                })
                this.loadingStatus = 'loadingmore'
                })
                const params = {
                    placeName: this.keyWord,
                    confirmFlag: this.tabStatus
subPackage/workbench/views/csjl.vue
@@ -70,6 +70,7 @@
        onShow() {
            this.recordsData = []
            this.currentRole = uni.getStorageSync('activeRole')
            this.getrRecordList()
        },
        onReachBottom() {
@@ -78,16 +79,17 @@
        },
        methods: {
            async getrRecordList(placeName = this.iptContext, isPerfect = this.tabsType) {
                this.$nextTick(() => {
                this.$refs.uToast.show({
                    type: 'loading',
                    message: '正在加载',
                    duration: 9999999
                })
                this.status = 'loadmore'
                })
                const {
                    roleName
                } = this.currentRole
                console.log(this.currentRole);
                const {
                    code,
                    data: {
subPackage/workbench/views/rental.vue
@@ -208,7 +208,6 @@
                    }
                }
                getStatistics(params).then(res => {
                    console.log(res, "+------------")
                    this.statistics = res.data
                })
            },
@@ -219,12 +218,14 @@
                return res.name
            },
            async getRentalHouseInfo(params = {}) {
                this.$nextTick(() => {
                this.loadingStatus = 'loadmore'
                this.$refs.uToast.show({
                    type: 'loading',
                    message: '正在加载',
                    duration: 9999999
                })
                })
                const {
                    roleName
                } = this.currentRole