提交 d1b23ce3 编写于 作者: tony001's avatar tony001

update:调整src结构

上级 e96ca706
import { Http, UIServiceBase } from '@core';
/**
* 系统UI服务对象基类
*
* @export
* @class SysUIServiceBase
* @extends {UIServiceBase}
*/
export class SysUIServiceBase extends UIServiceBase {
/**
* Creates an instance of SysUIServiceBase
*
* @param {*} [opts={}]
* @memberof SysUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化界面行为数据
*
* @memberof SysUIServiceBase
*/
protected async initActionMap(): Promise<void> {
// TODO 初始化界面行为需要的配置参数
}
}
\ No newline at end of file
import { SysUIServiceBase } from './calculator-ui-service-base';
/**
* 系统UI服务
*
* @export
* @class SysUIService
* @extends SysUIServiceBase
*/
export class SysUIService extends SysUIServiceBase {
/**
* Creates an instance of SysUIService.
* @memberof SysUIService
*/
constructor(opts?: any) {
super(opts);
}
/**
* 获取实例
*
* @static
* @param 应用上下文
* @return {*} { SysUIService }
* @memberof SysUIService
*/
static getInstance(context?: any): SysUIService {
return new SysUIService({ context: context });
}
}
export default SysUIService;
\ No newline at end of file
{{>@macro/form-detail/include-form.hbs}}
import { ControlVOBase, verifyRules, EditFormService } from '@core';
import { {{pascalCase ctrl.psAppDataEntity.codeName}}Service } from '@service/entity/{{spinalCase ctrl.psAppDataEntity.codeName}}/{{spinalCase ctrl.psAppDataEntity.codeName}}-service';
import { {{pascalCase ctrl.psAppDataEntity.codeName}}Service } from '@api/{{spinalCase ctrl.psAppDataEntity.codeName}}/{{spinalCase ctrl.psAppDataEntity.codeName}}-service';
/**
* 部件展示数据对象
......
{{>@macro/grid-detail/include-grid.hbs}}
import { ControlVOBase, IParam, GridService } from '@core';
import { {{pascalCase ctrl.psAppDataEntity.codeName}}Service } from '@service/entity/{{spinalCase ctrl.psAppDataEntity.codeName}}/{{spinalCase ctrl.psAppDataEntity.codeName}}-service';
import { {{pascalCase ctrl.psAppDataEntity.codeName}}Service } from '@api/{{spinalCase ctrl.psAppDataEntity.codeName}}/{{spinalCase ctrl.psAppDataEntity.codeName}}-service';
export class ControlVO extends ControlVOBase {
......
......@@ -15,8 +15,10 @@
"paths": {
"@core":["src/core"],
"@core/*":["src/core/*"],
"@service":["src/service"],
"@service/*":["src/service/*"],
"@ui-service":["src/ui-service"],
"@ui-service/*":["src/ui-service/*"],
"@api":["src/api"],
"@api/*":["src/api/*"],
"@components":["src/components"],
"@components/*":["src/components/*"],
"@views":["src/views"],
......
......@@ -12,7 +12,8 @@ export default defineConfig({
resolve: {
alias: {
'@core': path.resolve(__dirname, 'src/core'),
'@service': path.resolve(__dirname, 'src/service'),
'@ui-service': path.resolve(__dirname, 'src/ui-service'),
'@api': path.resolve(__dirname, 'src/api'),
'@components': path.resolve(__dirname, 'src/components'),
'@views': path.resolve(__dirname, 'src/views'),
'@page': path.resolve(__dirname, 'src/page'),
......
......@@ -52,7 +52,8 @@ module.exports = {
.set('@interface', resolve('src/interface'))
.set('@locale', resolve('src/locale'))
.set('@mock', resolve('src/mock'))
.set('@service', resolve('src/service'))
.set('@ui-service', resolve('src/ui-service'))
.set('@api', resolve('src/api'))
.set('@codelist', resolve('src/codelist'))
},
configureWebpack: config => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册