zhaohy 3 months ago
parent
commit
9124c37650
  1. 25
      hx-op/src/view/systemManage/systemMenu/editSystemMenu.vue
  2. 5
      lib/saas/view/system/login.vue

25
hx-op/src/view/systemManage/systemMenu/editSystemMenu.vue

@ -107,6 +107,7 @@
const redirectIsshow = ref(true);// const redirectIsshow = ref(true);//
const keepAliveIsshow = ref(false);// const keepAliveIsshow = ref(false);//
const hideChildrenIsshow = ref(true);// const hideChildrenIsshow = ref(true);//
let isClicked = ref(true);//
interface FormState { interface FormState {
menuName: string; menuName: string;
previousMenu:string; previousMenu:string;
@ -161,6 +162,7 @@
const onClose = () => { const onClose = () => {
visible.value = false; visible.value = false;
formRef.value.resetFields(); formRef.value.resetFields();
isClicked.value = true;
}; };
// //
const chanageMenuType = (e:any,typeMenu:any)=>{ const chanageMenuType = (e:any,typeMenu:any)=>{
@ -247,22 +249,34 @@
params.hideChildren = formState.value.hideChildren;// params.hideChildren = formState.value.hideChildren;//
} }
if(addOrEditType.value==1){// if(addOrEditType.value==1){//
if(isClicked.value){
isClicked.value = false;
http.post(menuS.queryMenuPageAdd, params).then(() => { http.post(menuS.queryMenuPageAdd, params).then(() => {
NsMessage.success('操作成功');
visible.value = !visible.value; visible.value = !visible.value;
emit("editObject",formState) emit("editObject",formState);
NsMessage.success('操作成功');
setTimeout(() => {
isClicked.value = !visible.value;
}, 500);
}); });
}
}else{ }else{
params.permissionId = currentLineData.value.permissionId; params.permissionId = currentLineData.value.permissionId;
params.createTime = currentLineData.value.createTime; params.createTime = currentLineData.value.createTime;
params.updateTime = currentLineData.value.updateTime; params.updateTime = currentLineData.value.updateTime;
params.isDelete = currentLineData.value.isDelete; params.isDelete = currentLineData.value.isDelete;
if(isClicked.value){
isClicked.value = false;
http.post(menuS.queryMenuPageEdit, params).then(() => { http.post(menuS.queryMenuPageEdit, params).then(() => {
NsMessage.success('操作成功');
visible.value = !visible.value; visible.value = !visible.value;
emit("editObject",formState) emit("editObject",formState);
NsMessage.success('操作成功');
setTimeout(() => {
isClicked.value = !visible.value;
}, 500);
}); });
} }
}
}) })
} }
// //
@ -335,7 +349,8 @@
formState.value.perissionBtn = record.label; formState.value.perissionBtn = record.label;
formState.value.menuJumpUrl = record.component; formState.value.menuJumpUrl = record.component;
formState.value.menuRedirect = record.redirect.name; formState.value.menuRedirect = record.redirect.name;
formState.value.keepAlive = record.keepAlive;
formState.value.hideChildren = record.hideChildren;
} }
} }

5
lib/saas/view/system/login.vue

@ -80,7 +80,7 @@
import { storeToRefs } from 'pinia'; import { storeToRefs } from 'pinia';
import { NsMessage } from '/nerv-lib/component'; import { NsMessage } from '/nerv-lib/component';
import { replyDynamRoutesPath } from '/nerv-lib/util/dynamicRoutesss'; import { replyDynamRoutesPath } from '/nerv-lib/util/dynamicRoutesss';
import { Enobscure, Deobscure } from '/nerv-lib/util/crypto'; // import { Enobscure, Deobscure } from '/nerv-lib/util/crypto';
export default defineComponent({ export default defineComponent({
name: 'UserLogin', name: 'UserLogin',
@ -127,7 +127,8 @@
const submit = (value): void => { const submit = (value): void => {
let data = JSON.stringify({ let data = JSON.stringify({
accountNo: userName.value.trim(), accountNo: userName.value.trim(),
password: Enobscure(password.value.trim()), password: password.value.trim()
// password: Enobscure(password.value.trim()),//
}); });
validator(null, value?.code) validator(null, value?.code)
.then(() => { .then(() => {

Loading…
Cancel
Save