Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
865f9050
authored
2023-03-13 16:10:54 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:menu
1 parent
f264811e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
146 deletions
src/styles/dialogBox.scss
src/views/bdcsj/cfdj/data/index.js
src/views/system/menus/edit-dialog.vue
src/views/system/menus/index.vue
src/styles/dialogBox.scss
View file @
865f905
...
...
@@ -2,7 +2,7 @@
overflow
:
hidden
;
background
:
url("~@/image/dialogBg.png")
no-repeat
!
important
;
background-size
:
100%
100%
!
important
;
min-height
:
90vh
;
//
min-height: 90vh;
.dialog_title
{
display
:
flex
;
...
...
@@ -98,6 +98,7 @@
color
:
#B5D6DC
;
border-radius
:
2px
;
border
:
1px
solid
#224C7C
;
span
{
display
:
inline-block
;
padding
:
3px
;
...
...
@@ -155,7 +156,7 @@
.el-dialog__body
{
padding-top
:
0
;
padding-bottom
:
0
;
height
:
95vh
;
//
height: 95vh;
}
.el-dialog__headerbtn
{
...
...
src/views/bdcsj/cfdj/data/index.js
View file @
865f905
...
...
@@ -43,19 +43,23 @@ class data extends filter {
// },
{
label
:
"查封机关"
,
prop
:
"cfjg"
prop
:
"cfjg"
,
minWidth
:
150
,
},
{
label
:
"查封文号"
,
prop
:
"cfwh"
prop
:
"cfwh"
,
minWidth
:
130
,
},
{
label
:
"解封机关"
,
prop
:
"jfjg"
prop
:
"jfjg"
,
width
:
150
,
},
{
label
:
"解封文号"
,
prop
:
"jfwh"
prop
:
"jfwh"
,
minWidth
:
130
,
},
{
...
...
src/views/system/menus/edit-dialog.vue
View file @
865f905
<
template
>
<div>
<Dialog
class=
"modifydialog"
:title=
"title"
:show
.
sync=
"visible"
:width=
"'767px'"
@
close=
"close()"
>
<template
slot=
"content"
>
<dialogBox
class=
"modifydialog"
:isMain=
"true"
:title=
"2222"
@
closeDialog=
"close"
@
submitForm=
"submitForm"
v-model=
"myValue"
>
<div
class=
"modifydialog-con"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
>
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
>
...
...
@@ -51,33 +50,22 @@
</el-col>
</el-row>
</el-form>
</
template
>
<
template
slot=
"footer"
>
<el-button
class=
"cancel-button"
@
click=
"close()"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm()"
>
保存
</el-button>
</
template
>
</Dialog>
<!-- 图标列表 -->
<IconList
ref=
"iconList"
@
iconName=
"getIconName"
/>
</div>
</dialogBox>
</
template
>
<
script
>
import
Dialog
from
"@/components/Dialog/"
;
import
{
getParentMenuListAction
}
from
'@/api/authorityManage'
import
JsonEditor
from
'@/components/JsonEditors'
import
IconList
from
'@/components/IconList'
import
{
validateCode
}
from
'@/utils/validate'
;
import
{
api
,
httpAction
}
from
'@/api/manageApi'
export
default
{
import
{
getParentMenuListAction
}
from
'@/api/authorityManage'
import
JsonEditor
from
'@/components/JsonEditors'
import
{
validateCode
}
from
'@/utils/validate'
;
import
{
api
,
httpAction
}
from
'@/api/manageApi'
export
default
{
name
:
'MenuModal'
,
components
:
{
IconList
,
JsonEditor
,
Dialog
},
props
:
{
value
:
{
type
:
Boolean
,
default
:
false
},
productId
:
{
type
:
String
,
default
:
''
...
...
@@ -85,6 +73,7 @@
},
data
()
{
return
{
myValue
:
this
.
value
,
form
:
{
icon
:
''
,
code
:
''
...
...
@@ -126,8 +115,11 @@
}
}
},
created
()
{
},
mounted
()
{
},
watch
:
{
value
(
val
)
{
this
.
myValue
=
val
}
},
methods
:
{
// 获取父级菜单
getParentMenuList
(
id
)
{
...
...
@@ -162,7 +154,6 @@
// 新增菜单
add
()
{
this
.
getParentMenuList
(
this
.
productId
)
this
.
visible
=
true
this
.
type
=
0
this
.
form
.
jumpMode
=
1
},
...
...
@@ -176,7 +167,6 @@
this
.
getParentMenuList
(
this
.
productId
)
})
}
this
.
visible
=
true
},
// 选择上级菜单
handleChange
(
value
)
{
...
...
@@ -230,8 +220,12 @@
this
.
visible
=
false
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
//
@import
"~@/styles/public.scss"
;
.modifydialog
{
&-con
{
background
:
#031A46
;
}
}
</
style
>
\ No newline at end of file
...
...
src/views/system/menus/index.vue
View file @
865f905
...
...
@@ -17,27 +17,27 @@
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }">
</lb-table>
</div>
<edit-dialog
ref=
"dialogForm"
:product-id=
"productId"
:resource-category-id=
"resourceCategoryId"
<edit-dialog
ref=
"dialogForm"
v-model=
"isDialog"
:product-id=
"productId"
:resource-category-id=
"resourceCategoryId"
@
ok=
"reloadTableData"
/>
<!--
<authorizationdiglog
ref=
"rolesForm"
/>
-->
</div>
</
template
>
<
script
>
// 定时任务
import
data
from
"./data"
;
import
{
deleteAction
,
getAction
,
api
}
from
"@/api/manageApi"
;
import
EditDialog
from
"./edit-dialog.vue"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
getMenuInfo
}
from
"@/api/user"
;
import
{
// 定时任务
import
data
from
"./data"
;
import
{
deleteAction
,
getAction
,
api
}
from
"@/api/manageApi"
;
import
EditDialog
from
"./edit-dialog.vue"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
getMenuInfo
}
from
"@/api/user"
;
import
{
getUuid
,
judgeSort
,
realMove
,
findParents
,
removeTreeListItem
,
}
from
"@/utils/operation"
;
// import authorizationdiglog from "./authorizationdiglog.vue";
export
default
{
}
from
"@/utils/operation"
;
// import authorizationdiglog from "./authorizationdiglog.vue";
export
default
{
name
:
"menus"
,
components
:
{
EditDialog
,
...
...
@@ -45,6 +45,7 @@
},
data
()
{
return
{
isDialog
:
false
,
tablelistData
:
[],
resourceCategoryId
:
""
,
taskData
:
null
,
...
...
@@ -147,113 +148,22 @@
this
.
productId
=
res
.
content
[
0
].
id
;
this
.
getAuthorityList
(
res
.
content
[
0
].
id
,
res
.
content
[
0
].
code
)
this
.
selectedSubsystemCode
=
res
.
content
[
0
].
code
// let queryOptions = {
// conditionGroup: {
// conditions: [
// {
// property: "productId",
// value: this.productId,
// operator: "EQ",
// },
// ],
// queryRelation: "AND",
// },
// orderBys: [{ property: "sort", direction: "desc" }],
// };
// if (!this.tableUrl) {
// console.log("请设置tableUrl属性为接口地址!");
// return;
// }
// if (this.queryOptions !== "") {
// this.queryParam.queryOptions = JSON.stringify(queryOptions);
// }
// 查询系统菜单
// getAction(this.tableUrl, this.queryParam)
// .then((res) => {
// if (res.status === 1) {
// this.loading = false;
// // this.menutablelistData = res.content;
// console.log("res.content菜单", res.content);
// } else {
// this.$message.error({ message: res.message, showClose: true });
// this.loading = false;
// }
// })
// .catch((error) => {
// console.log("er", error);
// this.loading = false;
// });
})
.
catch
((
error
)
=>
{
console
.
log
(
"er"
,
error
);
});
// const queryOptionsid = {
// conditionGroup: {
// queryRelation: "AND",
// conditions: [
// {
// property: "code",
// value: sessionStorage.getItem("products"),
// operator: "EQ",
// },
// ],
// },
// };
// const params = {
// queryOptions: queryOptionsid,
// };
// // 获取系统id
// getAction(this.meumurlid, params)
// .then((res) => {
// this.productId = res.content[0].id;
// let queryOptions = {
// conditionGroup: {
// conditions: [
// {
// property: "productId",
// value: this.productId,
// operator: "EQ",
// },
// ],
// queryRelation: "AND",
// },
// orderBys: [{ property: "sort", direction: "desc" }],
// };
// if (!this.tableUrl) {
// console.log("请设置tableUrl属性为接口地址!");
// return;
// }
// if (this.queryOptions !== "") {
// this.queryParam.queryOptions = JSON.stringify(queryOptions);
// }
// // 查询系统菜单
// getAction(this.tableUrl, this.queryParam)
// .then((res) => {
// if (res.status === 1) {
// this.loading = false;
// this.tablelistData = res.content;
// } else {
// this.$message.error({ message: res.message, showClose: true });
// this.loading = false;
// }
// })
// .catch((error) => {
// console.log("er", error);
// this.loading = false;
// });
// })
// .catch((error) => {
// console.log("er", error);
// });
})
},
// 新增菜单
handleAdd
()
{
this
.
isDialog
=
true
this
.
$refs
.
dialogForm
.
add
();
this
.
$refs
.
dialogForm
.
title
=
"添加"
;
},
// 修改
handleEdit
(
record
)
{
this
.
isDialog
=
true
this
.
$refs
.
dialogForm
.
edit
(
record
);
this
.
$refs
.
dialogForm
.
title
=
"修改"
;
},
...
...
@@ -302,17 +212,17 @@
this
.
getTableList
()
},
},
};
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/mixin.scss"
;
//
@import
"~@/styles/public.scss"
;
.btnColRight
{
//
@import
"~@/styles/public.scss"
;
.btnColRight
{
margin-top
:
20px
;
}
}
/
deep
/
.el-table__expand-icon
{
/
deep
/
.el-table__expand-icon
{
color
:
#fff
;
}
}
</
style
>
...
...
Please
register
or
sign in
to post a comment