代码生成主子表序号调整
This commit is contained in:
@ -210,7 +210,11 @@
|
||||
{
|
||||
field: 'index',
|
||||
align: 'center',
|
||||
title: "序号"
|
||||
title: "序号",
|
||||
formatter: function (value, row, index) {
|
||||
var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index));
|
||||
return columnIndex + $.table.serialNumber(index);
|
||||
}
|
||||
},
|
||||
#foreach($column in $subTable.columns)
|
||||
#set($dictType=$column.dictType)
|
||||
@ -269,7 +273,6 @@
|
||||
#end
|
||||
}
|
||||
});
|
||||
sub.resetIndex();
|
||||
}
|
||||
#end
|
||||
</script>
|
||||
|
@ -211,7 +211,11 @@
|
||||
{
|
||||
field: 'index',
|
||||
align: 'center',
|
||||
title: "序号"
|
||||
title: "序号",
|
||||
formatter: function (value, row, index) {
|
||||
var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index));
|
||||
return columnIndex + $.table.serialNumber(index);
|
||||
}
|
||||
},
|
||||
#foreach($column in $subTable.columns)
|
||||
#set($dictType=$column.dictType)
|
||||
@ -250,7 +254,6 @@
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
sub.resetIndex();
|
||||
});
|
||||
|
||||
function addColumn() {
|
||||
@ -271,7 +274,6 @@
|
||||
#end
|
||||
}
|
||||
});
|
||||
sub.resetIndex();
|
||||
}
|
||||
#end
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user