@@ -48,7 +48,7 @@ let _componentCommonBlock = {
48
48
}
49
49
} ;
50
50
51
- function componentAlert ( message , time = 1 , callback = function ( ) { } ) {
51
+ function _componentAlert ( message , time = 1 , callback = function ( ) { } ) {
52
52
var div = document . createElement ( 'div' ) ;
53
53
div . innerHTML = message ;
54
54
let w = window . innerWidth / 2 - 140 ;
@@ -64,7 +64,7 @@ function componentAlert(message,time=1,callback=function () {}) {
64
64
} , time * 1000 ) ;
65
65
}
66
66
67
- function componentSelect ( name , selected , options ) {
67
+ function componentDot ( name , selected , options ) {
68
68
function tagSelect ( ) {
69
69
var cdom = this . cloneNode ( true ) ;
70
70
cdom . addEventListener ( 'click' , tagCancel ) ;
@@ -135,7 +135,7 @@ function componentSelect(name,selected,options) {
135
135
} ) ;
136
136
}
137
137
138
- function componentJsonTable ( name , columns , data ) {
138
+ function componentLine ( name , columns , data ) {
139
139
function selectTd ( td , type , value , column ) {
140
140
switch ( type ) {
141
141
case 'text' :
@@ -295,7 +295,7 @@ function componentJsonTable(name,columns,data) {
295
295
dom . getElementsByClassName ( 'JsonTableInsert' ) [ 0 ] . appendChild ( i ) ;
296
296
}
297
297
298
- function componentForm ( url , method = 'POST' ) {
298
+ function componentPlane ( url , method = 'POST' ) {
299
299
let Form = {
300
300
make :function ( url ) {
301
301
this . _clear ( ) ;
@@ -340,7 +340,7 @@ function componentForm(url,method='POST'){
340
340
if ( response . code == 1 ) {
341
341
window . location . reload ( ) ;
342
342
} else {
343
- componentAlert ( response . message , 3 , function ( ) {
343
+ _componentAlert ( response . message , 3 , function ( ) {
344
344
obj . removeAttribute ( 'disabled' ) ;
345
345
obj . innerText = '提交' ;
346
346
} ) ;
0 commit comments