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

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

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