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

Loading…
Cancel
Save