mooho-base-admin-plus 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +5 -0
- package/.env.development +0 -0
- package/.env.production +0 -0
- package/.eslintignore +11 -0
- package/.eslintrc.js +47 -0
- package/.prettierrc +15 -0
- package/README.md +18 -0
- package/dist/favicon.ico +0 -0
- package/dist/mooho-base-admin-plus.min.esm.js +131746 -0
- package/dist/mooho-base-admin-plus.min.js +279 -0
- package/dist/setting.js +31 -0
- package/dist/static/images/app-barcode.png +0 -0
- package/dist/static/images/login/bg.png +0 -0
- package/dist/static/images/login/logo.png +0 -0
- package/dist/static/images/login/password-active.png +0 -0
- package/dist/static/images/login/password-default.png +0 -0
- package/dist/static/images/login/signIn-img.png +0 -0
- package/dist/static/images/login/user-active.png +0 -0
- package/dist/static/images/login/user-default.png +0 -0
- package/dist/static/images/logo-dark.png +0 -0
- package/dist/static/images/logo-small.png +0 -0
- package/dist/static/images/logo.png +0 -0
- package/dist/static/images/logo.svg +510 -0
- package/dist/static/images/no-image.png +0 -0
- package/dist/style.css +4 -0
- package/index.html +18 -0
- package/other/pda.vue +28 -0
- package/package.json +59 -0
- package/public/favicon.ico +0 -0
- package/public/setting.js +31 -0
- package/public/static/images/app-barcode.png +0 -0
- package/public/static/images/login/bg.png +0 -0
- package/public/static/images/login/logo.png +0 -0
- package/public/static/images/login/password-active.png +0 -0
- package/public/static/images/login/password-default.png +0 -0
- package/public/static/images/login/signIn-img.png +0 -0
- package/public/static/images/login/user-active.png +0 -0
- package/public/static/images/login/user-default.png +0 -0
- package/public/static/images/logo-dark.png +0 -0
- package/public/static/images/logo-small.png +0 -0
- package/public/static/images/logo.png +0 -0
- package/public/static/images/logo.svg +510 -0
- package/public/static/images/no-image.png +0 -0
- package/src/App.vue +60 -0
- package/src/api/application.js +35 -0
- package/src/api/customModel.js +187 -0
- package/src/api/customPage.js +15 -0
- package/src/api/customTable.js +24 -0
- package/src/api/dataSource.js +93 -0
- package/src/api/dataView.js +199 -0
- package/src/api/dictType.js +23 -0
- package/src/api/entityView.js +13 -0
- package/src/api/enum.js +15 -0
- package/src/api/filterColumn.js +16 -0
- package/src/api/model.js +244 -0
- package/src/api/movePlan.js +29 -0
- package/src/api/notification.js +28 -0
- package/src/api/openApiPermission.js +25 -0
- package/src/api/permission.js +51 -0
- package/src/api/planJob.js +15 -0
- package/src/api/process.js +23 -0
- package/src/api/processDef.js +36 -0
- package/src/api/processInst.js +16 -0
- package/src/api/rolePermission.js +17 -0
- package/src/api/roleProperty.js +36 -0
- package/src/api/shortcut.js +20 -0
- package/src/api/system.js +23 -0
- package/src/api/task.js +56 -0
- package/src/api/taskQueue.js +24 -0
- package/src/api/user.js +45 -0
- package/src/api/viewColumn.js +16 -0
- package/src/assets/svg/body.svg +17 -0
- package/src/assets/svg/header-theme-dark.svg +40 -0
- package/src/assets/svg/header-theme-primary.svg +40 -0
- package/src/assets/svg/header-top.svg +40 -0
- package/src/assets/svg/icon-happy.svg +1 -0
- package/src/assets/svg/icon-sad.svg +1 -0
- package/src/assets/svg/icon-social-bilibili.svg +1 -0
- package/src/assets/svg/icon-social-dingding.svg +1 -0
- package/src/assets/svg/icon-social-facebook.svg +1 -0
- package/src/assets/svg/icon-social-juejin.svg +1 -0
- package/src/assets/svg/icon-social-qq.svg +1 -0
- package/src/assets/svg/icon-social-twitter.svg +1 -0
- package/src/assets/svg/icon-social-wechat.svg +1 -0
- package/src/assets/svg/icon-social-weibo.svg +1 -0
- package/src/assets/svg/icon-social-zhihu.svg +1 -0
- package/src/assets/svg/nav-theme-dark.svg +40 -0
- package/src/assets/svg/nav-theme-light.svg +40 -0
- package/src/components/copyright/index.vue +28 -0
- package/src/components/home/notice-list.vue +62 -0
- package/src/components/home/shortcut.vue +125 -0
- package/src/components/input/dialog-select.vue +301 -0
- package/src/components/input/item-select.vue +195 -0
- package/src/components/link/index.vue +54 -0
- package/src/components/richEditor/index.vue +86 -0
- package/src/components/upload/file-upload.vue +84 -0
- package/src/components/upload/upload-attachment.vue +119 -0
- package/src/components/upload/upload-image.vue +212 -0
- package/src/components/view/column-check.vue +223 -0
- package/src/components/view/column-edit.vue +850 -0
- package/src/components/view/column-select.vue +206 -0
- package/src/components/view/condition-edit.vue +164 -0
- package/src/components/view/filter-edit.vue +633 -0
- package/src/components/view/filter-setting.vue +126 -0
- package/src/components/view/form-setting-layout.vue +375 -0
- package/src/components/view/form-setting.vue +247 -0
- package/src/components/view/group-column.vue +104 -0
- package/src/components/view/group-method.vue +104 -0
- package/src/components/view/mixin.js +72 -0
- package/src/components/view/modal-form-filter.vue +319 -0
- package/src/components/view/modal-form-sort.vue +248 -0
- package/src/components/view/modal-form.vue +453 -0
- package/src/components/view/modal-table.vue +471 -0
- package/src/components/view/table-filter.vue +702 -0
- package/src/components/view/table-setting.vue +533 -0
- package/src/components/view/view-chart.vue +423 -0
- package/src/components/view/view-form-draggable.vue +837 -0
- package/src/components/view/view-form.vue +1444 -0
- package/src/components/view/view-table.vue +2261 -0
- package/src/components/workflow/flow-chart.vue +846 -0
- package/src/directive/focus.js +10 -0
- package/src/directive/tabHide.js +9 -0
- package/src/i18n/index.js +15 -0
- package/src/i18n/locale/en-US.js +1 -0
- package/src/i18n/locale/lang.js +1 -0
- package/src/i18n/locale/zh-CN.js +1 -0
- package/src/i18n/locale.js +102 -0
- package/src/index.js +222 -0
- package/src/layouts/basic-layout/header-breadcrumb/index.vue +122 -0
- package/src/layouts/basic-layout/header-collapse/index.vue +44 -0
- package/src/layouts/basic-layout/header-fullscreen/index.vue +19 -0
- package/src/layouts/basic-layout/header-i18n/index.vue +45 -0
- package/src/layouts/basic-layout/header-log/index.vue +41 -0
- package/src/layouts/basic-layout/header-logo/index.vue +23 -0
- package/src/layouts/basic-layout/header-notice/index.vue +218 -0
- package/src/layouts/basic-layout/header-reload/index.vue +21 -0
- package/src/layouts/basic-layout/header-search/index.vue +37 -0
- package/src/layouts/basic-layout/header-setting/index.vue +219 -0
- package/src/layouts/basic-layout/header-user/index.vue +175 -0
- package/src/layouts/basic-layout/i18n.js +50 -0
- package/src/layouts/basic-layout/index.vue +280 -0
- package/src/layouts/basic-layout/menu-head/index.vue +120 -0
- package/src/layouts/basic-layout/menu-head/title.vue +48 -0
- package/src/layouts/basic-layout/menu-side/index.vue +113 -0
- package/src/layouts/basic-layout/menu-side/menu-collapse.vue +76 -0
- package/src/layouts/basic-layout/menu-side/menu-item.vue +31 -0
- package/src/layouts/basic-layout/menu-side/menu-title.vue +56 -0
- package/src/layouts/basic-layout/menu-side/submenu.vue +31 -0
- package/src/layouts/basic-layout/mixins/click-item.js +21 -0
- package/src/layouts/basic-layout/mixins/sider-menu-badge.js +13 -0
- package/src/layouts/basic-layout/mixins/translate-title.js +11 -0
- package/src/layouts/basic-layout/tabs/index.vue +192 -0
- package/src/layouts/basic-layout/water-mark/index.vue +29 -0
- package/src/libs/lodop/index.js +145 -0
- package/src/libs/random_str.js +10 -0
- package/src/libs/request/index.js +158 -0
- package/src/libs/system/index.js +234 -0
- package/src/libs/util.cookies.js +44 -0
- package/src/libs/util.db.js +13 -0
- package/src/libs/util.js +55 -0
- package/src/libs/util.log.js +88 -0
- package/src/libs/water-mark.js +44 -0
- package/src/menu/header.js +20 -0
- package/src/menu/modules/dashboard.js +23 -0
- package/src/menu/sider.js +12 -0
- package/src/mixins/app.js +9 -0
- package/src/mixins/page.js +643 -0
- package/src/pages/account/login.vue +101 -0
- package/src/pages/common/home.vue +169 -0
- package/src/pages/common/task-form.vue +350 -0
- package/src/pages/common/todo.vue +31 -0
- package/src/pages/system/apiLog.vue +79 -0
- package/src/pages/system/applicationType.vue +182 -0
- package/src/pages/system/customPage.vue +62 -0
- package/src/pages/system/customTable.vue +98 -0
- package/src/pages/system/dict.vue +36 -0
- package/src/pages/system/dictType.vue +58 -0
- package/src/pages/system/entityView.vue +38 -0
- package/src/pages/system/error/404.vue +6 -0
- package/src/pages/system/extendColumn.vue +99 -0
- package/src/pages/system/formView.vue +136 -0
- package/src/pages/system/log.vue +55 -0
- package/src/pages/system/notice.vue +26 -0
- package/src/pages/system/openApi.vue +26 -0
- package/src/pages/system/openUser.vue +66 -0
- package/src/pages/system/organization.vue +98 -0
- package/src/pages/system/organizationType.vue +26 -0
- package/src/pages/system/permission.vue +175 -0
- package/src/pages/system/planJob.vue +40 -0
- package/src/pages/system/printTemplate.vue +48 -0
- package/src/pages/system/process.vue +79 -0
- package/src/pages/system/processType.vue +26 -0
- package/src/pages/system/role.vue +395 -0
- package/src/pages/system/rolePropertyEdit.vue +480 -0
- package/src/pages/system/sequenceSetting.vue +26 -0
- package/src/pages/system/systemData.vue +52 -0
- package/src/pages/system/tableView.vue +386 -0
- package/src/pages/system/taskQueue.vue +48 -0
- package/src/pages/system/user.vue +250 -0
- package/src/pages/template/processPage.vue +243 -0
- package/src/pages/template/reportPage.vue +66 -0
- package/src/pages/template/viewPage.vue +139 -0
- package/src/plugins/auth/index.js +21 -0
- package/src/plugins/error/index.js +31 -0
- package/src/plugins/index.js +24 -0
- package/src/plugins/sweetalert2/index.js +20 -0
- package/src/router/dynamic.js +183 -0
- package/src/router/index.js +84 -0
- package/src/setting.js +202 -0
- package/src/store/index.js +9 -0
- package/src/store/modules/admin/index.js +16 -0
- package/src/store/modules/admin/modules/account.js +103 -0
- package/src/store/modules/admin/modules/cache.js +119 -0
- package/src/store/modules/admin/modules/dataView.js +112 -0
- package/src/store/modules/admin/modules/db.js +231 -0
- package/src/store/modules/admin/modules/i18n.js +87 -0
- package/src/store/modules/admin/modules/layout.js +115 -0
- package/src/store/modules/admin/modules/loader.js +44 -0
- package/src/store/modules/admin/modules/log.js +77 -0
- package/src/store/modules/admin/modules/menu.js +338 -0
- package/src/store/modules/admin/modules/page.js +466 -0
- package/src/store/modules/admin/modules/user.js +96 -0
- package/src/store/modules/admin/modules/viewPage.js +34 -0
- package/src/styles/common.less +47 -0
- package/src/styles/css/default.css +510 -0
- package/src/styles/css/login.css +1217 -0
- package/src/styles/default/index.less +6 -0
- package/src/styles/font/demo.css +539 -0
- package/src/styles/font/demo_index.html +372 -0
- package/src/styles/font/icon-demo/demo.css +539 -0
- package/src/styles/font/icon-demo/demo_index.html +423 -0
- package/src/styles/font/icon-demo/iconfont.css +61 -0
- package/src/styles/font/icon-demo/iconfont.eot +0 -0
- package/src/styles/font/icon-demo/iconfont.js +1 -0
- package/src/styles/font/icon-demo/iconfont.svg +59 -0
- package/src/styles/font/icon-demo/iconfont.ttf +0 -0
- package/src/styles/font/icon-demo/iconfont.woff +0 -0
- package/src/styles/font/icon-demo/iconfont.woff2 +0 -0
- package/src/styles/font/iconfont.css +47 -0
- package/src/styles/font/iconfont.js +1 -0
- package/src/styles/font/iconfont.json +65 -0
- package/src/styles/font/iconfont.ttf +0 -0
- package/src/styles/font/iconfont.woff +0 -0
- package/src/styles/font/iconfont.woff2 +0 -0
- package/src/styles/font/ionicons.svg +870 -0
- package/src/styles/font/ionicons.ttf +0 -0
- package/src/styles/font/ionicons.woff +0 -0
- package/src/styles/font/ionicons.woff2 +0 -0
- package/src/styles/index.less +7 -0
- package/src/styles/layout/basic-layout/layout.less +527 -0
- package/src/styles/layout/basic-layout/menu.less +274 -0
- package/src/styles/layout/index.less +2 -0
- package/src/styles/setting.less +6 -0
- package/styleguide.config.js +22 -0
- package/test/api/barcode.js +50 -0
- package/test/api/inbound.js +47 -0
- package/test/api/interfaceLog.js +15 -0
- package/test/api/interfaceQueue.js +15 -0
- package/test/api/interfaceServer.js +29 -0
- package/test/api/movePlan.js +50 -0
- package/test/api/movePlanItem.js +13 -0
- package/test/api/moveType.js +22 -0
- package/test/api/openApiPermission.js +25 -0
- package/test/api/outbound.js +40 -0
- package/test/api/permission.js +34 -0
- package/test/api/rolePermission.js +17 -0
- package/test/api/user.js +40 -0
- package/test/api/viewColumn.js +16 -0
- package/test/api/warehouse.js +13 -0
- package/test/api/warehouseMoveType.js +18 -0
- package/test/main.js +55 -0
- package/test/package.js +33 -0
- package/test/pages/home/index.vue +22 -0
- package/test/pages/task/test.vue +28 -0
- package/test/pages/test/dataViewTest.vue +28 -0
- package/test/pages/test/logReport.vue +25 -0
- package/test/pages/test/testPage.vue +38 -0
- package/test/router/routes.js +88 -0
- package/test/setting.env.js +22 -0
- package/test/styles/css/custom.css +0 -0
- package/test/styles/css/login.css +1217 -0
- package/vite.config.js +72 -0
- package/vue.config.js +20 -0
package/test/api/user.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { request } from '/src';
|
|
2
|
+
|
|
3
|
+
const res = 'User';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
get(id) {
|
|
7
|
+
return request({
|
|
8
|
+
url: `api/${res}/get`,
|
|
9
|
+
method: 'get',
|
|
10
|
+
params: {
|
|
11
|
+
id
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
login(data) {
|
|
16
|
+
return request({
|
|
17
|
+
url: `api/${res}/login`,
|
|
18
|
+
method: 'post',
|
|
19
|
+
data
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
setCurrentFactory(id) {
|
|
23
|
+
return request({
|
|
24
|
+
url: `api/${res}/setCurrentFactory`,
|
|
25
|
+
method: 'post',
|
|
26
|
+
data: {
|
|
27
|
+
id
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
},
|
|
31
|
+
resetPassword(id) {
|
|
32
|
+
return request({
|
|
33
|
+
url: `api/${res}/resetPassword`,
|
|
34
|
+
method: 'get',
|
|
35
|
+
params: {
|
|
36
|
+
userID: id
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { request } from '/src';
|
|
2
|
+
|
|
3
|
+
const res = 'ViewColumn';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
queryByDataViewID(dataViewID) {
|
|
7
|
+
return request({
|
|
8
|
+
url: `api/${res}/query`,
|
|
9
|
+
method: 'post',
|
|
10
|
+
data: {
|
|
11
|
+
dataViewID,
|
|
12
|
+
orderBy: '+orderNo'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { request } from '/src';
|
|
2
|
+
const res = 'WarehouseMoveType';
|
|
3
|
+
export default {
|
|
4
|
+
query(filter = {}) {
|
|
5
|
+
return request({
|
|
6
|
+
url: `api/${res}/query`,
|
|
7
|
+
method: 'post',
|
|
8
|
+
data: filter
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
save(data) {
|
|
12
|
+
return request({
|
|
13
|
+
url: `api/${res}/save`,
|
|
14
|
+
method: 'post',
|
|
15
|
+
data
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
};
|
package/test/main.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
if (!!window.ActiveXObject || 'ActiveXObject' in window) {
|
|
2
|
+
alert('本系统不支持ie,请使用Chrome、Firefox、Edge等现代浏览器访问!');
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
// 基础框架
|
|
6
|
+
import moohoBaseAdminPlus, { pages, createApp, h, getCurrentInstance, App, router, store, i18n, basicLayout, created, routeChanged } from '../src/index.js';
|
|
7
|
+
|
|
8
|
+
// 固定路由
|
|
9
|
+
import routes from './router/routes';
|
|
10
|
+
//import { frameInRoutes } from './router/routes';
|
|
11
|
+
|
|
12
|
+
// 自定义css
|
|
13
|
+
import './styles/css/custom.css';
|
|
14
|
+
|
|
15
|
+
// 页面
|
|
16
|
+
const files = import.meta.globEager('./pages/**/*.vue');
|
|
17
|
+
|
|
18
|
+
Object.keys(files).forEach(key => {
|
|
19
|
+
pages[key.replace(/(\.\/pages\/)/g, '')] = files[key].default;
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
router.pages = pages;
|
|
23
|
+
router.layout = basicLayout;
|
|
24
|
+
|
|
25
|
+
// 添加静态路由
|
|
26
|
+
routes.forEach(route => {
|
|
27
|
+
router.addRoute(route);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const app = createApp({
|
|
31
|
+
// mixins: [mixinApp],
|
|
32
|
+
render: () => h(App),
|
|
33
|
+
created() {
|
|
34
|
+
created();
|
|
35
|
+
|
|
36
|
+
// 将根实例存全局,可在特殊场景下调用
|
|
37
|
+
if (window) {
|
|
38
|
+
window.$app = getCurrentInstance();
|
|
39
|
+
window.$app.$t = i18n.global.t;
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
watch: {
|
|
43
|
+
// 监听路由 控制侧边栏显示 标记当前顶栏菜单(如需要)
|
|
44
|
+
$route(to, from) {
|
|
45
|
+
routeChanged(to, from);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
app.use(router);
|
|
51
|
+
app.use(store);
|
|
52
|
+
app.use(i18n);
|
|
53
|
+
app.use(moohoBaseAdminPlus);
|
|
54
|
+
|
|
55
|
+
app.mount('#app');
|
package/test/package.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//import '@babel/polyfill';
|
|
2
|
+
|
|
3
|
+
import moohoBaseAdmin, { Vue, App, router, store, i18n, setting, basicLayout, lodop, request, mixinPage, created, routeChanged } from '/src/index.js';
|
|
4
|
+
|
|
5
|
+
// 自定义css
|
|
6
|
+
import './styles/css/wms.css';
|
|
7
|
+
|
|
8
|
+
// 页面
|
|
9
|
+
const files = require.context('./pages', true, /\.vue$/);
|
|
10
|
+
const pages = {};
|
|
11
|
+
|
|
12
|
+
Object.keys(files).forEach(key => {
|
|
13
|
+
pages['@/' + key.replace(/(\.\/)/g, '')] = files[key].default;
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const install = function (Vue) {
|
|
17
|
+
if (install.installed) return;
|
|
18
|
+
|
|
19
|
+
Vue.use(moohoBaseAdmin);
|
|
20
|
+
|
|
21
|
+
// eCharts图表
|
|
22
|
+
//Vue.prototype.$echarts = echarts;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const API = {
|
|
26
|
+
version: process.env.VERSION,
|
|
27
|
+
install
|
|
28
|
+
//...components
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default API;
|
|
32
|
+
|
|
33
|
+
export { pages, Vue, App, router, store, i18n, setting, basicLayout, lodop, request, mixinPage, created, routeChanged };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div></div>
|
|
3
|
+
</template>
|
|
4
|
+
<script>
|
|
5
|
+
import { mixinPage } from '/src';
|
|
6
|
+
import { mapMutations } from 'vuex';
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: 'home',
|
|
10
|
+
mixins: [mixinPage],
|
|
11
|
+
components: {},
|
|
12
|
+
created() {
|
|
13
|
+
//this.disable();
|
|
14
|
+
},
|
|
15
|
+
data() {
|
|
16
|
+
return {};
|
|
17
|
+
},
|
|
18
|
+
methods: {
|
|
19
|
+
...mapMutations('admin/loader', ['disable'])
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
</script>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="i-layout-page-header">
|
|
4
|
+
<PageHeader :title="$route.meta.title" :content="$route.meta.description" hidden-breadcrumb />
|
|
5
|
+
</div>
|
|
6
|
+
<Card :bordered="false" dis-hover class="ivu-mt">
|
|
7
|
+
<div class="ivu-ml-8 ivu-mr-8">
|
|
8
|
+
<img :src="rootPath + 'images/app-barcode.png'" />
|
|
9
|
+
<div style="font-size: 24px; width: 260px; height: 30px; text-align: center">请使用PDA扫码安装</div>
|
|
10
|
+
</div>
|
|
11
|
+
</Card>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<script>
|
|
15
|
+
import { mixinPage } from '/src';
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
name: 'other-pda',
|
|
19
|
+
mixins: [mixinPage],
|
|
20
|
+
components: {},
|
|
21
|
+
data() {
|
|
22
|
+
return {};
|
|
23
|
+
},
|
|
24
|
+
computed: {},
|
|
25
|
+
created() {},
|
|
26
|
+
methods: {}
|
|
27
|
+
};
|
|
28
|
+
</script>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="i-layout-page-header">
|
|
4
|
+
<PageHeader :title="$route.meta.title" :content="$route.meta.description" hidden-breadcrumb />
|
|
5
|
+
</div>
|
|
6
|
+
<Card :bordered="false" dis-hover class="ivu-mt">
|
|
7
|
+
<view-table ref="table" :static="true" view-code="TableView"></view-table>
|
|
8
|
+
</Card>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<script>
|
|
12
|
+
import { mixinPage, modelApi } from '/src';
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
name: 'test-logReport',
|
|
16
|
+
mixins: [mixinPage],
|
|
17
|
+
components: {},
|
|
18
|
+
data() {
|
|
19
|
+
return {};
|
|
20
|
+
},
|
|
21
|
+
computed: {},
|
|
22
|
+
async mounted() {
|
|
23
|
+
const res = await modelApi.query('DataView', {});
|
|
24
|
+
this.$refs.table.loadData(res.data);
|
|
25
|
+
},
|
|
26
|
+
methods: {}
|
|
27
|
+
};
|
|
28
|
+
</script>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="i-layout-page-header">
|
|
4
|
+
<PageHeader :title="$route.meta.title" :content="$route.meta.description" hidden-breadcrumb />
|
|
5
|
+
</div>
|
|
6
|
+
<Card :bordered="false" dis-hover class="ivu-mt">
|
|
7
|
+
<view-table ref="table" view-code="LogReport"></view-table>
|
|
8
|
+
</Card>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<script>
|
|
12
|
+
import { mixinPage } from '/src';
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
name: 'test-logReport',
|
|
16
|
+
mixins: [mixinPage],
|
|
17
|
+
components: {},
|
|
18
|
+
data() {
|
|
19
|
+
return {};
|
|
20
|
+
},
|
|
21
|
+
computed: {},
|
|
22
|
+
created() {},
|
|
23
|
+
methods: {}
|
|
24
|
+
};
|
|
25
|
+
</script>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<view-form ref="form" :readonly="readonly" view-code="ExpenseApplicationTest">
|
|
4
|
+
<template #column="{ code }">
|
|
5
|
+
<template v-if="code == 'approver'">aaa</template>
|
|
6
|
+
</template>
|
|
7
|
+
</view-form>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
<script>
|
|
11
|
+
import ViewForm from '../../../src/components/view/view-form.vue';
|
|
12
|
+
import { mixinPage } from '/src';
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
name: 'test-page',
|
|
16
|
+
mixins: [mixinPage],
|
|
17
|
+
components: { ViewForm },
|
|
18
|
+
props: {
|
|
19
|
+
/**
|
|
20
|
+
* 只读
|
|
21
|
+
*/
|
|
22
|
+
readonly: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
data() {
|
|
28
|
+
return {};
|
|
29
|
+
},
|
|
30
|
+
computed: {
|
|
31
|
+
form() {
|
|
32
|
+
return this.$refs.form;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
created() {},
|
|
36
|
+
methods: {}
|
|
37
|
+
};
|
|
38
|
+
</script>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { pages, basicLayout } from '../../src/index.js';
|
|
2
|
+
import { h } from 'vue';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 在主框架之外显示
|
|
6
|
+
*/
|
|
7
|
+
const frameOut = [
|
|
8
|
+
// 登录
|
|
9
|
+
{
|
|
10
|
+
path: '/login',
|
|
11
|
+
name: 'login',
|
|
12
|
+
meta: {
|
|
13
|
+
title: '登录'
|
|
14
|
+
},
|
|
15
|
+
component: () => {
|
|
16
|
+
return new Promise(resolve => {
|
|
17
|
+
resolve(pages['account/login.vue']);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 在主框架内显示
|
|
25
|
+
*/
|
|
26
|
+
const frameIn = [
|
|
27
|
+
{
|
|
28
|
+
path: '/',
|
|
29
|
+
redirect: {
|
|
30
|
+
name: 'login'
|
|
31
|
+
},
|
|
32
|
+
component: basicLayout,
|
|
33
|
+
children: [
|
|
34
|
+
{
|
|
35
|
+
path: 'index',
|
|
36
|
+
name: 'index',
|
|
37
|
+
redirect: {
|
|
38
|
+
name: 'home'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
// 首页
|
|
42
|
+
{
|
|
43
|
+
path: '/home',
|
|
44
|
+
name: 'home',
|
|
45
|
+
meta: {
|
|
46
|
+
title: '首页',
|
|
47
|
+
description: 'Home',
|
|
48
|
+
closable: false
|
|
49
|
+
},
|
|
50
|
+
component: () => {
|
|
51
|
+
return new Promise(resolve => {
|
|
52
|
+
resolve(pages['common/home.vue']);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
// 刷新页面 必须保留
|
|
57
|
+
{
|
|
58
|
+
path: 'refresh',
|
|
59
|
+
name: 'refresh',
|
|
60
|
+
hidden: true,
|
|
61
|
+
component: {
|
|
62
|
+
beforeRouteEnter(to, from, next) {
|
|
63
|
+
next(instance => instance.$router.replace(from.fullPath));
|
|
64
|
+
},
|
|
65
|
+
render: () => h()
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
// 页面重定向 必须保留
|
|
69
|
+
{
|
|
70
|
+
path: 'redirect/:route*',
|
|
71
|
+
name: 'redirect',
|
|
72
|
+
hidden: true,
|
|
73
|
+
component: {
|
|
74
|
+
beforeRouteEnter(to, from, next) {
|
|
75
|
+
next(instance => instance.$router.replace(JSON.parse(from.params.route)));
|
|
76
|
+
},
|
|
77
|
+
render: () => h()
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
|
|
84
|
+
// 导出需要显示菜单的
|
|
85
|
+
export const frameInRoutes = frameIn;
|
|
86
|
+
|
|
87
|
+
// 重新组织后导出
|
|
88
|
+
export default [...frameOut, ...frameIn];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin Plus 开发配置
|
|
3
|
+
* */
|
|
4
|
+
|
|
5
|
+
const basePath = import.meta.env.VUE_APP_BASE_PATH;
|
|
6
|
+
const path = basePath == '' || basePath == null ? '/' : '/' + basePath + '/';
|
|
7
|
+
|
|
8
|
+
const Setting = {
|
|
9
|
+
// 是否使用 Mock 的数据,默认 开发环境为 true,生产环境为 false
|
|
10
|
+
// isMock: false,
|
|
11
|
+
// 部署应用包时的基本 URL
|
|
12
|
+
publicPath: import.meta.env.NODE_ENV === 'development' ? path : path,
|
|
13
|
+
// 生产环境构建文件的目录名
|
|
14
|
+
outputDir: 'dist',
|
|
15
|
+
// 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录。
|
|
16
|
+
assetsDir: '',
|
|
17
|
+
// 开发环境每次保存时 lint 代码,会将 lint 错误输出为编译警告
|
|
18
|
+
// true || false || error
|
|
19
|
+
lintOnSave: true
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
module.exports = Setting;
|
|
File without changes
|