|
@ -85,6 +85,7 @@ |
|
|
:action="this.uploadUrl" |
|
|
:action="this.uploadUrl" |
|
|
:show-file-list="false" |
|
|
:show-file-list="false" |
|
|
:on-success="handleAvatarSuccess" |
|
|
:on-success="handleAvatarSuccess" |
|
|
|
|
|
:on-error="handelError" |
|
|
:before-upload="beforeAvatarUpload"> |
|
|
:before-upload="beforeAvatarUpload"> |
|
|
<img v-if="dataForm.imgUrl" |
|
|
<img v-if="dataForm.imgUrl" |
|
|
:src="dataForm.imgUrl" |
|
|
:src="dataForm.imgUrl" |
|
@ -226,6 +227,9 @@ export default { |
|
|
beforeAvatarUpload (file) { |
|
|
beforeAvatarUpload (file) { |
|
|
this.loading = true |
|
|
this.loading = true |
|
|
}, |
|
|
}, |
|
|
|
|
|
handelError () { |
|
|
|
|
|
this.loading = false |
|
|
|
|
|
}, |
|
|
getListFromDict (dictType) { |
|
|
getListFromDict (dictType) { |
|
|
this.$http.get(`/sys/dict/listSimple/` + dictType).then(({ data: res }) => { |
|
|
this.$http.get(`/sys/dict/listSimple/` + dictType).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|