Browse Source

换全部确认接口

feature
mk 1 year ago
parent
commit
41f80e2ae0
  1. 2
      src/views/components/resiSearch.vue
  2. 7
      src/views/modules/base/resi.vue

2
src/views/components/resiSearch.vue

@ -610,7 +610,7 @@ export default {
ageEnd: '', ageEnd: '',
integrityScoreFrom: null,// integrityScoreFrom: null,//
integrityScoreTo: null,//end integrityScoreTo: null,//end
identity:'', identity:null,
gender: '', gender: '',
cultureLevel: '', cultureLevel: '',
localResidenceFlag: '', localResidenceFlag: '',

7
src/views/modules/base/resi.vue

@ -101,9 +101,8 @@
<!-- <el-button style="margin-left: 10px" v-if="btnAuths.ic_resi_batch_del" size="small" class="diy-button--add" <!-- <el-button style="margin-left: 10px" v-if="btnAuths.ic_resi_batch_del" size="small" class="diy-button--add"
type="parimary" @click="confirmBatch"></el-button> --> type="parimary" @click="confirmBatch"></el-button> -->
<!-- v-if="updeBtn" -->
<el-dropdown size="small" split-button type="primary" style="margin: 0 10px; height: 30px" <el-dropdown size="small" split-button type="primary" style="margin: 0 10px; height: 30px"
@command="(command) => confirmBatch(command)" > @command="(command) => confirmBatch(command)" v-if="updeBtn" >
信息无误确认 信息无误确认
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="1" >全部确认</el-dropdown-item> <el-dropdown-item command="1" >全部确认</el-dropdown-item>
@ -1126,7 +1125,7 @@ export default {
const value = obj[key]; const value = obj[key];
if (Array.isArray(value)) { if (Array.isArray(value)) {
resultArray.push(...value); // resultArray.push(...value); //
} else { } else if(value){
resultArray.push(value); // resultArray.push(value); //
} }
} }
@ -1138,7 +1137,7 @@ export default {
let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form)); let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form));
_obj.attentionCrowds = _obj.attentionCrowds.flat() _obj.attentionCrowds = _obj.attentionCrowds.flat()
let updateCategorys = this.extractSpecificKeys(_obj,['attentionCrowds','healthStatus','specialCategoryCodes','identity']) let updateCategorys = this.extractSpecificKeys(_obj,['attentionCrowds','healthStatus','specialCategoryCodes','identity'])
const url = `/actual/base/residentCategoryUpdateInfo/unchangePartUpdate`; const url = `/actual/base/residentCategoryUpdateInfo/${ids?'unchangePartUpdate':'unchangeMultiUpdate'}`;
let params = {ids,partyFlag:_obj.partyFlag,updateCategorys}; let params = {ids,partyFlag:_obj.partyFlag,updateCategorys};
if(!ids){ if(!ids){
params = { ..._obj,updateCategorys} params = { ..._obj,updateCategorys}

Loading…
Cancel
Save