|
|
@ -5202,6 +5202,14 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
if (json[i].id === id) {
|
|
|
|
if (json[i].id === id) {
|
|
|
|
var _newjson = JSON.parse(JSON.stringify(json[i]));
|
|
|
|
var _newjson = JSON.parse(JSON.stringify(json[i]));
|
|
|
|
_newjson.id = that.autoId(_newjson.tag);
|
|
|
|
_newjson.id = that.autoId(_newjson.tag);
|
|
|
|
|
|
|
|
if (json[i].tag === 'grid') {
|
|
|
|
|
|
|
|
for (var j = 0; j < json[i].columns.length; j++) {
|
|
|
|
|
|
|
|
for (var k = 0; k < json[i].columns[j].list.length; k++) {
|
|
|
|
|
|
|
|
var _childjson = json[i].columns[j].list[k];
|
|
|
|
|
|
|
|
_childjson.id = that.autoId(_childjson.tag);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
json.splice(i + 1, 0, _newjson);
|
|
|
|
json.splice(i + 1, 0, _newjson);
|
|
|
|
return json[i];
|
|
|
|
return json[i];
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|