Commit fb30ee62 authored by 赵伟庚's avatar 赵伟庚

update:菜单管理新增资源路径字段

parent 32296f65
......@@ -92,21 +92,21 @@ export default {
menuIndex:'',
}
},
created(){},
mounted() {
created(){
this.initMsg()
},
mounted() {
},
methods:{
openMsg(data) {
console.log(123123123)
this.readFlag = !this.readFlag;
},
initMsg() {
if(this.userInfo && this.userInfo.userId) {
this.$trace.setOptionValue('userId',this.userInfo.userId)
this.$trace.setOptionValue('userType',this.userInfo.userType)
this.$trace.setOptionValue('roleId',this.userInfo.roleIds.join(','))
this.$trace.setOptionValue('organization',this.userInfo.orgId)
if(this.userInfo && this.userInfo.system_id) {
this.$trace.setOptionValue('userId',this.userInfo.system_id)
// this.$trace.setOptionValue('userType',this.userInfo.userType)
// this.$trace.setOptionValue('roleId',this.userInfo.roleIds.join(','))
this.$trace.setOptionValue('organization',this.userInfo.organization_id)
}
},
handleClose() {
......
......@@ -305,6 +305,7 @@ const fileAction = (val,data,parent,disabled=false) => {
state: 1, // 启用状态
menu_url: "", // 路径
menu_logo: "", // 图标
source: "",
level: data.level, // 当前的level
p_menu_type: parent ? parent.menu_type : 0 // 父级的类型,用于判断菜单下不能建目录
}
......@@ -325,6 +326,7 @@ const fileAction = (val,data,parent,disabled=false) => {
state: 1,
menu_url: "",
menu_logo: "",
source: "",
p_menu_type: data.menu_type,
level: data.level + 1
}
......@@ -443,6 +445,7 @@ const saveMenu = (el,type) => {
state: el.menuForm.state,
menu_url: el.menuForm.menu_url,
menu_logo: el.menuForm.menu_logo,
source: el.menuForm.menu_type == 0 ? "" : el.menuForm.source,
}
if (state.selectData.id) { // 编辑
axios
......
......@@ -90,7 +90,9 @@
</div>
</div>
</el-form-item>
<el-form-item label="资源路径" v-if="menuForm.menu_type != 0">
<el-input v-model="menuForm.source" show-word-limit maxlength="200" placeholder="请输入资源路径" />
</el-form-item>
</el-form>
</template>
......@@ -117,6 +119,7 @@ const state = reactive({
state: 1,
menu_url: "",
menu_logo: "",
source: "",
},
formRules: {
menu_name: [
......
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