【类 型】:style
【主 题】: 【描 述】: [原因]: [过程]: [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
194a02607c
commit
77a0bfdea5
@ -25,10 +25,8 @@
|
|||||||
<el-upload class="avatar-uploader" drag name="file" :action="action" :headers="myheader"
|
<el-upload class="avatar-uploader" drag name="file" :action="action" :headers="myheader"
|
||||||
:show-file-list="false" :on-success="handleUpSuccess" :on-error="handleUpErr"
|
:show-file-list="false" :on-success="handleUpSuccess" :on-error="handleUpErr"
|
||||||
:before-upload="beforeAvatarUpload">
|
:before-upload="beforeAvatarUpload">
|
||||||
<img v-if="form.upFile != ''"
|
<img v-if="form.upFile != ''" :src="$store.state.settings.tempPath + form.upFile" class="avatar" />
|
||||||
:src="$store.state.settings.tempPath + form.upFile" class="avatar" />
|
<img v-else-if="form.oldFile != [] && form.upFile == ''" :src="form.oldFile[0]" class="avatar" />
|
||||||
<img v-else-if="form.oldFile != [] && form.upFile == ''"
|
|
||||||
:src="form.oldFile[0]" class="avatar" />
|
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<i class="el-icon-plus f-s-30 m-t-70 seatFontColor"></i>
|
<i class="el-icon-plus f-s-30 m-t-70 seatFontColor"></i>
|
||||||
<div class="el-upload__text"><em>建议100*100像素 <br> jpg png gif </em></div>
|
<div class="el-upload__text"><em>建议100*100像素 <br> jpg png gif </em></div>
|
||||||
@ -73,7 +71,7 @@ export default {
|
|||||||
oldFile: '',
|
oldFile: '',
|
||||||
pwd: ''
|
pwd: ''
|
||||||
},
|
},
|
||||||
adminId: this.$route.params.id, // get参数 获取飞机id 没有为添加页面
|
adminId: this.$route.params.id, // get参数 获取管理员id 没有为添加页面
|
||||||
pageState: 'add', // 页面状态
|
pageState: 'add', // 页面状态
|
||||||
admin: null
|
admin: null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user