Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
c63ecefa
Commit
c63ecefa
authored
Apr 23, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menuset
parent
96bc2e82
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
70 deletions
+40
-70
base.less
assets/css/base.less
+3
-0
menuset.vue
pages/system/tanant/menuset.vue
+33
-69
base.css
src/assets/css/base.css
+4
-1
No files found.
assets/css/base.less
View file @
c63ecefa
...
...
@@ -205,6 +205,9 @@ html body {
padding-top: 5px;
padding-bottom: 5px;
}
.pb5 {
padding-bottom: 5px;
}
.pd10 {
padding: 10px;
...
...
pages/system/tanant/menuset.vue
View file @
c63ecefa
<
template
>
<div
style=
"width:800px;"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:data=
"list"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入关键字套餐名称/备注"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</Form>
</
template
>
<
template
slot=
"searchForm"
>
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"set()"
:disabled=
"disabled"
>
保存
</Button>
</
template
>
</DataGrid>
<div>
<div
class=
"fr pb5"
>
<Button
type=
"primary"
@
click=
"set()"
:disabled=
"disabled"
>
保存
</Button>
</div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:data=
"list"
:high=
"false"
:set=
"false"
:tool=
"false"
:height=
"400"
></DataGrid>
<Modal
v-model=
"detailModal"
title=
"详情"
>
<Detail
:eid=
"curId"
/>
</Modal>
...
...
@@ -33,7 +26,8 @@ import api from "../account/api";
export
default
{
name
:
"menuSet"
,
components
:
{
Detail
,
Search
Detail
,
Search
},
data
()
{
return
{
...
...
@@ -47,45 +41,6 @@ export default {
curId
:
0
,
currentChoose
:
0
,
columns
:
[
//{ key:"id",title:this.l("id") ,hide:true ,align:"left" },
{
key
:
"creatorUserId"
,
title
:
this
.
l
(
"creatorUserId"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"lastModificationTime"
,
title
:
this
.
l
(
"lastModificationTime"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
l
(
"lastModifierUserId"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"isDeleted"
,
title
:
this
.
l
(
"isDeleted"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"deletionTime"
,
title
:
this
.
l
(
"deletionTime"
),
hide
:
true
,
align
:
"left"
},
// { key: "checked", hide: true, align: "left" },
{
key
:
"deleterUserId"
,
title
:
this
.
l
(
"deleterUserId"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"id"
,
title
:
""
,
...
...
@@ -94,15 +49,15 @@ export default {
render
:
(
h
,
params
)
=>
{
let
self
=
this
;
let
id
=
params
.
row
.
id
;
// let cid=params.row.checkedId
// let cid=params.row.checkedId
let
flag
=
false
;
if
(
self
.
currentChoose
===
id
)
{
if
(
self
.
currentChoose
===
id
)
{
flag
=
true
;
}
else
{
flag
=
false
;
}
return
h
(
"div"
,
[
h
(
"Radio"
,
{
props
:
{
...
...
@@ -110,7 +65,7 @@ export default {
},
on
:
{
"on-change"
:
()
=>
{
// var ra=
// var ra=
self
.
currentChoose
=
id
;
}
}
...
...
@@ -124,7 +79,6 @@ export default {
align
:
"center"
,
easy
:
true
,
high
:
true
,
width
:
240
},
// { key:"remark",title:this.l("remark") ,align:"left" ,easy:true ,high:true },
{
...
...
@@ -164,7 +118,6 @@ export default {
},
props
:
{
v
:
Object
,
companyId
:
Number
},
mounted
()
{
...
...
@@ -198,9 +151,20 @@ export default {
this
.
curId
=
id
;
},
getAll
()
{
let
params
=
{
pageIndex
:
1
,
pageSize
:
20
,
conditions
:
[],
type
:
this
.
companyId
};
let
params
=
{
pageIndex
:
1
,
pageSize
:
20
,
conditions
:
[],
type
:
this
.
companyId
};
this
.
currentChoose
=
0
;
Api
.
paged
(
params
).
then
(
r
=>
{
this
.
list
=
r
.
result
.
items
;
this
.
list
=
r
.
result
.
items
;
r
.
result
.
items
.
forEach
(
data
=>
{
if
(
data
.
id
==
data
.
checkedId
)
{
this
.
currentChoose
=
data
.
id
;
}
});
});
},
l
(
key
)
{
...
...
src/assets/css/base.css
View file @
c63ecefa
...
...
@@ -151,6 +151,9 @@ html body {
padding-top
:
5px
;
padding-bottom
:
5px
;
}
.pb5
{
padding-bottom
:
5px
;
}
.pd10
{
padding
:
10px
;
}
...
...
@@ -646,7 +649,7 @@ html [type=button] {
}
.waitTask
{
/*flex 布局*/
display
:
flex
;
display
:
flex
!important
;
align-items
:
center
;
width
:
200px
;
height
:
100px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment