更新 app/common/service/generator/core/VueEditGenerator.php
This commit is contained in:
parent
345439ba4e
commit
56c6b3fc7c
@ -65,6 +65,7 @@ class VueEditGenerator extends BaseGenerator implements GenerateInterface
|
|||||||
$this->getFormValidateContent(),
|
$this->getFormValidateContent(),
|
||||||
$this->tableData['table_comment'],
|
$this->tableData['table_comment'],
|
||||||
$this->getPkContent(),
|
$this->getPkContent(),
|
||||||
|
$this->getApiDirContent(),
|
||||||
$this->getTableName(),
|
$this->getTableName(),
|
||||||
$this->getCheckBoxJoinContent(),
|
$this->getCheckBoxJoinContent(),
|
||||||
$this->getCheckBoxSplitContent(),
|
$this->getCheckBoxSplitContent(),
|
||||||
@ -442,7 +443,11 @@ class VueEditGenerator extends BaseGenerator implements GenerateInterface
|
|||||||
*/
|
*/
|
||||||
public function getModuleGenerateDir()
|
public function getModuleGenerateDir()
|
||||||
{
|
{
|
||||||
$dir = dirname(app_path()) . '/admin/src/views/' . $this->getTableName() . '/';
|
$dir = dirname(app_path()) . '/admin/src/views/';
|
||||||
|
if (!empty($this->classDir) && $this->classDir != $this->getLowerTableName()) {
|
||||||
|
$dir .= $this->classDir . '/';
|
||||||
|
};
|
||||||
|
$dir .= $this->getLowerTableName() . '/';
|
||||||
$this->checkDir($dir);
|
$this->checkDir($dir);
|
||||||
return $dir;
|
return $dir;
|
||||||
}
|
}
|
||||||
@ -456,7 +461,11 @@ class VueEditGenerator extends BaseGenerator implements GenerateInterface
|
|||||||
*/
|
*/
|
||||||
public function getRuntimeGenerateDir()
|
public function getRuntimeGenerateDir()
|
||||||
{
|
{
|
||||||
$dir = $this->generatorDir . 'vue/src/views/' . $this->getTableName() . '/';
|
$dir = $this->generatorDir . 'vue/src/views/';
|
||||||
|
if (!empty($this->classDir) && $this->classDir != $this->getLowerTableName()) {
|
||||||
|
$dir .= $this->classDir . '/';
|
||||||
|
};
|
||||||
|
$dir .= $this->getLowerTableName() . '/';
|
||||||
$this->checkDir($dir);
|
$this->checkDir($dir);
|
||||||
return $dir;
|
return $dir;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user