f8237179 by zhangmeng

国外不购买保险

1 parent 5f4bdea4
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
171 {{ language == 0 ? '预览报名信息' : 'Preview Registration Information' }} 171 {{ language == 0 ? '预览报名信息' : 'Preview Registration Information' }}
172 </el-button> 172 </el-button>
173 173
174 <span v-if="insuranceFlag!=0" class="checkbox"> 174 <span v-if="language==0&& insuranceFlag!=0||language==1&&insuranceFlag==1" class="checkbox">
175 <el-checkbox 175 <el-checkbox
176 v-model="checked" 176 v-model="checked"
177 :label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'" 177 :label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'"
...@@ -480,7 +480,7 @@ function submitForm(n) { ...@@ -480,7 +480,7 @@ function submitForm(n) {
480 } 480 }
481 481
482 function commit() { 482 function commit() {
483 if (insuranceFlag.value == 2 && checked.value == '0') { 483 if (language.value == 0 && insuranceFlag.value == 2 && checked.value == '0') {
484 ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事放帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?', 484 ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事放帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?',
485 language.value == 0 ? '提示' : 'Tip', { 485 language.value == 0 ? '提示' : 'Tip', {
486 confirmButtonText: language.value == 0 ? '是' : 'Yes', 486 confirmButtonText: language.value == 0 ? '是' : 'Yes',
......
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
182 {{ language == 0 ? '预览报名信息' : 'Preview registration information' }} 182 {{ language == 0 ? '预览报名信息' : 'Preview registration information' }}
183 </el-button> 183 </el-button>
184 184
185 <span v-if="insuranceFlag!=0" class="checkbox"> 185 <span v-if="language==0&& insuranceFlag!=0||language==1&&insuranceFlag==1" class="checkbox">
186 <el-checkbox 186 <el-checkbox
187 v-model="checked" 187 v-model="checked"
188 :label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'" 188 :label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'"
...@@ -436,7 +436,7 @@ function submitForm() { ...@@ -436,7 +436,7 @@ function submitForm() {
436 // cancelButtonText: language.value == 0 ? '否,进入下一步' : 'NO,Go Next', 436 // cancelButtonText: language.value == 0 ? '否,进入下一步' : 'NO,Go Next',
437 type: 'warning' 437 type: 'warning'
438 }) 438 })
439 } else if (insuranceFlag.value == '2' && checked.value == 0) { 439 } else if (language.value == 0 && insuranceFlag.value == '2' && checked.value == 0) {
440 ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事放帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?', 440 ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事放帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?',
441 language.value == 0 ? '提示' : 'Tip', { 441 language.value == 0 ? '提示' : 'Tip', {
442 confirmButtonText: language.value == 0 ? '是' : 'Yes', 442 confirmButtonText: language.value == 0 ? '是' : 'Yes',
......
1 <template> 1 <template>
2 <el-dialog v-model="show" :title="title" width="1000px" append-to-body @close="close" center> 2 <el-dialog
3 v-model="show" :title="title" append-to-body center width="1000px"
4 @close="close"
5 >
3 <div class="funcBtns"> 6 <div class="funcBtns">
4 <el-button type="primary" @click="addMember"> 7 <el-button type="primary" @click="addMember">
5 {{ language == 0 ? '添加选手' : 'Add Player' }} 8 {{ language == 0 ? '添加选手' : 'Add Player' }}
6 </el-button> 9 </el-button>
7 </div> 10 </div>
11
8 <div class="from-Card"> 12 <div class="from-Card">
9 <el-form :inline="true" :model="query" class="mt20" label-width="60" size="small"> 13 <el-form :inline="true" :model="query" class="mt20" label-width="60" size="small">
10 <el-form-item :label="language==0?'姓名':'Name'"> 14 <el-form-item :label="language==0?'姓名':'Name'">
11 <el-input v-model="query.realName" style="width: 120px;" clearable/> 15 <el-input v-model="query.realName" clearable style="width: 120px;" />
12 </el-form-item> 16 </el-form-item>
13 <el-form-item :label="language==0?'证件类型':'ID Type'" v-if="!isNational"> 17 <el-form-item v-if="!isNational" :label="language==0?'证件类型':'ID Type'">
14 <el-select v-model="query.idcType" style="width: 100px;" clearable @change="getList" @clear="getList"> 18 <el-select v-model="query.idcType" clearable style="width: 100px;" @change="getList" @clear="getList">
15 <el-option 19 <el-option
16 v-for="item in certificates" 20 v-for="item in certificates"
17 :key="item.value" 21 :key="item.value"
18 :label="item.label" 22 :label="item.label"
19 :value="item.value" 23 :value="item.value"
20 /> 24 />
21 </el-select> 25 </el-select>
22 </el-form-item> 26 </el-form-item>
23 <el-form-item :label="language==0?'证件号码':'ID NO.'" v-if="!isNational"> 27 <el-form-item v-if="!isNational" :label="language==0?'证件号码':'ID NO.'">
24 <el-input v-model="query.idcCode" style="width: 120px;" clearable/> 28 <el-input v-model="query.idcCode" clearable style="width: 120px;" />
25 </el-form-item> 29 </el-form-item>
26 <!-- <el-form-item label="角色">--> 30 <!-- <el-form-item label="角色">-->
27 <!-- <el-input v-model="query.label" style="width: 120px;" clearable/>--> 31 <!-- <el-input v-model="query.label" style="width: 120px;" clearable/>-->
28 <!-- </el-form-item>--> 32 <!-- </el-form-item>-->
29 <el-form-item> 33 <el-form-item>
30 <el-button type="primary" @click="getList">{{language==0?'查询':'Search'}}</el-button> 34 <el-button type="primary" @click="getList">{{ language == 0 ? '查询' : 'Search' }}</el-button>
31 </el-form-item> 35 </el-form-item>
32 <el-form-item class="fr"> 36 <el-form-item class="fr">
33 <el-button @click="resetChose" type="primary" plain>{{language==0?'清空选择':'Clear Selection'}}</el-button> 37 <el-button plain type="primary" @click="resetChose">{{ language == 0 ? '清空选择' : 'Clear Selection' }}
38 </el-button>
34 </el-form-item> 39 </el-form-item>
35 </el-form> 40 </el-form>
36 </div> 41 </div>
37 <p class="tip" v-if="language==0">报名单人项目只需选中需要报名的人员</p> 42 <p v-if="language==0" class="tip">报名单人项目只需选中需要报名的人员</p>
38 <p class="tip" v-if="language==1">To register for the individual project, simply select the person who needs to register</p> 43 <p v-if="language==1" class="tip">To register for the individual project, simply select the person who needs to
39 44 register</p>
40 <p v-if="noPhotoCanSign == 0" class="text-danger">{{ language==0?'*需上传照片才可报名':'*Please upload photo before sign up' }}</p> 45
41 <el-table ref="allSportmenTable" v-loading="loading" :data="tableData" height="60vh" 46 <p v-if="noPhotoCanSign == 0" class="text-danger">
42 @selection-change="handleSelectionChange" :row-key="getRowKeys"> 47 {{ language == 0 ? '*需上传照片才可报名' : '*Please upload photo before sign up' }}</p>
43 <el-table-column type="selection" :label="language==0?'选择':'Selection'" :reserve-selection="true" :selectable="selectable"/> 48 <el-table
44 <!-- <el-table-column align="center" type="index" :label="language==0?'序号':'Index'" width="60" :selectable="selectable"/>--> 49 ref="allSportmenTable" v-loading="loading" :data="tableData" :row-key="getRowKeys"
45 <el-table-column v-if="isNational" :label="language==0?'WDSF MIN':'WDSF MIN'" prop="wdsfMin" width="100"/> 50 height="60vh" @selection-change="handleSelectionChange"
46 <el-table-column align="center" :label="language==0?'姓氏':'Surname'" prop="xing" min-width="100"/> 51 >
47 <el-table-column align="center" :label="language==0?'名':'Name'" prop="ming" min-width="100"/> 52 <el-table-column
48 <el-table-column align="center" v-if="isNational" :label="language==0?'代表':'Representing'" prop="representing" min-width="120"/> 53 :label="language==0?'选择':'Selection'" :reserve-selection="true" :selectable="selectable"
49 <el-table-column align="center" v-if="!isNational" :label="language==0?'所属国家/地区':'Nationality'" prop="countryName" min-width="110"/> 54 type="selection"
50 <el-table-column :label="language==0?'性别':'Gender'" align="center" prop="sexStr"/> 55 />
51 <el-table-column align="center" v-if="isNational" :label="language==0?'年龄组':'Age group'" prop="ageGroup" min-width="100"/> 56 <!-- <el-table-column align="center" type="index" :label="language==0?'序号':'Index'" width="60" :selectable="selectable"/>-->
52 <el-table-column align="center" v-if="isNational" :label="language==0?'舞种':'Division'" prop="division" min-width="100"/> 57 <el-table-column v-if="isNational" :label="language==0?'WDSF MIN':'WDSF MIN'" prop="wdsfMin" width="100" />
53 58 <el-table-column :label="language==0?'姓氏':'Surname'" align="center" min-width="100" prop="xing" />
54 <el-table-column v-if="!isNational" :label="language==0?'年龄':'Age'" prop="age"/> 59 <el-table-column :label="language==0?'名':'Name'" align="center" min-width="100" prop="ming" />
55 <el-table-column v-if="!isNational" :label="language==0?'出生日期':'Date of Birth'" prop="birth" width="130"/> 60 <el-table-column
56 <el-table-column v-if="!isNational" :label="language==0?'证件类型':'ID Type'" prop="idcTypeStr" width="120"/> 61 v-if="isNational" :label="language==0?'代表':'Representing'" align="center" min-width="120"
57 <el-table-column v-if="!isNational" :label="language==0?'证件号码':'ID NO.'" prop="idcCode" width="200"/> 62 prop="representing"
63 />
64 <el-table-column
65 v-if="!isNational" :label="language==0?'所属国家/地区':'Nationality'" align="center"
66 min-width="110" prop="countryName"
67 />
68 <el-table-column :label="language==0?'性别':'Gender'" align="center" prop="sexStr" />
69 <el-table-column
70 v-if="isNational" :label="language==0?'年龄组':'Age group'" align="center" min-width="100"
71 prop="ageGroup"
72 />
73 <el-table-column
74 v-if="isNational" :label="language==0?'舞种':'Division'" align="center" min-width="100"
75 prop="division"
76 />
77
78 <el-table-column v-if="!isNational" :label="language==0?'年龄':'Age'" prop="age" />
79 <el-table-column v-if="!isNational" :label="language==0?'出生日期':'Date of Birth'" prop="birth" width="130" />
80 <el-table-column v-if="!isNational" :label="language==0?'证件类型':'ID Type'" prop="idcTypeStr" width="120" />
81 <el-table-column v-if="!isNational" :label="language==0?'证件号码':'ID NO.'" prop="idcCode" width="200" />
58 <!-- <el-table-column label="会员角色" width="200">--> 82 <!-- <el-table-column label="会员角色" width="200">-->
59 <!-- <template #default="scope">--> 83 <!-- <template #default="scope">-->
60 <!-- <div>--> 84 <!-- <div>-->
...@@ -72,61 +96,68 @@ ...@@ -72,61 +96,68 @@
72 <!-- </div>--> 96 <!-- </div>-->
73 <!-- </template>--> 97 <!-- </template>-->
74 <!-- </el-table-column>--> 98 <!-- </el-table-column>-->
75 <el-table-column :label="language==0?'操作':'Actions'" :width="language==0?180:200" fixed="right" align="center"> 99 <el-table-column :label="language==0?'操作':'Actions'" :width="language==0?180:200" align="center" fixed="right">
76 <template #default="scope"> 100 <template #default="scope">
77 <span class="text-primary pointer" v-if="scope.row.passportUrl" @click="editPerson(scope.row)"> 101 <span v-if="scope.row.passportUrl" class="text-primary pointer" @click="editPerson(scope.row)">
78 {{language==0?'编辑':'Edit'}} 102 {{ language == 0 ? '编辑' : 'Edit' }}
79 </span> 103 </span>
80 <span v-else class="text-danger pointer" @click="editPerson(scope.row)">{{language==0?'上传证件':'Upload Valid Passport'}}</span> 104 <span
81 <span class="text-primary pd10 pointer" v-if="scope.row.userId=='0'&&mateId!=scope.row.id" @click="deletePerson(scope.row)"> 105 v-else class="text-danger pointer"
82 {{language==0?'删除':'Delete'}} 106 @click="editPerson(scope.row)"
107 >{{ language == 0 ? '上传证件' : 'Upload Valid Passport' }}</span>
108 <span
109 v-if="scope.row.userId=='0'&&mateId!=scope.row.id" class="text-primary pd10 pointer"
110 @click="deletePerson(scope.row)"
111 >
112 {{ language == 0 ? '删除' : 'Delete' }}
83 </span> 113 </span>
84 </template> 114 </template>
85 </el-table-column> 115 </el-table-column>
86 </el-table> 116 </el-table>
87 <paginationPc 117 <paginationPc
88 v-show="total>0" 118 v-show="total>0"
89 v-model:page="query.pageNum" 119 v-model:limit="query.pageSize"
90 v-model:limit="query.pageSize" 120 v-model:page="query.pageNum"
91 :total="total" 121 :total="total"
92 @pagination="getList" 122 @pagination="getList"
93 /> 123 />
94 <template #footer> 124 <template #footer>
95 <div class="dialog-footer text-center"> 125 <div class="dialog-footer text-center">
96 <el-button type="primary" @click="submit">{{language==0?'确定':'Confirm'}}</el-button> 126 <el-button type="primary" @click="submit">{{ language == 0 ? '确定' : 'Confirm' }}</el-button>
97 <el-button @click="cancel">{{language==0?'取消':'Cancel'}}</el-button> 127 <el-button @click="cancel">{{ language == 0 ? '取消' : 'Cancel' }}</el-button>
98 </div> 128 </div>
99 </template> 129 </template>
100 </el-dialog> 130 </el-dialog>
101 131
102 <!-- 国内赛运动员--> 132 <!-- 国内赛运动员-->
103 <add-coach ref="dialogAddCoach" @submitForm="getList"/> 133 <add-coach ref="dialogAddCoach" @submitForm="getList" />
104 <!-- 国际赛运动员--> 134 <!-- 国际赛运动员-->
105 <add-wdsf ref="dialogAddWdsf" @submitForm="getList"/> 135 <add-wdsf ref="dialogAddWdsf" @submitForm="getList" />
106 <Import ref="dialogImportProps" @submitForm="getList"/> 136 <Import ref="dialogImportProps" @submitForm="getList" />
107 </template> 137 </template>
108 138
109 <script setup> 139 <script setup>
110 import {reactive, ref, toRefs, watch} from 'vue' 140 import { reactive, ref, toRefs, watch } from 'vue'
111 import {getCurrentInstance, nextTick, onMounted} from '@vue/runtime-core' 141 import { getCurrentInstance, nextTick, onMounted } from '@vue/runtime-core'
112 import * as match from '@/apiPc/match' 142 import * as match from '@/apiPc/match'
113 import AddCoach from '../components/addCoach' 143 import AddCoach from '../components/addCoach'
114 import AddWdsf from '../components/addWdsf' 144 import AddWdsf from '../components/addWdsf'
115 import Import from '../components/import' 145 import Import from '../components/import'
116 import {useStorage} from "@vueuse/core/index"; 146 import { useStorage } from '@vueuse/core/index'
117 import {delPersonForPersonal, getPerPersonList} from "@/apiPc/match"; 147 import { delPersonForPersonal, getPerPersonList } from '@/apiPc/match'
118 import useUserStore from "@/store/modules/user"; 148 import useUserStore from '@/store/modules/user'
119 import {ElMessage, ElMessageBox} from "element-plus"; 149 import { ElMessage, ElMessageBox } from 'element-plus'
120 import _ from "lodash"; 150 import _ from 'lodash'
121 const language= useStorage('language',0) 151
152 const language = useStorage('language', 0)
122 const user = useUserStore().user 153 const user = useUserStore().user
123 const {proxy} = getCurrentInstance() 154 const { proxy } = getCurrentInstance()
124 const emit = defineEmits([ 'transfer']) 155 const emit = defineEmits(['transfer'])
125 const data = reactive({ 156 const data = reactive({
126 query: { 157 query: {
127 label:'0', 158 label: '0',
128 pageSize: 10, 159 pageSize: 10,
129 pageNum:1 160 pageNum: 1
130 }, 161 },
131 tableData: [], 162 tableData: [],
132 show: false, 163 show: false,
...@@ -134,10 +165,10 @@ const data = reactive({ ...@@ -134,10 +165,10 @@ const data = reactive({
134 title: '选择运动员', 165 title: '选择运动员',
135 noPhotoCanSign: 0, 166 noPhotoCanSign: 0,
136 total: 0, 167 total: 0,
137 isNational:false, 168 isNational: false,
138 mateId:0 169 mateId: 0
139 }) 170 })
140 const {query, tableData, show, title, loading, noPhotoCanSign,total,isNational,mateId} = toRefs(data) 171 const { query, tableData, show, title, loading, noPhotoCanSign, total, isNational, mateId } = toRefs(data)
141 const certificates = ref([ 172 const certificates = ref([
142 { 173 {
143 value: '0', 174 value: '0',
...@@ -173,7 +204,7 @@ const reSetChoosed = () => { ...@@ -173,7 +204,7 @@ const reSetChoosed = () => {
173 for (const p of choosedList) { 204 for (const p of choosedList) {
174 choosedIds.push(p.id) 205 choosedIds.push(p.id)
175 } 206 }
176 console.log(choosedIds,choosedList) 207 console.log(choosedIds, choosedList)
177 for (const n of tableData.value) { 208 for (const n of tableData.value) {
178 if (choosedIds.indexOf(n.id) > -1) { 209 if (choosedIds.indexOf(n.id) > -1) {
179 proxy.$refs['allSportmenTable'].toggleRowSelection(n, true) 210 proxy.$refs['allSportmenTable'].toggleRowSelection(n, true)
...@@ -187,15 +218,15 @@ const selectable = (row) => { ...@@ -187,15 +218,15 @@ const selectable = (row) => {
187 if (!row.picUrl && noPhotoCanSign.value == 0) { 218 if (!row.picUrl && noPhotoCanSign.value == 0) {
188 return false 219 return false
189 } else if (!row.passportUrl) { 220 } else if (!row.passportUrl) {
190 // ElMessageBox.confirm(language.value == 0 ? `请上传${row.realName}的有效证件` : `Please Upload ${row.realName}'s Valid Passport`) 221 // ElMessageBox.confirm(language.value == 0 ? `请上传${row.realName}的有效证件` : `Please Upload ${row.realName}'s Valid Passport`)
191 return false 222 return false
192 } else { 223 } else {
193 return true 224 return true
194 } 225 }
195 } 226 }
196 const getList = () => { 227 const getList = () => {
197 loading.value = true 228 loading.value = true
198 getPerPersonList(query.value,user.userId).then(res => { 229 getPerPersonList(query.value, user.userId).then(res => {
199 total.value = res.total 230 total.value = res.total
200 // const startIndex = (query.value.pageNum - 1) * query.value.pageSize; 231 // const startIndex = (query.value.pageNum - 1) * query.value.pageSize;
201 // const endIndex = startIndex + query.value.pageSize; 232 // const endIndex = startIndex + query.value.pageSize;
...@@ -214,13 +245,13 @@ function handleSelectionChange(val) { ...@@ -214,13 +245,13 @@ function handleSelectionChange(val) {
214 for (const p of val) { 245 for (const p of val) {
215 choosedIds.push(p.id) 246 choosedIds.push(p.id)
216 } 247 }
217 //判断是否队友 248 // 判断是否队友
218 if(val.length==2){ 249 if (val.length == 2) {
219 if(val[0].sex!=val[1].sex){ 250 if (val[0].sex != val[1].sex) {
220 checkTwo(val[0],val[1]) 251 checkTwo(val[0], val[1])
221 } 252 }
222 } 253 }
223 if(val.length>0){ 254 if (val.length > 0) {
224 const newVal = _.last(val) 255 const newVal = _.last(val)
225 match.signgetSignInfoConflict({ 256 match.signgetSignInfoConflict({
226 cptId: matchId, 257 cptId: matchId,
...@@ -234,18 +265,20 @@ function handleSelectionChange(val) { ...@@ -234,18 +265,20 @@ function handleSelectionChange(val) {
234 }) 265 })
235 } 266 }
236 } 267 }
237 function checkTwo(a,b) { 268
238 match.checkMate({per1Id:a.id,per2Id:b.id,cptId:matchId}).then(res=>{ 269 function checkTwo(a, b) {
239 if(!res.data){ 270 match.checkMate({ per1Id: a.id, per2Id: b.id, cptId: matchId }).then(res => {
240 if(isNational.value){ 271 if (!res.data) {
241 ElMessage.warning(language.value == 0 ? '他们不是固定组合':'They\'re not a couple') 272 if (isNational.value) {
273 ElMessage.warning(language.value == 0 ? '他们不是固定组合' : 'They\'re not a couple')
242 } else { 274 } else {
243 ElMessage.warning(language.value == 0 ? `${a.realName} 已经和其他人组成舞伴,无法报名:请重新选择`:`${a.realName} has already formed a dancer with another person, cannot sign up: please select again`) 275 ElMessage.warning(language.value == 0 ? `${a.realName} 已经和其他人组成舞伴,无法报名:请重新选择` : `${a.realName} has already formed a dancer with another person, cannot sign up: please select again`)
244 } 276 }
245 proxy.$refs['allSportmenTable'].clearSelection() 277 proxy.$refs['allSportmenTable'].clearSelection()
246 } 278 }
247 }) 279 })
248 } 280 }
281
249 function submit() { 282 function submit() {
250 if (choosedIds.length == 0) { 283 if (choosedIds.length == 0) {
251 ElMessage.warning(language.value == 0 ? '请选择运动员' : 'Please select athletes') 284 ElMessage.warning(language.value == 0 ? '请选择运动员' : 'Please select athletes')
...@@ -254,12 +287,15 @@ function submit() { ...@@ -254,12 +287,15 @@ function submit() {
254 emit('transfer', choosedList) 287 emit('transfer', choosedList)
255 show.value = false 288 show.value = false
256 } 289 }
290
257 function getRowKeys(row) { 291 function getRowKeys(row) {
258 return row.id 292 return row.id
259 } 293 }
294
260 function close() { 295 function close() {
261 choosedIds = [] 296 choosedIds = []
262 } 297 }
298
263 function cancel() { 299 function cancel() {
264 show.value = false 300 show.value = false
265 } 301 }
...@@ -268,11 +304,11 @@ function editPerson(row) { ...@@ -268,11 +304,11 @@ function editPerson(row) {
268 console.log(isNational.value) 304 console.log(isNational.value)
269 const params = { 305 const params = {
270 id: row.id, 306 id: row.id,
271 title: language.value == 0 ?'编辑人员':'Edit Person', 307 title: language.value == 0 ? '编辑人员' : 'Edit Person',
272 groupId: '0', 308 groupId: '0',
273 label: '0' 309 label: '0'
274 } 310 }
275 if (isNational.value){ 311 if (isNational.value) {
276 proxy.$refs['dialogAddWdsf'].open(params) 312 proxy.$refs['dialogAddWdsf'].open(params)
277 } else { 313 } else {
278 proxy.$refs['dialogAddCoach'].open(params) 314 proxy.$refs['dialogAddCoach'].open(params)
...@@ -282,27 +318,28 @@ function editPerson(row) { ...@@ -282,27 +318,28 @@ function editPerson(row) {
282 function addMember() { 318 function addMember() {
283 console.log(isNational.value) 319 console.log(isNational.value)
284 const params = { 320 const params = {
285 title: language.value == 0 ?'添加人员':'Add', 321 title: language.value == 0 ? '添加人员' : 'Add',
286 id: 0, 322 id: 0,
287 groupId: '0', 323 groupId: '0',
288 label: '0' 324 label: '0'
289 } 325 }
290 if (isNational.value){ 326 if (isNational.value) {
291 proxy.$refs['dialogAddWdsf'].open(params) 327 proxy.$refs['dialogAddWdsf'].open(params)
292 } else { 328 } else {
293 proxy.$refs['dialogAddCoach'].open(params) 329 proxy.$refs['dialogAddCoach'].open(params)
294 } 330 }
295 } 331 }
332
296 function deletePerson(p) { 333 function deletePerson(p) {
297 let text = '' 334 let text = ''
298 let t = '提示' 335 let t = '提示'
299 let s = '确定' 336 let s = '确定'
300 let c = '取消' 337 let c = '取消'
301 let msg = '操作成功' 338 let msg = '操作成功'
302 if (language.value==0){ 339 if (language.value == 0) {
303 text = `确定删除${p.realName}${p.sex=='1'?'他':'她'}的舞伴吗?` 340 text = `确定删除${p.realName}${p.sex == '1' ? '他' : '她'}的舞伴吗?`
304 } else { 341 } else {
305 text = `Delete ${p.realName} ${p.sex=='1'?'he':'she'} and ${p.sex=='1'?'his':'hers'} dance mate?` 342 text = `Delete ${p.realName} ${p.sex == '1' ? 'he' : 'she'} and ${p.sex == '1' ? 'his' : 'hers'} dance mate?`
306 t = 'Tips' 343 t = 'Tips'
307 s = 'Confirm' 344 s = 'Confirm'
308 c = 'Cancel' 345 c = 'Cancel'
...@@ -321,7 +358,7 @@ function deletePerson(p) { ...@@ -321,7 +358,7 @@ function deletePerson(p) {
321 } 358 }
322 359
323 </script> 360 </script>
324 <style scoped lang="scss"> 361 <style lang="scss" scoped>
325 .el-form--inline .el-form-item { 362 .el-form--inline .el-form-item {
326 width: auto; 363 width: auto;
327 } 364 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!