Browse Source

Merge branch 'bug_mk' into feature

feature
mk 1 year ago
parent
commit
c57808c807
  1. 2
      src/views/components/resiSearch.vue
  2. 2
      src/views/dataBoard/renfang/index.vue
  3. 43
      src/views/modules/base/resi.vue
  4. 26
      src/views/modules/home/index.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: '',

2
src/views/dataBoard/renfang/index.vue

@ -568,7 +568,7 @@ export default {
clickAgencyItem(item) { clickAgencyItem(item) {
console.log(item); console.log(item);
if (item.level === 'neighborHood') { if (item.level === 'neighborHood') {
this.$router.push('/homeDetails/index?id=' + item.id) this.$router.push('/homeDetails/index?id=' + item.id + '&breadList='+JSON.stringify(this.breadList))
} else { } else {
this.toBread({ this.toBread({
orgId: item.id, orgId: item.id,

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

@ -102,10 +102,10 @@
<!-- <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> -->
<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>
<el-dropdown-item command="2">批量确认</el-dropdown-item> <el-dropdown-item command="2">批量确认</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@ -212,7 +212,7 @@
<el-dropdown-item v-if="false && btnAuths.ic_resi_change_rec" command="bgjl">变更记录</el-dropdown-item> <el-dropdown-item v-if="false && btnAuths.ic_resi_change_rec" command="bgjl">变更记录</el-dropdown-item>
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="swdj">死亡登记</el-dropdown-item> <el-dropdown-item v-if="btnAuths.ic_resi_update" command="swdj">死亡登记</el-dropdown-item>
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="qcdj">迁出登记</el-dropdown-item> <el-dropdown-item v-if="btnAuths.ic_resi_update" command="qcdj">迁出登记</el-dropdown-item>
<el-dropdown-item v-if="btnAuths.ic_resi_update" command="confirm">信息无误确认</el-dropdown-item> <!-- <el-dropdown-item v-if="btnAuths.ic_resi_update" command="confirm">信息无误确认</el-dropdown-item> -->
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</template> </template>
@ -295,6 +295,7 @@ export default {
}, },
data() { data() {
return { return {
updeBtn:false,
showSercahStatus: false, showSercahStatus: false,
exportLoading:false, exportLoading:false,
exportBtn: false, exportBtn: false,
@ -743,7 +744,9 @@ export default {
this.$message.warning("请先选择要删除的居民"); this.$message.warning("请先选择要删除的居民");
} }
}, },
//
confirmBatch(command) { confirmBatch(command) {
if(command === '1'){ if(command === '1'){
this.$confirm("是否全部确认信息", "提示", { this.$confirm("是否全部确认信息", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
@ -1114,10 +1117,31 @@ export default {
} }
}) })
}, },
//
extractSpecificKeys(obj, keys) {
const resultArray = [];
keys.forEach(key => {
if (key in obj) {
const value = obj[key];
if (Array.isArray(value)) {
resultArray.push(...value); //
} else if(value){
resultArray.push(value); //
}
}
});
return resultArray;
},
async confirresiBatch(ids) { async confirresiBatch(ids) {
const url = `/actual/base/residentCategoryUpdateInfo/unchangePartUpdate`; this.valueb = this.$route.query.param1;
let params = {ids}; let _obj = JSON.parse(JSON.stringify(this.$refs.myResiSearch.form));
_obj.attentionCrowds = _obj.attentionCrowds.flat()
let updateCategorys = this.extractSpecificKeys(_obj,['attentionCrowds','healthStatus','specialCategoryCodes','identity'])
const url = `/actual/base/residentCategoryUpdateInfo/${ids?'unchangePartUpdate':'unchangeMultiUpdate'}`;
let params = {ids,partyFlag:_obj.partyFlag,updateCategorys};
if(!ids){
params = { ..._obj,updateCategorys}
}
const { data, code, msg } = await requestPost(url, params); const { data, code, msg } = await requestPost(url, params);
if (code !== 0) { if (code !== 0) {
return this.$message.error(msg); return this.$message.error(msg);
@ -1242,7 +1266,12 @@ export default {
watch: { watch: {
$route: { $route: {
handler: function (newVal, oldVal) { handler: function (newVal, oldVal) {
if((newVal.name == "base-resi" || oldVal.name === 'home') && newVal.query.type){ if(newVal.name == "base-resi" && newVal.query.type === 'residentCategory'){
this.updeBtn = true
}else {
this.updeBtn = false
}
if((newVal.name == "base-resi" || oldVal.name === 'home') && newVal.query.type ==='updateResi'){
this.$nextTick(()=>{ this.$nextTick(()=>{
this.$refs.myResiSearch.form.updateCategory = newVal.query.category; this.$refs.myResiSearch.form.updateCategory = newVal.query.category;
this.handleSearchFrom(); this.handleSearchFrom();

26
src/views/modules/home/index.vue

@ -144,7 +144,7 @@
</div> </div>
<div class="m-box m-tx" style="position: relative;"> <div class="m-box m-tx" style="position: relative;">
<div class="header" style="display: flex;align-items: center;justify-content: space-between;"> <div class="newqsa"><span >居民信息更新情况</span></div> <div class="update-settings" @click="jumpToJuMin()" v-show="showAll"><img referrerpolicy="no-referrer" <div class="header" style="display: flex;align-items: center;justify-content: space-between;"> <div class="newqsa"><span >居民信息更新情况</span> <span style="color: #ff1200;">数据截止到{{yesterdayDate}}</span></div> <div class="update-settings" @click="jumpToJuMin()" v-show="showAll"><img referrerpolicy="no-referrer"
src="https://lanhu.oss-cn-beijing.aliyuncs.com/pskhmf0717eflwg54wn73s6spnsg6u48r0f69e94b-2bc8-4156-8330-902087b72e0b" />更新设置</div> src="https://lanhu.oss-cn-beijing.aliyuncs.com/pskhmf0717eflwg54wn73s6spnsg6u48r0f69e94b-2bc8-4156-8330-902087b72e0b" />更新设置</div>
</div> </div>
<div style="width: 100%;margin-top:26px;overflow-y: scroll; height:calc(100% - 79px);padding-bottom:15px; box-sizing: border-box" > <div style="width: 100%;margin-top:26px;overflow-y: scroll; height:calc(100% - 79px);padding-bottom:15px; box-sizing: border-box" >
@ -203,6 +203,7 @@ export default {
data() { data() {
return { return {
yesterdayDate:null,
searchStatus: "ini", //ing over searchStatus: "ini", //ing over
searchData: { searchData: {
type: "jumin", type: "jumin",
@ -307,15 +308,24 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.initChart() this.initChart()
this.initEcharts(); this.initEcharts();
}) })
this.agencyLevel = localStorage.getItem("level", data.level); this.getYesterdayDate()
// this.agencyLevel = localStorage.getItem("level", data.level);
console.log( console.log(
"dynamicMenuRoutes----------------------------", "dynamicMenuRoutes----------------------------",
this.$store.state.sidebarMenuList this.$store.state.sidebarMenuList
); );
}, },
methods: { methods: {
//
getYesterdayDate() {
const now = new Date();
now.setDate(now.getDate() - 1);
const year = now.getFullYear();
const month = (now.getMonth() + 1).toString().padStart(2, '0');
const day = now.getDate().toString().padStart(2, '0');
this.yesterdayDate = `${year}-${month}-${day}`;
},
formatNumber(number) { formatNumber(number) {
if (typeof number === 'string') { if (typeof number === 'string') {
// //
@ -478,20 +488,12 @@ export default {
name: '居民详情', name: '居民详情',
resiId: targetId, resiId: targetId,
}); });
this.$router.push({ name: "jumin-huaxiang" });
this.$store.state.contentTabs = this.$store.state.contentTabs.map(
(item) => {
if (item.name === "jumin-huaxiang") {
return { ...item, title: name };
}
return item;
}
);
}else if(item.msgType == "resident_category"){ }else if(item.msgType == "resident_category"){
this.$router.push({ this.$router.push({
name: "base-resi", name: "base-resi",
query: { query: {
category: item.category || null, category: item.category || null,
type:"residentCategory"
}, },
}); });
} else if(item.msgType == "sys_version_upgrade_publish"){ } else if(item.msgType == "sys_version_upgrade_publish"){

Loading…
Cancel
Save