c8d99923 by 杨炀

Revert "no message"

This reverts commit d9d99119.
1 parent d9d99119
......@@ -290,7 +290,7 @@ function getAthletesList() {
athletesList.value = res.rows
if(!isNational.value){
for(let ath of athletesList.value){
if(!ath.phone){
if(!ath.picUrl||!ath.phone){
ath.disabled = true
} else {
ath.disabled = false
......
......@@ -7,8 +7,8 @@
<el-form ref="dialogRef" :model="form" :rules="language==0?rules:rules_cn" label-width="150px" inline>
<el-row :gutter="30" class="mt30">
<el-col :lg="12" class="touxiang">
<!-- :required="form.labelArr.indexOf('0')>-1"-->
<el-form-item prop="picUrl" :label="language==0?'个人照片':'photo'" >
<el-form-item prop="picUrl" :label="language==0?'个人照片':'photo'" :required="form.labelArr.indexOf('0')>-1">
<ImageUpload2
v-model="form.picUrl" :crop-height="280" :crop-width="200" class="threeFour" :limit="1"
:is-show-tip="false"
......@@ -304,10 +304,10 @@ function giveBirthDay() {
function submitForm() {
proxy.$refs['dialogRef'].validate((valid) => {
if (valid) {
// if(!form.value.picUrl&&form.value.labelArr.indexOf('0')>-1){
// ElMessage.warning(language.value == 0 ? '请上传个人照片' :'Please upload your photo')
// return
// }
if(!form.value.picUrl&&form.value.labelArr.indexOf('0')>-1){
ElMessage.warning(language.value == 0 ? '请上传个人照片' :'Please upload your photo')
return
}
// 验证身份证号
if (form.value.idcType == 0 && !(/(^\d{15}$)|(^\d{17}([0-9]|X)$)/.test(form.value.idcCode))) {
ElMessage.warning('请输入正确的身份证号码')
......
......@@ -72,7 +72,7 @@
<!-- </el-table-column>-->
<el-table-column :label="language==0?'操作':'Actions'" width="180" fixed="right" align="center">
<template #default="scope">
<el-button link v-if="!isNational&&(!scope.row.phone)" type="danger" @click="editPerson(scope.row)">
<el-button link v-if="!isNational&&(!scope.row.picUrl||!scope.row.phone)" type="danger" @click="editPerson(scope.row)">
{{language==0?'完善信息':'Complete'}}
</el-button>
<el-button link v-else type="primary" @click="editPerson(scope.row)">
......
......@@ -278,7 +278,6 @@ function editPerson(row) {
function addMember() {
console.log(isNational.value)
const params = {
title: language.value == 0 ?'添加人员':'Add',
id: 0,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!