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{
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;
}

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

@ -112,13 +112,14 @@
<el-form-item label="图片"
label-width="150px"
style="display:block">
<el-upload class="avatar-uploader"
<el-upload :class="['avatar-uploader', {'hide': hideUploadBtn}] "
ref="uploadPic"
:action="uploadUlr"
list-type="picture-card"
:on-exceed="exceedPic"
:on-remove="removePic"
:file-list="replayImgList"
:on-change="handleEditChange"
:on-success="handleSuccess"
:limit="3">
<span class="font-14">选择图片</span>
@ -161,7 +162,7 @@
</div>
</div>
<div style="margin-top: 10px">
<!-- <div style="margin-top: 10px">
<span>经度</span>
<el-input class="item_width_3"
maxlength="50"
@ -174,7 +175,7 @@
placeholder="请输入纬度"
v-model="formData.latitude">
</el-input>
</div>
</div> -->
</div>
</el-form-item>
@ -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 {
></style>
<style>
<style lang="scss">
.el-dialog__body {
padding: 0 10px 20px !important;
}
.hide {
.el-upload--picture-card {
display: none !important;
}
}
</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.categoryId)
this.selCateObj = {
name: this.eventDetailCopy.categoryName,
id: this.eventDetailCopy.categoryId

2
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 = [];

Loading…
Cancel
Save