From aa9a3a92f1b9cf4d817dae840af85c1f341f0b18 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Sat, 8 Oct 2022 17:15:54 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/addResource.vue | 23 ++++++++----------- .../components/resourceManagement.vue | 2 +- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/project/pengliuyang/apps/AppCommunityResource/components/addResource.vue b/project/pengliuyang/apps/AppCommunityResource/components/addResource.vue index a1003672..95d3a24a 100644 --- a/project/pengliuyang/apps/AppCommunityResource/components/addResource.vue +++ b/project/pengliuyang/apps/AppCommunityResource/components/addResource.vue @@ -19,7 +19,7 @@ - + @@ -75,8 +75,8 @@ export default { permissions: Function, }, data() { - var locate = (rule, value, callback) => { - if(!this.form.lat.length || !this.form.lng.length) { + var validLocation = (rule, value, callback) => { + if(!this.form.lat || !this.form.lng) { return callback(new Error('请标绘地理位置')) } else { callback() @@ -107,23 +107,18 @@ export default { }, showMap: false, searchPlace: '', - // locate - } - }, - created() { - this.getCategoryList() - }, - computed: { - rules() { - return { + rules: { categoryId: [{ required: true, message: '请选择资源分类', trigger: 'blur' }], resourceName: [{ required: true, message: '请输入资源名称', trigger: 'blur' }], areaId: [{ required: true, message: '选择地区', trigger: 'change' }], address: [{ required: true, message: '请输入地址', trigger: 'change' }], - location: [{ required: true, validator: this.locate, trigger: 'change' }], - } + location: [{ required: true, validator: validLocation, trigger: 'change' }], + }, } }, + created() { + this.getCategoryList() + }, methods: { cancel() { // currentPage: resourceManagement diff --git a/project/pengliuyang/apps/AppCommunityResource/components/resourceManagement.vue b/project/pengliuyang/apps/AppCommunityResource/components/resourceManagement.vue index fadc691b..29231e61 100644 --- a/project/pengliuyang/apps/AppCommunityResource/components/resourceManagement.vue +++ b/project/pengliuyang/apps/AppCommunityResource/components/resourceManagement.vue @@ -62,7 +62,7 @@ export default { this.instance.post(`/app/appresourceinfo/list`,null,{ params: { ...this.search, - // areaId: this.areaId, + areaId: this.areaId, } }).then(res=> { if(res?.data) { From f204f3fff37249decbd4f404c2103f6b626e5e0c Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Sat, 8 Oct 2022 17:27:01 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=9C=B0=E5=8C=BA=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppCommunityResource/components/resourceClassification.vue | 2 -- .../apps/AppCommunityResource/components/resourceList.vue | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/project/pengliuyang/apps/AppCommunityResource/components/resourceClassification.vue b/project/pengliuyang/apps/AppCommunityResource/components/resourceClassification.vue index 61b75300..51b7c82f 100644 --- a/project/pengliuyang/apps/AppCommunityResource/components/resourceClassification.vue +++ b/project/pengliuyang/apps/AppCommunityResource/components/resourceClassification.vue @@ -101,8 +101,6 @@ export default { if(res?.data) { this.tableData = res.data.records this.total = res.data.total - console.log(this.tableData); - } }) }, diff --git a/project/pengliuyang/apps/AppCommunityResource/components/resourceList.vue b/project/pengliuyang/apps/AppCommunityResource/components/resourceList.vue index 1fa69c0b..ba570af8 100644 --- a/project/pengliuyang/apps/AppCommunityResource/components/resourceList.vue +++ b/project/pengliuyang/apps/AppCommunityResource/components/resourceList.vue @@ -75,7 +75,7 @@ export default { methods: { changeAreaId() { this.$nextTick(() => { - // this.$refs[this.tabs[Number(this.currIndex)].name][0].getList() + this.$refs[this.tabs[Number(this.currIndex)].name][0].getList() }) } }, From ce113372e8fd8e650798c12c1d6f59b8eec0eee8 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Sat, 8 Oct 2022 17:41:45 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/AppCommunityResource/components/addResource.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/pengliuyang/apps/AppCommunityResource/components/addResource.vue b/project/pengliuyang/apps/AppCommunityResource/components/addResource.vue index 95d3a24a..debd39cc 100644 --- a/project/pengliuyang/apps/AppCommunityResource/components/addResource.vue +++ b/project/pengliuyang/apps/AppCommunityResource/components/addResource.vue @@ -122,7 +122,7 @@ export default { methods: { cancel() { // currentPage: resourceManagement - this.$router.push({hash: "#AppCommunityResource", query: {}}) + this.$router.push({}) }, getCategoryList() { this.instance.post(`/app/appresourcecategory/list`,null,{ From 97611a8dc82c38717a956f0d1f8eeae06fe30024 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Sun, 9 Oct 2022 09:11:07 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/bigscreen/dv/AppHouseMapDv.vue | 2 +- packages/bigscreen/dv/AppResourceMap.vue | 13 - packages/bigscreen/dv/AppResourceMapDv.vue | 513 ++++++++++++ .../components/resourceMap.vue | 8 +- .../AppDataPermissionConfig.vue | 66 ++ .../components/Add.vue | 203 +++++ .../components/List.vue | 763 ++++++++++++++++++ 7 files changed, 1550 insertions(+), 18 deletions(-) delete mode 100644 packages/bigscreen/dv/AppResourceMap.vue create mode 100644 packages/bigscreen/dv/AppResourceMapDv.vue create mode 100644 project/pingchang/apps/AppDataPermissionConfig/AppDataPermissionConfig.vue create mode 100644 project/pingchang/apps/AppDataPermissionConfig/components/Add.vue create mode 100644 project/pingchang/apps/AppDataPermissionConfig/components/List.vue diff --git a/packages/bigscreen/dv/AppHouseMapDv.vue b/packages/bigscreen/dv/AppHouseMapDv.vue index f0b5c578..4f322048 100644 --- a/packages/bigscreen/dv/AppHouseMapDv.vue +++ b/packages/bigscreen/dv/AppHouseMapDv.vue @@ -298,7 +298,7 @@ export default { }, getCommunityList() { - this.instance.post('/app/appcommunitybuildinginfo/listByBuildingAndHomestead', null, { + this.instance.post('/app/appcommunitybuildinginfo/listByBuilding', null, { params: { current: 1, size: 1000000 diff --git a/packages/bigscreen/dv/AppResourceMap.vue b/packages/bigscreen/dv/AppResourceMap.vue deleted file mode 100644 index 9e583f10..00000000 --- a/packages/bigscreen/dv/AppResourceMap.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - diff --git a/packages/bigscreen/dv/AppResourceMapDv.vue b/packages/bigscreen/dv/AppResourceMapDv.vue new file mode 100644 index 00000000..e1a4d401 --- /dev/null +++ b/packages/bigscreen/dv/AppResourceMapDv.vue @@ -0,0 +1,513 @@ + + + + + + + + + {{ info.resourceName }} + {{ info.areaName }}{{ info.address }} + + + + 基本信息 + + {{ info.information }} + + + + + + + + diff --git a/project/pengliuyang/apps/AppCommunityResource/components/resourceMap.vue b/project/pengliuyang/apps/AppCommunityResource/components/resourceMap.vue index bda173a7..2cc90914 100644 --- a/project/pengliuyang/apps/AppCommunityResource/components/resourceMap.vue +++ b/project/pengliuyang/apps/AppCommunityResource/components/resourceMap.vue @@ -71,7 +71,7 @@ export default { this.areaName = this.user.info.areaName this.getTypeList() this.getCorpLocation() - + }, methods: { @@ -117,7 +117,7 @@ export default { renderMarker(context) { const resourceId = context.data[0].id - + let el = `` context.marker.setContent(el); @@ -154,7 +154,7 @@ export default { initMap({lng, lat}) { this.center = [lng, lat]; AMapLoader.load({ - key: 'b553334ba34f7ac3cd09df9bc8b539dc', + key: '54a02a43d9828a8f9cd4f26fe281e74e', version: '2.0', plugins: ['AMap.ToolBar', 'AMap.Scale', 'AMap.MouseTool', 'AMap.MarkerClusterer'], AMapUI: { @@ -418,7 +418,7 @@ export default { ::v-deep .el-input, ::v-deep input { border: none; } - + ::v-deep .el-select { padding-right: 28px; } diff --git a/project/pingchang/apps/AppDataPermissionConfig/AppDataPermissionConfig.vue b/project/pingchang/apps/AppDataPermissionConfig/AppDataPermissionConfig.vue new file mode 100644 index 00000000..80734a93 --- /dev/null +++ b/project/pingchang/apps/AppDataPermissionConfig/AppDataPermissionConfig.vue @@ -0,0 +1,66 @@ + + + + + + + + + + + diff --git a/project/pingchang/apps/AppDataPermissionConfig/components/Add.vue b/project/pingchang/apps/AppDataPermissionConfig/components/Add.vue new file mode 100644 index 00000000..542f1cae --- /dev/null +++ b/project/pingchang/apps/AppDataPermissionConfig/components/Add.vue @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + 男 + 女 + + + + + + + + + + + + + + + + + + + + 选择 + + + + + + + + + + + + + + + + + + 取消 + 提交 + + + + + + + diff --git a/project/pingchang/apps/AppDataPermissionConfig/components/List.vue b/project/pingchang/apps/AppDataPermissionConfig/components/List.vue new file mode 100644 index 00000000..6820431c --- /dev/null +++ b/project/pingchang/apps/AppDataPermissionConfig/components/List.vue @@ -0,0 +1,763 @@ + + + + + + + + + + 组织架构 + 标签 + + + + + + + + + + + + + + + + + + {{ item.tagname }} + handleCommand(e, item)"> + + + 编辑 + 删除 + + + + + + + + + + + + 同步部门 + 同步成员 + 数据权限设置 + + + + + + + + + + + + + + + + 数据权限设置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 57e8a411c2cb4127dff12969efd2a08e26c6e0d6 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Sun, 9 Oct 2022 10:19:31 +0800 Subject: [PATCH 5/5] bug --- packages/bigscreen/dv/AppResourceMapDv.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/bigscreen/dv/AppResourceMapDv.vue b/packages/bigscreen/dv/AppResourceMapDv.vue index e1a4d401..99554e92 100644 --- a/packages/bigscreen/dv/AppResourceMapDv.vue +++ b/packages/bigscreen/dv/AppResourceMapDv.vue @@ -119,10 +119,11 @@ export default { }, renderMarker(context) { + console.log(context) const buildId = context.data[0].id let el = ` - + ` context.marker.setContent(el); @@ -474,8 +475,14 @@ export default { border-radius: 50%; cursor: pointer; + img { + width: 50px; + height: 50px; + border-radius: 50%; + } + &:hover { - opacity: 0.7; + opacity: 0.8; } }
{{ info.information }}