Commit 804b6957 authored by 赵伟庚's avatar 赵伟庚

update:菜单新建下级逻辑

parent 3e7e1405
...@@ -300,7 +300,7 @@ const fileAction = (val,data,parent,disabled=false) => { ...@@ -300,7 +300,7 @@ const fileAction = (val,data,parent,disabled=false) => {
let newChild = { let newChild = {
menu_name: "新菜单", // 菜单名称 menu_name: "新菜单", // 菜单名称
menu_id: 'new' + state.newMenuId, // 菜单id,用于新增后选中 menu_id: 'new' + state.newMenuId, // 菜单id,用于新增后选中
menu_type: !parent ? 0 : parent.menu_type == 0 ? 0 : parent.menu_type == 1 ? 1 : 2, // 新增本级的类型 menu_type: !parent ? 0 : parent.menu_type == 0 ? 0 : 2, // 新增本级的类型
dict_group_id: parent ? parent.dict_group_id : "", // 父级的分组 有则继承,无则自选 dict_group_id: parent ? parent.dict_group_id : "", // 父级的分组 有则继承,无则自选
state: 1, // 启用状态 state: 1, // 启用状态
menu_url: "", // 路径 menu_url: "", // 路径
...@@ -320,7 +320,7 @@ const fileAction = (val,data,parent,disabled=false) => { ...@@ -320,7 +320,7 @@ const fileAction = (val,data,parent,disabled=false) => {
let newChild = { let newChild = {
menu_name: "新菜单", menu_name: "新菜单",
menu_id: 'new' + state.newMenuId, menu_id: 'new' + state.newMenuId,
menu_type: data.menu_type == 0 ? 0 : data.menu_type == 1 ? 1 : 2, menu_type: data.menu_type == 0 ? 0 : 2,
dict_group_id: data.dict_group_id, dict_group_id: data.dict_group_id,
state: 1, state: 1,
menu_url: "", menu_url: "",
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<el-form-item label="类型" prop="menu_type" v-if="!topLevel"> <el-form-item label="类型" prop="menu_type" v-if="!topLevel">
<el-radio-group v-model="menuForm.menu_type" :disabled="radioDisabled"> <el-radio-group v-model="menuForm.menu_type" :disabled="radioDisabled">
<el-radio :label="0" :disabled="typeDisFlag != 0">目录</el-radio> <el-radio :label="0" :disabled="typeDisFlag != 0">目录</el-radio>
<el-radio :label="1" :disabled="typeDisFlag == 2">菜单</el-radio> <el-radio :label="1" :disabled="typeDisFlag != 2 && typeDisFlag != 0">菜单</el-radio>
<el-radio :label="2">子页面</el-radio> <el-radio :label="2">子页面</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
......
...@@ -201,7 +201,7 @@ const getDetail = () => { ...@@ -201,7 +201,7 @@ const getDetail = () => {
orgPersonRef.value.setForm({ orgPersonRef.value.setForm({
contact_name: form.contact_name, contact_name: form.contact_name,
document_type: form.document_type, document_type: form.document_type ? form.document_type : "",
document_number: form.document_number, document_number: form.document_number,
contact_email: form.contact_email, contact_email: form.contact_email,
remark: form.remark, remark: form.remark,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment