diff --git a/src/apps/AppHelpEffect/AppHelpEffect.vue b/src/apps/AppHelpEffect/AppHelpEffect.vue index 224c1792..4beb735c 100644 --- a/src/apps/AppHelpEffect/AppHelpEffect.vue +++ b/src/apps/AppHelpEffect/AppHelpEffect.vue @@ -1,128 +1,91 @@ @@ -133,57 +96,60 @@ export default { height: 100px; line-height: 100px; } + + .center { + justify-content: center; + text-align: center; + } + .select { width: 100%; display: flex; height: 86px; line-height: 86px; text-align: center; - - ::v-deep .AiSelect .display { - justify-content: center; - } - - .left, - .right { - flex: 1; - } } - .cardList { + + ::v-deep .cardList { padding: 32px; box-sizing: border-box; + .card { padding: 32px; box-sizing: border-box; margin-bottom: 32px; background: #FFF; - box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.0200); + box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.0200); border-radius: 16px; + .user { display: flex; justify-content: space-between; + .name { font-size: 36px; font-weight: 600; } } + .idCard, .tel, .address { margin-top: 8px; color: #999999; + img { margin-right: 16px; width: 28px; height: 28px; } } + .tel, .address { color: #333; } } } - } - \ No newline at end of file + diff --git a/src/apps/AppHelpEffect/addLog.vue b/src/apps/AppHelpEffect/addLog.vue index bee27801..b30f865f 100644 --- a/src/apps/AppHelpEffect/addLog.vue +++ b/src/apps/AppHelpEffect/addLog.vue @@ -1,35 +1,53 @@ + + diff --git a/src/apps/AppHelpEffect/normalFarmerList.vue b/src/apps/AppHelpEffect/normalFarmerList.vue new file mode 100644 index 00000000..83e7d224 --- /dev/null +++ b/src/apps/AppHelpEffect/normalFarmerList.vue @@ -0,0 +1,208 @@ + + + + + diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue index ed9db1d0..ec0906ef 100644 --- a/src/apps/AppMonitoringObject/Add.vue +++ b/src/apps/AppMonitoringObject/Add.vue @@ -16,17 +16,17 @@ --> -
-
-
- * - 监测对象类型 -
-
- -
-
-
+ + + + + + + + + + +
diff --git a/src/apps/AppMonitoringObject/AppMonitoringObject.vue b/src/apps/AppMonitoringObject/AppMonitoringObject.vue index e78d4a05..77f84443 100644 --- a/src/apps/AppMonitoringObject/AppMonitoringObject.vue +++ b/src/apps/AppMonitoringObject/AppMonitoringObject.vue @@ -6,7 +6,7 @@
全部类型 - {{ $dict.getLabel('fpPrtpStatus', status)}} + {{ $dict.getLabel('fpPrtpStatus', status) }}
+ @confirm="confirmTypeSelect"/>
@@ -71,8 +71,6 @@ export default { currentTabs: 0, areaId: '', areaName: '', - isAdmin: false, - checkType: '', showType: false, typelist: [], status: '' @@ -80,40 +78,29 @@ export default { }, computed: { ...mapState(['user']), + checkType: v => v.user.girdCheckType, + isAdmin: v => v.user.girdCheckType > 0 }, onShow() { document.title = '监测对象' this.areaId = this.user.areaId this.areaName = this.user.areaName this.$dict.load('fpPrtpStatus').then(() => { - this.isGirdUser() + this.isAdmin && this.getList() this.typelist = this.$dict.getDict('fpPrtpStatus').filter((e) => e.dictValue != 5) - this.typelist.unshift({ dictName: '全部类型', dictValue: ''}) + this.typelist.unshift({dictName: '全部类型', dictValue: ''}) }) - + uni.$on('reload', () => { this.getListInit() }) }, methods: { - isGirdUser() { - this.isAdmin = false - this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => { - if (res?.data) { - if (res.data.checkType != '0') { - this.isAdmin = true - this.checkType = res.data.checkType - this.getList() - } - } - }) - }, - confirmTypeSelect(val) { this.status = val?.[0].value - this.$nextTick(()=>{ + this.$nextTick(() => { this.current = 1, - this.list = [] + this.list = [] this.getList() }) }, @@ -148,16 +135,16 @@ export default { change(index) { this.currentTabs = index - if(this.currentTabs == 1) { + if (this.currentTabs == 1) { this.typelist = this.$dict.getDict('fpPrtpStatus') - this.typelist.unshift({ dictName: '全部类型', dictValue: ''}) + this.typelist.unshift({dictName: '全部类型', dictValue: ''}) } else if (this.currentTabs == 0) { this.typelist = this.$dict.getDict('fpPrtpStatus').filter((e) => e.dictValue != 5) - this.typelist.unshift({ dictName: '全部类型', dictValue: ''}) + this.typelist.unshift({dictName: '全部类型', dictValue: ''}) } this.status = '' this.getListInit() - + }, toDetail(item) { @@ -233,6 +220,7 @@ export default { border-top: 2px solid #f5f5f5; padding: 20px 32px; background: #fff; + .selectBox { margin-right: 30px; } diff --git a/src/apps/AppMonitoringObject/Detail.vue b/src/apps/AppMonitoringObject/Detail.vue index dda20fae..aae668ce 100644 --- a/src/apps/AppMonitoringObject/Detail.vue +++ b/src/apps/AppMonitoringObject/Detail.vue @@ -1,5 +1,5 @@ diff --git a/src/apps/AppPovertyHome/AppPovertyHome.vue b/src/apps/AppPovertyHome/AppPovertyHome.vue index 368ff2fe..803dede3 100644 --- a/src/apps/AppPovertyHome/AppPovertyHome.vue +++ b/src/apps/AppPovertyHome/AppPovertyHome.vue @@ -1,11 +1,11 @@ @@ -64,18 +76,20 @@ export default { show: false, form: {girdName: '', id: ''}, treeList: [], - name: '', + girdName: '', showSelect: false, editor: null, polygons: [], labels: [], - latLngCenter: [], //中心点 + latLngCenter: [], + isShowGrid: false, + girdList: [] } }, computed: {...mapState(['user'])}, created() { this.areaId = this.user.areaId - this.getLeafNodes() + uni.$on('goback', e => { this.form.girdName = e.girdName this.getGridList(e.id, true) @@ -91,6 +105,21 @@ export default { url: './SelectGird?isFormMap=1' }) }, + + search () { + this.$loading() + this.$http.post(`/app/appgirdinfo/list?size=100&girdName=${this.girdName}`).then((res) => { + if (res.code === 0) { + if (res.data.records.length) { + this.girdList = res.data.records + this.isShowGrid = true + } else { + this.$u.toast('未查询到网格') + } + } + }) + }, + getLeafNodes() { this.$http.post(`/app/appgirdinfo/queryGirdMemberGirdsById`).then((res) => { if (res?.data) { @@ -112,7 +141,6 @@ export default { getGridList(id) { this.$loading() this.$http.post(`/app/appgirdinfo/queryChildGirdInfoByGirdId?girdId=${id}`).then((res) => { - this.$hideLoading() if (res?.data) { const arr = [] res.data.map(v => { @@ -135,6 +163,7 @@ export default { if (!arr.filter(v => v.points).length) { return this.$u.toast('该网格还未标会') } + this.isShowGrid = false this.renderGridMap(arr.filter(v => v.points)) } @@ -285,6 +314,46 @@ export default { box-sizing: border-box; } + .grid-wrapper { + height: 100%; + overflow: hidden; + + .title { + height: 80px; + line-height: 80px; + text-align: center; + color: #333; + font-size: 32px; + font-weight: 800; + } + + scroll-view { + height: calc(100% - 80px); + } + + .grid-item { + height: 80px; + line-height: 80px; + padding: 0 24px; + text-align: center; + color: #333; + font-size: 28px; + font-weight: 500; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + border-bottom: 1px solid #eee; + + &:last-child { + border: none; + } + + &:active { + background: #eee; + } + } + } + .top { display: flex; position: fixed; diff --git a/src/project/saas/AppBuilding/components/searchMap.vue b/src/project/saas/AppBuilding/components/searchMap.vue index 3cbb799e..92e6edfa 100644 --- a/src/project/saas/AppBuilding/components/searchMap.vue +++ b/src/project/saas/AppBuilding/components/searchMap.vue @@ -1,14 +1,6 @@ @@ -149,6 +147,7 @@ export default { showPop: false, retryMapCount: 0, building: {}, + isShowGrid: false, buildPopup: false } }, @@ -318,7 +317,8 @@ export default { }, search() { this.buildList = [] - this.$http.post('/app/appcommunityhouseinfo/queryHouseByName', null, { + this.$loading() + this.$http.post('/app/appcommunityhouseinfo/queryHouseByNameBySize', null, { params: { current: 1, size: 20, @@ -353,8 +353,7 @@ export default { this.detailInfo = {...res.data} - console.log(this.detailInfo) - if(this.detailInfo.build.appGirdInfo.girdMemberNames && this.detailInfo.build.appGirdInfo.girdMemberNames) { + if(this.detailInfo.build.appGirdInfo && this.detailInfo.build.appGirdInfo.girdMemberNames && this.detailInfo.build.appGirdInfo.girdMemberNames) { this.detailInfo.build.appGirdInfo.girdMemberNames = this.detailInfo.build.appGirdInfo.girdMemberNames.split(',') } this.show = false @@ -383,6 +382,72 @@ export default { box-sizing: border-box; } + .grid-wrapper { + height: 100%; + overflow: hidden; + + .title { + height: 80px; + line-height: 80px; + text-align: center; + color: #333; + font-size: 32px; + font-weight: 800; + } + + scroll-view { + height: calc(100% - 80px); + } + + .grid-item { + display: flex; + align-items: center; + padding: 20px 24px; + color: #333; + font-size: 28px; + font-weight: 500; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + border-bottom: 1px solid #eee; + + image { + width: 50px; + height: 50px; + margin-right: 16px; + } + + .right { + flex: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + + h2 { + margin-bottom: 12px; + color: #333; + font-size: 30px; + font-weight: 600; + } + + p { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + color: #666; + } + } + + &:last-child { + border: none; + } + + &:active { + background: #eee; + } + } + } + .top { display: flex; position: fixed; @@ -425,7 +490,7 @@ export default { .grid-input { display: flex; align-items: center; - width: 460px; + width: 100%; height: 64px; background: #F5F5F5; border-radius: 32px; diff --git a/src/project/saas/AppBuilding/detail.vue b/src/project/saas/AppBuilding/detail.vue index 727e8486..127d39eb 100644 --- a/src/project/saas/AppBuilding/detail.vue +++ b/src/project/saas/AppBuilding/detail.vue @@ -1,5 +1,5 @@