* Finish task #113254.

This commit is contained in:
sunguangming
2024-03-18 14:03:15 +08:00
parent 7ae11f73b2
commit ef85b418d0
21 changed files with 128 additions and 56 deletions
+1
View File
@@ -59,6 +59,7 @@ $fnGenerateFields = function() use ($app, $lang, $type, $fields, $stories, $cust
if(str_contains(",{$config->{$app->rawModule}->create->requiredFields},", ",{$colName},")) $cols[$index]['required'] = true;
if(isset($customFields[$colName]) && strpos(",$showFields,", ",$colName,") === false) $cols[$index]['hidden'] = true;
if($colName == 'sourceNote' && strpos(",$showFields,", ",source,") === false) $cols[$index]['hidden'] = true;
if($colName == 'plan' && $type != 'story') $cols[$index]['multiple'] = true;
if($colName == 'grade' && $gradeRule == 'stepwise') $cols[$index]['disabled'] = true;
if($colName == 'grade' && $hiddenGrade) $cols[$index]['hidden'] = true;
if($colName == 'spec') unset($cols[$index]['control']);