no message
Showing
2 changed files
with
13 additions
and
17 deletions
| ... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
| 28 | <div> | 28 | <div> |
| 29 | <h3 class="name">{{ b.fullName }}</h3> | 29 | <h3 class="name">{{ b.fullName }}</h3> |
| 30 | <p>{{ b.email }}</p> | 30 | <p>{{ b.email }}</p> |
| 31 | <!-- <p>{{ b.phone }}</p>--> | 31 | <p>{{ b.createTime }}</p> |
| 32 | </div> | 32 | </div> |
| 33 | </el-col> | 33 | </el-col> |
| 34 | <el-col :lg="3" :md="6" :sm="6" :xs="6" class="text-center"> | 34 | <el-col :lg="3" :md="6" :sm="6" :xs="6" class="text-center"> |
| ... | @@ -36,7 +36,8 @@ | ... | @@ -36,7 +36,8 @@ |
| 36 | </el-col> | 36 | </el-col> |
| 37 | <el-col :lg="6" :md="16" :sm="16" :xs="16"> | 37 | <el-col :lg="6" :md="16" :sm="16" :xs="16"> |
| 38 | <div class="text-right"> | 38 | <div class="text-right"> |
| 39 | <el-button class="mb10" :disabled="b.emailFlag!='1'" plain round size="small" type="primary" @click="handleDownload(b)"> | 39 | <el-button class="mb10" :disabled="b.emailFlag!='1'" plain round size="small" type="primary" |
| 40 | @click="handleDownload(b)"> | ||
| 40 | {{ language == 0 ? '下载邀请函' : 'Download Invitation' }} | 41 | {{ language == 0 ? '下载邀请函' : 'Download Invitation' }} |
| 41 | </el-button> | 42 | </el-button> |
| 42 | <el-button class="mb10" plain round size="small" type="primary" @click="goDetail(b)"> | 43 | <el-button class="mb10" plain round size="small" type="primary" @click="goDetail(b)"> |
| ... | @@ -102,7 +103,7 @@ function goDetail(b) { | ... | @@ -102,7 +103,7 @@ function goDetail(b) { |
| 102 | } | 103 | } |
| 103 | 104 | ||
| 104 | function handleDownload(b) { | 105 | function handleDownload(b) { |
| 105 | getUplaodFile({ id: b.id }).then(res => { | 106 | getUplaodFile({id: b.id}).then(res => { |
| 106 | window.open(fillImgUrl(res.msg), '_blank') | 107 | window.open(fillImgUrl(res.msg), '_blank') |
| 107 | }) | 108 | }) |
| 108 | } | 109 | } | ... | ... |
| ... | @@ -118,7 +118,7 @@ | ... | @@ -118,7 +118,7 @@ |
| 118 | paramName="pic" list-type="text" :show-file-list="false" | 118 | paramName="pic" list-type="text" :show-file-list="false" |
| 119 | :button-text="language==0?'上传':'Upload'" @response="getPassportInfo" | 119 | :button-text="language==0?'上传':'Upload'" @response="getPassportInfo" |
| 120 | /> | 120 | /> |
| 121 | </div> | 121 | </div> |
| 122 | </el-form-item> | 122 | </el-form-item> |
| 123 | <!--识别信息--> | 123 | <!--识别信息--> |
| 124 | <div v-if="form.cptVisaInfoBos?.length>0" class="border"> | 124 | <div v-if="form.cptVisaInfoBos?.length>0" class="border"> |
| ... | @@ -256,7 +256,7 @@ | ... | @@ -256,7 +256,7 @@ |
| 256 | </el-table-column> | 256 | </el-table-column> |
| 257 | <el-table-column label="Actions" fixed="right"> | 257 | <el-table-column label="Actions" fixed="right"> |
| 258 | <template #default="scope"> | 258 | <template #default="scope"> |
| 259 | <el-button type="danger" size="small" @click="delPassportInfo(scope.row)" icon="delete"/> | 259 | <el-button type="danger" size="small" @click="delPassportInfo(scope.$index)" icon="delete"/> |
| 260 | </template> | 260 | </template> |
| 261 | </el-table-column> | 261 | </el-table-column> |
| 262 | </el-table> | 262 | </el-table> |
| ... | @@ -270,7 +270,7 @@ | ... | @@ -270,7 +270,7 @@ |
| 270 | 270 | ||
| 271 | 271 | ||
| 272 | <div class="text-center"> | 272 | <div class="text-center"> |
| 273 | <el-button type="primary" size="large" @click="submit" round class="btn-lineG"> | 273 | <el-button type="primary" size="large" :disabled="!cptId" @click="submit" round class="btn-lineG"> |
| 274 | {{ language == 0 ? '提交' : 'SUBMIT' }} | 274 | {{ language == 0 ? '提交' : 'SUBMIT' }} |
| 275 | </el-button> | 275 | </el-button> |
| 276 | </div> | 276 | </div> |
| ... | @@ -321,6 +321,10 @@ const open = (params) => { | ... | @@ -321,6 +321,10 @@ const open = (params) => { |
| 321 | show.value = true | 321 | show.value = true |
| 322 | title.value = params.title | 322 | title.value = params.title |
| 323 | cptId.value = params.cptId | 323 | cptId.value = params.cptId |
| 324 | if(!cptId.value){ | ||
| 325 | proxy.$modal.msgError('参数有误'); | ||
| 326 | } | ||
| 327 | |||
| 324 | form.value.userId = user.userId | 328 | form.value.userId = user.userId |
| 325 | form.value.cptId = params.cptId | 329 | form.value.cptId = params.cptId |
| 326 | getCountryList() | 330 | getCountryList() |
| ... | @@ -426,17 +430,8 @@ const getPassportInfo = (res) => { | ... | @@ -426,17 +430,8 @@ const getPassportInfo = (res) => { |
| 426 | } | 430 | } |
| 427 | } | 431 | } |
| 428 | 432 | ||
| 429 | function delPassportInfo(row) { | 433 | function delPassportInfo(index) { |
| 430 | console.log(row, form.value.cptVisaInfoBos) | 434 | form.value.cptVisaInfoBos.splice(index, 1) |
| 431 | if (form.value.cptVisaInfoBos.length == 1) { | ||
| 432 | form.value.cptVisaInfoBos = [] | ||
| 433 | } else { | ||
| 434 | for (let n of form.value.cptVisaInfoBos) { | ||
| 435 | if (n.passportNo == row.passportNo) { | ||
| 436 | form.value.cptVisaInfoBos.splice(form.value.cptVisaInfoBos.indexOf(n), 1) | ||
| 437 | } | ||
| 438 | } | ||
| 439 | } | ||
| 440 | } | 435 | } |
| 441 | 436 | ||
| 442 | function sendEmail() { | 437 | function sendEmail() { | ... | ... |
-
Please register or sign in to post a comment