Browse Source

系统菜单组件修改

temp
duyufeng 3 months ago
parent
commit
8bb0e07a3b
  1. 7
      hx-op/src/view/systemManage/systemMenu/editSystemMenu.vue

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

@ -164,6 +164,7 @@
}; };
// //
const chanageMenuType = (e:any,typeMenu:any)=>{ const chanageMenuType = (e:any,typeMenu:any)=>{
console.log(e)
let currentType = null; let currentType = null;
if(e && e.target){ if(e && e.target){
currentType = e.target.value; currentType = e.target.value;
@ -201,7 +202,7 @@
preMenuIsshow.value = true; preMenuIsshow.value = true;
btnPermissIsshow.value = true; btnPermissIsshow.value = true;
authorMarkIsshow.value = true; authorMarkIsshow.value = true;
sortIsshow.value = false; sortIsshow.value = true;
menuCodeIsshow.value = false; menuCodeIsshow.value = false;
menuRouteIsshow.value = false; menuRouteIsshow.value = false;
componentIsshow.value = false; componentIsshow.value = false;
@ -216,6 +217,7 @@
formRef.value formRef.value
.validate() .validate()
.then(() => { .then(() => {
// //
let params:any={ let params:any={
pid:'root', pid:'root',
@ -244,6 +246,8 @@
if(menuRadioType.value==1){ if(menuRadioType.value==1){
params.pid = currentLineData.value?currentLineData.value.pid:"root";//pid,'root' params.pid = currentLineData.value?currentLineData.value.pid:"root";//pid,'root'
} }
console.log("1234567777")
console.log(menuRadioType.value)
if(addOrEditType.value==1){// if(addOrEditType.value==1){//
http.post(menuS.queryMenuPageAdd, params).then(() => { http.post(menuS.queryMenuPageAdd, params).then(() => {
NsMessage.success('操作成功'); NsMessage.success('操作成功');
@ -373,6 +377,7 @@
} }
}else{ }else{
menuRadioType.value = 1; menuRadioType.value = 1;
chanageMenuType(null,1);
} }
} }
defineExpose({ defineExpose({

Loading…
Cancel
Save