Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
ab2872c1
Commit
ab2872c1
authored
Feb 15, 2020
by
季圣华
Browse files
升级easyUI到1.9.4版本
parent
0527b980
Changes
540
Show whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 540+
files are displayed.
Plain diff
Email patch
erp_web/js/easyui/demo/tree/lazyload.html
0 → 100644
View file @
ab2872c1
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Lazy Load Tree Nodes - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Lazy Load Tree Nodes
</h2>
<p>
Get full hierarchical tree data but lazy load nodes level by level.
</p>
<div
style=
"margin:20px 0;"
></div>
<div
class=
"easyui-panel"
style=
"padding:5px"
>
<ul
class=
"easyui-tree"
data-options=
"url:'tree_data1.json',method:'get',loadFilter:myLoadFilter"
></ul>
</div>
<script>
function
myLoadFilter
(
data
,
parent
){
var
state
=
$
.
data
(
this
,
'
tree
'
);
function
setData
(){
var
serno
=
1
;
var
todo
=
[];
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
todo
.
push
(
data
[
i
]);
}
while
(
todo
.
length
){
var
node
=
todo
.
shift
();
if
(
node
.
id
==
undefined
){
node
.
id
=
'
_node_
'
+
(
serno
++
);
}
if
(
node
.
children
){
node
.
state
=
'
closed
'
;
node
.
children1
=
node
.
children
;
node
.
children
=
undefined
;
todo
=
todo
.
concat
(
node
.
children1
);
}
}
state
.
tdata
=
data
;
}
function
find
(
id
){
var
data
=
state
.
tdata
;
var
cc
=
[
data
];
while
(
cc
.
length
){
var
c
=
cc
.
shift
();
for
(
var
i
=
0
;
i
<
c
.
length
;
i
++
){
var
node
=
c
[
i
];
if
(
node
.
id
==
id
){
return
node
;
}
else
if
(
node
.
children1
){
cc
.
push
(
node
.
children1
);
}
}
}
return
null
;
}
setData
();
var
t
=
$
(
this
);
var
opts
=
t
.
tree
(
'
options
'
);
opts
.
onBeforeExpand
=
function
(
node
){
var
n
=
find
(
node
.
id
);
if
(
n
.
children
&&
n
.
children
.
length
){
return
}
if
(
n
.
children1
){
var
filter
=
opts
.
loadFilter
;
opts
.
loadFilter
=
function
(
data
){
return
data
;};
t
.
tree
(
'
append
'
,{
parent
:
node
.
target
,
data
:
n
.
children1
});
opts
.
loadFilter
=
filter
;
n
.
children
=
n
.
children1
;
}
};
return
data
;
}
</script>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui
-1.3.5/demo/datebox/basic
.html
→
erp_web/js/easyui
/demo/tree/lines
.html
View file @
ab2872c1
...
...
@@ -2,7 +2,7 @@
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic DateBox
- jQuery EasyUI Demo
</title>
<title>
Tree Lines
- jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
...
...
@@ -10,12 +10,11 @@
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Basic DateBox
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click the calendar image on the right side.
</div>
</div>
<h2>
Tree Lines
</h2>
<p>
This sample shows how to show tree lines.
</p>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
></input>
<div
class=
"easyui-panel"
style=
"padding:5px"
>
<ul
class=
"easyui-tree"
data-options=
"url:'tree_data1.json',method:'get',animate:true,lines:true"
></ul>
</div>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui/demo/tree/tree_data1.json
0 → 100644
View file @
ab2872c1
[{
"id"
:
1
,
"text"
:
"My Documents"
,
"children"
:[{
"id"
:
11
,
"text"
:
"Photos"
,
"state"
:
"closed"
,
"children"
:[{
"id"
:
111
,
"text"
:
"Friend"
},{
"id"
:
112
,
"text"
:
"Wife"
},{
"id"
:
113
,
"text"
:
"Company"
}]
},{
"id"
:
12
,
"text"
:
"Program Files"
,
"children"
:[{
"id"
:
121
,
"text"
:
"Intel"
},{
"id"
:
122
,
"text"
:
"Java"
,
"attributes"
:{
"p1"
:
"Custom Attribute1"
,
"p2"
:
"Custom Attribute2"
}
},{
"id"
:
123
,
"text"
:
"Microsoft Office"
},{
"id"
:
124
,
"text"
:
"Games"
,
"checked"
:
true
}]
},{
"id"
:
13
,
"text"
:
"index.html"
},{
"id"
:
14
,
"text"
:
"about.html"
},{
"id"
:
15
,
"text"
:
"welcome.html"
}]
}]
erp_web/js/easyui/demo/tree/tree_data2.json
0 → 100644
View file @
ab2872c1
[{
"id"
:
1
,
"text"
:
"My Documents"
,
"children"
:[{
"id"
:
11
,
"text"
:
"Photos"
,
"state"
:
"closed"
,
"children"
:[{
"id"
:
111
,
"text"
:
"Friend"
},{
"id"
:
112
,
"text"
:
"Wife"
},{
"id"
:
113
,
"text"
:
"Company"
}]
},{
"id"
:
12
,
"text"
:
"Program Files"
,
"state"
:
"closed"
,
"children"
:[{
"id"
:
121
,
"text"
:
"Intel"
},{
"id"
:
122
,
"text"
:
"Java"
},{
"id"
:
123
,
"text"
:
"Microsoft Office"
},{
"id"
:
124
,
"text"
:
"Games"
}]
},{
"id"
:
16
,
"text"
:
"Actions"
,
"children"
:[{
"text"
:
"Add"
,
"iconCls"
:
"icon-add"
},{
"text"
:
"Remove"
,
"iconCls"
:
"icon-remove"
},{
"text"
:
"Save"
,
"iconCls"
:
"icon-save"
},{
"text"
:
"Search"
,
"iconCls"
:
"icon-search"
}]
},{
"id"
:
13
,
"text"
:
"index.html"
},{
"id"
:
14
,
"text"
:
"about.html"
},{
"id"
:
15
,
"text"
:
"welcome.html"
}]
}]
erp_web/js/easyui
-1.3.5
/demo/treegrid/actions.html
→
erp_web/js/easyui/demo/treegrid/actions.html
View file @
ab2872c1
...
...
@@ -11,11 +11,8 @@
</head>
<body>
<h2>
TreeGrid Actions
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click the buttons below to perform actions.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<p>
Click the buttons below to perform actions.
</p>
<div
style=
"margin:20px 0;"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"collapseAll()"
>
CollapseAll
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"expandAll()"
>
ExpandAll
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"expandTo()"
>
ExpandTo
</a>
...
...
erp_web/js/easyui
-1.3.5
/demo/treegrid/basic.html
→
erp_web/js/easyui/demo/treegrid/basic.html
View file @
ab2872c1
...
...
@@ -11,11 +11,8 @@
</head>
<body>
<h2>
Basic TreeGrid
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
TreeGrid allows you to expand or collapse group rows.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<p>
TreeGrid allows you to expand or collapse group rows.
</p>
<div
style=
"margin:20px 0;"
></div>
<table
title=
"Folder Browser"
class=
"easyui-treegrid"
style=
"width:700px;height:250px"
data-options=
"
url: 'treegrid_data1.json',
...
...
erp_web/js/easyui/demo/treegrid/checkbox.html
0 → 100644
View file @
ab2872c1
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Cascade CheckBox in TreeGrid - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Cascade CheckBox in TreeGrid
</h2>
<p>
TreeGrid nodes with cascade check boxes.
</p>
<div
style=
"margin:20px 0;"
></div>
<table
title=
"Folder Browser"
class=
"easyui-treegrid"
style=
"width:700px;height:250px"
data-options=
"
url: 'treegrid_data1.json',
method: 'get',
checkbox: true,
rownumbers: true,
idField: 'id',
treeField: 'name'
"
>
<thead>
<tr>
<th
data-options=
"field:'name'"
width=
"220"
>
Name
</th>
<th
data-options=
"field:'size'"
width=
"100"
align=
"right"
>
Size
</th>
<th
data-options=
"field:'date'"
width=
"150"
>
Modified Date
</th>
</tr>
</thead>
</table>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui/demo/treegrid/clientpagination.html
0 → 100644
View file @
ab2872c1
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Client Side Pagination in TreeGrid - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Client Side Pagination in TreeGrid
</h2>
<p>
This sample shows how to implement client side pagination in TreeGrid.
</p>
<div
style=
"margin:20px 0;"
></div>
<table
id=
"tg"
title=
"Client Side Pagination"
style=
"width:700px;height:250px"
data-options=
"
iconCls: 'icon-ok',
rownumbers: true,
animate: true,
collapsible: true,
fitColumns: true,
url: 'treegrid_data2.json',
method: 'get',
idField: 'id',
treeField: 'name',
pagination: true,
pageSize: 2,
pageList: [2,5,10]
"
>
<thead>
<tr>
<th
data-options=
"field:'name',width:180"
>
Task Name
</th>
<th
data-options=
"field:'persons',width:60,align:'right'"
>
Persons
</th>
<th
data-options=
"field:'begin',width:80"
>
Begin Date
</th>
<th
data-options=
"field:'end',width:80"
>
End Date
</th>
<th
data-options=
"field:'progress',width:120,formatter:formatProgress"
>
Progress
</th>
</tr>
</thead>
</table>
<script
type=
"text/javascript"
>
(
function
(
$
){
function
pagerFilter
(
data
){
if
(
$
.
isArray
(
data
)){
// is array
data
=
{
total
:
data
.
length
,
rows
:
data
}
}
var
target
=
this
;
var
tg
=
$
(
target
);
var
state
=
tg
.
data
(
'
treegrid
'
);
var
opts
=
tg
.
treegrid
(
'
options
'
);
if
(
!
state
.
allRows
){
state
.
allRows
=
data
.
rows
;
}
if
(
!
opts
.
remoteSort
&&
opts
.
sortName
){
var
names
=
opts
.
sortName
.
split
(
'
,
'
);
var
orders
=
opts
.
sortOrder
.
split
(
'
,
'
);
state
.
allRows
.
sort
(
function
(
r1
,
r2
){
var
r
=
0
;
for
(
var
i
=
0
;
i
<
names
.
length
;
i
++
){
var
sn
=
names
[
i
];
var
so
=
orders
[
i
];
var
col
=
$
(
target
).
treegrid
(
'
getColumnOption
'
,
sn
);
var
sortFunc
=
col
.
sorter
||
function
(
a
,
b
){
return
a
==
b
?
0
:
(
a
>
b
?
1
:
-
1
);
};
r
=
sortFunc
(
r1
[
sn
],
r2
[
sn
])
*
(
so
==
'
asc
'
?
1
:
-
1
);
if
(
r
!=
0
){
return
r
;
}
}
return
r
;
});
}
var
topRows
=
[];
var
childRows
=
[];
$
.
map
(
state
.
allRows
,
function
(
row
){
row
.
_parentId
?
childRows
.
push
(
row
)
:
topRows
.
push
(
row
);
row
.
children
=
null
;
});
data
.
total
=
topRows
.
length
;
var
pager
=
tg
.
treegrid
(
'
getPager
'
);
pager
.
pagination
(
'
refresh
'
,
{
total
:
data
.
total
,
pageNumber
:
opts
.
pageNumber
});
opts
.
pageNumber
=
pager
.
pagination
(
'
options
'
).
pageNumber
||
1
;
var
start
=
(
opts
.
pageNumber
-
1
)
*
parseInt
(
opts
.
pageSize
);
var
end
=
start
+
parseInt
(
opts
.
pageSize
);
data
.
rows
=
topRows
.
slice
(
start
,
end
).
concat
(
childRows
);
return
data
;
}
var
appendMethod
=
$
.
fn
.
treegrid
.
methods
.
append
;
var
removeMethod
=
$
.
fn
.
treegrid
.
methods
.
remove
;
var
loadDataMethod
=
$
.
fn
.
treegrid
.
methods
.
loadData
;
$
.
extend
(
$
.
fn
.
treegrid
.
methods
,
{
clientPaging
:
function
(
jq
){
return
jq
.
each
(
function
(){
var
tg
=
$
(
this
);
var
state
=
tg
.
data
(
'
treegrid
'
);
var
opts
=
state
.
options
;
opts
.
loadFilter
=
pagerFilter
;
var
onBeforeLoad
=
opts
.
onBeforeLoad
;
opts
.
onBeforeLoad
=
function
(
row
,
param
){
state
.
allRows
=
null
;
return
onBeforeLoad
.
call
(
this
,
row
,
param
);
}
var
pager
=
tg
.
treegrid
(
'
getPager
'
);
pager
.
pagination
({
onSelectPage
:
function
(
pageNum
,
pageSize
){
opts
.
pageNumber
=
pageNum
;
opts
.
pageSize
=
pageSize
;
pager
.
pagination
(
'
refresh
'
,{
pageNumber
:
pageNum
,
pageSize
:
pageSize
});
tg
.
treegrid
(
'
loadData
'
,
state
.
allRows
);
}
});
tg
.
treegrid
(
'
loadData
'
,
state
.
data
);
if
(
opts
.
url
){
tg
.
treegrid
(
'
reload
'
);
}
});
},
loadData
:
function
(
jq
,
data
){
jq
.
each
(
function
(){
$
(
this
).
data
(
'
treegrid
'
).
allRows
=
null
;
});
return
loadDataMethod
.
call
(
$
.
fn
.
treegrid
.
methods
,
jq
,
data
);
},
append
:
function
(
jq
,
param
){
return
jq
.
each
(
function
(){
var
state
=
$
(
this
).
data
(
'
treegrid
'
);
if
(
state
.
options
.
loadFilter
==
pagerFilter
){
$
.
map
(
param
.
data
,
function
(
row
){
row
.
_parentId
=
row
.
_parentId
||
param
.
parent
;
state
.
allRows
.
push
(
row
);
});
$
(
this
).
treegrid
(
'
loadData
'
,
state
.
allRows
);
}
else
{
appendMethod
.
call
(
$
.
fn
.
treegrid
.
methods
,
$
(
this
),
param
);
}
})
},
remove
:
function
(
jq
,
id
){
return
jq
.
each
(
function
(){
if
(
$
(
this
).
treegrid
(
'
find
'
,
id
)){
removeMethod
.
call
(
$
.
fn
.
treegrid
.
methods
,
$
(
this
),
id
);
}
var
state
=
$
(
this
).
data
(
'
treegrid
'
);
if
(
state
.
options
.
loadFilter
==
pagerFilter
){
for
(
var
i
=
0
;
i
<
state
.
allRows
.
length
;
i
++
){
if
(
state
.
allRows
[
i
][
state
.
options
.
idField
]
==
id
){
state
.
allRows
.
splice
(
i
,
1
);
break
;
}
}
$
(
this
).
treegrid
(
'
loadData
'
,
state
.
allRows
);
}
})
},
getAllRows
:
function
(
jq
){
return
jq
.
data
(
'
treegrid
'
).
allRows
;
}
});
})(
jQuery
);
function
formatProgress
(
value
){
if
(
value
){
var
s
=
'
<div style="width:100%;border:1px solid #ccc">
'
+
'
<div style="width:
'
+
value
+
'
%;background:#cc0000;color:#fff">
'
+
value
+
'
%
'
+
'
</div>
'
'
</div>
'
;
return
s
;
}
else
{
return
''
;
}
}
$
(
function
(){
$
(
'
#tg
'
).
treegrid
().
treegrid
(
'
clientPaging
'
);
})
</script>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui
-1.3.5
/demo/treegrid/contextmenu.html
→
erp_web/js/easyui/demo/treegrid/contextmenu.html
View file @
ab2872c1
...
...
@@ -11,11 +11,8 @@
</head>
<body>
<h2>
TreeGrid ContextMenu
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Right click to display the context menu.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<p>
Right click to display the context menu.
</p>
<div
style=
"margin:20px 0;"
></div>
<table
id=
"tg"
class=
"easyui-treegrid"
title=
"TreeGrid ContextMenu"
style=
"width:700px;height:250px"
data-options=
"
iconCls: 'icon-ok',
...
...
@@ -58,6 +55,7 @@
}
}
function
onContextMenu
(
e
,
row
){
if
(
row
){
e
.
preventDefault
();
$
(
this
).
treegrid
(
'
select
'
,
row
.
id
);
$
(
'
#mm
'
).
menu
(
'
show
'
,{
...
...
@@ -65,6 +63,7 @@
top
:
e
.
pageY
});
}
}
var
idIndex
=
100
;
function
append
(){
idIndex
++
;
...
...
erp_web/js/easyui/demo/treegrid/customcheckbox.html
0 → 100644
View file @
ab2872c1
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Custom CheckBox in TreeGrid - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Custom CheckBox in TreeGrid
</h2>
<p>
TreeGrid nodes with customized check boxes.
</p>
<div
style=
"margin:20px 0;"
></div>
<table
title=
"Folder Browser"
class=
"easyui-treegrid"
style=
"width:700px;height:250px"
data-options=
"
url: 'treegrid_data1.json',
method: 'get',
rownumbers: true,
idField: 'id',
treeField: 'name',
checkbox: function(row){
var names = ['Java','eclipse.exe','eclipse.ini'];
if ($.inArray(row.name, names)>=0){
return true;
}
}
"
>
<thead>
<tr>
<th
data-options=
"field:'name'"
width=
"220"
>
Name
</th>
<th
data-options=
"field:'size'"
width=
"100"
align=
"right"
>
Size
</th>
<th
data-options=
"field:'date'"
width=
"150"
>
Modified Date
</th>
</tr>
</thead>
</table>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui
-1.3.5
/demo/treegrid/editable.html
→
erp_web/js/easyui/demo/treegrid/editable.html
View file @
ab2872c1
...
...
@@ -11,11 +11,8 @@
</head>
<body>
<h2>
Editable TreeGrid
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Select one node and click edit button to perform editing.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<p>
Select one node and click edit button to perform editing.
</p>
<div
style=
"margin:20px 0;"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"edit()"
>
Edit
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"save()"
>
Save
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"cancel()"
>
Cancel
</a>
...
...
erp_web/js/easyui/demo/treegrid/fluid.html
0 → 100644
View file @
ab2872c1
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Fluid TreeGrid - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Fluid TreeGrid
</h2>
<p>
This example shows how to assign percentage width to a column in TreeGrid.
</p>
<div
style=
"margin:20px 0;"
></div>
<table
title=
"Fluid Browser"
class=
"easyui-treegrid"
style=
"width:700px;height:250px"
data-options=
"
url: 'treegrid_data1.json',
method: 'get',
idField: 'id',
treeField: 'name'
"
>
<thead>
<tr>
<th
data-options=
"field:'name'"
width=
"50%"
>
Name(50%)
</th>
<th
data-options=
"field:'size'"
width=
"20%"
align=
"right"
>
Size(20%)
</th>
<th
data-options=
"field:'date'"
width=
"30%"
>
Modified Date(30%)
</th>
</tr>
</thead>
</table>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui
-1.3.5
/demo/treegrid/footer.html
→
erp_web/js/easyui/demo/treegrid/footer.html
View file @
ab2872c1
...
...
@@ -11,11 +11,8 @@
</head>
<body>
<h2>
TreeGrid with Footer
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Show summary information on TreeGrid footer.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<p>
Show summary information on TreeGrid footer.
</p>
<div
style=
"margin:20px 0;"
></div>
<table
id=
"tg"
></table>
<script
type=
"text/javascript"
>
$
(
function
(){
...
...
erp_web/js/easyui/demo/treegrid/lines.html
0 → 100644
View file @
ab2872c1
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
TreeGrid Lines - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
TreeGrid Lines
</h2>
<p>
This example shows how to show treegrid lines.
</p>
<div
style=
"margin:20px 0;"
></div>
<table
title=
"TreeGrid Lines"
class=
"easyui-treegrid"
style=
"width:700px;height:250px"
data-options=
"
url: 'treegrid_data1.json',
method: 'get',
lines: true,
rownumbers: true,
idField: 'id',
treeField: 'name'
"
>
<thead>
<tr>
<th
data-options=
"field:'name'"
width=
"220"
>
Name
</th>
<th
data-options=
"field:'size'"
width=
"100"
align=
"right"
>
Size
</th>
<th
data-options=
"field:'date'"
width=
"150"
>
Modified Date
</th>
</tr>
</thead>
</table>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui
-1.3.5
/demo/treegrid/reports.html
→
erp_web/js/easyui/demo/treegrid/reports.html
View file @
ab2872c1
...
...
@@ -11,11 +11,8 @@
</head>
<body>
<h2>
Reports using TreeGrid
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Using TreeGrid to show complex reports.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<p>
Using TreeGrid to show complex reports.
</p>
<div
style=
"margin:20px 0;"
></div>
<table
title=
"Reports using TreeGrid"
class=
"easyui-treegrid"
style=
"width:700px;height:250px"
data-options=
"
url: 'treegrid_data3.json',
...
...
erp_web/js/easyui/demo/treegrid/treegrid_data1.json
0 → 100644
View file @
ab2872c1
[{
"id"
:
1
,
"name"
:
"C"
,
"size"
:
""
,
"date"
:
"02/19/2010"
,
"children"
:[{
"id"
:
2
,
"name"
:
"Program Files"
,
"size"
:
"120 MB"
,
"date"
:
"03/20/2010"
,
"children"
:[{
"id"
:
21
,
"name"
:
"Java"
,
"size"
:
""
,
"date"
:
"01/13/2010"
,
"state"
:
"closed"
,
"children"
:[{
"id"
:
211
,
"name"
:
"java.exe"
,
"size"
:
"142 KB"
,
"date"
:
"01/13/2010"
},{
"id"
:
212
,
"name"
:
"jawt.dll"
,
"size"
:
"5 KB"
,
"date"
:
"01/13/2010"
}]
},{
"id"
:
22
,
"name"
:
"MySQL"
,
"size"
:
""
,
"date"
:
"01/13/2010"
,
"state"
:
"closed"
,
"children"
:[{
"id"
:
221
,
"name"
:
"my.ini"
,
"size"
:
"10 KB"
,
"date"
:
"02/26/2009"
},{
"id"
:
222
,
"name"
:
"my-huge.ini"
,
"size"
:
"5 KB"
,
"date"
:
"02/26/2009"
},{
"id"
:
223
,
"name"
:
"my-large.ini"
,
"size"
:
"5 KB"
,
"date"
:
"02/26/2009"
}]
}]
},{
"id"
:
3
,
"name"
:
"eclipse"
,
"size"
:
""
,
"date"
:
"01/20/2010"
,
"children"
:[{
"id"
:
31
,
"name"
:
"eclipse.exe"
,
"size"
:
"56 KB"
,
"date"
:
"05/19/2009"
},{
"id"
:
32
,
"name"
:
"eclipse.ini"
,
"size"
:
"1 KB"
,
"date"
:
"04/20/2010"
},{
"id"
:
33
,
"name"
:
"notice.html"
,
"size"
:
"7 KB"
,
"date"
:
"03/17/2005"
}]
}]
}]
\ No newline at end of file
erp_web/js/easyui
-1.3.5
/demo/treegrid/treegrid_data2.json
→
erp_web/js/easyui/demo/treegrid/treegrid_data2.json
View file @
ab2872c1
File moved
erp_web/js/easyui
-1.3.5
/demo/treegrid/treegrid_data3.json
→
erp_web/js/easyui/demo/treegrid/treegrid_data3.json
View file @
ab2872c1
File moved
erp_web/js/easyui
-1.3.5
/demo/validatebox/basic.html
→
erp_web/js/easyui/demo/validatebox/basic.html
View file @
ab2872c1
...
...
@@ -11,35 +11,35 @@
</head>
<body>
<h2>
Basic ValidateBox
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
It's easy to add validate logic to a input box.
</div>
<p>
It's easy to add validate logic to a input box.
</p>
<div
style=
"margin:20px 0;"
></div>
<div
class=
"easyui-panel"
title=
"Register"
style=
"width:100%;max-width:400px;padding:30px 60px;"
>
<div
style=
"margin-bottom:20px"
>
<label
for=
"username"
class=
"label-top"
>
User Name:
</label>
<input
id=
"username"
class=
"easyui-validatebox tb"
data-options=
"required:true,validType:'length[3,10]'"
>
</div>
<div
style=
"margin:10px 0;"
></div>
<div
class=
"easyui-panel"
title=
"Register"
style=
"width:400px;padding:10px"
>
<table>
<tr>
<td>
User Name:
</td>
<td><input
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[3,10]'"
></td>
</tr>
<tr>
<td>
Email:
</td>
<td><input
class=
"easyui-validatebox"
data-options=
"required:true,validType:'email'"
></td>
</tr>
<tr>
<td>
Birthday:
</td>
<td><input
class=
"easyui-datebox"
></td>
</tr>
<tr>
<td>
URL:
</td>
<td><input
class=
"easyui-validatebox"
data-options=
"required:true,validType:'url'"
></td>
</tr>
<tr>
<td>
Phone:
</td>
<td><input
class=
"easyui-validatebox"
data-options=
"required:true"
></td>
</tr>
</table>
<div
style=
"margin-bottom:20px"
>
<label
for=
"email"
class=
"label-top"
>
Email:
</label>
<input
id=
"email"
class=
"easyui-validatebox tb"
data-options=
"required:true,validType:'email'"
>
</div>
<div
style=
"margin-bottom:20px"
>
<label
for=
"url"
class=
"label-top"
>
Url:
</label>
<input
id=
"url"
class=
"easyui-validatebox tb"
data-options=
"required:true,validType:'url'"
>
</div>
<div
style=
"margin-bottom:20px"
>
<label
for=
"phone"
class=
"label-top"
>
Phone:
</label>
<input
id=
"phone"
class=
"easyui-validatebox tb"
data-options=
"required:true"
>
</div>
</div>
<style
scoped=
"scoped"
>
.tb
{
width
:
100%
;
margin
:
0
;
padding
:
5px
4px
;
border
:
1px
solid
#ccc
;
box-sizing
:
border-box
;
}
</style>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui/demo/validatebox/customtooltip.html
0 → 100644
View file @
ab2872c1
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Custom ValidateBox Tooltip - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Custom ValidateBox Tooltip
</h2>
<p>
This sample shows how to display another tooltip message on a valid textbox.
</p>
<div
style=
"margin:20px 0;"
></div>
<div
class=
"easyui-panel"
title=
"Register"
style=
"width:100%;max-width:400px;padding:30px 60px;"
>
<div
style=
"margin-bottom:20px"
>
<label
for=
"username"
class=
"label-top"
>
User Name:
</label>
<input
id=
"username"
class=
"easyui-validatebox tb"
data-options=
"prompt:'Enter User Name.',required:true,validType:'length[3,10]'"
>
</div>
<div
style=
"margin-bottom:20px"
>
<label
for=
"email"
class=
"label-top"
>
Email:
</label>
<input
id=
"email"
class=
"easyui-validatebox tb"
data-options=
"prompt:'Enter a valid email.',required:true,validType:'email'"
>
</div>
<div
style=
"margin-bottom:20px"
>
<label
for=
"url"
class=
"label-top"
>
Url:
</label>
<input
id=
"url"
class=
"easyui-validatebox tb"
data-options=
"prompt:'Enter your URL.',required:true,validType:'url'"
>
</div>
<div
style=
"margin-bottom:20px"
>
<label
for=
"phone"
class=
"label-top"
>
Phone:
</label>
<input
id=
"phone"
class=
"easyui-validatebox tb"
data-options=
"prompt:'Enter your phone number.',required:true"
>
</div>
</div>
<style
scoped=
"scoped"
>
.tb
{
width
:
100%
;
margin
:
0
;
padding
:
5px
4px
;
border
:
1px
solid
#ccc
;
box-sizing
:
border-box
;
}
</style>
<script>
$
(
function
(){
$
(
'
input.easyui-validatebox
'
).
validatebox
({
validateOnCreate
:
false
,
err
:
function
(
target
,
message
,
action
){
var
opts
=
$
(
target
).
validatebox
(
'
options
'
);
message
=
message
||
opts
.
prompt
;
$
.
fn
.
validatebox
.
defaults
.
err
(
target
,
message
,
action
);
}
});
});
</script>
</body>
</html>
\ No newline at end of file
Prev
1
…
17
18
19
20
21
22
23
24
25
…
27
Next
Write
Preview
Supports
Markdown
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