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
2f28bccf
Commit
2f28bccf
authored
Jul 16, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
okdata grid
parent
59bbf396
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
dataGrid.vue
components/page/dataGrid.vue
+0
-8
index.vue
pages/workflow/process/index.vue
+1
-1
No files found.
components/page/dataGrid.vue
View file @
2f28bccf
...
...
@@ -277,23 +277,19 @@ export default {
}
else
{
this
.
easySearch
();
}
// console.warn("this.$refs.main.clientX",this.$refs.main.offsetTop,this.$refs.main.offsetHeight)
if
(
this
.
height
===
0
)
{
this
.
$nextTick
(()
=>
{
this
.
tableHeight
=
this
.
$refs
.
main
.
offsetHeight
;
if
(
this
.
tableHeight
<
300
)
{
this
.
tableHeight
=
window
.
screen
.
availHeight
-
this
.
$refs
.
main
.
offsetTop
-
200
;
}
// console.warn("this.$refs.main.VVV",this.tableHeight)
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
console
.
warn
(
123
)
this
.
tableHeight
=
this
.
$refs
.
main
.
offsetHeight
;
if
(
this
.
tableHeight
<
300
)
{
this
.
tableHeight
=
window
.
screen
.
availHeight
-
this
.
$refs
.
main
.
offsetTop
-
150
;
}
console
.
warn
(
"this.$refs.main.tableHeight"
,
this
.
tableHeight
)
})();
};
});
...
...
@@ -302,7 +298,6 @@ export default {
}
//注册拖拽事件。
this
.
$dragging
.
$on
(
"dragend"
,
e
=>
{
// console.log("dragend",e);
this
.
saveUserconfig
();
});
},
...
...
@@ -328,7 +323,6 @@ export default {
if
(
this
.
userConfig
)
{
var
curColumns
=
[];
var
config
=
JSON
.
parse
(
this
.
userConfig
.
content
);
// console.warn("2:列比对",config)
if
(
config
.
length
==
this
.
columnsCur
.
length
)
{
config
.
map
(
u
=>
{
var
item
=
this
.
columnsCur
.
filter
(
c
=>
{
...
...
@@ -339,7 +333,6 @@ export default {
curColumns
.
push
(
item
[
0
]);
}
});
// console.warn("3:初始化列")
this
.
columnsCur
=
curColumns
;
}
}
...
...
@@ -369,7 +362,6 @@ export default {
if
(
r
.
success
)
{
if
(
r
.
result
.
length
==
1
)
{
this
.
userConfig
=
r
.
result
[
0
];
// console.warn("1:加载用户配置")
this
.
columnInit
();
}
if
(
!
this
.
configLoad
)
{
...
...
pages/workflow/process/index.vue
View file @
2f28bccf
...
...
@@ -268,7 +268,7 @@ export default {
})
},
remove
(
id
)
{
Api
.
delete
({
id
:
this
.
curId
}).
then
((
r
)
=>
{
Api
.
delete
({
id
:
id
}).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
()
this
.
deletelModal
=
false
...
...
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