diff --git a/src/assets/scss/modules/shequzhili/event-info.scss b/src/assets/scss/modules/shequzhili/event-info.scss index 08dbf0f1..cb97b636 100644 --- a/src/assets/scss/modules/shequzhili/event-info.scss +++ b/src/assets/scss/modules/shequzhili/event-info.scss @@ -21,7 +21,33 @@ .cell-width-1{ width: 250px } - + .avatar-uploader { + margin: 0 0 0 20px; + + /deep/ .el-upload--picture-card{ + width: 100px; + height: 100px; + } + /deep/ .el-upload{ + width: 100px; + height: 100px; + line-height: 100px; + } + /deep/ .el-upload-list--picture-card .el-upload-list__item{ + width: 100px; + height: 100px; + line-height: 100px; + } + /deep/ .el-upload-list--picture-card .el-upload-list__item-thumbnail{ + width: 100px; + height: 100px; + line-height: 100px; + } + /deep/ .avatar{ + width: 100px; + height: 100px; + } + } } @@ -143,8 +169,8 @@ cursor:pointer } .info-title-2 { - width: 100px; - flex: 0 0 1; + + flex: 0 0 100px; font-size: 14px; } diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue index 1935079f..294c1b1a 100644 --- a/src/views/modules/shequzhili/event/cpts/add.vue +++ b/src/views/modules/shequzhili/event/cpts/add.vue @@ -112,13 +112,14 @@ - 选择图片 @@ -161,7 +162,7 @@ -
+
@@ -343,7 +344,9 @@ export default { selGridId: '', selPersonIndex: '', selPerson: {}, - demandUserList: [] + demandUserList: [], + + hideUploadBtn: false }; }, components: {}, @@ -587,6 +590,10 @@ export default { this.replayImgList.splice(this.replayImgList.findIndex(item => item.uid === file.uid), 1) }, + // 最多上传3张图,超过时隐藏上传按钮 + handleEditChange (file, fileList) { + this.hideUploadBtn = fileList.length >= 3; + }, exceedPic () { this.$message.warning("最多上传3张预览图片") @@ -739,11 +746,14 @@ export default { > - - - - diff --git a/src/views/modules/shequzhili/event/cpts/process-form-project.vue b/src/views/modules/shequzhili/event/cpts/process-form-project.vue index 715019ec..8096461e 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-project.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-project.vue @@ -371,7 +371,6 @@ export default { this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId) this.selCategoryArray.push(this.eventDetailCopy.categoryId) - this.selCateObj = { name: this.eventDetailCopy.categoryName, id: this.eventDetailCopy.categoryId diff --git a/src/views/modules/visual/basicinfo/basicInfoMain.vue b/src/views/modules/visual/basicinfo/basicInfoMain.vue index bf12af80..0f2fc5b7 100644 --- a/src/views/modules/visual/basicinfo/basicInfoMain.vue +++ b/src/views/modules/visual/basicinfo/basicInfoMain.vue @@ -715,6 +715,8 @@ const vueGis = { 'features': featureData }; let feature = (new GeoJSON()).readFeatures(geojsonObject) + + polygonSource.addFeatures(feature) let iconFeatures = [];