Browse Source

2025-07-31 基础数据调整

master
fengyuan_yang 6 months ago
parent
commit
f1eeb4695d
  1. 11
      src/views/modules/sys/menu-add-or-update.vue
  2. 1
      src/views/modules/sys/menu.vue

11
src/views/modules/sys/menu-add-or-update.vue

@ -11,11 +11,11 @@
<el-radio v-for="(type, index) in dataForm.typeList" :label="index" :key="index">{{ type }}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item :label="dataForm.typeList[dataForm.type] + buttons.code ||'编号'" prop="menuId">
<el-input :readonly="dataForm.id?true:false" style="width: 349px;" v-model="dataForm.menuId" ></el-input>
<el-form-item label="目录编号" prop="menuId">
<el-input :readonly="dataForm.id?true:false" style="width: 349px;" v-model="dataForm.menuId"></el-input>
</el-form-item>
<el-form-item :label="dataForm.typeList[dataForm.type] + buttons.typeName ||'名称'" prop="name">
<el-input style="width: 349px;" v-model="dataForm.name" ></el-input>
<el-form-item label="目录名称" prop="name">
<el-input style="width: 349px;" v-model="dataForm.name"></el-input>
</el-form-item>
<el-form-item :label="buttons.parentName ||'上级菜单'" prop="parentName">
<el-popover
@ -173,7 +173,6 @@
params: this.$http.adornParams()
}).then(({data}) => {
this.menuList = treeDataTranslate(data.menuList, 'menuId')
console.log( this.menuList)
}).then(() => {
this.visible = true
this.$nextTick(() => {
@ -216,7 +215,7 @@
searchFunctionButtonList(queryButton).then(({data}) => {
if (data.code == 0 && data.data) {
this.buttons = data.data
this.typeList= [this.buttons.type1,this.buttons.type2,this.buttons.type3]
this.typeList= [this.buttons.type1, this.buttons.type2, this.buttons.type3]
}
})
},

1
src/views/modules/sys/menu.vue

@ -38,7 +38,6 @@
align="center"
:label="buttons.type||'类型'">
<template slot-scope="scope">
<el-link v-if="scope.row.type === 0" type="success">目录</el-link>
<el-link v-else-if="scope.row.type === 1" size="small" type="success">{{buttons.menu||'菜单'}}菜单</el-link>
<el-link v-else-if="scope.row.type === 2" size="small" type="info">{{buttons.button||'按钮'}}</el-link>

Loading…
Cancel
Save