|
@@ -8,6 +8,18 @@
|
|
|
label-position="left"
|
|
|
disabled
|
|
|
>
|
|
|
+ <el-row>
|
|
|
+ <el-form-item label="头像" prop="icon">
|
|
|
+ <custom-upload
|
|
|
+ model="icon"
|
|
|
+ :list="form.icon"
|
|
|
+ :limit="1"
|
|
|
+ url="/files/web/template_expert/upload"
|
|
|
+ @change="onUpload"
|
|
|
+ listType="picture-card"
|
|
|
+ ></custom-upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-row>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="专家姓名" prop="name">
|
|
@@ -129,5 +141,10 @@ const educationList = inject('educationList')
|
|
|
const cityList = inject('cityList')
|
|
|
const isUseList = inject('isUseList')
|
|
|
const cardTypeList = inject('cardTypeList')
|
|
|
+// 上传图片
|
|
|
+const onUpload = (e) => {
|
|
|
+ const { model, value } = e
|
|
|
+ form.value[model] = value
|
|
|
+}
|
|
|
</script>
|
|
|
<style scoped lang="scss"></style>
|