34186cd5 by 杨炀

no message

1 parent faeca840
......@@ -243,7 +243,7 @@ const data = reactive({
currProjectId: '',
openTour: false,
isNational: false,
languageSource:'',singlePersonEntryLimit:''
languageSource:'',singlePersonEntryLimit:'',doublePersonEntryLimit:''
})
const {
activeTeam,
......@@ -271,7 +271,7 @@ const {
tableType,
zuQuery,
openTour, currProjectId,
tourCurrent, isNational,languageSource,singlePersonEntryLimit
tourCurrent, isNational,languageSource,singlePersonEntryLimit,doublePersonEntryLimit
} = toRefs(data)
const nextButtonProps = ref({})
const matchId = ref(route.query.matchId)
......@@ -306,6 +306,7 @@ function getMatch(id) {
id: id
}).then(res => {
singlePersonEntryLimit.value = res.data.singlePersonEntryLimit
doublePersonEntryLimit.value = res.data.doublePersonEntryLimit
noPhotoCanSign.value = res.data.noPhotoCanSign
coachOrLeaderFlag.value = res.data.coachOrLeaderFlag
extraform.value = JSON.parse(res.data.participantsInfo)
......@@ -584,6 +585,7 @@ let hasPlevel=''
let hasAlmighty={}
let hasPpropertyLength=0
let isDanNum=0
let isShuangNum=0
watch(projectIds, (newVal, oldVal) => {
let currProject = {}
if (newVal.length > oldVal.length) {
......@@ -601,6 +603,7 @@ watch(projectIds, (newVal, oldVal) => {
hasPlevel=''
hasAlmighty={}
isDanNum = 0
isShuangNum = 0
hasPpropertyLength=0
for(let hh of projectList.value){
if(projectIds.value.indexOf(hh.id)>-1&&hh.pproperty){
......@@ -616,6 +619,9 @@ watch(projectIds, (newVal, oldVal) => {
if(projectIds.value.indexOf(hh.id)>-1&&hh.singleFlag=='1'){
isDanNum += 1
}
if(projectIds.value.indexOf(hh.id)>-1&&hh.doubleSingleProjectFlag=='1'){
isShuangNum += 1
}
}
console.log(hasPproperty,hasPlevel,hasPpropertyLength)
filterProjectList(currProject)
......@@ -630,7 +636,8 @@ function filterProjectList(currProject){
(pp.pproperty==hasPproperty)&&((pp.danceTypeDetailStr.split(',').length>=4&&hasPpropertyLength<4)||(pp.danceTypeDetailStr.split(',').length<4&&hasPpropertyLength>=4))
||(hasPproperty&&pp.pproperty&&pp.pproperty!=hasPproperty)
||(hasPlevel&&pp.plevel&&pp.plevel!=hasPlevel)
||(isDanNum==Number(singlePersonEntryLimit.value) && pp.singleFlag=='1')
||(isDanNum==Number(singlePersonEntryLimit.value) && pp.singleFlag=='1'&&projectIds.value.indexOf(pp.id)==-1)
||(isShuangNum==Number(doublePersonEntryLimit.value) && pp.doubleSingleProjectFlag=='1'&&projectIds.value.indexOf(pp.id)==-1)
){
pp.disabled = true
} else if((hasAlmighty.almightyFlag=='1'&&pp.almightyFlag=='1')
......
......@@ -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.picUrl||!scope.row.phone)" type="danger" @click="editPerson(scope.row)">
<el-button link v-if="!isNational&&(!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)">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!