* [misc,0.5h] add setSteps.

This commit is contained in:
qixinzhi
2024-09-04 16:10:43 +08:00
committed by 代婷婷
parent 7275ebb7e3
commit dcb60d007c
+15
View File
@@ -21,4 +21,19 @@ class sqlBuilder extends wg
$content = file_get_contents(__DIR__ . DS . 'js' . DS . 'v1.js');
return $content;
}
protected function setSteps()
{
global $lang;
list($steps, $currStep) = $this->prop(array('steps', 'currStep'));
if(empty($steps))
{
$stepList = $lang->bi->builderStepList;
if(empty($steps)) $this->setProp('steps', array_keys($stepList));
}
list($steps, $currStep) = $this->prop(array('steps', 'currStep'));
if(empty($currStep)) $this->setProp('currStep', reset($steps));
}
}