@@ -1874,7 +1874,6 @@ window.ComponentCascadeLine = class {
1874
1874
this . PLANE_DOM = new ComponentPlane ( {
1875
1875
url : this . URL + '/create' ,
1876
1876
method : 'GET' ,
1877
- data : { } ,
1878
1877
} ) . setParentDom ( this . DOM ) . setTitle ( `<span class="dlp-text title">根添加</span>` ) ;
1879
1878
this . PLANE_DOM . bindRequest ( 'button[type="submit"]' , 'click' , {
1880
1879
url :object . URL ,
@@ -1889,6 +1888,7 @@ window.ComponentCascadeLine = class {
1889
1888
expand : false ,
1890
1889
key : key ,
1891
1890
val : val ,
1891
+ stack :0 ,
1892
1892
nodes : null ,
1893
1893
parentNodes : [ ]
1894
1894
} ) ;
@@ -2155,15 +2155,16 @@ window.ComponentCascadeLine = class {
2155
2155
}
2156
2156
2157
2157
nodeUpdate ( dom , data ) {
2158
- let title = `<span class="dlp-text title" title="${ data . val } ">${ data . val } </span> 修改 ` ;
2158
+ let title = `<span class="dlp-text title" title="${ data . val } ">${ data . val } 修改 </span>` ;
2159
2159
let object = this ;
2160
2160
this . PLANE_DOM = new ComponentPlane ( {
2161
2161
url : this . URL + '/' + data . key + '/edit' ,
2162
- method : 'GET'
2162
+ method : 'GET' ,
2163
+ data :data
2163
2164
} ) . setParentDom ( this . DOM ) . setTitle ( title ) ;
2164
2165
this . PLANE_DOM . bindRequest ( 'button[type="submit"]' , 'click' , {
2165
2166
url :object . URL + '/' + data . key ,
2166
- method :'PUT ' ,
2167
+ method :'POST ' ,
2167
2168
data :data ,
2168
2169
callback :function ( response ) {
2169
2170
if ( response . code !== 0 ) return _component . alert ( response . message , 3 , null , object . DOM ) ;
@@ -2193,7 +2194,6 @@ window.ComponentCascadeLine = class {
2193
2194
_component . request ( {
2194
2195
url : this . URL + '/' + data . key ,
2195
2196
method : 'DELETE' ,
2196
- data : { } ,
2197
2197
callback : function ( response ) {
2198
2198
object . submit_block = false ;
2199
2199
if ( response . code !== 0 ) return _component . alert ( response . message , 3 , null , object . DOM ) ;
0 commit comments