Skip to content

Commit 5eee89b

Browse files
committed
asd
1 parent 9302d85 commit 5eee89b

File tree

5 files changed

+44
-147
lines changed

5 files changed

+44
-147
lines changed

modules/JC.AjaxTree/0.1/AjaxTree.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,14 @@
312312
return this;
313313
}
314314

315+
/**
316+
* 新增节点方法
317+
* @method add
318+
* @param {string} _parentId 父节点ID
319+
* @param {object} _data 新增的数据对象( 对象会通过ajax请求传递,ajax的url读取dom属性“data-addUrl” )
320+
* @param {boolean} _needFresh 是否刷新父节点
321+
* @param {function} _cb 添加请求完毕后的回调函数,请求结果为第一个参数
322+
*/
315323
, add:
316324
function( _parentId, _data, _needFresh, _cb ) {
317325

@@ -330,9 +338,6 @@
330338
}
331339
, dataType: "json"
332340
, success: function( _data ) {
333-
334-
console.log( _data );
335-
336341
if( _data ) {
337342
_p._view.refreshNode( _parentId );
338343

@@ -342,6 +347,11 @@
342347
} );
343348
}
344349

350+
/**
351+
* 刷新某个节点
352+
* @method refreshNode
353+
* @param {string} _nodeId 节点ID
354+
*/
345355
, refreshNode:
346356
function( _nodeId ) {
347357
this._view.refreshNode( _nodeId );
@@ -849,6 +859,10 @@
849859
}
850860
}
851861

862+
/**
863+
* 更新树的具体节点
864+
* @param {string} _nodeId
865+
*/
852866
, refreshNode: function( _nodeId ) {
853867
var _p = this
854868
, _model = _p._model

modules/JC.FrameUtil/0.1/_demo/data/childToParent.noticeChildData.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<script>
4848
JC.debug = true;
4949

50+
5051
requirejs( [ 'JC.Calendar', 'Bizs.FormLogic', 'Bizs.CommonModify', 'JC.FrameUtil' ]
5152
, function( Calendar, FormLogic ){
5253

modules/JC.FrameUtil/0.1/_demo/demo.childToParent.noticeChildData.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
var _frame = JC.FrameUtil.childIdMap( _params.id );
4747
if( _frame && _frame.length ){
4848
alert( [ 'finded', JSON.stringify( _params.data ) ].join( '\n\n' ) );
49+
JC.FrameUtil.noticeChildData( _params );
4950
}
5051
});
5152

@@ -57,7 +58,7 @@
5758
_params.data = {
5859
'inputvalue': 'dddddddddddddd' + JC.f.ts()
5960
};
60-
JC.FrameUtil.noticeChildData( _params );
61+
//JC.FrameUtil.noticeChildData( _params );
6162
}
6263
});
6364
});

modules/JC.Slider/0.1/Slider.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,7 @@
801801
(
802802
this._model.width() -
803803
Math.floor( this._model.width() / this._model.itemwidth() ) * this._model.itemwidth()
804-
)
805-
/ ( this._model.totalpage() - 1 );
804+
) / ( this._model.totalpage() - 1 );
806805
this._itemspace = parseInt( this._itemspace );
807806

808807
this._init();
@@ -873,10 +872,12 @@
873872
}
874873

875874
_oldpointer === (_p._model.totalpage() - 1 )
875+
&& _p._model.totalpage() > 2
876876
&& _newpointer === 0
877877
&& ( _begin = this._model.width() + this._itemspace, _isPlus = false );
878878

879879
_oldpointer === 0
880+
&& _p._model.totalpage() > 2
880881
&& _newpointer === (_p._model.totalpage() - 1 )
881882
&& ( _begin = -( this._model.width() + this._itemspace ), _isPlus = true );
882883

modules/JC.TableFreeze/0.2/_demo/demo.normal.html

Lines changed: 21 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,25 @@
3636

3737
<body>
3838

39+
<div class="table js_compTableFreeze" freezeCols="1" scrollwidth="350%" alternateClass="even">
40+
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="data-table">
41+
<thead>
42+
<tr>
43+
<th>123</th>
44+
<th>CPC</th>
45+
<th>点击</th>
46+
</tr>
47+
</thead>
48+
<tbody>
49+
<tr>
50+
<td>数字营销部(魏霞)</td>
51+
<td><label class="xarrow">864597.00</label></td>
52+
<td><label class="xarrow">546909</label></td>
53+
</tr>
54+
</tbody>
55+
</table>
56+
</div>
57+
3958
<div class="table js_compTableFreeze" freezeType="prev" freezeCols="0">
4059
<table style="width:600px;">
4160
<thead>
@@ -999,7 +1018,7 @@
9991018
</table>
10001019
</div>
10011020

1002-
<div class="table js_compTableFreeze" freezeType="both" freezeCols="1,1">
1021+
<div class="table js_compTableFreeze" freezeCols="1">
10031022
<table>
10041023
<thead>
10051024
<tr>
@@ -1012,157 +1031,18 @@
10121031
<th>
10131032
item2
10141033
</th>
1015-
<th>
1016-
item3
1017-
</th>
1018-
<th>
1019-
item4
1020-
</th>
1021-
<th>
1022-
item5
1023-
</th>
1024-
<th>
1025-
item6
1026-
</th>
1027-
<th>
1028-
item7
1029-
</th>
1030-
<th>
1031-
item8
1032-
</th>
1033-
<th>
1034-
item9
1035-
</th>
10361034
</tr>
10371035
</thead>
10381036
<tbody>
10391037
<tr>
1040-
<td>
1041-
col00
1042-
</td>
1038+
<td>col00</td>
10431039
<td>
10441040
col01
10451041
</td>
10461042
<td>
10471043
col02
10481044
</td>
1049-
<td>
1050-
col03
1051-
</td>
1052-
<td>
1053-
col04
1054-
</td>
1055-
<td colspan="2">
1056-
col05
1057-
</td>
1058-
1059-
<td>
1060-
col07
1061-
</td>
1062-
<td>
1063-
col08
1064-
</td>
1065-
<td>
1066-
col09
1067-
</td>
1068-
</tr>
1069-
<tr>
1070-
<td>
1071-
col10
1072-
</td>
1073-
<td>
1074-
col11
1075-
</td>
1076-
<td>
1077-
col12
1078-
</td>
1079-
<td>
1080-
col13
1081-
</td>
1082-
<td>
1083-
col14
1084-
</td>
1085-
<td>
1086-
col15
1087-
</td>
1088-
<td>
1089-
col16
1090-
</td>
1091-
<td>
1092-
col17
1093-
</td>
1094-
<td>
1095-
col18
1096-
</td>
1097-
<td>
1098-
col19
1099-
</td>
1100-
</tr>
1101-
<tr>
1102-
<td>
1103-
col20
1104-
</td>
1105-
<td>
1106-
col21
1107-
</td>
1108-
<td>
1109-
col22
1110-
</td>
1111-
<td>
1112-
col23
1113-
</td>
1114-
<td>
1115-
col24
1116-
</td>
1117-
<td>
1118-
col25
1119-
</td>
1120-
<td>
1121-
col26
1122-
</td>
1123-
<td>
1124-
col27
1125-
</td>
1126-
<td>
1127-
col28
1128-
</td>
1129-
<td>
1130-
col29
1131-
</td>
11321045
</tr>
1133-
<tr>
1134-
<td>
1135-
col30
1136-
</td>
1137-
<td>
1138-
col31
1139-
</td>
1140-
<td>
1141-
col32
1142-
</td>
1143-
<td>
1144-
col33
1145-
</td>
1146-
<td>
1147-
col34
1148-
</td>
1149-
<td>
1150-
col35
1151-
</td>
1152-
<td>
1153-
col36
1154-
</td>
1155-
<td>
1156-
col37
1157-
</td>
1158-
<td>
1159-
col38
1160-
</td>
1161-
<td>
1162-
col39
1163-
</td>
1164-
</tr>
1165-
11661046
</tbody>
11671047
</table>
11681048
</div>

0 commit comments

Comments
 (0)