|
@@ -432,7 +432,7 @@
|
|
|
<el-pagination :key="projectListPageComponentKey"
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
|
- :page-sizes="[20 , 50 , 80 , 100]"
|
|
|
+ :page-sizes="[20 , 50 , 80 , 100,500]"
|
|
|
:page-size="size"
|
|
|
:current-page.sync="page"
|
|
|
layout="total, sizes, prev, pager, next"
|
|
@@ -1382,8 +1382,8 @@
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="addGroupPersonDialog = false" >{{ $t('btn.cancel') }}</el-button>
|
|
|
- <el-button type="primary" @click="addGroupPersonSure()" v-if="isAddGroupPerson">{{ $t('btn.determine') }}</el-button>
|
|
|
- <el-button type="primary" @click="addProPersonSure()" v-else>{{ $t('btn.determine') }}</el-button>
|
|
|
+ <el-button type="primary" @click="addGroupPersonSure()" v-if="isAddGroupPerson" :loading="addingPerson">{{ $t('btn.determine') }}</el-button>
|
|
|
+ <el-button type="primary" @click="addProPersonSure()" v-else :loading="addingPerson">{{ $t('btn.determine') }}</el-button>
|
|
|
</div>
|
|
|
|
|
|
<el-dialog append-to-body :title="$t('screening.selectPeople')" v-if="addGroupPersonPdialog" :visible.sync="addGroupPersonPdialog" width="40%" top="6.5vh">
|
|
@@ -1821,6 +1821,7 @@ a {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ addingPerson: false,
|
|
|
attemptFields: localStorage.getItem('attemptFields'),
|
|
|
importTaskDialog: false,
|
|
|
manDaySetting:{},
|
|
@@ -3162,13 +3163,14 @@ a {
|
|
|
for(let i=0;i<this.addGroupPersonData.group.length;i++){
|
|
|
groupList = [...groupList,...this.addGroupPersonData.group[i]]
|
|
|
}
|
|
|
+ this.addingPerson = true;
|
|
|
this.http.post('/project/batchAddMembToGroup',{
|
|
|
membIdArray: JSON.stringify(this.addGroupPersonData.person),
|
|
|
groupIds: JSON.stringify(groupList)
|
|
|
},res => {
|
|
|
if(res.code == 'ok'){
|
|
|
this.addGroupPersonDialog = false,
|
|
|
-
|
|
|
+ this.addingPerson = false;
|
|
|
this.batchSetWudulistBtn1()
|
|
|
this.$message({
|
|
|
message: this.$t('addsuccessful'),
|
|
@@ -3296,12 +3298,14 @@ a {
|
|
|
// proArr += this.checkedProjectArr[i].id + ','
|
|
|
}
|
|
|
// proArr = proArr.substring(0,proArr.length - 1)
|
|
|
+ this.addingPerson = true;
|
|
|
this.http.post('/project/batchSetParticipation',{
|
|
|
userIds: JSON.stringify(this.addGroupPersonData.person),
|
|
|
projectIdArray: JSON.stringify(proArr),
|
|
|
deptIds: JSON.stringify(this.batchDepartment)
|
|
|
},res => {
|
|
|
if(res.code == 'ok'){
|
|
|
+ this.addingPerson = false;
|
|
|
this.addGroupPersonDialog = false,
|
|
|
|
|
|
this.batchSetWudulistBtn1()
|