diff --git a/module/testcase/js/browse.ui.js b/module/testcase/js/browse.ui.js index fa537bad5d..5a066e9af7 100644 --- a/module/testcase/js/browse.ui.js +++ b/module/testcase/js/browse.ui.js @@ -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 = `${id}`; - result = prefix.concat({html}, suffix); - } - return result; -} - /** * 计算表格信息的统计。 * Set summary for table footer. diff --git a/module/testcase/ui/browse.html.php b/module/testcase/ui/browse.html.php index 764b7aaedd..f06028cb8f 100644 --- a/module/testcase/ui/browse.html.php +++ b/module/testcase/ui/browse.html.php @@ -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())