提交 8a03918d 编写于 作者: ibizdev's avatar ibizdev

lxm1993 发布系统代码 [TrainSys,网页端]

上级 98ca5ccb
......@@ -12,12 +12,12 @@
},
"dependencies": {
"@ibiz-template/command": "^0.0.1-alpha.13",
"@ibiz-template/controller": "^0.0.1-alpha.14",
"@ibiz-template/controller": "^0.0.1-alpha.15",
"@ibiz-template/core": "^0.0.1-alpha.13",
"@ibiz-template/model": "^0.0.1-alpha.13",
"@ibiz-template/runtime": "^0.0.1-alpha.14",
"@ibiz-template/service": "^0.0.1-alpha.14",
"@ibiz-template/vue-util": "^0.0.1-alpha.14",
"@ibiz-template/model": "^0.0.1-alpha.15",
"@ibiz-template/runtime": "^0.0.1-alpha.15",
"@ibiz-template/service": "^0.0.1-alpha.15",
"@ibiz-template/vue-util": "^0.0.1-alpha.15",
"ionicons": "^6.0.3",
"lodash-es": "^4.17.21",
"pinia": "^2.0.22",
......
......@@ -4,12 +4,12 @@ specifiers:
'@commitlint/cli': ^17.1.2
'@commitlint/config-conventional': ^17.1.0
'@ibiz-template/command': ^0.0.1-alpha.13
'@ibiz-template/controller': ^0.0.1-alpha.14
'@ibiz-template/controller': ^0.0.1-alpha.15
'@ibiz-template/core': ^0.0.1-alpha.13
'@ibiz-template/model': ^0.0.1-alpha.13
'@ibiz-template/runtime': ^0.0.1-alpha.14
'@ibiz-template/service': ^0.0.1-alpha.14
'@ibiz-template/vue-util': ^0.0.1-alpha.14
'@ibiz-template/model': ^0.0.1-alpha.15
'@ibiz-template/runtime': ^0.0.1-alpha.15
'@ibiz-template/service': ^0.0.1-alpha.15
'@ibiz-template/vue-util': ^0.0.1-alpha.15
'@types/lodash-es': ^4.17.6
'@types/node': ^18.8.3
'@types/qs': ^6.9.7
......@@ -60,12 +60,12 @@ specifiers:
dependencies:
'@ibiz-template/command': 0.0.1-alpha.13
'@ibiz-template/controller': 0.0.1-alpha.14_lgwfpop2bpzodbgsxv73wkyjbi
'@ibiz-template/controller': 0.0.1-alpha.15_wvyibvgvo5rqntlnslu6kgeaua
'@ibiz-template/core': 0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/runtime': 0.0.1-alpha.14_3frn3sb4vsgtilqmvfr7s25fzi
'@ibiz-template/service': 0.0.1-alpha.14_l3fjyt72yqcz2326lva7ylb7zq
'@ibiz-template/vue-util': 0.0.1-alpha.14_jz5phm7dsxi7e3pyr5442ij6xu
'@ibiz-template/model': 0.0.1-alpha.15_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/runtime': 0.0.1-alpha.15_xicyfd2scxwdlnm3nwj35lmm6u
'@ibiz-template/service': 0.0.1-alpha.15_ugamdxggotwkp4sabiqjh6vek4
'@ibiz-template/vue-util': 0.0.1-alpha.15_pvqgesrhqd5s4uqltz7hjmff4u
dayjs: 1.11.5
ionicons: 6.0.3
lodash-es: 4.17.21
......@@ -661,8 +661,8 @@ packages:
resolution: {integrity: sha512-IUD6x29nmmxdL8XbGGfBAEYlPO/+E8qHd/TI2ncgaaBFcF6M4ih7xga8l1oYuSdr+xx4mlXkAbzQFOqAQWm21g==}
dev: false
/@ibiz-template/controller/0.0.1-alpha.14_lgwfpop2bpzodbgsxv73wkyjbi:
resolution: {integrity: sha512-SR+6ZRlRffhILVw5wPIjY37J3w/rFa0fw8nL59Xa/IbhEe/i9TxkQga8kxEe83mGyMCSY21QP8y5w6z1JBys+Q==}
/@ibiz-template/controller/0.0.1-alpha.15_wvyibvgvo5rqntlnslu6kgeaua:
resolution: {integrity: sha512-UpujB323mASgEkCb5poRfguYnU9dWqEryCWg8/lsmBUmR/I72NUEDHwbk9dZSMJsEThxoTmVC31aXqmMbORi7g==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-alpha.2
'@ibiz-template/model': ^0.0.1-alpha.2
......@@ -672,10 +672,11 @@ packages:
qx-util: ^0.4.1
dependencies:
'@ibiz-template/core': 0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/runtime': 0.0.1-alpha.14_3frn3sb4vsgtilqmvfr7s25fzi
'@ibiz-template/service': 0.0.1-alpha.14_l3fjyt72yqcz2326lva7ylb7zq
'@ibiz-template/model': 0.0.1-alpha.15_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/runtime': 0.0.1-alpha.15_xicyfd2scxwdlnm3nwj35lmm6u
'@ibiz-template/service': 0.0.1-alpha.15_ugamdxggotwkp4sabiqjh6vek4
async-validator: 4.2.5
dayjs: 1.11.5
lodash-es: 4.17.21
qx-util: 0.4.1
dev: false
......@@ -695,8 +696,8 @@ packages:
- debug
dev: false
/@ibiz-template/model/0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4:
resolution: {integrity: sha512-ct9FExv9r5WnBQNaD4BHXXvowcJv0v3bHYeEXx0Sfrit26G4s0Kx53Hb9vWWPgONoH+Fu5jROaek2JiKCK8W8g==}
/@ibiz-template/model/0.0.1-alpha.15_amgpmzcbvys7f63sicqtedd4k4:
resolution: {integrity: sha512-ZQWSvPa+W9ecDLi3P7UcBqKCPy0rdZCmXoJiZ+pbZVpO01Xdk5BwSzuTEl8Pgz2ciIP15a25M8G8YjziZ35lhg==}
peerDependencies:
lodash-es: ^4.17.21
qx-util: ^0.4.1
......@@ -707,8 +708,8 @@ packages:
qx-util: 0.4.1
dev: false
/@ibiz-template/runtime/0.0.1-alpha.14_3frn3sb4vsgtilqmvfr7s25fzi:
resolution: {integrity: sha512-CD5Uc9Cr8Zn8iL7NxRs9nbb+J3AAE+RRPrcMvi9xbkpo6qlXiroyMHsNk0R7mKtQ6zkukocU8k4yR05+OR1I6g==}
/@ibiz-template/runtime/0.0.1-alpha.15_xicyfd2scxwdlnm3nwj35lmm6u:
resolution: {integrity: sha512-fFM8vDoyIC1eoSSfJYypwZ2aCJej6Fh4jFuIPRxZd2iEatgn+CPgAL+k5EQGFTe7qs36I4bkqV9EXZWSl/1Ocg==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-alpha.2
'@ibiz-template/model': ^0.0.1-alpha.2
......@@ -717,13 +718,13 @@ packages:
dependencies:
'@ibiz-template/command': 0.0.1-alpha.13
'@ibiz-template/core': 0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/service': 0.0.1-alpha.14_l3fjyt72yqcz2326lva7ylb7zq
'@ibiz-template/model': 0.0.1-alpha.15_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/service': 0.0.1-alpha.15_ugamdxggotwkp4sabiqjh6vek4
qx-util: 0.4.1
dev: false
/@ibiz-template/service/0.0.1-alpha.14_l3fjyt72yqcz2326lva7ylb7zq:
resolution: {integrity: sha512-8qxTaTzVnK2z1NRvRLJhK2cJUsJobp6XnC2MDmMSbxEIf0/LvKh3v7KDP+G2Y4wK3jGQxdAuSBGdTwYBxHlmVQ==}
/@ibiz-template/service/0.0.1-alpha.15_ugamdxggotwkp4sabiqjh6vek4:
resolution: {integrity: sha512-5kqvYh9bDddSNLDHb2ceDL+V0+cDd3oG3gK12RH2kyKXagP9DTRgfYbOHOmOe7eGhPolPndUDgkeP4Sbgn/N4g==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-alpha.2
'@ibiz-template/model': ^0.0.1-alpha.2
......@@ -731,13 +732,13 @@ packages:
ramda: ^0.28.0
dependencies:
'@ibiz-template/core': 0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.15_amgpmzcbvys7f63sicqtedd4k4
qx-util: 0.4.1
ramda: 0.28.0
dev: false
/@ibiz-template/vue-util/0.0.1-alpha.14_jz5phm7dsxi7e3pyr5442ij6xu:
resolution: {integrity: sha512-a/IN9YAnsiFVAB6ccnLHp3h71EK/I4+BVjX+vTIGuN3hq3z+LFqaBq7BYg/2G8L3aFPBMU+83UZg/vi7fMaBKQ==}
/@ibiz-template/vue-util/0.0.1-alpha.15_pvqgesrhqd5s4uqltz7hjmff4u:
resolution: {integrity: sha512-eg5f/Act0cn1mRGFQz+G5kIjVSrHwqKv188EHS02y/zaa47ZTKEp69bSrWFcTK7gqR7kQIEjEDGguFw5KyGLAQ==}
peerDependencies:
'@ibiz-template/controller': '>=0.0.1-alpha.2'
'@ibiz-template/core': '>=0.0.1-alpha.2'
......@@ -747,9 +748,9 @@ packages:
vue: ^2.7.10
vue-router: ^3.6.4
dependencies:
'@ibiz-template/controller': 0.0.1-alpha.14_lgwfpop2bpzodbgsxv73wkyjbi
'@ibiz-template/controller': 0.0.1-alpha.15_wvyibvgvo5rqntlnslu6kgeaua
'@ibiz-template/core': 0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.13_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.15_amgpmzcbvys7f63sicqtedd4k4
qs: 6.11.0
qx-util: 0.4.1
vue: 2.7.10
......
......@@ -11,6 +11,7 @@ export const IBizDatePicker = defineComponent({
},
controller: {
type: DatePickerEditorController,
required: true,
},
data: {
type: Object as PropType<IData>,
......
......@@ -29,15 +29,8 @@ export const WFDynaEditView3 = defineComponent({
controller={this.c}
scopedSlots={{
toolbar: () => {
if (this.c.complete && this.c.model.toolbar) {
if (this.c.complete) {
return [
<view-toolbar
modelData={this.c.model.toolbar}
on-neuronInit={this.c.nerve.onNeuronInit(
this.c.model.toolbar.source.name,
)}
viewMode={this.c.modal.mode}
></view-toolbar>,
this.c.wfLinks.length > 0 && (
<wf-toolbar
wfLinks={this.c.wfLinks}
......
import { OrgData } from '@ibiz-template/core';
import { ModelUtil } from '@ibiz-template/model';
import router from '@/router';
import { handleUnauthorized } from '../handle-unauthorized/handle-unauthorized';
/**
* 初始化模型
......@@ -71,7 +71,7 @@ async function appInit(): Promise<void> {
} catch (error) {
const { response, message } = error as IData;
if (response.status === 401) {
router.push('/login');
await handleUnauthorized();
}
console.log(`应用参数初始化失败:${message}`);
}
......
import router from '@/router';
/**
* 没有权限处理
*
* @author lxm
* @date 2022-10-09 20:10:00
* @export
* @returns {*} {Promise<void>}
*/
export async function handleUnauthorized(): Promise<void> {
const ru = window.location.hash.replace('#', '');
router.push({ path: '/login', query: { ru } });
}
export { AuthGuard } from './auth-guard/auth-guard';
export { handleUnauthorized } from './handle-unauthorized/handle-unauthorized';
import { HttpError, RuntimeError } from '@ibiz-template/core';
import { DefectModelError, UnsupportedModelError } from '@ibiz-template/model';
import { handleUnauthorized } from '@/guard';
/**
* 事件处理工具
......@@ -30,6 +31,9 @@ export class ErrorHandler {
desc: err.message,
duration: 10,
});
if (err.status === 401) {
handleUnauthorized();
}
} else if (err instanceof RuntimeError) {
ibiz.message.error(err.message);
} else {
......
......@@ -490,12 +490,13 @@
resolved "https://registry.yarnpkg.com/@ibiz-template/command/-/command-0.0.1-alpha.13.tgz#e8f07fede7fbfd3aa22eeec80ad66acf6c914d1e"
integrity sha512-IUD6x29nmmxdL8XbGGfBAEYlPO/+E8qHd/TI2ncgaaBFcF6M4ih7xga8l1oYuSdr+xx4mlXkAbzQFOqAQWm21g==
"@ibiz-template/controller@^0.0.1-alpha.14":
version "0.0.1-alpha.14"
resolved "https://registry.yarnpkg.com/@ibiz-template/controller/-/controller-0.0.1-alpha.14.tgz#2630990e35442cff395027de333bbc91f2d45d93"
integrity sha512-SR+6ZRlRffhILVw5wPIjY37J3w/rFa0fw8nL59Xa/IbhEe/i9TxkQga8kxEe83mGyMCSY21QP8y5w6z1JBys+Q==
"@ibiz-template/controller@^0.0.1-alpha.15":
version "0.0.1-alpha.15"
resolved "https://registry.yarnpkg.com/@ibiz-template/controller/-/controller-0.0.1-alpha.15.tgz#ff01696798854fa02a66e0c32b687d9bfae97d60"
integrity sha512-UpujB323mASgEkCb5poRfguYnU9dWqEryCWg8/lsmBUmR/I72NUEDHwbk9dZSMJsEThxoTmVC31aXqmMbORi7g==
dependencies:
async-validator "^4.2.5"
dayjs "^1.11.5"
"@ibiz-template/core@^0.0.1-alpha.13":
version "0.0.1-alpha.13"
......@@ -506,30 +507,30 @@
pluralize "^8.0.0"
qs "^6.11.0"
"@ibiz-template/model@^0.0.1-alpha.13":
version "0.0.1-alpha.13"
resolved "https://registry.yarnpkg.com/@ibiz-template/model/-/model-0.0.1-alpha.13.tgz#b4afaaeadf89cfcb412d1c3100a695b9ec63dc89"
integrity sha512-ct9FExv9r5WnBQNaD4BHXXvowcJv0v3bHYeEXx0Sfrit26G4s0Kx53Hb9vWWPgONoH+Fu5jROaek2JiKCK8W8g==
"@ibiz-template/model@^0.0.1-alpha.15":
version "0.0.1-alpha.15"
resolved "https://registry.yarnpkg.com/@ibiz-template/model/-/model-0.0.1-alpha.15.tgz#c06aa42fc653e125b72e42a0650ac380ee3fd19e"
integrity sha512-ZQWSvPa+W9ecDLi3P7UcBqKCPy0rdZCmXoJiZ+pbZVpO01Xdk5BwSzuTEl8Pgz2ciIP15a25M8G8YjziZ35lhg==
dependencies:
"@ibiz/dynamic-model-api" "^2.0.5"
pluralize "^8.0.0"
"@ibiz-template/runtime@^0.0.1-alpha.14":
version "0.0.1-alpha.14"
resolved "https://registry.yarnpkg.com/@ibiz-template/runtime/-/runtime-0.0.1-alpha.14.tgz#f62d7638c608368caf119d070d9da82d28793ed2"
integrity sha512-CD5Uc9Cr8Zn8iL7NxRs9nbb+J3AAE+RRPrcMvi9xbkpo6qlXiroyMHsNk0R7mKtQ6zkukocU8k4yR05+OR1I6g==
"@ibiz-template/runtime@^0.0.1-alpha.15":
version "0.0.1-alpha.15"
resolved "https://registry.yarnpkg.com/@ibiz-template/runtime/-/runtime-0.0.1-alpha.15.tgz#333f9fb247424e0d864370e3ec24f8d6acaa756e"
integrity sha512-fFM8vDoyIC1eoSSfJYypwZ2aCJej6Fh4jFuIPRxZd2iEatgn+CPgAL+k5EQGFTe7qs36I4bkqV9EXZWSl/1Ocg==
dependencies:
"@ibiz-template/command" "^0.0.1-alpha.13"
"@ibiz-template/service@^0.0.1-alpha.14":
version "0.0.1-alpha.14"
resolved "https://registry.yarnpkg.com/@ibiz-template/service/-/service-0.0.1-alpha.14.tgz#5110cb981d0918e62e02f81d0ef24764ec8c9e35"
integrity sha512-8qxTaTzVnK2z1NRvRLJhK2cJUsJobp6XnC2MDmMSbxEIf0/LvKh3v7KDP+G2Y4wK3jGQxdAuSBGdTwYBxHlmVQ==
"@ibiz-template/service@^0.0.1-alpha.15":
version "0.0.1-alpha.15"
resolved "https://registry.yarnpkg.com/@ibiz-template/service/-/service-0.0.1-alpha.15.tgz#4965b905e50b323fedc16db28714885b51e0dfb6"
integrity sha512-5kqvYh9bDddSNLDHb2ceDL+V0+cDd3oG3gK12RH2kyKXagP9DTRgfYbOHOmOe7eGhPolPndUDgkeP4Sbgn/N4g==
"@ibiz-template/vue-util@^0.0.1-alpha.14":
version "0.0.1-alpha.14"
resolved "https://registry.yarnpkg.com/@ibiz-template/vue-util/-/vue-util-0.0.1-alpha.14.tgz#148e80cbc67ab4c168001a96e3dd425d65a5464c"
integrity sha512-a/IN9YAnsiFVAB6ccnLHp3h71EK/I4+BVjX+vTIGuN3hq3z+LFqaBq7BYg/2G8L3aFPBMU+83UZg/vi7fMaBKQ==
"@ibiz-template/vue-util@^0.0.1-alpha.15":
version "0.0.1-alpha.15"
resolved "https://registry.yarnpkg.com/@ibiz-template/vue-util/-/vue-util-0.0.1-alpha.15.tgz#d2b6ab2ed6363869bc7fdadcc342f51e76b3637b"
integrity sha512-eg5f/Act0cn1mRGFQz+G5kIjVSrHwqKv188EHS02y/zaa47ZTKEp69bSrWFcTK7gqR7kQIEjEDGguFw5KyGLAQ==
"@ibiz/dynamic-model-api@^2.0.5":
version "2.0.5"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册