Commit 23105f31 authored by 黄媛媛's avatar 黄媛媛

update

parent 8e7aca8c
...@@ -147,6 +147,15 @@ ...@@ -147,6 +147,15 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>
<el-form-item label="系统菜单" prop="menutype">
<el-select filterable class='w200' v-model='addMsg.menutype' :placeholder="$t('pub.pleaseSel')">
<el-option label="ERP菜单" :value="1"></el-option>
<el-option label="资产菜单" :value="2"></el-option>
</el-option>
</el-select>
</el-form-item>
</td>
<td> <td>
<el-form-item label="状态"> <el-form-item label="状态">
<el-switch v-model="addMsg.MenuStatus" active-value="0" inactive-value="1"></el-switch> <el-switch v-model="addMsg.MenuStatus" active-value="0" inactive-value="1"></el-switch>
...@@ -212,7 +221,8 @@ ...@@ -212,7 +221,8 @@
'MenuName': '', 'MenuName': '',
'ParentId': '', 'ParentId': '',
'MenuStatus': '0', 'MenuStatus': '0',
'Tier': '' 'Tier': '',
}, },
addMsg: { addMsg: {
'MenuId': '0', 'MenuId': '0',
...@@ -224,7 +234,8 @@ ...@@ -224,7 +234,8 @@
'MenuStatus': '0', 'MenuStatus': '0',
MenuStyleIcon: '', MenuStyleIcon: '',
MenuStyleColor: '', MenuStyleColor: '',
Sort: 0 Sort: 0,
menutype:1,
}, },
rules: { rules: {
Sort: [{ Sort: [{
...@@ -246,6 +257,11 @@ ...@@ -246,6 +257,11 @@
validator: validateParent, validator: validateParent,
trigger: 'change' trigger: 'change'
}], }],
menutype:[{
required: true,
message: '请选择系统菜单',
trigger: 'change'
}],
MenuUrl: [{ MenuUrl: [{
validator: validateUrl, validator: validateUrl,
trigger: 'blur' trigger: 'blur'
...@@ -346,7 +362,9 @@ ...@@ -346,7 +362,9 @@
this.addMsg.MenuStatus = updateList.MenuStatus.toString() this.addMsg.MenuStatus = updateList.MenuStatus.toString()
let style = JSON.parse(updateList.MenuStyle) let style = JSON.parse(updateList.MenuStyle)
this.addMsg.MenuStyleIcon = style.icon this.addMsg.MenuStyleIcon = style.icon
this.addMsg.MenuStyleIcon = style.menutype
this.addMsg.MenuStyleColor = style.color this.addMsg.MenuStyleColor = style.color
this.currentUpdateIndex = index this.currentUpdateIndex = index
}, err => {}) }, err => {})
......
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