3877470c by 杨炀

1. 签证服务 登录后使用

2. 签证服务-关于护照上传的修改
1 parent dcc48c2b
......@@ -88,7 +88,7 @@ export function countryList() {
}
export function associationList() {
return request({
url: `/system/association/getList`,
url: `/system/mna/getList`,
method: 'get'
})
}
......
......@@ -29,14 +29,14 @@
ref="imageUpload"
:multiple="limit > 1"
:action="actionUrl || uploadImgUrl"
list-type="picture-card"
:list-type="listType"
:on-success="handleUploadSuccess"
:before-upload="handleBeforeUpload"
:limit="limit"
:on-error="handleUploadError"
:on-exceed="handleExceed"
:before-remove="handleDelete"
:show-file-list="true"
:show-file-list="showFileList"
:headers="headers"
:on-preview="handlePictureCardPreview"
:file-list="fileListInUpload"
......@@ -45,7 +45,13 @@
:disabled="disabled"
:accept="accept"
>
<el-icon class="avatar-uploader-icon"><plus /></el-icon>
<el-icon v-if="listType=='picture-card'" class="avatar-uploader-icon"><plus /></el-icon>
<el-link v-else class="mr10" type="primary">
<el-icon>
<Upload/>
</el-icon>
{{ buttonText }}
</el-link>
</el-upload>
</el-row>
......@@ -98,6 +104,10 @@ const props = defineProps({
type: String,
default: 'image'
},
listType: {
type: String,
default: 'picture-card'
},
// 文件类型, 例如['png', 'jpg', 'jpeg']
fileType: {
type: Array,
......@@ -112,9 +122,17 @@ const props = defineProps({
type: Boolean,
default: false
},
showFileList: {
type: Boolean,
default: true
},
action: {
type: String,
default: ''
},
buttonText:{
type: String,
default: '上传文件'
}
})
const actionUrl = computed(() => {
......
......@@ -168,6 +168,14 @@ function popRemark(type) {
ElMessage.warning('请切换英文页面办理')
return
} else {
if (!user) {
ElMessage({
type: 'warning',
message: language.value == 0 ? '请先登录' : 'Please log in first',
})
return
}
applyInvitation()
return
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!