Browse Source

11111

shibei_master
jiangyy 3 years ago
parent
commit
d92c458b47
  1. 32
      src/assets/scss/modules/shequzhili/event-info.scss
  2. 26
      src/views/modules/shequzhili/event/cpts/add.vue
  3. 1
      src/views/modules/shequzhili/event/cpts/process-form-project.vue
  4. 2
      src/views/modules/visual/basicinfo/basicInfoMain.vue

32
src/assets/scss/modules/shequzhili/event-info.scss

@ -21,7 +21,33 @@
.cell-width-1{ .cell-width-1{
width: 250px 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 cursor:pointer
} }
.info-title-2 { .info-title-2 {
width: 100px;
flex: 0 0 1; flex: 0 0 100px;
font-size: 14px; font-size: 14px;
} }

26
src/views/modules/shequzhili/event/cpts/add.vue

@ -112,13 +112,14 @@
<el-form-item label="图片" <el-form-item label="图片"
label-width="150px" label-width="150px"
style="display:block"> style="display:block">
<el-upload class="avatar-uploader" <el-upload :class="['avatar-uploader', {'hide': hideUploadBtn}] "
ref="uploadPic" ref="uploadPic"
:action="uploadUlr" :action="uploadUlr"
list-type="picture-card" list-type="picture-card"
:on-exceed="exceedPic" :on-exceed="exceedPic"
:on-remove="removePic" :on-remove="removePic"
:file-list="replayImgList" :file-list="replayImgList"
:on-change="handleEditChange"
:on-success="handleSuccess" :on-success="handleSuccess"
:limit="3"> :limit="3">
<span class="font-14">选择图片</span> <span class="font-14">选择图片</span>
@ -161,7 +162,7 @@
</div> </div>
</div> </div>
<div style="margin-top: 10px"> <!-- <div style="margin-top: 10px">
<span>经度</span> <span>经度</span>
<el-input class="item_width_3" <el-input class="item_width_3"
maxlength="50" maxlength="50"
@ -174,7 +175,7 @@
placeholder="请输入纬度" placeholder="请输入纬度"
v-model="formData.latitude"> v-model="formData.latitude">
</el-input> </el-input>
</div> </div> -->
</div> </div>
</el-form-item> </el-form-item>
@ -343,7 +344,9 @@ export default {
selGridId: '', selGridId: '',
selPersonIndex: '', selPersonIndex: '',
selPerson: {}, selPerson: {},
demandUserList: [] demandUserList: [],
hideUploadBtn: false
}; };
}, },
components: {}, components: {},
@ -587,6 +590,10 @@ export default {
this.replayImgList.splice(this.replayImgList.findIndex(item => item.uid === file.uid), 1) this.replayImgList.splice(this.replayImgList.findIndex(item => item.uid === file.uid), 1)
}, },
// 3
handleEditChange (file, fileList) {
this.hideUploadBtn = fileList.length >= 3;
},
exceedPic () { exceedPic () {
this.$message.warning("最多上传3张预览图片") this.$message.warning("最多上传3张预览图片")
@ -739,11 +746,14 @@ export default {
></style> ></style>
<style lang="scss">
<style>
.el-dialog__body { .el-dialog__body {
padding: 0 10px 20px !important; padding: 0 10px 20px !important;
} }
.hide {
.el-upload--picture-card {
display: none !important;
}
}
</style> </style>

1
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.parentCategoryId)
this.selCategoryArray.push(this.eventDetailCopy.categoryId) this.selCategoryArray.push(this.eventDetailCopy.categoryId)
this.selCateObj = { this.selCateObj = {
name: this.eventDetailCopy.categoryName, name: this.eventDetailCopy.categoryName,
id: this.eventDetailCopy.categoryId id: this.eventDetailCopy.categoryId

2
src/views/modules/visual/basicinfo/basicInfoMain.vue

@ -715,6 +715,8 @@ const vueGis = {
'features': featureData 'features': featureData
}; };
let feature = (new GeoJSON()).readFeatures(geojsonObject) let feature = (new GeoJSON()).readFeatures(geojsonObject)
polygonSource.addFeatures(feature) polygonSource.addFeatures(feature)
let iconFeatures = []; let iconFeatures = [];

Loading…
Cancel
Save