Browse Source

Merge branch 'preview_xiaowang' into dev

feature
mk 2 years ago
parent
commit
37bcb6f26d
  1. 4
      src/views/dataBoard/overview/index.vue
  2. 39
      src/views/modules/base/resi.vue
  3. 29
      src/views/modules/portrayal/jumin/index.vue

4
src/views/dataBoard/overview/index.vue

@ -73,8 +73,8 @@
-- bmysxqk = 不满意事项情况 -- bmysxqk = 不满意事项情况
-- xqwwcqk = 需求未完成情况 -- xqwwcqk = 需求未完成情况
--> -->
<MapDialog v-if="isShowMapDialog" ref="MapDialog" :currentLevelData="currentLevelData" :type="mapType" <!-- <MapDialog v-if="isShowMapDialog" ref="MapDialog" :currentLevelData="currentLevelData" :type="mapType"
@close="isShowMapDialog = false"/> @close="isShowMapDialog = false"/> -->
<cpt-loading v-show="false"/> <cpt-loading v-show="false"/>
<MapResourceInfo ref="MapResourceInfo" :currentLevelData="currentLevelData"/> <MapResourceInfo ref="MapResourceInfo" :currentLevelData="currentLevelData"/>
</div> </div>

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

@ -969,16 +969,36 @@ export default {
} }
); );
}, },
handelCLickShowCheckPassword(row) { async handelCLickShowCheckPassword(row) {
this.editUserId = row.resiId; const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${row.resiId}`;
this.showCheckPassword = true; const { data, code, msg } = await requestPost(url);
if(code==0){
if(data==true){
this.editUserId = row.resiId;
this.saveCheckPassword()
}
else{
this.editUserId = row.resiId;
this.showCheckPassword = true;
}
}
else{
this.$message.error(msg);
}
}, },
handelClickCheckPassword() { handelClickCheckPassword() {
this.$refs.checkPasswordFrom.validate(async (vali) => { this.$refs.checkPasswordFrom.validate((vali) => {
if (vali) { if (vali) {
const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.editUserId}`; this.saveCheckPassword(this.checkPasswordFrom.password);
} else {
return false;
}
});
},
async saveCheckPassword(password){
const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.editUserId}`;
let parm = { let parm = {
password: this.checkPasswordFrom.password, password,
}; };
const { data, code, msg } = await requestPost(url, parm); const { data, code, msg } = await requestPost(url, parm);
if (code === 0) { if (code === 0) {
@ -992,12 +1012,7 @@ export default {
} else { } else {
this.$message.error(msg); this.$message.error(msg);
} }
} else {
return false;
}
});
}, },
handleAdd() { handleAdd() {
this.$router.push({ name: "add-resi" }); this.$router.push({ name: "add-resi" });
}, },
@ -1178,7 +1193,7 @@ export default {
watch: { watch: {
$route: { $route: {
handler: function (newVal, oldVal) { handler: function (newVal, oldVal) {
if (newVal.name == "base-resi") { if (newVal.name == "base-resi" && oldVal.name!='edit-resi') {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.myResiSearch.form.attentionCrowds = []; this.$refs.myResiSearch.form.attentionCrowds = [];
this.$refs.myResiSearch.form.healthStatus = []; this.$refs.myResiSearch.form.healthStatus = [];

29
src/views/modules/portrayal/jumin/index.vue

@ -21,7 +21,7 @@
<div class="list"> <div class="list">
<div <div
:class="{ item: true, active: index == active }" :class="{ item: true, active: index == active }"
v-for="(item, index) in menuList" v-for="(item, index) in menuList" :key="index"
@click="handelCLickMenu(item.id, index)" @click="handelCLickMenu(item.id, index)"
> >
<span>{{ item.name }}</span <span>{{ item.name }}</span
@ -1161,7 +1161,6 @@ export default {
business_record:'业务记录', business_record:'业务记录',
update_record:'更新记录' update_record:'更新记录'
}; };
const keysWithValueOne = []; const keysWithValueOne = [];
for (const key in this.resiDetailObj.baseInfoDto.categoryInfo) { for (const key in this.resiDetailObj.baseInfoDto.categoryInfo) {
if (this.resiDetailObj.baseInfoDto.categoryInfo[key] === 1 && this.incidence[key]) { if (this.resiDetailObj.baseInfoDto.categoryInfo[key] === 1 && this.incidence[key]) {
@ -1265,10 +1264,28 @@ export default {
console.log(err); console.log(err);
}); });
}, },
// async handleSaveTuomin1() {
handelClickJumpEdit() { // const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.resiId}`;
this.checkType = "edit"; // let parm = {
this.showCheckPassword = true; // password,
// };
// const { data, code, msg } = await requestPost(url, parm);
// },
async handelClickJumpEdit() {
const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${this.resiId}`;
const { data, code, msg } = await requestPost(url);
if(code==0){
if(data==true){
this.handleSaveTuomin()
}
else{
this.checkType = "edit";
this.showCheckPassword = true;
}
}
else{
this.$message.error(msg);
}
}, },
async getDictName(url, params, value, itemType, opction) { async getDictName(url, params, value, itemType, opction) {
try { try {

Loading…
Cancel
Save