数据迁移用用上传
This commit is contained in:
parent
3829e40ee5
commit
eb92b5f341
5
com.actionsoft.apps.coe.pal.datamigration/.gitignore
vendored
Normal file
5
com.actionsoft.apps.coe.pal.datamigration/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
node_modules
|
||||
.DS_Store
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
17
com.actionsoft.apps.coe.pal.datamigration/AWSDevParams.js
Normal file
17
com.actionsoft.apps.coe.pal.datamigration/AWSDevParams.js
Normal file
@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
moduleTemplateInAWS: "apps/install/com.actionsoft.apps.coe.pal.datamigration/template/page/main.htm", /*apps/install/_bpm.platform/template/page/console.m.dw.design.vue.htm*/ //build后生成到平台的模板位置及名称
|
||||
outputDir: "apps/install/com.actionsoft.apps.coe.pal.datamigration/web/com.actionsoft.apps.coe.pal.datamigration/main", /*webserver/webapps/portal/apps/_bpm.platform/dw/designer/main*/ //build后js或css生成到平台的位置
|
||||
publicPath: "../apps/com.actionsoft.apps.coe.pal.datamigration/main", /*../apps/_bpm.platform/dw/designer/main*/ //build到平台后生成到模板中,引入js文件的相对平台的位置
|
||||
importAWSCSS: [ //引入平台的css,在portal目录开始,开发或build通用
|
||||
"commons/css/font/iconfont.css"
|
||||
],
|
||||
importAWSJS: [ //引入平台的js
|
||||
// 示例
|
||||
// "commons/js/jquery/scripts/ui/echarts/echarts.min.js",
|
||||
// "commons/js/jquery/scripts/ui/echarts/mapJsonJs/china.js",
|
||||
// "commons/js/jquery/scripts/ui/echarts/theme/white_bg.js",
|
||||
// "commons/js/jquery/scripts/ui/echarts/walden.js",
|
||||
// "commons/js/jquery/scripts/ui/echarts/theme/black_bg.js",
|
||||
//"commons/js/util/Base64.js",
|
||||
],
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
AWSPortalUrl: "http://localhost:8088/portal/",//aws平台启动地址,用于开发时获取平台静态资源,请求数据等(注意最后的/,不要删)
|
||||
AWSReleasePath: "/Users/actionsoft/Documents/workspace/IDEA/yili/release/", /*C:/work/workspace/release/*/ //aws的平台路径,暂时写绝对路径,用于build生成的主文件位置(注意最后的/,不要删)
|
||||
devUserInfo: {//开发时通过用户名及密码获取sessionId,!!前提必须需要安装并启动app:com.actionsoft.apps.getsession.app
|
||||
userid: "admin", //具有后台管理的用户名
|
||||
pwd: "admin", //密码
|
||||
deviceType: "pc",
|
||||
}
|
||||
}
|
||||
11
com.actionsoft.apps.coe.pal.datamigration/README.md
Normal file
11
com.actionsoft.apps.coe.pal.datamigration/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Vue 3 + Typescript + Vite
|
||||
|
||||
This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
||||
|
||||
## Recommended IDE Setup
|
||||
|
||||
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
|
||||
|
||||
## Type Support For `.vue` Imports in TS
|
||||
|
||||
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
|
||||
31
com.actionsoft.apps.coe.pal.datamigration/index.html
Normal file
31
com.actionsoft.apps.coe.pal.datamigration/index.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<script>
|
||||
if(window.navigator.userAgent.indexOf('MSIE') > -1 || window.navigator.userAgent.indexOf('Trident') > -1){
|
||||
window.location.replace("../not_support_vue.htm");
|
||||
}
|
||||
</script>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<title></title>
|
||||
${AWSJSAndCSSImport}
|
||||
<!--
|
||||
其它的js或css引用方式示例(<%= htmlWebpackPlugin.options.awsjsandcsspath%>)
|
||||
<link rel="stylesheet" type="text/css" href="<%= htmlWebpackPlugin.options.awsjsandcsspath%>apps/_bpm.platform/css/model/console.m.dw.design.css"/>
|
||||
-->
|
||||
<script>
|
||||
const settingParam = ${settingParam};
|
||||
const axiosBaseUrl = "${axiosBaseUrl}";
|
||||
const production = ${isProduction};
|
||||
const devUserInfo = ${devUserInfo};
|
||||
</script>
|
||||
</head>
|
||||
<body style="margin:0;">
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
<!-- built files will be auto injected -->
|
||||
</body>
|
||||
</html>
|
||||
1
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.css
Normal file
1
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.css
Normal file
File diff suppressed because one or more lines are too long
83327
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es.js
Normal file
83327
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es.js
Normal file
File diff suppressed because one or more lines are too long
25
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/ac-address/index.d.ts
vendored
Normal file
25
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/ac-address/index.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
import { App } from "vue";
|
||||
import acAddress from "./src/ac-address.vue";
|
||||
declare interface acOption {
|
||||
sid: '';
|
||||
width: number;
|
||||
resourceId: string;
|
||||
resourceType: string;
|
||||
assignmentTypes?: string;
|
||||
groupType: string;
|
||||
title: string;
|
||||
permissionType: string;
|
||||
accessModeScope: string;
|
||||
isRestrict: Boolean;
|
||||
callback?: (acList: any) => void;
|
||||
}
|
||||
declare const openAc: (options: acOption) => void;
|
||||
declare const closeAc: () => void;
|
||||
export { acOption, openAc, closeAc, acAddress };
|
||||
declare const _default: {
|
||||
install: (app: App) => void;
|
||||
openAc: (options: acOption) => void;
|
||||
closeAc: () => void;
|
||||
acAddress: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
|
||||
};
|
||||
export default _default;
|
||||
21
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/address/index.d.ts
vendored
Normal file
21
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/address/index.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
declare interface addressOption {
|
||||
data: {
|
||||
value: string;
|
||||
address: string;
|
||||
sid: string;
|
||||
appId: string;
|
||||
addressDomId: string;
|
||||
formData: string;
|
||||
width: Number;
|
||||
height: Number;
|
||||
cmd: string;
|
||||
title: string;
|
||||
};
|
||||
url: string;
|
||||
type: string;
|
||||
}
|
||||
declare const _default: {
|
||||
openAddress: (options: addressOption) => void;
|
||||
closeAddress: () => void;
|
||||
};
|
||||
export default _default;
|
||||
21
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/api/awsAxios.d.ts
vendored
Normal file
21
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/api/awsAxios.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
declare module 'axios' {
|
||||
interface AxiosRequestConfig {
|
||||
alert?: boolean;
|
||||
result: string;
|
||||
}
|
||||
}
|
||||
declare module 'axios' {
|
||||
interface AxiosResponse {
|
||||
result: string;
|
||||
}
|
||||
}
|
||||
declare const _default: {
|
||||
config: (AWSPageContext: any) => void;
|
||||
get(params: any): void;
|
||||
post<T = any>(params: {
|
||||
url: string;
|
||||
data: T;
|
||||
}): Promise<import("axios").AxiosResponse<any>>;
|
||||
aslp(params: any): Promise<import("axios").AxiosResponse<any>>;
|
||||
};
|
||||
export default _default;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/app-info/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/app-info/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsAppInfo from './src/app-info.vue';
|
||||
export default AwsAppInfo;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/app-select/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/app-select/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsAppSelect from './src/app-select.vue';
|
||||
export default AwsAppSelect;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/aside/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/aside/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiAside from './src/aside.vue';
|
||||
export default AwsuiAside;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/button-group/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/button-group/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiButtonGroup from '../button/src/button-group.vue';
|
||||
export default AwsuiButtonGroup;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/button/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/button/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiButton from './src/button.vue';
|
||||
export default AwsuiButton;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/cascader/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/cascader/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiCascader from './src/cascader.vue';
|
||||
export default AwsuiCascader;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/checkbox/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/checkbox/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiCheckbox from './src/checkbox.vue';
|
||||
export default AwsuiCheckbox;
|
||||
8
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/code-helper/index.d.ts
vendored
Normal file
8
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/code-helper/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
import AwsuiCodeHelper from './src/CodeHelper.vue';
|
||||
import "../../plugins/codemirror_lasted/codemirror/lib/codemirror.css";
|
||||
import "../../plugins/codemirror_lasted/codemirror/theme/dracula.css";
|
||||
import "../../plugins/codemirror_lasted/codemirror/addon/display/fullscreen.css";
|
||||
import "../../plugins/codemirror_lasted/codemirror/addon/display/fullscreen";
|
||||
import "../../plugins/codemirror_lasted/codemirror/mode/javascript/javascript";
|
||||
import "../../plugins/codemirror_lasted/codemirror/mode/css/css";
|
||||
export default AwsuiCodeHelper;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/codemirror/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/codemirror/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiCodemirror from './src/codemirror.vue';
|
||||
export default AwsuiCodemirror;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/col/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/col/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiCol from './src/col';
|
||||
export default AwsuiCol;
|
||||
83
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/col/src/col.d.ts
vendored
Normal file
83
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/col/src/col.d.ts
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
import type { PropType } from 'vue';
|
||||
declare type SizeObject = {
|
||||
span: number;
|
||||
offset: number;
|
||||
};
|
||||
declare const AwsuiCol: import("vue").DefineComponent<{
|
||||
tag: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
span: {
|
||||
type: NumberConstructor;
|
||||
default: number;
|
||||
};
|
||||
offset: {
|
||||
type: NumberConstructor;
|
||||
default: number;
|
||||
};
|
||||
pull: {
|
||||
type: NumberConstructor;
|
||||
default: number;
|
||||
};
|
||||
push: {
|
||||
type: NumberConstructor;
|
||||
default: number;
|
||||
};
|
||||
xs: {
|
||||
type: PropType<number | SizeObject>;
|
||||
default: () => SizeObject;
|
||||
};
|
||||
sm: {
|
||||
type: PropType<number | SizeObject>;
|
||||
default: () => SizeObject;
|
||||
};
|
||||
md: {
|
||||
type: PropType<number | SizeObject>;
|
||||
default: () => SizeObject;
|
||||
};
|
||||
lg: {
|
||||
type: PropType<number | SizeObject>;
|
||||
default: () => SizeObject;
|
||||
};
|
||||
xl: {
|
||||
type: PropType<number | SizeObject>;
|
||||
default: () => SizeObject;
|
||||
};
|
||||
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
||||
[key: string]: any;
|
||||
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
||||
tag?: unknown;
|
||||
span?: unknown;
|
||||
offset?: unknown;
|
||||
pull?: unknown;
|
||||
push?: unknown;
|
||||
xs?: unknown;
|
||||
sm?: unknown;
|
||||
md?: unknown;
|
||||
lg?: unknown;
|
||||
xl?: unknown;
|
||||
} & {
|
||||
tag: string;
|
||||
span: number;
|
||||
offset: number;
|
||||
pull: number;
|
||||
push: number;
|
||||
xs: number | SizeObject;
|
||||
sm: number | SizeObject;
|
||||
md: number | SizeObject;
|
||||
lg: number | SizeObject;
|
||||
xl: number | SizeObject;
|
||||
} & {}>, {
|
||||
tag: string;
|
||||
span: number;
|
||||
offset: number;
|
||||
pull: number;
|
||||
push: number;
|
||||
xs: number | SizeObject;
|
||||
sm: number | SizeObject;
|
||||
md: number | SizeObject;
|
||||
lg: number | SizeObject;
|
||||
xl: number | SizeObject;
|
||||
}>;
|
||||
export default AwsuiCol;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/deploy/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/deploy/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import deploy from './src/deploy.vue';
|
||||
export default deploy;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/dialog/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/dialog/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiDialog from './src/dialog.vue';
|
||||
export default AwsuiDialog;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/down-select-item/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/down-select-item/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiDownSelectItem from './src/down-select-item.vue';
|
||||
export default AwsuiDownSelectItem;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/down-select/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/down-select/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiDownSelect from '../down-select-item/src/down-select.vue';
|
||||
export default AwsuiDownSelect;
|
||||
11
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/ele/index.d.ts
vendored
Normal file
11
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/ele/index.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import 'element-plus/dist/index.css';
|
||||
import 'dayjs/locale/zh-cn';
|
||||
import { App } from "vue";
|
||||
declare const _default: {
|
||||
Element: {
|
||||
version: string;
|
||||
install: (app: App<any>, opts: import("element-plus/lib/utils/config").InstallOptions) => void;
|
||||
};
|
||||
install(app: App): void;
|
||||
};
|
||||
export default _default;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/footer/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/footer/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiFooter from './src/footer.vue';
|
||||
export default AwsuiFooter;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/form-item/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/form-item/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiFormItem from '../form/src/form-item.vue';
|
||||
export default AwsuiFormItem;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/form/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/form/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import Form from './src/form.vue';
|
||||
export default Form;
|
||||
14
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/formula/index.d.ts
vendored
Normal file
14
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/formula/index.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
declare interface formulaOption {
|
||||
url: string;
|
||||
data: {
|
||||
sid: string;
|
||||
cmd: string;
|
||||
contextData: string;
|
||||
};
|
||||
callback?: (acList: any) => void;
|
||||
}
|
||||
declare const _default: {
|
||||
openFormula: (options: formulaOption) => void;
|
||||
closeFormula: () => void;
|
||||
};
|
||||
export default _default;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/header/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/header/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiHeader from './src/header.vue';
|
||||
export default AwsuiHeader;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/helloworld/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/helloworld/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import hello from './src/HelloWorld.vue';
|
||||
export default hello;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/icon-picker/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/icon-picker/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiIconPicker from './src/icon-picker.vue';
|
||||
export default AwsuiIconPicker;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/iframe/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/iframe/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import iframe from './src/iframe.vue';
|
||||
export default iframe;
|
||||
31
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/iframe/src/iframe-type.d.ts
vendored
Normal file
31
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/iframe/src/iframe-type.d.ts
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
declare interface iframeOption {
|
||||
/**
|
||||
*地址
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
*数据
|
||||
*/
|
||||
data?: any;
|
||||
/**
|
||||
*宽
|
||||
*/
|
||||
width?: string;
|
||||
/**
|
||||
*高
|
||||
*/
|
||||
height?: string;
|
||||
/**
|
||||
*是否使用滚动条
|
||||
*/
|
||||
scrolling?: string;
|
||||
/**
|
||||
*请求方式
|
||||
*/
|
||||
type?: "get" | "post" | string;
|
||||
/**
|
||||
* 加载页面后回调
|
||||
*/
|
||||
onload?: () => void;
|
||||
}
|
||||
export { iframeOption };
|
||||
111
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/index.d.ts
vendored
Normal file
111
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/index.d.ts
vendored
Normal file
@ -0,0 +1,111 @@
|
||||
declare module 'axios' {
|
||||
interface AxiosResponse {
|
||||
result: string;
|
||||
}
|
||||
}
|
||||
import { App } from "vue";
|
||||
import ElementUI from "./ele/index";
|
||||
import "../static/css/reset.css";
|
||||
import "../static/css/public.css";
|
||||
import type { InstallOptions } from 'element-plus/packages/utils/config';
|
||||
import AwsuiCodemirror from "./codemirror/index";
|
||||
import axios from "./api/awsAxios";
|
||||
import getSid from "./utils/sid";
|
||||
import tools from "./utils/tools";
|
||||
declare const CodeMirror: any;
|
||||
declare module '@vue/runtime-core' {
|
||||
interface ComponentCustomProperties {
|
||||
AWSPageContext?: {
|
||||
devUserInfo?: any;
|
||||
formulaLabelMap?: any;
|
||||
settingParam?: any;
|
||||
axiosBaseUrl?: string;
|
||||
production?: boolean;
|
||||
iconfontMap?: any;
|
||||
};
|
||||
}
|
||||
}
|
||||
declare const install: (app: App, opt: InstallOptions) => void;
|
||||
import AwsuiFormulaDialog from "./formula/index";
|
||||
export { CodeMirror, AwsuiCodemirror, install, AwsuiFormulaDialog, ElementUI, getSid, tools, axios };
|
||||
declare const _default: {
|
||||
HelloWorld: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
|
||||
CodeMirror: any;
|
||||
AwsuiCodemirror: import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
|
||||
install: (app: App<any>, opt: InstallOptions) => void;
|
||||
ElementUI: {
|
||||
Element: {
|
||||
version: string;
|
||||
install: (app: App<any>, opts: import("element-plus/lib/utils/config").InstallOptions) => void;
|
||||
};
|
||||
install(app: App<any>): void;
|
||||
};
|
||||
tools: {
|
||||
tools: {
|
||||
getConstByName<T = any>(name: string, defaultValue: T): T;
|
||||
uuid(): string;
|
||||
getCountIndex(type?: string | undefined): number;
|
||||
isNotNull(str: string): boolean;
|
||||
isNull(str: string): boolean;
|
||||
isNotNullObject(obj: any): boolean;
|
||||
queryObjectInArrayIndex(arr: string[], objKey: any, filed: string): number;
|
||||
getOffset: (elem: HTMLElement) => {
|
||||
top: number;
|
||||
left: number;
|
||||
height: number;
|
||||
width: number;
|
||||
};
|
||||
addCls: (toDom: HTMLElement, cls: string) => void;
|
||||
removeCls: (toDom: HTMLElement, cls: string) => void;
|
||||
_buildIndex(baseId: string, ...args: any[]): string;
|
||||
formatDate(date: Date, fmt: string): string;
|
||||
generMenuId(item: any, baseId: string, i?: number | null | undefined): void;
|
||||
getBrowser(): {
|
||||
isStrict: boolean;
|
||||
isOpera: boolean;
|
||||
isSafari: boolean;
|
||||
isIE: boolean;
|
||||
isIE6: boolean;
|
||||
isIE7: boolean;
|
||||
isIE8: boolean;
|
||||
isIE9: boolean;
|
||||
isIE10: boolean;
|
||||
isIE11: boolean;
|
||||
isGecko: boolean;
|
||||
isFirefox: boolean;
|
||||
isChrome: boolean;
|
||||
isBorderBox: boolean;
|
||||
isWindows: boolean;
|
||||
isMac: boolean;
|
||||
isAir: boolean;
|
||||
isLinux: boolean;
|
||||
isSecure: boolean;
|
||||
isIPhone: boolean;
|
||||
isIPhoneX: boolean;
|
||||
isIPad: boolean;
|
||||
isAWSMobilePortalApp: boolean;
|
||||
isAndroid: boolean;
|
||||
isDingtalk: boolean;
|
||||
isWechat: boolean;
|
||||
isWxWork: boolean;
|
||||
isFeishu: boolean;
|
||||
isWeLink: boolean;
|
||||
isMobile: boolean;
|
||||
};
|
||||
};
|
||||
install(app: App<any>): void;
|
||||
};
|
||||
getSid: {
|
||||
exec(app: App<any>): Promise<void>;
|
||||
};
|
||||
axios: {
|
||||
config: (AWSPageContext: any) => void;
|
||||
get(params: any): void;
|
||||
post<T_1 = any>(params: {
|
||||
url: string;
|
||||
data: T_1;
|
||||
}): Promise<import("axios").AxiosResponse<any>>;
|
||||
aslp(params: any): Promise<import("axios").AxiosResponse<any>>;
|
||||
};
|
||||
};
|
||||
export default _default;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/input/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/input/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import input from './src/input.vue';
|
||||
export default input;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/layout/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/layout/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiLayout from './src/layout.vue';
|
||||
export default AwsuiLayout;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/main/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/main/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiMain from './src/main.vue';
|
||||
export default AwsuiMain;
|
||||
18
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/message/index.d.ts
vendored
Normal file
18
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/message/index.d.ts
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
import "./css.css";
|
||||
declare let _common: any;
|
||||
export default _common;
|
||||
export { _common };
|
||||
export declare function messageObject(): {
|
||||
message: import("element-plus/es/utils/types").SFCWithInstall<import("element-plus").IMessage>;
|
||||
messageBox: import("element-plus/es/utils/types").SFCWithInstall<import("element-plus").IElMessageBox>;
|
||||
};
|
||||
export declare function message(options: any): import("element-plus").IMessageHandle;
|
||||
export declare function messageSuccess(options: any): import("element-plus").IMessageHandle;
|
||||
export declare function messageWarning(options: any): import("element-plus").IMessageHandle;
|
||||
export declare function messageError(options: any): import("element-plus").IMessageHandle;
|
||||
export declare function msgbox(options: any): Promise<import("element-plus").MessageBoxData>;
|
||||
export declare function alert(message: any, title: any, options: any): Promise<import("element-plus").MessageBoxData>;
|
||||
export declare function confirm(message: any, title: any, options: any): Promise<import("element-plus").MessageBoxData>;
|
||||
export declare function prompt(message: any, title: any, options: any): Promise<import("element-plus").MessageBoxData>;
|
||||
export declare function MessageWarning(text?: string): void;
|
||||
export declare function MessageBoxWarning(text?: string): Promise<import("element-plus").MessageBoxData>;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/popover/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/popover/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiPopover from './src/popover.vue';
|
||||
export default AwsuiPopover;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/radio/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/radio/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiSelect from './src/radio.vue';
|
||||
export default AwsuiSelect;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/rich-menu-list/index-custom.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/rich-menu-list/index-custom.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import CustomMenu from './src/CustomMenu.vue';
|
||||
export default CustomMenu;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/rich-menu-list/index-item.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/rich-menu-list/index-item.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import itemMenu from './src/ItemMenu.vue';
|
||||
export default itemMenu;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/rich-menu-list/index-tab.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/rich-menu-list/index-tab.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import tabMenu from './src/TabMenu.vue';
|
||||
export default tabMenu;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/rich-menu-list/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/rich-menu-list/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import richMenu from './src/popList/RichMenu.vue';
|
||||
export default richMenu;
|
||||
@ -0,0 +1,3 @@
|
||||
declare const menuOpenComponents: string[];
|
||||
declare const bindMenu: (el: HTMLElement, binding: any, vnode: any, prevNode: any) => void;
|
||||
export { menuOpenComponents, bindMenu };
|
||||
393
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/rich-menu-list/src/richMenuList.d.ts
vendored
Normal file
393
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/rich-menu-list/src/richMenuList.d.ts
vendored
Normal file
@ -0,0 +1,393 @@
|
||||
declare interface menuItem {
|
||||
/**
|
||||
*唯一标识,必填
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*类型
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* 这层li的样式
|
||||
*/
|
||||
liStyle?: object;
|
||||
/**
|
||||
*中间是否显示button
|
||||
*/
|
||||
buttonEdit?: {
|
||||
/**
|
||||
*点击执行的方法
|
||||
*/
|
||||
exec: (data: menuItem) => void;
|
||||
};
|
||||
/**
|
||||
*点击执行回调
|
||||
*/
|
||||
exec?: (data: menuItem, params?: any) => void;
|
||||
/**
|
||||
*这一条菜单的名称
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* 此条菜单代码层的名称,标识便于查找
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* 这个菜单的副标题
|
||||
*/
|
||||
stext?: string;
|
||||
/**
|
||||
* 此li支持拖拽
|
||||
*/
|
||||
draggable?: boolean;
|
||||
/**
|
||||
*是否编辑
|
||||
*/
|
||||
editable?: boolean;
|
||||
/**
|
||||
*编辑时的placeholder
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
*修改类型
|
||||
*/
|
||||
editType?: string;
|
||||
/**
|
||||
*针对edit的值
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
*修改后触发执行
|
||||
*/
|
||||
update?: (data: menuItem | string, params?: any) => void;
|
||||
/**
|
||||
*是否必填
|
||||
*/
|
||||
required?: boolean;
|
||||
/**
|
||||
*必填时校验文字 会提示 [requiredName]不允许为空
|
||||
*/
|
||||
requiredName?: string;
|
||||
/**
|
||||
*菜单前的图标
|
||||
*/
|
||||
icon?: string;
|
||||
/**
|
||||
*是否选中,如果有此参数则会有选中功能
|
||||
*/
|
||||
checked?: boolean;
|
||||
/**
|
||||
*组名称
|
||||
*/
|
||||
checkGroup?: string;
|
||||
/**
|
||||
*是否隐藏
|
||||
*/
|
||||
hidden?: boolean;
|
||||
/**
|
||||
*是否多选
|
||||
*/
|
||||
multiple?: boolean;
|
||||
/**
|
||||
*选中回调
|
||||
*/
|
||||
check?: (data: menuItem) => void;
|
||||
/**
|
||||
*取消选中回调
|
||||
*/
|
||||
uncheck?: (data: menuItem) => void;
|
||||
/**
|
||||
*子节点支持scroll
|
||||
*/
|
||||
childrenAutoScroll?: boolean;
|
||||
/**
|
||||
*子节点不显示图标
|
||||
*/
|
||||
childrenNoIcon?: boolean;
|
||||
/**
|
||||
*slot名称,用于菜单显示slot内容,根节点写对应名字的slot,此节点菜单会渲染此slot
|
||||
*/
|
||||
slot?: string;
|
||||
/**
|
||||
*是否为活动节点(tabmenu时)
|
||||
*/
|
||||
isActive?: boolean;
|
||||
/**
|
||||
*专为ac设置服务参数,用于设置完ac后,对stext属性文字的改变
|
||||
*/
|
||||
needChangeState?: any;
|
||||
/**
|
||||
*声明inputnumber组件
|
||||
*/
|
||||
inputNumber?: {
|
||||
/**
|
||||
*最大值
|
||||
*/
|
||||
max?: number;
|
||||
/**
|
||||
*最小值
|
||||
*/
|
||||
min?: number;
|
||||
/**
|
||||
*后缀选项
|
||||
*/
|
||||
options?: [
|
||||
{
|
||||
value?: string;
|
||||
}
|
||||
];
|
||||
/**
|
||||
*值
|
||||
*/
|
||||
value?: string;
|
||||
symbol?: string;
|
||||
};
|
||||
titleStyle?: any;
|
||||
iconStyle?: any;
|
||||
style?: any;
|
||||
topLine?: boolean;
|
||||
/**
|
||||
*用于存放原对象
|
||||
*/
|
||||
baseItem?: any;
|
||||
/**
|
||||
*是否由菜单打开的组件
|
||||
*/
|
||||
isMenuOpenComponent?: boolean;
|
||||
/**
|
||||
*如果有子集菜单
|
||||
*/
|
||||
children?: menuItem[];
|
||||
/**
|
||||
*中间如果存在按钮
|
||||
*/
|
||||
btn?: {
|
||||
/**
|
||||
*点击方法
|
||||
*/
|
||||
exec?: (data: menuItem) => void;
|
||||
};
|
||||
/**
|
||||
*组件colorpciker配置
|
||||
*/
|
||||
colorPicker?: {
|
||||
value?: string;
|
||||
};
|
||||
/**
|
||||
*以下是itemmenu中的属性
|
||||
*/
|
||||
/**
|
||||
*允许拖拽
|
||||
*/
|
||||
drag?: boolean;
|
||||
/**
|
||||
*设置不可用(仅是不可用)
|
||||
*/
|
||||
disable?: boolean;
|
||||
/**
|
||||
*是否使用不可用的样式(有可能只是使用置灰样式,并不是不可用)
|
||||
*/
|
||||
disableStyle?: boolean;
|
||||
/**
|
||||
*每个元素的样式,优先级大于option中的
|
||||
*/
|
||||
itemMenuClass?: object;
|
||||
/**
|
||||
*每个元素的行内样式,优先级大于option中的
|
||||
*/
|
||||
itemMenuStyle?: object;
|
||||
/**
|
||||
* "last", 固定最后一位,不排序
|
||||
*/
|
||||
fixed?: string;
|
||||
/**
|
||||
*自定义html
|
||||
*/
|
||||
html?: string;
|
||||
/**
|
||||
* 显示关闭按钮
|
||||
*/
|
||||
close?: boolean;
|
||||
}
|
||||
declare interface transmitItem {
|
||||
/**
|
||||
*是否根节点
|
||||
*/
|
||||
root?: boolean;
|
||||
/**
|
||||
*命令子组件展示
|
||||
*/
|
||||
showPop: number;
|
||||
/**
|
||||
*命令子组件关闭
|
||||
*/
|
||||
closePop: number;
|
||||
/**
|
||||
*层级
|
||||
*/
|
||||
zIndex?: number;
|
||||
/**
|
||||
*以此dom进行计算top和left位置
|
||||
*/
|
||||
popToTarget?: HTMLElement;
|
||||
/**
|
||||
*偏移量
|
||||
*/
|
||||
offset?: number;
|
||||
/**
|
||||
*dom
|
||||
*/
|
||||
popTarget?: HTMLElement;
|
||||
/**
|
||||
*允许打开menu
|
||||
*/
|
||||
allowmenu?: boolean;
|
||||
/**
|
||||
*打开pop时执行
|
||||
*/
|
||||
openPopExec?: () => void;
|
||||
/**
|
||||
*打开pop时执行
|
||||
*/
|
||||
closePopExec?: () => void;
|
||||
/**
|
||||
*子节点不显示图标,用于标识下一节点
|
||||
*/
|
||||
childrenNoIcon?: boolean;
|
||||
parentValue?: menuItem;
|
||||
absoluteLeft?: (obj1: transmitItem, obj2: transmitItem) => number | number;
|
||||
absoluteTop?: (obj1: transmitItem, obj2: transmitItem) => number | number;
|
||||
/**
|
||||
* 离开子菜单(非root)之前事件,返回false则阻止关闭。
|
||||
* @param e 事件
|
||||
* @param $this 当前vue上下文
|
||||
*/
|
||||
beforeLeaveMenuClose?: (e: Event, $this: any) => boolean;
|
||||
/**
|
||||
*上下文
|
||||
*/
|
||||
context: {
|
||||
/**
|
||||
*上一节点
|
||||
*/
|
||||
top?: number;
|
||||
left?: number;
|
||||
right?: number;
|
||||
bottom?: number;
|
||||
/**
|
||||
*根的位置
|
||||
*/
|
||||
rootOffset: {
|
||||
top?: number;
|
||||
left?: number;
|
||||
} | null;
|
||||
} | null;
|
||||
}
|
||||
declare interface tabMenuItem {
|
||||
/**
|
||||
*li的样式
|
||||
*/
|
||||
liStyle?: object;
|
||||
/**
|
||||
*物件的样式
|
||||
*/
|
||||
dstyle?: object;
|
||||
/**
|
||||
*span的样式(如果存在)
|
||||
*/
|
||||
spanStyle?: object;
|
||||
id: string;
|
||||
/**
|
||||
*暂时 input的值
|
||||
*/
|
||||
value: string;
|
||||
hidden?: boolean;
|
||||
/**
|
||||
*tooltip内容
|
||||
*/
|
||||
tip?: string;
|
||||
/**
|
||||
*显示右侧线
|
||||
*/
|
||||
showRLine?: boolean;
|
||||
/**
|
||||
*ui类型
|
||||
*/
|
||||
uiType?: string;
|
||||
option?: {
|
||||
/**
|
||||
*图标 uiType == 'icon'
|
||||
*/
|
||||
icon?: string;
|
||||
/**
|
||||
*是否圆形 uiType == 'icon'
|
||||
*/
|
||||
circle?: boolean;
|
||||
/**
|
||||
*uiType == 'button' 按钮名字
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
*uiType == 'button' 按钮类型
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
*uiType == 'template' 插槽名字
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*li的class样式
|
||||
*/
|
||||
class?: object;
|
||||
};
|
||||
}
|
||||
/**
|
||||
*itemMenu的option描述
|
||||
*/
|
||||
declare interface itemMenuOption {
|
||||
/**
|
||||
*根节点样式
|
||||
*/
|
||||
customClass?: object;
|
||||
/**
|
||||
*根节点行内样式
|
||||
*/
|
||||
customStyle?: object;
|
||||
/**
|
||||
*每个元素的样式,优先级小于item中的itemMenuClass
|
||||
*/
|
||||
customItemClass?: object;
|
||||
/**
|
||||
*每个元素的行内样式,优先级小于item中的itemMenuStyle
|
||||
*/
|
||||
customItemStyle?: object;
|
||||
/**
|
||||
*可以拖拽
|
||||
*/
|
||||
draggable?: boolean;
|
||||
/**
|
||||
*是否使用自定义模板(可能废除掉?)
|
||||
*/
|
||||
customTemplate?: boolean;
|
||||
/**
|
||||
*由于指定个数,每个元素宽度自适应
|
||||
*/
|
||||
columnNum?: number;
|
||||
/**
|
||||
*用于指定每个元素最小宽度,(如果一行空出多余宽度,则平均加到每个元素的宽度中)
|
||||
*/
|
||||
minWidth?: number;
|
||||
/**
|
||||
*指定每个元素的外边距,用于计算(依赖于customTemplate为true,是否删掉?)
|
||||
*/
|
||||
marginLeftForColumnNum?: number;
|
||||
absoluteLeft?: (obj1: transmitItem, obj2: transmitItem) => number | number;
|
||||
absoluteTop?: (obj1: transmitItem, obj2: transmitItem) => number | number;
|
||||
/**
|
||||
* 离开子菜单(非root)之前事件,返回false则阻止关闭。
|
||||
* @param e 事件
|
||||
* @param $this 当前vue上下文
|
||||
*/
|
||||
beforeLeaveMenuClose?: (e: Event, $this: any) => boolean;
|
||||
}
|
||||
export { menuItem, transmitItem, tabMenuItem, itemMenuOption };
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/row/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/row/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiRow from './src/row';
|
||||
export default AwsuiRow;
|
||||
43
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/row/src/row.d.ts
vendored
Normal file
43
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/row/src/row.d.ts
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
declare const _default: import("vue").DefineComponent<{
|
||||
tag: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
gutter: {
|
||||
type: NumberConstructor;
|
||||
default: number;
|
||||
};
|
||||
type: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
justify: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
align: {
|
||||
type: StringConstructor;
|
||||
default: string;
|
||||
};
|
||||
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
||||
[key: string]: any;
|
||||
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
||||
tag?: unknown;
|
||||
gutter?: unknown;
|
||||
type?: unknown;
|
||||
justify?: unknown;
|
||||
align?: unknown;
|
||||
} & {
|
||||
tag: string;
|
||||
gutter: number;
|
||||
type: string;
|
||||
justify: string;
|
||||
align: string;
|
||||
} & {}>, {
|
||||
tag: string;
|
||||
gutter: number;
|
||||
type: string;
|
||||
justify: string;
|
||||
align: string;
|
||||
}>;
|
||||
export default _default;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/scrollbar/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/scrollbar/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import scrollBar from './src/Scrollbar.vue';
|
||||
export default scrollBar;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/select/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/select/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiSelect from './src/select.vue';
|
||||
export default AwsuiSelect;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/sidebar/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/sidebar/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import sidebar from './src/sidebar.vue';
|
||||
export default sidebar;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/switch/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/switch/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiSwitch from './src/switch.vue';
|
||||
export default AwsuiSwitch;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/tree/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/tree/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiTree from './src/tree.vue';
|
||||
export default AwsuiTree;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/upgrade-service/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/upgrade-service/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import upgradeService from "./src/upgrade-service.vue";
|
||||
export default upgradeService;
|
||||
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/upload-image/index.d.ts
vendored
Normal file
2
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/upload-image/index.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import AwsuiUploadImage from './src/upload-image.vue';
|
||||
export default AwsuiUploadImage;
|
||||
8
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/upload-image/utils/data2blob.d.ts
vendored
Normal file
8
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/upload-image/utils/data2blob.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* database64文件格式转换为2进制
|
||||
*
|
||||
* @param {[String]} data dataURL 的格式为 “data:image/png;base64,****”,逗号之前都是一些说明性的文字,我们只需要逗号之后的就行了
|
||||
* @param {[String]} mime [description]
|
||||
* @return {[blob]} [description]
|
||||
*/
|
||||
export default function (data: any, mime: any): Blob;
|
||||
8
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/upload-image/utils/effectRipple.d.ts
vendored
Normal file
8
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/upload-image/utils/effectRipple.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* 点击波纹效果
|
||||
*
|
||||
* @param {[event]} e [description]
|
||||
* @param {[Object]} arg_opts [description]
|
||||
* @return {[bollean]} [description]
|
||||
*/
|
||||
export default function (e: any, arg_opts: any): false | undefined;
|
||||
174
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/upload-image/utils/language.d.ts
vendored
Normal file
174
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/upload-image/utils/language.d.ts
vendored
Normal file
@ -0,0 +1,174 @@
|
||||
declare const _default: {
|
||||
zh: {
|
||||
hint: string;
|
||||
loading: string;
|
||||
noSupported: string;
|
||||
success: string;
|
||||
fail: string;
|
||||
preview: string;
|
||||
btn: {
|
||||
off: string;
|
||||
close: string;
|
||||
back: string;
|
||||
save: string;
|
||||
};
|
||||
error: {
|
||||
onlyImg: string;
|
||||
outOfSize: string;
|
||||
lowestPx: string;
|
||||
};
|
||||
};
|
||||
en: {
|
||||
hint: string;
|
||||
loading: string;
|
||||
noSupported: string;
|
||||
success: string;
|
||||
fail: string;
|
||||
preview: string;
|
||||
btn: {
|
||||
off: string;
|
||||
close: string;
|
||||
back: string;
|
||||
save: string;
|
||||
};
|
||||
error: {
|
||||
onlyImg: string;
|
||||
outOfSize: string;
|
||||
lowestPx: string;
|
||||
};
|
||||
};
|
||||
ro: {
|
||||
hint: string;
|
||||
loading: string;
|
||||
noSupported: string;
|
||||
success: string;
|
||||
fail: string;
|
||||
preview: string;
|
||||
btn: {
|
||||
off: string;
|
||||
close: string;
|
||||
back: string;
|
||||
save: string;
|
||||
};
|
||||
error: {
|
||||
onlyImg: string;
|
||||
outOfSize: string;
|
||||
loewstPx: string;
|
||||
};
|
||||
};
|
||||
ru: {
|
||||
hint: string;
|
||||
loading: string;
|
||||
noSupported: string;
|
||||
success: string;
|
||||
fail: string;
|
||||
preview: string;
|
||||
btn: {
|
||||
off: string;
|
||||
close: string;
|
||||
back: string;
|
||||
save: string;
|
||||
};
|
||||
error: {
|
||||
onlyImg: string;
|
||||
outOfSize: string;
|
||||
lowestPx: string;
|
||||
};
|
||||
};
|
||||
'pt-br': {
|
||||
hint: string;
|
||||
loading: string;
|
||||
noSupported: string;
|
||||
success: string;
|
||||
fail: string;
|
||||
preview: string;
|
||||
btn: {
|
||||
off: string;
|
||||
close: string;
|
||||
back: string;
|
||||
save: string;
|
||||
};
|
||||
error: {
|
||||
onlyImg: string;
|
||||
outOfSize: string;
|
||||
lowestPx: string;
|
||||
};
|
||||
};
|
||||
fr: {
|
||||
hint: string;
|
||||
loading: string;
|
||||
noSupported: string;
|
||||
success: string;
|
||||
fail: string;
|
||||
preview: string;
|
||||
btn: {
|
||||
off: string;
|
||||
close: string;
|
||||
back: string;
|
||||
save: string;
|
||||
};
|
||||
error: {
|
||||
onlyImg: string;
|
||||
outOfSize: string;
|
||||
lowestPx: string;
|
||||
};
|
||||
};
|
||||
nl: {
|
||||
hint: string;
|
||||
loading: string;
|
||||
noSupported: string;
|
||||
success: string;
|
||||
fail: string;
|
||||
preview: string;
|
||||
btn: {
|
||||
off: string;
|
||||
close: string;
|
||||
back: string;
|
||||
save: string;
|
||||
};
|
||||
error: {
|
||||
onlyImg: string;
|
||||
outOfSize: string;
|
||||
lowestPx: string;
|
||||
};
|
||||
};
|
||||
tr: {
|
||||
hint: string;
|
||||
loading: string;
|
||||
noSupported: string;
|
||||
success: string;
|
||||
fail: string;
|
||||
preview: string;
|
||||
btn: {
|
||||
off: string;
|
||||
close: string;
|
||||
back: string;
|
||||
save: string;
|
||||
};
|
||||
error: {
|
||||
onlyImg: string;
|
||||
outOfSize: string;
|
||||
lowestPx: string;
|
||||
};
|
||||
};
|
||||
'es-MX': {
|
||||
hint: string;
|
||||
loading: string;
|
||||
noSupported: string;
|
||||
success: string;
|
||||
fail: string;
|
||||
preview: string;
|
||||
btn: {
|
||||
off: string;
|
||||
close: string;
|
||||
back: string;
|
||||
save: string;
|
||||
};
|
||||
error: {
|
||||
onlyImg: string;
|
||||
outOfSize: string;
|
||||
lowestPx: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
export default _default;
|
||||
5
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/utils/sid.d.ts
vendored
Normal file
5
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/utils/sid.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { App } from "vue";
|
||||
declare const _default: {
|
||||
exec(app: App): Promise<void>;
|
||||
};
|
||||
export default _default;
|
||||
229
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/utils/tools.d.ts
vendored
Normal file
229
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/utils/tools.d.ts
vendored
Normal file
@ -0,0 +1,229 @@
|
||||
import type { App } from "vue";
|
||||
declare const tools: {
|
||||
/**
|
||||
* 获取const变量,不存在时返回指定的默认值
|
||||
* @name 变量名称
|
||||
* @defaultValue 默认值
|
||||
*
|
||||
*/
|
||||
getConstByName<T = any>(name: string, defaultValue: T): T;
|
||||
/**
|
||||
* 获取一个36位的ID字符串
|
||||
*/
|
||||
uuid(): string;
|
||||
/**
|
||||
* 获取唯一顺序号(全局,每次调用自加1)
|
||||
* @param type 如果设定了类别,则指在此类别下自加1
|
||||
*/
|
||||
getCountIndex(type?: string | undefined): number;
|
||||
/**
|
||||
* 判断字符串不为空且不是undefined
|
||||
*/
|
||||
isNotNull(str: string): boolean;
|
||||
/**
|
||||
* 判断字符串为空或为undefined
|
||||
*/
|
||||
isNull(str: string): boolean;
|
||||
/**
|
||||
* 判断Object对象是否为空,返回Boolean
|
||||
*/
|
||||
isNotNullObject(obj: any): boolean;
|
||||
/**
|
||||
* 查询某个Object对象在Array中的索引值
|
||||
*/
|
||||
queryObjectInArrayIndex(arr: string[], objKey: any, filed: string): number;
|
||||
/**
|
||||
* 获取offset,类似Jquery的offset方法
|
||||
* @param elem DOM对象
|
||||
*
|
||||
*/
|
||||
getOffset: (elem: HTMLElement) => {
|
||||
top: number;
|
||||
left: number;
|
||||
height: number;
|
||||
width: number;
|
||||
};
|
||||
/**
|
||||
* 添加dom的样式
|
||||
* @param toDom 要移除的DOM对象
|
||||
* @param cls 样式名称
|
||||
*
|
||||
*/
|
||||
addCls: (toDom: HTMLElement, cls: string) => void;
|
||||
/**
|
||||
* 移除dom的样式
|
||||
* @param toDom 要移除的DOM对象
|
||||
* @param cls 样式名称
|
||||
*
|
||||
*/
|
||||
removeCls: (toDom: HTMLElement, cls: string) => void;
|
||||
_buildIndex(baseId: string, ...args: any[]): string;
|
||||
/**
|
||||
* 转换指定格式日期字符串
|
||||
* @params date 日期格式
|
||||
* @params fmt 指定格式字符串
|
||||
*/
|
||||
formatDate(date: Date, fmt: string): string;
|
||||
/**
|
||||
* 生成树解构Id,判断children,递归生成,用~隔开
|
||||
* @param item 生成到此对象上
|
||||
* @param baseId 依据此ID进行生成
|
||||
* @param number 内部参数,无需传入
|
||||
*
|
||||
*/
|
||||
generMenuId(item: any, baseId: string, i?: number | null | undefined): void;
|
||||
/**
|
||||
* 获取浏览器版本
|
||||
*/
|
||||
getBrowser(): {
|
||||
isStrict: boolean;
|
||||
isOpera: boolean;
|
||||
isSafari: boolean;
|
||||
isIE: boolean;
|
||||
isIE6: boolean;
|
||||
isIE7: boolean;
|
||||
isIE8: boolean;
|
||||
isIE9: boolean;
|
||||
isIE10: boolean;
|
||||
isIE11: boolean;
|
||||
isGecko: boolean;
|
||||
isFirefox: boolean;
|
||||
isChrome: boolean;
|
||||
isBorderBox: boolean;
|
||||
isWindows: boolean;
|
||||
isMac: boolean;
|
||||
isAir: boolean;
|
||||
isLinux: boolean;
|
||||
isSecure: boolean;
|
||||
isIPhone: boolean;
|
||||
isIPhoneX: boolean;
|
||||
isIPad: boolean;
|
||||
isAWSMobilePortalApp: boolean;
|
||||
isAndroid: boolean;
|
||||
isDingtalk: boolean;
|
||||
isWechat: boolean;
|
||||
isWxWork: boolean;
|
||||
isFeishu: boolean;
|
||||
isWeLink: boolean;
|
||||
isMobile: boolean;
|
||||
};
|
||||
};
|
||||
declare module '@vue/runtime-core' {
|
||||
interface ComponentCustomProperties {
|
||||
awsuiTools: typeof tools;
|
||||
}
|
||||
}
|
||||
export { tools };
|
||||
declare const _default: {
|
||||
tools: {
|
||||
/**
|
||||
* 获取const变量,不存在时返回指定的默认值
|
||||
* @name 变量名称
|
||||
* @defaultValue 默认值
|
||||
*
|
||||
*/
|
||||
getConstByName<T = any>(name: string, defaultValue: T): T;
|
||||
/**
|
||||
* 获取一个36位的ID字符串
|
||||
*/
|
||||
uuid(): string;
|
||||
/**
|
||||
* 获取唯一顺序号(全局,每次调用自加1)
|
||||
* @param type 如果设定了类别,则指在此类别下自加1
|
||||
*/
|
||||
getCountIndex(type?: string | undefined): number;
|
||||
/**
|
||||
* 判断字符串不为空且不是undefined
|
||||
*/
|
||||
isNotNull(str: string): boolean;
|
||||
/**
|
||||
* 判断字符串为空或为undefined
|
||||
*/
|
||||
isNull(str: string): boolean;
|
||||
/**
|
||||
* 判断Object对象是否为空,返回Boolean
|
||||
*/
|
||||
isNotNullObject(obj: any): boolean;
|
||||
/**
|
||||
* 查询某个Object对象在Array中的索引值
|
||||
*/
|
||||
queryObjectInArrayIndex(arr: string[], objKey: any, filed: string): number;
|
||||
/**
|
||||
* 获取offset,类似Jquery的offset方法
|
||||
* @param elem DOM对象
|
||||
*
|
||||
*/
|
||||
getOffset: (elem: HTMLElement) => {
|
||||
top: number;
|
||||
left: number;
|
||||
height: number;
|
||||
width: number;
|
||||
};
|
||||
/**
|
||||
* 添加dom的样式
|
||||
* @param toDom 要移除的DOM对象
|
||||
* @param cls 样式名称
|
||||
*
|
||||
*/
|
||||
addCls: (toDom: HTMLElement, cls: string) => void;
|
||||
/**
|
||||
* 移除dom的样式
|
||||
* @param toDom 要移除的DOM对象
|
||||
* @param cls 样式名称
|
||||
*
|
||||
*/
|
||||
removeCls: (toDom: HTMLElement, cls: string) => void;
|
||||
_buildIndex(baseId: string, ...args: any[]): string;
|
||||
/**
|
||||
* 转换指定格式日期字符串
|
||||
* @params date 日期格式
|
||||
* @params fmt 指定格式字符串
|
||||
*/
|
||||
formatDate(date: Date, fmt: string): string;
|
||||
/**
|
||||
* 生成树解构Id,判断children,递归生成,用~隔开
|
||||
* @param item 生成到此对象上
|
||||
* @param baseId 依据此ID进行生成
|
||||
* @param number 内部参数,无需传入
|
||||
*
|
||||
*/
|
||||
generMenuId(item: any, baseId: string, i?: number | null | undefined): void;
|
||||
/**
|
||||
* 获取浏览器版本
|
||||
*/
|
||||
getBrowser(): {
|
||||
isStrict: boolean;
|
||||
isOpera: boolean;
|
||||
isSafari: boolean;
|
||||
isIE: boolean;
|
||||
isIE6: boolean;
|
||||
isIE7: boolean;
|
||||
isIE8: boolean;
|
||||
isIE9: boolean;
|
||||
isIE10: boolean;
|
||||
isIE11: boolean;
|
||||
isGecko: boolean;
|
||||
isFirefox: boolean;
|
||||
isChrome: boolean;
|
||||
isBorderBox: boolean;
|
||||
isWindows: boolean;
|
||||
isMac: boolean;
|
||||
isAir: boolean;
|
||||
isLinux: boolean;
|
||||
isSecure: boolean;
|
||||
isIPhone: boolean;
|
||||
isIPhoneX: boolean;
|
||||
isIPad: boolean;
|
||||
isAWSMobilePortalApp: boolean;
|
||||
isAndroid: boolean;
|
||||
isDingtalk: boolean;
|
||||
isWechat: boolean;
|
||||
isWxWork: boolean;
|
||||
isFeishu: boolean;
|
||||
isWeLink: boolean;
|
||||
isMobile: boolean;
|
||||
};
|
||||
};
|
||||
install(app: App): void;
|
||||
};
|
||||
export default _default;
|
||||
0
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/validate/validator.d.ts
vendored
Normal file
0
com.actionsoft.apps.coe.pal.datamigration/lib/awsui.es/validate/validator.d.ts
vendored
Normal file
3133
com.actionsoft.apps.coe.pal.datamigration/package-lock.json
generated
Normal file
3133
com.actionsoft.apps.coe.pal.datamigration/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
66
com.actionsoft.apps.coe.pal.datamigration/package.json
Normal file
66
com.actionsoft.apps.coe.pal.datamigration/package.json
Normal file
@ -0,0 +1,66 @@
|
||||
{
|
||||
"name": "vue3.0-ts-template",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"serve": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"core-js": "^3.6.5",
|
||||
"register-service-worker": "^1.7.1",
|
||||
"vue": "^3.2.19",
|
||||
"vue-router": "^4.0.2",
|
||||
"vuex": "^4.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fs-extra": "^10.0.0",
|
||||
"@types/fs-extra": "^9.0.12",
|
||||
"@typescript-eslint/eslint-plugin": "^4.18.0",
|
||||
"@typescript-eslint/parser": "^4.18.0",
|
||||
"@vue/eslint-config-typescript": "^7.0.0",
|
||||
"@vitejs/plugin-vue": "^1.9.2",
|
||||
"@vue/compiler-sfc": "^3.2.19",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-plugin-vue": "^7.0.0",
|
||||
"less": "^3.0.4",
|
||||
"less-loader": "^5.0.0",
|
||||
"typescript": "^4.3.2",
|
||||
"vite": "^2.6.5",
|
||||
"vue-tsc": "^0.2.2"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"env": {
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/vue3-essential",
|
||||
"eslint:recommended",
|
||||
"@vue/typescript/recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2020
|
||||
},
|
||||
"rules": {
|
||||
"generator-star-spacing": "off",
|
||||
"no-tabs": "off",
|
||||
"no-this-alias": "off",
|
||||
"no-unused-vars": "off",
|
||||
"no-console": "off",
|
||||
"no-irregular-whitespace": "off",
|
||||
"no-debugger": "off",
|
||||
"@typescript-eslint/no-var-requires": "off",
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
"@typescript-eslint/ban-types": "off",
|
||||
"@typescript-eslint/no-this-alias": "off",
|
||||
"@typescript-eslint/explicit-module-boundary-types": "off"
|
||||
}
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions",
|
||||
"not dead"
|
||||
]
|
||||
}
|
||||
BIN
com.actionsoft.apps.coe.pal.datamigration/public/favicon.ico
Normal file
BIN
com.actionsoft.apps.coe.pal.datamigration/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
10
com.actionsoft.apps.coe.pal.datamigration/src/App.vue
Normal file
10
com.actionsoft.apps.coe.pal.datamigration/src/App.vue
Normal file
@ -0,0 +1,10 @@
|
||||
<template>
|
||||
<router-view/>
|
||||
</template>
|
||||
|
||||
<style lang="less">
|
||||
#app {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
BIN
com.actionsoft.apps.coe.pal.datamigration/src/assets/logo.png
Normal file
BIN
com.actionsoft.apps.coe.pal.datamigration/src/assets/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
@ -0,0 +1,57 @@
|
||||
<template>
|
||||
<div class="hello">
|
||||
<h1>{{ msg }}</h1>
|
||||
<p>
|
||||
<span @click="clickText">基于vue3.0+typescript模板</span>
|
||||
<br>
|
||||
用户名:{{userid}}
|
||||
<br>
|
||||
sessionID:{{sessionID}}
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
declare const devUserInfo:any;
|
||||
declare const settingParam:any;
|
||||
|
||||
export default defineComponent({
|
||||
name: 'HelloWorld',
|
||||
props: {
|
||||
msg: String,
|
||||
},
|
||||
methods : {
|
||||
clickText(){
|
||||
alert("点击事件")
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
userid(){
|
||||
return devUserInfo.userid;
|
||||
},
|
||||
sessionID(){
|
||||
return settingParam.sessionId;
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped lang="less">
|
||||
h3 {
|
||||
margin: 40px 0 0;
|
||||
}
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
display: inline-block;
|
||||
margin: 0 10px;
|
||||
}
|
||||
a {
|
||||
color: #42b983;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,173 @@
|
||||
<template>
|
||||
<div class="data-import">
|
||||
<div class="top-box">
|
||||
<div class="title-box">IT系统图导入</div>
|
||||
<div class="step-box">
|
||||
<el-steps :active="info.activeStep" finish-status="success">
|
||||
<el-step :title="item.title" v-for="item in info.steps" />
|
||||
</el-steps>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-box">
|
||||
<div class="empty-box" v-if="info.fileList.length === 0">
|
||||
<el-empty></el-empty>
|
||||
<div class="upload-box">
|
||||
<el-upload
|
||||
class="upload-demo"
|
||||
:action="info.uploadAction"
|
||||
:on-preview="handlePreview"
|
||||
:on-remove="handleRemove"
|
||||
:before-remove="beforeRemove"
|
||||
:on-success="handleSuccess"
|
||||
:limit="1"
|
||||
:on-exceed="handleExceed"
|
||||
:show-file-list="false"
|
||||
>
|
||||
<el-button type="primary" @click="handleUploadBtn">导入Excel文件</el-button>
|
||||
<template #tip>
|
||||
<div class="el-upload__tip">
|
||||
仅支持Excel格式文本
|
||||
</div>
|
||||
</template>
|
||||
</el-upload>
|
||||
</div>
|
||||
</div>
|
||||
<div class="file-list-box" v-else>
|
||||
<el-scrollbar height="400px">
|
||||
<div v-for="item in info.fileList" :key="item" class="scrollbar-demo-item">
|
||||
<div>{{ item.name }}</div>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
<div class="action-box">
|
||||
<el-button style="cursor: pointer" type="primary" @click="next">下一步</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent,getCurrentInstance,reactive,ref } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: "data-It-import",
|
||||
setup() {
|
||||
const { proxy: $this } = getCurrentInstance();
|
||||
let info = reactive({
|
||||
activeStep: 0,
|
||||
steps: [{title:"上传"},{title:"校验"},{title:"结果"}],
|
||||
fileList: [],
|
||||
uploadAction: '',
|
||||
repositoryName: 'migration',
|
||||
groupValue: 'yili',
|
||||
fileValue: '',
|
||||
appId: 'com.actionsoft.apps.coe.pal.datamigration',
|
||||
fileName: ''
|
||||
});
|
||||
const handlePreview = () => {}
|
||||
const handleRemove = () => {}
|
||||
const beforeRemove = () => {}
|
||||
const handleExceed = () => {}
|
||||
const handleSuccess = (res: any,uploadFile: any,uploadFiles: any) => {
|
||||
console.log(res,'---',uploadFile,'----',uploadFiles)
|
||||
info.fileName = res.files.name
|
||||
let tempFileObj = {id: uploadFile.uid,name: res.files.name,downloadUrl: res.data.data.attrs.downloadUrl}
|
||||
info.fileList.push(tempFileObj)
|
||||
console.info('fileList',info.fileList)
|
||||
}
|
||||
const next = () => {
|
||||
if (info.fileList.length === 0) {
|
||||
$this.$message({type:'warning',message:'请上传文件'});
|
||||
return;
|
||||
}
|
||||
let param = {
|
||||
url: './jd',
|
||||
data: {
|
||||
cmd: 'com.actionsoft.apps.coe.pal.datamigration_IT_attribute_import',
|
||||
sid: settingParam.sessionId,
|
||||
wsId: settingParam.wsId ? settingParam.wsId : '6f4e292c-1b90-4dd2-8c20-7da159cb20a5',
|
||||
groupValue: info.groupValue,
|
||||
fileValue: info.fileValue,
|
||||
fileName: info.fileName
|
||||
}
|
||||
}
|
||||
$this.awsuiaxios.post(param)
|
||||
.then((ro: any) => {
|
||||
console.log(ro)
|
||||
if (ro.result === 'ok') {
|
||||
$this.$message({type:'warning',message:'IT系统图数据导入成功'});
|
||||
}
|
||||
})
|
||||
.catch((err: any) => {})
|
||||
}
|
||||
const handleUploadBtn = () => {
|
||||
info.fileValue = 'WordType' + new Date().getTime()
|
||||
info.uploadAction = axiosBaseUrl +'uf?sid='+settingParam.sessionId+'&repositoryName='+info.repositoryName+'&groupValue='
|
||||
+ info.groupValue+'&fileValue='+info.fileValue+'&appId='+ info.appId;
|
||||
}
|
||||
return {
|
||||
info,
|
||||
handlePreview,
|
||||
handleRemove,
|
||||
beforeRemove,
|
||||
handleExceed,
|
||||
handleUploadBtn,
|
||||
handleSuccess,
|
||||
next
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.data-import {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #F7F7FB;
|
||||
.top-box {
|
||||
height: 75px;
|
||||
margin: 0 35px 0 35px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.title-box {
|
||||
line-height: 75px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.step-box {
|
||||
width: 45%;
|
||||
padding: 15px 0;
|
||||
}
|
||||
}
|
||||
.bottom-box {
|
||||
height: 650px;
|
||||
margin: 0 35px 0 35px;
|
||||
background-color: rgb(255,255,255);
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
.empty-box {
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
.upload-box {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.file-list-box {
|
||||
width: 100%;
|
||||
:deep(.el-scrollbar) {
|
||||
padding: 0 25px;
|
||||
}
|
||||
.scrollbar-demo-item {
|
||||
font-size: 16px;
|
||||
height: 35px;
|
||||
margin: 10px;
|
||||
border-radius: 4px;
|
||||
background: var(--el-color-primary-light-9);
|
||||
color: var(--el-color-primary);
|
||||
line-height: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,173 @@
|
||||
<template>
|
||||
<div class="data-import">
|
||||
<div class="top-box">
|
||||
<div class="title-box">流程属性导入</div>
|
||||
<div class="step-box">
|
||||
<el-steps :active="info.activeStep" finish-status="success">
|
||||
<el-step :title="item.title" v-for="item in info.steps" />
|
||||
</el-steps>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-box">
|
||||
<div class="empty-box" v-if="info.fileList.length === 0">
|
||||
<el-empty></el-empty>
|
||||
<div class="upload-box">
|
||||
<el-upload
|
||||
class="upload-demo"
|
||||
:action="info.uploadAction"
|
||||
:on-preview="handlePreview"
|
||||
:on-remove="handleRemove"
|
||||
:before-remove="beforeRemove"
|
||||
:on-success="handleSuccess"
|
||||
:limit="1"
|
||||
:on-exceed="handleExceed"
|
||||
:show-file-list="false"
|
||||
>
|
||||
<el-button type="primary" @click="handleUploadBtn">导入Word文件</el-button>
|
||||
<template #tip>
|
||||
<div class="el-upload__tip">
|
||||
仅支持Word格式文本
|
||||
</div>
|
||||
</template>
|
||||
</el-upload>
|
||||
</div>
|
||||
</div>
|
||||
<div class="file-list-box" v-else>
|
||||
<el-scrollbar height="400px">
|
||||
<div v-for="item in info.fileList" :key="item" class="scrollbar-demo-item">
|
||||
<div>{{ item.name }}</div>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
<div class="action-box">
|
||||
<el-button style="cursor: pointer" type="primary" @click="next">下一步</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent,getCurrentInstance,reactive,ref } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: "data-import",
|
||||
setup() {
|
||||
const { proxy: $this } = getCurrentInstance();
|
||||
let info = reactive({
|
||||
activeStep: 0,
|
||||
steps: [{title:"上传"},{title:"校验"},{title:"结果"}],
|
||||
fileList: [],
|
||||
uploadAction: '',
|
||||
repositoryName: 'migration',
|
||||
groupValue: 'yili',
|
||||
fileValue: '',
|
||||
appId: 'com.actionsoft.apps.coe.pal.datamigration',
|
||||
fileName: ''
|
||||
});
|
||||
const handlePreview = () => {}
|
||||
const handleRemove = () => {}
|
||||
const beforeRemove = () => {}
|
||||
const handleExceed = () => {}
|
||||
const handleSuccess = (res: any,uploadFile: any,uploadFiles: any) => {
|
||||
console.log(res,'---',uploadFile,'----',uploadFiles)
|
||||
info.fileName = res.files.name
|
||||
let tempFileObj = {id: uploadFile.uid,name: res.files.name,downloadUrl: res.data.data.attrs.downloadUrl}
|
||||
info.fileList.push(tempFileObj)
|
||||
console.info('fileList',info.fileList)
|
||||
}
|
||||
const next = () => {
|
||||
if (info.fileList.length === 0) {
|
||||
$this.$message({type:'warning',message:'请上传文件'});
|
||||
return;
|
||||
}
|
||||
let param = {
|
||||
url: './jd',
|
||||
data: {
|
||||
cmd: 'com.actionsoft.apps.coe.pal.datamigration_process_attribute_import',
|
||||
sid: settingParam.sessionId,
|
||||
wsId: settingParam.wsId ? settingParam.wsId : '6f4e292c-1b90-4dd2-8c20-7da159cb20a5',
|
||||
groupValue: info.groupValue,
|
||||
fileValue: info.fileValue,
|
||||
fileName: info.fileName
|
||||
}
|
||||
}
|
||||
$this.awsuiaxios.post(param)
|
||||
.then((ro: any) => {
|
||||
console.log(ro)
|
||||
if (ro.result === 'ok') {
|
||||
$this.$message({type:'warning',message:'流程数据导入成功'});
|
||||
}
|
||||
})
|
||||
.catch((err: any) => {})
|
||||
}
|
||||
const handleUploadBtn = () => {
|
||||
info.fileValue = 'WordType' + new Date().getTime()
|
||||
info.uploadAction = axiosBaseUrl +'uf?sid='+settingParam.sessionId+'&repositoryName='+info.repositoryName+'&groupValue='
|
||||
+ info.groupValue+'&fileValue='+info.fileValue+'&appId='+ info.appId;
|
||||
}
|
||||
return {
|
||||
info,
|
||||
handlePreview,
|
||||
handleRemove,
|
||||
beforeRemove,
|
||||
handleExceed,
|
||||
handleUploadBtn,
|
||||
handleSuccess,
|
||||
next
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.data-import {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #F7F7FB;
|
||||
.top-box {
|
||||
height: 75px;
|
||||
margin: 0 35px 0 35px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.title-box {
|
||||
line-height: 75px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.step-box {
|
||||
width: 45%;
|
||||
padding: 15px 0;
|
||||
}
|
||||
}
|
||||
.bottom-box {
|
||||
height: 650px;
|
||||
margin: 0 35px 0 35px;
|
||||
background-color: rgb(255,255,255);
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
.empty-box {
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
.upload-box {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.file-list-box {
|
||||
width: 100%;
|
||||
:deep(.el-scrollbar) {
|
||||
padding: 0 25px;
|
||||
}
|
||||
.scrollbar-demo-item {
|
||||
font-size: 16px;
|
||||
height: 35px;
|
||||
margin: 10px;
|
||||
border-radius: 4px;
|
||||
background: var(--el-color-primary-light-9);
|
||||
color: var(--el-color-primary);
|
||||
line-height: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,173 @@
|
||||
<template>
|
||||
<div class="data-migration">
|
||||
<div class="top-box">
|
||||
<div class="title-box">数据迁移</div>
|
||||
<div class="step-box">
|
||||
<el-steps :active="info.activeStep" finish-status="success">
|
||||
<el-step :title="item.title" v-for="item in info.steps" />
|
||||
</el-steps>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-box">
|
||||
<div class="empty-box" v-if="info.fileList.length === 0">
|
||||
<el-empty></el-empty>
|
||||
<div class="upload-box">
|
||||
<el-upload
|
||||
class="upload-demo"
|
||||
:action="info.uploadAction"
|
||||
:on-preview="handlePreview"
|
||||
:on-remove="handleRemove"
|
||||
:before-remove="beforeRemove"
|
||||
:on-success="handleSuccess"
|
||||
:limit="1"
|
||||
:on-exceed="handleExceed"
|
||||
:show-file-list="false"
|
||||
>
|
||||
<el-button type="primary" @click="handleUploadBtn">导入XML文件</el-button>
|
||||
<template #tip>
|
||||
<div class="el-upload__tip">
|
||||
仅支持XML格式文本
|
||||
</div>
|
||||
</template>
|
||||
</el-upload>
|
||||
</div>
|
||||
</div>
|
||||
<div class="file-list-box" v-else>
|
||||
<el-scrollbar height="400px">
|
||||
<div v-for="item in info.fileList" :key="item" class="scrollbar-demo-item">
|
||||
<div>{{ item.name }}</div>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
<div class="action-box">
|
||||
<el-button style="cursor: pointer" type="primary" @click="next">下一步</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent,getCurrentInstance,reactive,ref } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: "data-migration",
|
||||
setup() {
|
||||
const { proxy: $this } = getCurrentInstance();
|
||||
let info = reactive({
|
||||
activeStep: 0,
|
||||
steps: [{title:"上传"},{title:"校验"},{title:"结果"}],
|
||||
fileList: [],
|
||||
uploadAction: '',
|
||||
repositoryName: 'migration',
|
||||
groupValue: 'yili',
|
||||
fileValue: '',
|
||||
appId: 'com.actionsoft.apps.coe.pal.datamigration',
|
||||
fileName: ''
|
||||
});
|
||||
const handlePreview = () => {}
|
||||
const handleRemove = () => {}
|
||||
const beforeRemove = () => {}
|
||||
const handleExceed = () => {}
|
||||
const handleSuccess = (res: any,uploadFile: any,uploadFiles: any) => {
|
||||
console.log(res,'---',uploadFile,'----',uploadFiles)
|
||||
info.fileName = res.files.name
|
||||
let tempFileObj = {id: uploadFile.uid,name: res.files.name,downloadUrl: res.data.data.attrs.downloadUrl}
|
||||
info.fileList.push(tempFileObj)
|
||||
console.info('fileList',info.fileList)
|
||||
}
|
||||
const next = () => {
|
||||
if (info.fileList.length === 0) {
|
||||
$this.$message({type:'warning',message:'请上传文件'});
|
||||
return;
|
||||
}
|
||||
let param = {
|
||||
url: './jd',
|
||||
data: {
|
||||
cmd: 'com.actionsoft.apps.coe.pal.datamigration_data_migrate',
|
||||
sid: settingParam.sessionId,
|
||||
wsId: settingParam.wsId ? settingParam.wsId : '6f4e292c-1b90-4dd2-8c20-7da159cb20a5',
|
||||
groupValue: info.groupValue,
|
||||
fileValue: info.fileValue,
|
||||
fileName: info.fileName
|
||||
}
|
||||
}
|
||||
$this.awsuiaxios.post(param)
|
||||
.then((ro: any) => {
|
||||
console.log(ro)
|
||||
if (ro.result === 'ok') {
|
||||
$this.$message({type:'warning',message:'数据【流程图】完毕'});
|
||||
}
|
||||
})
|
||||
.catch((err: any) => {})
|
||||
}
|
||||
const handleUploadBtn = () => {
|
||||
info.fileValue = 'XMLType' + new Date().getTime()
|
||||
info.uploadAction = axiosBaseUrl +'uf?sid='+settingParam.sessionId+'&repositoryName='+info.repositoryName+'&groupValue='
|
||||
+ info.groupValue+'&fileValue='+info.fileValue+'&appId='+ info.appId;
|
||||
}
|
||||
return {
|
||||
info,
|
||||
handlePreview,
|
||||
handleRemove,
|
||||
beforeRemove,
|
||||
handleExceed,
|
||||
handleUploadBtn,
|
||||
handleSuccess,
|
||||
next
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.data-migration {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #F7F7FB;
|
||||
.top-box {
|
||||
height: 75px;
|
||||
margin: 0 35px 0 35px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.title-box {
|
||||
line-height: 75px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.step-box {
|
||||
width: 45%;
|
||||
padding: 15px 0;
|
||||
}
|
||||
}
|
||||
.bottom-box {
|
||||
height: 650px;
|
||||
margin: 0 35px 0 35px;
|
||||
background-color: rgb(255,255,255);
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
.empty-box {
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
.upload-box {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.file-list-box {
|
||||
width: 100%;
|
||||
:deep(.el-scrollbar) {
|
||||
padding: 0 25px;
|
||||
}
|
||||
.scrollbar-demo-item {
|
||||
font-size: 16px;
|
||||
height: 35px;
|
||||
margin: 10px;
|
||||
border-radius: 4px;
|
||||
background: var(--el-color-primary-light-9);
|
||||
color: var(--el-color-primary);
|
||||
line-height: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>模型转换</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "module-change"
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
8
com.actionsoft.apps.coe.pal.datamigration/src/env.d.ts
vendored
Normal file
8
com.actionsoft.apps.coe.pal.datamigration/src/env.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare module '*.vue' {
|
||||
import { DefineComponent } from 'vue'
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
}
|
||||
27
com.actionsoft.apps.coe.pal.datamigration/src/main.ts
Normal file
27
com.actionsoft.apps.coe.pal.datamigration/src/main.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
//import './registerServiceWorker' pwa配置,暂时不用
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
/* eslint-disable */
|
||||
import awsui from "../lib/awsui.es"; //注意awsui组件库根据情况指定路径
|
||||
import "../lib/awsui.css";
|
||||
|
||||
|
||||
const app = createApp(App);
|
||||
app.use(store);
|
||||
app.use(router);
|
||||
app.use(awsui);
|
||||
|
||||
// app.use(ElementPlus, { size: 'small', zIndex: 3000 });
|
||||
const mountApp = ()=>{
|
||||
app.mount('#app');
|
||||
}
|
||||
const getSid = awsui.getSid;
|
||||
if(app.config.globalProperties.AWSPageContext.production){
|
||||
mountApp();
|
||||
}else{
|
||||
getSid.exec(app).then(()=>{
|
||||
mountApp();
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
/* eslint-disable no-console */
|
||||
|
||||
import { register } from 'register-service-worker'
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
register(`${process.env.BASE_URL}service-worker.js`, {
|
||||
ready () {
|
||||
console.log(
|
||||
'App is being served from cache by a service worker.\n' +
|
||||
'For more details, visit https://goo.gl/AFskqB'
|
||||
)
|
||||
},
|
||||
registered () {
|
||||
console.log('Service worker has been registered.')
|
||||
},
|
||||
cached () {
|
||||
console.log('Content has been cached for offline use.')
|
||||
},
|
||||
updatefound () {
|
||||
console.log('New content is downloading.')
|
||||
},
|
||||
updated () {
|
||||
console.log('New content is available; please refresh.')
|
||||
},
|
||||
offline () {
|
||||
console.log('No internet connection found. App is running in offline mode.')
|
||||
},
|
||||
error (error) {
|
||||
console.error('Error during service worker registration:', error)
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
|
||||
import Home from '../views/Home.vue'
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'Home',
|
||||
component: () => import('../views/Home.vue')
|
||||
}
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
||||
12
com.actionsoft.apps.coe.pal.datamigration/src/store/index.ts
Normal file
12
com.actionsoft.apps.coe.pal.datamigration/src/store/index.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { createStore } from 'vuex'
|
||||
|
||||
export default createStore({
|
||||
state: {
|
||||
},
|
||||
mutations: {
|
||||
},
|
||||
actions: {
|
||||
},
|
||||
modules: {
|
||||
}
|
||||
})
|
||||
122
com.actionsoft.apps.coe.pal.datamigration/src/views/Home.vue
Normal file
122
com.actionsoft.apps.coe.pal.datamigration/src/views/Home.vue
Normal file
@ -0,0 +1,122 @@
|
||||
<template>
|
||||
<div class="home">
|
||||
<div class="left">
|
||||
<div class="migration-type-box">
|
||||
<span>迁移类型</span>
|
||||
<el-select v-model="info.migrationType" placeholder="请选择迁移类型">
|
||||
<el-option
|
||||
v-for="item in info.migrationTypes"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</div>
|
||||
<el-divider />
|
||||
<div class="tabs-box">
|
||||
<el-tabs v-model="activeName" :tab-position="info.tabPosition" @tab-click="tabChange">
|
||||
<el-tab-pane v-for="tab in info.tabPanes" :name="tab.name">
|
||||
<template #label>
|
||||
<span class="custom-tabs-label">
|
||||
<i class="awsui-iconfont" v-html="tab.icon"></i>
|
||||
<span>{{ tab.label }}</span>
|
||||
</span>
|
||||
</template>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<data-migration v-if="activeName === 'dataMigration'"></data-migration>
|
||||
<data-import v-if="activeName === 'dataImport'"></data-import>
|
||||
<data-it-import v-if="activeName === 'dataItImport'"></data-it-import>
|
||||
<module-change v-if="activeName === 'moduleChange'"></module-change>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent,getCurrentInstance,reactive,ref } from 'vue';
|
||||
import DataMigration from '@/components/data-migration.vue';
|
||||
import DataImport from '@/components/data-import.vue';
|
||||
import DataItImport from '@/components/data-It-import.vue';
|
||||
import ModuleChange from '@/components/module-change.vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Home',
|
||||
components: {
|
||||
DataMigration,
|
||||
DataImport,
|
||||
DataItImport,
|
||||
ModuleChange
|
||||
},
|
||||
setup(){
|
||||
// const { proxy: $this } = getCurrentInstance();
|
||||
let info = reactive({
|
||||
migrationTypes: [{value:"",label:"Aris"}],
|
||||
migrationType: "",
|
||||
tabPosition: "left",
|
||||
tabPanes: [{label:"数据迁移",name:"dataMigration",icon:""},{label:"流程属性数据导入",name:"dataImport",icon:""},{label:"IT系统数据导入",name:"dataItImport",icon:""},{label:"模型转换",name:"moduleChange",icon:""}],
|
||||
flagBit: 1
|
||||
});
|
||||
const activeName = ref('dataMigration')
|
||||
const tabChange = (tabPaneName: any) => {
|
||||
// console.log(tabPaneName,activeName)
|
||||
}
|
||||
return {
|
||||
info,
|
||||
tabChange,
|
||||
activeName
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.home {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
.left {
|
||||
width: 240px;
|
||||
height: 100%;
|
||||
margin-right: 5px;
|
||||
box-shadow: 5px 0 5px rgba(236,236,241,0.9);
|
||||
.migration-type-box {
|
||||
display: inline-flex;
|
||||
width: 100%;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
margin-top: 20px;
|
||||
span {
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
}
|
||||
:deep(.el-select) {
|
||||
width: 150px;
|
||||
height: 30px;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
.tabs-box {
|
||||
:deep(.el-tabs--left .el-tabs__item.is-left) {
|
||||
text-align: center;
|
||||
width: 240px;
|
||||
height: 50px;
|
||||
font-size: 15px;
|
||||
font-weight: 32;
|
||||
}
|
||||
.custom-tabs-label {
|
||||
.awsui-iconfont {
|
||||
margin-right: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.right {
|
||||
height: 100%;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
15
com.actionsoft.apps.coe.pal.datamigration/tsconfig.json
Normal file
15
com.actionsoft.apps.coe.pal.datamigration/tsconfig.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"sourceMap": true,
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"lib": ["esnext", "dom"]
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
|
||||
}
|
||||
189
com.actionsoft.apps.coe.pal.datamigration/vite.config.ts
Normal file
189
com.actionsoft.apps.coe.pal.datamigration/vite.config.ts
Normal file
@ -0,0 +1,189 @@
|
||||
import {defineConfig,} from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import fs from "fs-extra"
|
||||
|
||||
declare const require: any;
|
||||
declare const process: any;
|
||||
const path = require("path");
|
||||
|
||||
const AWSDevParams = require("./AWSDevParams");
|
||||
Object.assign(AWSDevParams, require("./AWSDevServiceParams"));
|
||||
const AWSReleasePath = AWSDevParams.AWSReleasePath;
|
||||
const AWSPortalUrl = AWSDevParams.AWSPortalUrl;
|
||||
//开发时通过用户名及密码获取sessionId
|
||||
const devUserInfo = AWSDevParams.devUserInfo;
|
||||
const AWSproxyPath = "/AWSDEVURL/r/"; //防止跨域的地址
|
||||
const moduleTemplateInAWS = AWSDevParams.moduleTemplateInAWS;//平台的模板路径
|
||||
const outputDir = AWSDevParams.outputDir;
|
||||
const publicPath = AWSDevParams.publicPath;//决定生成在平台的js或css的相对路径,与build配置的路径要对应
|
||||
//判断是否开发
|
||||
const isProduction = process.env.NODE_ENV === "production";
|
||||
//开发时路径和build到平台路径
|
||||
const AWSJSAndCSSPath = isProduction ? "../" : AWSproxyPath.replace("r/", "");
|
||||
const importAWSCSS = AWSDevParams.importAWSCSS == null ? [] : AWSDevParams.importAWSCSS;
|
||||
const importAWSJS = AWSDevParams.importAWSJS == null ? [] : AWSDevParams.importAWSJS;
|
||||
const AWSJSAndCSSImportArray = [] as any[];
|
||||
for (const k of importAWSCSS) {
|
||||
AWSJSAndCSSImportArray.push("<link type='text/css' rel='stylesheet' href='" + AWSJSAndCSSPath + k + "'/>");
|
||||
}
|
||||
for (const k of importAWSJS) {
|
||||
AWSJSAndCSSImportArray.push("<script type='text/javascript' src='" + AWSJSAndCSSPath + k + "'></script>");
|
||||
}
|
||||
const getAWSFileRelativePath = () => {
|
||||
let index = "./";
|
||||
if (isProduction) {
|
||||
index = publicPath;
|
||||
}
|
||||
return index;
|
||||
};
|
||||
const getIndexPath = () => {
|
||||
let index = "index.html";
|
||||
if (isProduction) {
|
||||
index = AWSReleasePath + moduleTemplateInAWS;
|
||||
}
|
||||
return index;
|
||||
};
|
||||
|
||||
const data = {
|
||||
AWSJSAndCSSImport: AWSJSAndCSSImportArray.join("\n"),
|
||||
AWSJSAndCSSPath,
|
||||
devUserInfo: isProduction ? {} : devUserInfo,
|
||||
publicDir: getAWSFileRelativePath(),
|
||||
isProduction,
|
||||
axiosBaseUrl: isProduction ? "./" : AWSproxyPath,
|
||||
settingParam: isProduction ? "<#settingParam>" : "{}",
|
||||
}
|
||||
const replaceHtml = (html: string, htmlMap: any) => {
|
||||
for (const key in htmlMap) {
|
||||
if (key == "publicDir") {
|
||||
//公共路径特殊处理
|
||||
html = html.replace(/\/\$\{publicDir\}(.*?)"/g, htmlMap[key]+"$1\"");
|
||||
} else {
|
||||
html = html.replace(new RegExp("\\$\\{" + key + "\\}", "g"), typeof htmlMap[key] == "object" ? JSON.stringify(htmlMap[key]) : htmlMap[key]);
|
||||
}
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
||||
|
||||
const AWSPlugin: any = () => {
|
||||
let config = null as any;
|
||||
return {
|
||||
name: 'read-config',
|
||||
|
||||
configResolved(resolvedConfig: any) {
|
||||
// 存储最终解析的配置
|
||||
config = resolvedConfig;
|
||||
},
|
||||
|
||||
// 在其他钩子中使用存储的配置
|
||||
transform() {
|
||||
if (config.command === 'serve') {
|
||||
// serve: 由开发服务器调用的插件
|
||||
} else {
|
||||
// build: 由 Rollup 调用的插件
|
||||
}
|
||||
},
|
||||
transformIndexHtml(html: string) {
|
||||
return replaceHtml(html, data);
|
||||
},
|
||||
renderChunk(code: string, model: any) {
|
||||
if (/\/\$\{publicDir\}\//.test(code)) {
|
||||
return code.replace(/\/\$\{publicDir\}\//g, data["publicDir"] + "/");
|
||||
}
|
||||
return code;
|
||||
},
|
||||
closeBundle() {
|
||||
fs.move(AWSReleasePath + outputDir + "/index.html", getIndexPath(), {
|
||||
overwrite: true
|
||||
});
|
||||
// fs.rename(resolve(filePath + "/style.css"), resolve(filePath + "/awsui.css"));
|
||||
// fs.rename(resolve(filePath + "/awsui.umd.js"), resolve(filePath + "/awsui.umd.min.js"));
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
const rollupPlugin = () => {
|
||||
return {
|
||||
name: 'rullupPlugin',
|
||||
renderChunk(code: string, model: any) {
|
||||
//去除js中的css文本串
|
||||
for (const key in model.modules) {
|
||||
if (/\.(css|less)$/.test(key)) {
|
||||
code = code.replace(model.modules[key].code, "");
|
||||
}
|
||||
}
|
||||
return code;
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
// root: getIndexPath(),
|
||||
// publicDir: getAWSFileRelativePath(),
|
||||
//生成入口的html文件位置
|
||||
base: isProduction ? "${publicDir}" : "/", //公共路径特殊处理
|
||||
build: {
|
||||
outDir: AWSReleasePath + outputDir,
|
||||
emptyOutDir: true,
|
||||
// sourcemap:"inline",
|
||||
minify: "esbuild", //esbuild更快大一点点,terser慢但仅小一点点
|
||||
cssCodeSplit: false,
|
||||
commonjsOptions: {
|
||||
// non-CommonJS modules will be ignored, but you can also
|
||||
// specifically include/exclude files
|
||||
include: ['node_modules/**', "plugins/**", "lib/**", "src/**"], // Default: undefined
|
||||
exclude: ['node_modules/foo/**', 'node_modules/bar/**'], // Default: undefined
|
||||
// these values can also be regular expressions
|
||||
// include: /node_modules/
|
||||
|
||||
// search for files other than .js files (must already
|
||||
// be transpiled by a previous plugin!)
|
||||
extensions: ['.js', '.coffee'], // Default: [ '.js' ]
|
||||
|
||||
// if true then uses of `global` won't be dealt with by this plugin
|
||||
ignoreGlobal: false, // Default: false
|
||||
|
||||
// if false then skip sourceMap generation for CommonJS modules
|
||||
sourceMap: false, // Default: true
|
||||
|
||||
// unconverted. Pass an array containing the IDs
|
||||
// or a `id => boolean` function. Only use this
|
||||
// option if you know what you're doing!
|
||||
ignore: ['conditional-runtime-dependency']
|
||||
},
|
||||
rollupOptions: {
|
||||
output: {
|
||||
assetFileNames : 'assets/asset-[name]-[hash][extname]',
|
||||
chunkFileNames: 'js/chunck-[name]-[hash].js',
|
||||
entryFileNames: 'js/entry-[name]-[hash].js'
|
||||
},
|
||||
plugins: [rollupPlugin()]
|
||||
}
|
||||
},
|
||||
// eslint-loader 是否在保存的时候检查
|
||||
// lintOnSave: true,
|
||||
// productionSourceMap: false, //打包不使用源码(false后在平台无法调试)
|
||||
// use the full build with in-browser compiler?
|
||||
// https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only
|
||||
// compiler: false,
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname as any, "./src")
|
||||
}
|
||||
},
|
||||
server: {
|
||||
host : "0.0.0.0",
|
||||
proxy: {
|
||||
//配置跨域
|
||||
"/AWSDEVURL": {
|
||||
target: AWSPortalUrl,
|
||||
ws: true,
|
||||
changeOrigin: true, //允许跨域
|
||||
rewrite: (path) => path.replace(/^\/AWSDEVURL/, '')
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [vue(), AWSPlugin()],
|
||||
})
|
||||
2320
com.actionsoft.apps.coe.pal.datamigration/yarn.lock
Normal file
2320
com.actionsoft.apps.coe.pal.datamigration/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user