代码生成主子表序号调整

This commit is contained in:
RuoYi
2020-06-21 23:04:09 +08:00
parent 326fe6a63f
commit 3846329c82
5 changed files with 19 additions and 20 deletions

View File

@ -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>

View File

@ -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>