|
|
@ -132,7 +132,7 @@ |
|
|
|
<el-upload class="avatar-uploader" |
|
|
|
:action="uploadUrl" |
|
|
|
:show-file-list="false" |
|
|
|
:on-success="handleAvatarBannerSuccess" |
|
|
|
:on-success="handleDeptBusinessSuccess" |
|
|
|
:on-error="handelError" |
|
|
|
:before-upload="beforeAvatarUpload"> |
|
|
|
<img v-if="dataForm.deptBusinessUrl" |
|
|
@ -152,7 +152,7 @@ |
|
|
|
<el-upload class="avatar-uploader" |
|
|
|
:action="uploadUrl" |
|
|
|
:show-file-list="false" |
|
|
|
:on-success="handleAvatarBannerSuccess" |
|
|
|
:on-success="handleDeptPartySuccess" |
|
|
|
:on-error="handelError" |
|
|
|
:before-upload="beforeAvatarUpload"> |
|
|
|
<img v-if="dataForm.deptPartyUrl" |
|
|
@ -218,6 +218,7 @@ export default { |
|
|
|
deptPartyUrl:'', |
|
|
|
deptBusinessUrl:'' |
|
|
|
}, |
|
|
|
loading: false, |
|
|
|
uploadUrl: '', |
|
|
|
secondOrgDictList: [], |
|
|
|
mapSelectVisible: false |
|
|
@ -361,9 +362,13 @@ export default { |
|
|
|
this.loading = false |
|
|
|
this.dataForm.headPic = res.data.url |
|
|
|
}, |
|
|
|
handleAvatarBannerSuccess (res, file) { |
|
|
|
handleDeptBusinessSuccess (res, file) { |
|
|
|
this.loading = false |
|
|
|
this.dataForm.bannerUrl = res.data.url |
|
|
|
this.dataForm.deptBusinessUrl = res.data.url |
|
|
|
}, |
|
|
|
handleDeptPartySuccess (res, file) { |
|
|
|
this.loading = false |
|
|
|
this.dataForm.deptPartyUrl = res.data.url |
|
|
|
}, |
|
|
|
beforeAvatarUpload (file) { |
|
|
|
this.loading = true |
|
|
@ -398,6 +403,7 @@ export default { |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.visible = false |
|
|
|
this.mapSelectVisible = false |
|
|
|
this.$emit('refreshDataList') |
|
|
|
} |
|
|
|
}) |
|
|
|