Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
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
HuangJunbo
antSword
Commits
4e7027e5
Commit
4e7027e5
authored
Apr 10, 2016
by
Y.H
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify the task panel default folding, there is a task to start again
修改任务面板默认折叠,有任务再展开
parent
f00d2706
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
tasks.jsx
source/modules/filemanager/tasks.jsx
+8
-4
No files found.
source/modules/filemanager/tasks.jsx
View file @
4e7027e5
//
//
// 任务管理 模块
//
//
/*
用法:
...
...
@@ -18,6 +18,8 @@ class Tasks {
constructor
(
cell
,
manager
)
{
cell
.
setText
(
`<i class="fa fa-tasks"></i>
${
LANG
[
'title'
]}
`
);
cell
.
setHeight
(
250
);
// 默认折叠panel
cell
.
collapse
();
// 创建表格
let
grid
=
cell
.
attachGrid
();
...
...
@@ -29,7 +31,7 @@ class Tasks {
${
LANG
[
'grid'
][
'header'
][
'stime'
]}
,
${
LANG
[
'grid'
][
'header'
][
'etime'
]}
`
);
grid
.
setColTypes
(
"ro,ro,ro,ro,ro"
);
grid
.
setColTypes
(
"ro,ro,ro,ro,ro"
);
grid
.
setInitWidths
(
"100,*,150,150,150"
);
grid
.
setColAlign
(
"left,left,left,left,left"
);
...
...
@@ -44,6 +46,8 @@ class Tasks {
// task.update('20%');
// task.end('100%');
new
(
name
,
desc
,
progress
)
{
// 展开panel
this
.
cell
.
expand
();
// 创建一个随机ID
const
hash
=
String
(
+
new
Date
()
+
Math
.
random
()).
replace
(
'.'
,
'_'
);
this
.
grid
.
addRow
(
...
...
@@ -81,4 +85,4 @@ class Tasks {
}
export
default
Tasks
;
\ No newline at end of file
export
default
Tasks
;
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