Browse Source

密码验证

dlt_manageScope_0428
mk 1 year ago
parent
commit
26d6d9b5ae
  1. 39
      src/views/modules/base/resi.vue
  2. 13
      src/views/modules/portrayal/jumin/index.vue

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

@ -968,16 +968,36 @@ export default {
}
);
},
handelCLickShowCheckPassword(row) {
this.editUserId = row.resiId;
this.showCheckPassword = true;
async handelCLickShowCheckPassword(row) {
const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${row.resiId}`;
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() {
this.$refs.checkPasswordFrom.validate(async (vali) => {
this.$refs.checkPasswordFrom.validate((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 = {
password: this.checkPasswordFrom.password,
password,
};
const { data, code, msg } = await requestPost(url, parm);
if (code === 0) {
@ -991,12 +1011,7 @@ export default {
} else {
this.$message.error(msg);
}
} else {
return false;
}
});
},
handleAdd() {
this.$router.push({ name: "add-resi" });
},
@ -1177,7 +1192,7 @@ export default {
watch: {
$route: {
handler: function (newVal, oldVal) {
if (newVal.name == "base-resi") {
if (newVal.name == "base-resi" && oldVal.name!='edit-resi') {
this.$nextTick(() => {
this.$refs.myResiSearch.form.attentionCrowds = [];
this.$refs.myResiSearch.form.healthStatus = [];

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

@ -21,7 +21,6 @@
<div class="list">
<div
: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)"
>
@ -1273,18 +1272,11 @@ export default {
// const { data, code, msg } = await requestPost(url, parm);
// },
async handelClickJumpEdit() {
console.log(this)
const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${this.resiId}`;
const { data, code, msg } = await requestPost(url);
console.log(this.form.password)
console.log(data, code, msg)
if(code==0){
if(data==false){
this.$router.push({
name: "edit-resi",
});
if(data==true){
this.handleSaveTuomin()
}
else{
this.checkType = "edit";
@ -1294,7 +1286,6 @@ export default {
else{
this.$message.error(msg);
}
},
async getDictName(url, params, value, itemType, opction) {
try {

Loading…
Cancel
Save