|
@@ -388,16 +388,14 @@ module.exports = app => {
|
|
|
}
|
|
|
const numberList = ctx.helper._.filter(report_json.items[0].interact_cells, { DataType: 'intact_type_number' });
|
|
|
for (const [i, cell] of report_json.items[0].interact_cells.entries()) {
|
|
|
- if (cell.Label === '大写') {
|
|
|
- if (cell.link === undefined) {
|
|
|
- if (numberList.length > 0) {
|
|
|
- const numberInfo = ctx.helper._.find(ctx.helper._.orderBy(numberList, ['index'], ['desc']), function(item) {
|
|
|
- return item.index < i;
|
|
|
- });
|
|
|
- cell.link = numberInfo ? numberInfo.index : '';
|
|
|
- } else {
|
|
|
- cell.link = '';
|
|
|
- }
|
|
|
+ if (cell.Label === '大写' && cell.link === undefined) {
|
|
|
+ if (numberList.length > 0) {
|
|
|
+ const numberInfo = ctx.helper._.find(ctx.helper._.orderBy(numberList, ['index'], ['desc']), function(item) {
|
|
|
+ return item.index < i;
|
|
|
+ });
|
|
|
+ cell.link = numberInfo ? numberInfo.index : '';
|
|
|
+ } else {
|
|
|
+ cell.link = '';
|
|
|
}
|
|
|
}
|
|
|
const push_item = {
|