* Update the field name of the data table settings in the program module from uppercase to lowercase.

This commit is contained in:
chentao
2023-06-14 14:03:51 +08:00
parent 01eabbdf47
commit f4f3302231
2 changed files with 101 additions and 101 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
<?php
namespace zin;
$cols = array_values($config->program->productView->dtable->fieldList);
$cols = array_values($config->program->productview->dtable->fieldList);
$totalStories = 0;
$hasProduct = false;
@@ -47,7 +47,6 @@ foreach($productStructure as $programID => $program)
$item->name = $program['programName'];
$item->id = 'program-' . $programID;
$item->type = 'program';
$item->level = 1;
$item->asParent = true;
$item->feedback = rand(0, 100);
$item->programName = $program['programName'];
@@ -196,9 +195,10 @@ toolbar
dtable
(
set::className('shadow rounded'),
set::cols($cols),
set::data($data),
set::customCols(true),
set::className('shadow rounded'),
set::footPager(usePager()),
set::nested(true),
set::onRenderCell(jsRaw('function(result, data){ return window.renderReleaseCountCell(result, data); }')),