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
2290017a
Commit
2290017a
authored
Jun 02, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
datagrid 修改
parent
4f6ed471
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
43 deletions
+26
-43
iview-reset.less
assets/css/iview-reset.less
+3
-27
dataGrid.vue
components/page/dataGrid.vue
+17
-10
orderlist.vue
pages/produce/orderlist.vue
+5
-5
index.vue
pages/technology/index.vue
+1
-1
No files found.
assets/css/iview-reset.less
View file @
2290017a
@import '~view-design/src/styles/index.less';
@primary-color: #249e91;
//
@primary-color: #249e91;
.ivu-btn {
padding: 4px 15px 4px;
...
...
@@ -63,7 +63,7 @@
}
.ivu-btn-group:not(.ivu-btn-group-vertical) .ivu-btn-primary:first-child:not(:last-child) {
border-right-color:
#2b85e4
;
border-right-color:
@primary-color
;
}
.ivu-btn-group:not(.ivu-btn-group-vertical)>.ivu-btn:first-child {
...
...
@@ -126,30 +126,6 @@
z-index: 2;
}
.ivu-input-search:hover {
cursor: pointer;
padding: 0 16px !important;
background: #2ab5a6 !important;
color: #fff !important;
border-color: #2ab5a6 !important;
transition: all .2s ease-in-out;
position: relative;
z-index: 2;
}
.ivu-btn-success {
font-size: 14px;
color: #fff;
background-color: @primary-color;
border-color: @primary-color;
}
.ivu-btn-success:hover {
font-size: 14px;
color: #fff;
background-color: #2ab5a6;
border-color: #2ab5a6;
}
.ivu-btn-default {
font-size: 14px;
...
...
@@ -196,7 +172,7 @@
.ivu-select-dropdown-list{
.ivu-select-item:hover {
color: white;
background-color:
#2d8cf0
;
background-color:
@primary-color
;
}
}
.ivu-form-item {
...
...
components/page/dataGrid.vue
View file @
2290017a
...
...
@@ -26,7 +26,7 @@
</div>
</div>
<div
class=
"table-main"
ref=
"main"
>
<Row
v-if=
"type=='card'"
>
<Row
v-if=
"type=='card'"
:gutter=
"40"
>
<Col
:span=
"span"
v-for=
"(row,i) in list"
:key=
"i"
>
<slot
name=
"card"
:row=
"row"
>
<span>
{{
row
.
id
}}
</span>
...
...
@@ -125,7 +125,7 @@ export default {
pageSizeOpts
:
[
20
,
50
,
100
],
tableHeight
:
0
,
firstY
:
0
,
config
:
false
,
config
:
false
,
list
:
[],
columnsCur
:
[],
configLoad
:
false
,
...
...
@@ -222,9 +222,13 @@ export default {
return
[
"table"
,
"card"
,
"list"
].
indexOf
(
value
)
!==
-
1
;
}
},
span
:
{
span
:
{
//栅格数
type
:
Number
,
default
:
24
},
gutter
:{
//间距
type
:
Number
,
default
:
40
}
},
created
()
{
...
...
@@ -251,13 +255,15 @@ export default {
this
.
easySearch
();
}
if
(
this
.
height
===
0
)
{
this
.
tableHeight
=
this
.
$refs
.
main
.
offsetHeight
;
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
this
.
tableHeight
=
this
.
$refs
.
main
.
offsetHeight
;
})();
};
this
.
$nextTick
(()
=>
{
this
.
tableHeight
=
this
.
$refs
.
main
.
offsetHeight
;
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
this
.
tableHeight
=
this
.
$refs
.
main
.
offsetHeight
;
})();
};
})
}
else
{
this
.
tableHeight
=
this
.
height
;
}
...
...
@@ -535,6 +541,7 @@ export default {
tr td .ivu-table-cell {
padding: 0 5px;
}
overflow-x: hidden;
}
.table-tools {
display: flex;
...
...
pages/produce/orderlist.vue
View file @
2290017a
...
...
@@ -13,7 +13,7 @@
:conditions=
"easySearch"
:action=
"action"
:set=
"set"
:gutter=
"
8
0"
:gutter=
"
4
0"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
...
...
@@ -192,10 +192,10 @@ export default {
};
},
created
()
{
let
oldStr
=
localStorage
.
getItem
(
'admin'
);
let
userlist
=
this
.
$store
.
getters
.
getUser
(
2
);
console
.
info
(
userlist
)
console
.
warn
(
localStorage
)
//
let oldStr=localStorage.getItem('admin');
//
let userlist = this.$store.getters.getUser(2);
//
console.info(userlist)
//
console.warn(localStorage)
// console.warn("02",sessionStorage)
// console.log("user",oldStr)
},
...
...
pages/technology/index.vue
View file @
2290017a
...
...
@@ -31,7 +31,7 @@
</a>
</div>
<Content
class=
"con"
:class=
"!showMenu?'con_bord':''"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
class=
"card_box"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
...
...
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