- testcaseBrowse: remove unused code.

This commit is contained in:
liugang
2023-06-13 09:09:59 +08:00
parent d428f7af9b
commit e9deb68d02
2 changed files with 0 additions and 16 deletions
-14
View File
@@ -18,20 +18,6 @@ $(document).off('click').on('click', '.batch-btn', function()
}
});
window.onRenderCell = function(result, {row, col})
{
if(result && row.data.isCase == 1 && col.name == 'title')
{
const prefix = result.slice(0, - 2);
const suffix = result.slice(-2);
const first = result.shift();
const id = row.data.id;
const html = `<span class='text-gray'>${id}</span>`;
result = prefix.concat({html}, suffix);
}
return result;
}
/**
* 计算表格信息的统计。
* Set summary for table footer.
-2
View File
@@ -386,9 +386,7 @@ dtable
set::userMap($users),
set::cols($config->testcase->dtable->fieldList),
set::data(array_values($scenes)),
set::onRenderCell(jsRAW('window.onRenderCell')),
set::checkable($canBatchAction),
set::canRowCheckable(jsRaw('function(rowID){const row = this.getRowInfo(rowID); return row && row.data.isCase == 1;}')),
set::checkInfo(jsRaw('function(checks){return window.setStatistics(this, checks);}')),
set::footToolbar($footToolbar),
set::footPager(usePager())