diff --git a/.env.development b/.env.development index f7a1145d0..fa857bf28 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ NODE_ENV=development # VUE_APP_API_SERVER = http://epmet-dev.elinkservice.cn:41080/api VUE_APP_API_SERVER = http://192.168.1.140/api # VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api +# VUE_APP_API_SERVER = https://epdc-shibei.elinkservice.cn/api #家中开发连级的后端服务 # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn:41080/api diff --git a/src/assets/scss/modules/shequzhili/event-info.scss b/src/assets/scss/modules/shequzhili/event-info.scss index 08dbf0f14..cb97b6361 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 1935079fd..d22ccc17f 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: {}, @@ -481,7 +484,8 @@ export default { const url = "/gov/org/customergrid/gridoption" let params = { - agencyId: this.agencyId + agencyId: this.agencyId, + purpose: "addorupdate" } const { data, code, msg } = await requestPost(url, params) @@ -587,6 +591,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 +747,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 715019ec1..8096461ed 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/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue index c35141f1a..c82cd9c05 100644 --- a/src/views/modules/shequzhili/event/eventList.vue +++ b/src/views/modules/shequzhili/event/eventList.vue @@ -470,7 +470,8 @@ export default { const url = "/gov/org/customergrid/gridoption" let params = { - agencyId: this.agencyId + agencyId: this.agencyId, + purpose: "query" } const { data, code, msg } = await requestPost(url, params) diff --git a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue index 8bcc953cb..e1f05c860 100644 --- a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue +++ b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue @@ -1,7 +1,6 @@