3877470c by 杨炀

1. 签证服务 登录后使用

2. 签证服务-关于护照上传的修改
1 parent dcc48c2b
...@@ -88,7 +88,7 @@ export function countryList() { ...@@ -88,7 +88,7 @@ export function countryList() {
88 } 88 }
89 export function associationList() { 89 export function associationList() {
90 return request({ 90 return request({
91 url: `/system/association/getList`, 91 url: `/system/mna/getList`,
92 method: 'get' 92 method: 'get'
93 }) 93 })
94 } 94 }
......
...@@ -29,14 +29,14 @@ ...@@ -29,14 +29,14 @@
29 ref="imageUpload" 29 ref="imageUpload"
30 :multiple="limit > 1" 30 :multiple="limit > 1"
31 :action="actionUrl || uploadImgUrl" 31 :action="actionUrl || uploadImgUrl"
32 list-type="picture-card" 32 :list-type="listType"
33 :on-success="handleUploadSuccess" 33 :on-success="handleUploadSuccess"
34 :before-upload="handleBeforeUpload" 34 :before-upload="handleBeforeUpload"
35 :limit="limit" 35 :limit="limit"
36 :on-error="handleUploadError" 36 :on-error="handleUploadError"
37 :on-exceed="handleExceed" 37 :on-exceed="handleExceed"
38 :before-remove="handleDelete" 38 :before-remove="handleDelete"
39 :show-file-list="true" 39 :show-file-list="showFileList"
40 :headers="headers" 40 :headers="headers"
41 :on-preview="handlePictureCardPreview" 41 :on-preview="handlePictureCardPreview"
42 :file-list="fileListInUpload" 42 :file-list="fileListInUpload"
...@@ -45,7 +45,13 @@ ...@@ -45,7 +45,13 @@
45 :disabled="disabled" 45 :disabled="disabled"
46 :accept="accept" 46 :accept="accept"
47 > 47 >
48 <el-icon class="avatar-uploader-icon"><plus /></el-icon> 48 <el-icon v-if="listType=='picture-card'" class="avatar-uploader-icon"><plus /></el-icon>
49 <el-link v-else class="mr10" type="primary">
50 <el-icon>
51 <Upload/>
52 </el-icon>
53 {{ buttonText }}
54 </el-link>
49 </el-upload> 55 </el-upload>
50 </el-row> 56 </el-row>
51 57
...@@ -98,6 +104,10 @@ const props = defineProps({ ...@@ -98,6 +104,10 @@ const props = defineProps({
98 type: String, 104 type: String,
99 default: 'image' 105 default: 'image'
100 }, 106 },
107 listType: {
108 type: String,
109 default: 'picture-card'
110 },
101 // 文件类型, 例如['png', 'jpg', 'jpeg'] 111 // 文件类型, 例如['png', 'jpg', 'jpeg']
102 fileType: { 112 fileType: {
103 type: Array, 113 type: Array,
...@@ -112,9 +122,17 @@ const props = defineProps({ ...@@ -112,9 +122,17 @@ const props = defineProps({
112 type: Boolean, 122 type: Boolean,
113 default: false 123 default: false
114 }, 124 },
125 showFileList: {
126 type: Boolean,
127 default: true
128 },
115 action: { 129 action: {
116 type: String, 130 type: String,
117 default: '' 131 default: ''
132 },
133 buttonText:{
134 type: String,
135 default: '上传文件'
118 } 136 }
119 }) 137 })
120 const actionUrl = computed(() => { 138 const actionUrl = computed(() => {
......
...@@ -168,6 +168,14 @@ function popRemark(type) { ...@@ -168,6 +168,14 @@ function popRemark(type) {
168 ElMessage.warning('请切换英文页面办理') 168 ElMessage.warning('请切换英文页面办理')
169 return 169 return
170 } else { 170 } else {
171 if (!user) {
172 ElMessage({
173 type: 'warning',
174 message: language.value == 0 ? '请先登录' : 'Please log in first',
175 })
176 return
177 }
178
171 applyInvitation() 179 applyInvitation()
172 return 180 return
173 } 181 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!