提交 51e5b5a1 编写于 作者: ibizdev's avatar ibizdev

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

上级 6c565e98
......@@ -13,13 +13,13 @@
"dependencies": {
"@floating-ui/dom": "^1.0.11",
"@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.131",
"@ibiz-template/core": "^0.0.1-beta.131",
"@ibiz-template/model": "^0.0.1-beta.131",
"@ibiz-template/runtime": "^0.0.1-beta.131",
"@ibiz-template/service": "^0.0.1-beta.131",
"@ibiz-template/theme": "^0.0.1-beta.131",
"@ibiz-template/vue-util": "^0.0.1-beta.131",
"@ibiz-template/controller": "^0.0.1-beta.132",
"@ibiz-template/core": "^0.0.1-beta.132",
"@ibiz-template/model": "^0.0.1-beta.132",
"@ibiz-template/runtime": "^0.0.1-beta.132",
"@ibiz-template/service": "^0.0.1-beta.132",
"@ibiz-template/theme": "^0.0.1-beta.132",
"@ibiz-template/vue-util": "^0.0.1-beta.132",
"@ibiz/dynamic-model-api": "^2.1.28",
"@riophae/vue-treeselect": "^0.4.0",
"dayjs": "^1.11.7",
......@@ -34,7 +34,8 @@
"view-design": "^4.7.0",
"vite-plugin-style-import": "1.4.1",
"vue": "^2.7.14",
"vue-router": "^3.6.5"
"vue-router": "^3.6.5",
"vue-text-format": "^3.1.2"
},
"devDependencies": {
"@commitlint/cli": "^17.3.0",
......
......@@ -12,26 +12,26 @@ dependencies:
specifier: ^0.0.1-beta.50
version: 0.0.1-beta.50
'@ibiz-template/controller':
specifier: ^0.0.1-beta.131
version: 0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(@ibiz-template/runtime@0.0.1-beta.131)(@ibiz-template/service@0.0.1-beta.131)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
specifier: ^0.0.1-beta.132
version: 0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(@ibiz-template/runtime@0.0.1-beta.132)(@ibiz-template/service@0.0.1-beta.132)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'@ibiz-template/core':
specifier: ^0.0.1-beta.131
version: 0.0.1-beta.131(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
specifier: ^0.0.1-beta.132
version: 0.0.1-beta.132(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model':
specifier: ^0.0.1-beta.131
version: 0.0.1-beta.131(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
specifier: ^0.0.1-beta.132
version: 0.0.1-beta.132(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/runtime':
specifier: ^0.0.1-beta.131
version: 0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(@ibiz-template/service@0.0.1-beta.131)(qx-util@0.4.8)
specifier: ^0.0.1-beta.132
version: 0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(@ibiz-template/service@0.0.1-beta.132)(qx-util@0.4.8)
'@ibiz-template/service':
specifier: ^0.0.1-beta.131
version: 0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(qx-util@0.4.8)(ramda@0.28.0)
specifier: ^0.0.1-beta.132
version: 0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/theme':
specifier: ^0.0.1-beta.131
version: 0.0.1-beta.131
specifier: ^0.0.1-beta.132
version: 0.0.1-beta.132
'@ibiz-template/vue-util':
specifier: ^0.0.1-beta.131
version: 0.0.1-beta.131(@ibiz-template/controller@0.0.1-beta.131)(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(@ibiz-template/service@0.0.1-beta.131)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
specifier: ^0.0.1-beta.132
version: 0.0.1-beta.132(@ibiz-template/controller@0.0.1-beta.132)(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(@ibiz-template/service@0.0.1-beta.132)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
'@ibiz/dynamic-model-api':
specifier: ^2.1.28
version: 2.1.28(qx-util@0.4.8)
......@@ -77,6 +77,9 @@ dependencies:
vue-router:
specifier: ^3.6.5
version: 3.6.5(vue@2.7.14)
vue-text-format:
specifier: ^3.1.2
version: 3.1.2
devDependencies:
'@commitlint/cli':
......@@ -939,8 +942,8 @@ packages:
qx-util: 0.4.8
dev: false
/@ibiz-template/controller@0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(@ibiz-template/runtime@0.0.1-beta.131)(@ibiz-template/service@0.0.1-beta.131)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8):
resolution: {integrity: sha512-QALqv5hbDRvSevxDpQoLIxX/TNr1U94SdU/2dL6KW9vKqrFk/y3zUmgtA5GcxygZBlJPLChCTGCOG2W4FNYwxg==}
/@ibiz-template/controller@0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(@ibiz-template/runtime@0.0.1-beta.132)(@ibiz-template/service@0.0.1-beta.132)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8):
resolution: {integrity: sha512-Q8WyQNz387T/PDbJEGPfCCy/Jlr+z0SEMu3NuXrvWctLweHiHRX7LxkpMeDljcIG/js1/I8vA0F1BZfCHcee2w==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-beta.30
'@ibiz-template/model': ^0.0.1-beta.30
......@@ -950,10 +953,10 @@ packages:
qs: ^6.11.0
qx-util: ^0.4.8
dependencies:
'@ibiz-template/core': 0.0.1-beta.131(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.131(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/runtime': 0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(@ibiz-template/service@0.0.1-beta.131)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/core': 0.0.1-beta.132(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.132(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/runtime': 0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(@ibiz-template/service@0.0.1-beta.132)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(qx-util@0.4.8)(ramda@0.28.0)
async-validator: 4.2.5
dayjs: 1.11.7
lodash-es: 4.17.21
......@@ -961,8 +964,8 @@ packages:
qx-util: 0.4.8
dev: false
/@ibiz-template/core@0.0.1-beta.131(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0):
resolution: {integrity: sha512-/6d8pnoSNaGPq9ydLylF5IckKoaZacJdVQQs8V0E45Oim1FW5mEWvdFmiZL4HGuUWy/f9NzwIcwKKQodYe6REA==}
/@ibiz-template/core@0.0.1-beta.132(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0):
resolution: {integrity: sha512-r8IO5sORtIGfXj+ytKSloesNqTK/XJhjVqkLRHDfVJoTKSPoLaMoSx73C0KDGKPU2AqX60edB37SyNMMz2UfZQ==}
peerDependencies:
lodash-es: ^4.17.21
qx-util: ^0.4.8
......@@ -979,8 +982,8 @@ packages:
- debug
dev: false
/@ibiz-template/model@0.0.1-beta.131(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8):
resolution: {integrity: sha512-JYsUCO1i3dFvWvjylZouERh23fHJLOzrYeXbeI7yd48G0gN9VeoacXkAwOuVF0L8DT74oiEIiaeumLB+bSK35w==}
/@ibiz-template/model@0.0.1-beta.132(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8):
resolution: {integrity: sha512-5mTyH0jBqFYnK+DIQVhfubY9dkqRnWKEFOZX58Vv5Ci5nwGkCo4SYkF32RFe+ID5DcA7WXXJ8JZ3OYFr+/I9gw==}
peerDependencies:
'@ibiz/dynamic-model-api': ^2.1.28
lodash-es: ^4.17.21
......@@ -992,8 +995,8 @@ packages:
qx-util: 0.4.8
dev: false
/@ibiz-template/runtime@0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(@ibiz-template/service@0.0.1-beta.131)(qx-util@0.4.8):
resolution: {integrity: sha512-s6Om/jO/819ABm/HViAWtz7BSjnGYSrB1hh7sveGqFpSkT8SWWGQ39mYfQmPllyvIN/R7b1uDfdhP1KvcPrUVw==}
/@ibiz-template/runtime@0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(@ibiz-template/service@0.0.1-beta.132)(qx-util@0.4.8):
resolution: {integrity: sha512-POMwbnegzXJrz00jPE0jwpAWNPNYT2PnvWFk/FsxIBa76eVrPMqnOtqdf2scoZrkI6UX6+qn5aiju5fpztOFuA==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-beta.30
'@ibiz-template/model': ^0.0.1-beta.30
......@@ -1001,33 +1004,33 @@ packages:
qx-util: ^0.4.8
dependencies:
'@ibiz-template/command': 0.0.1-beta.50
'@ibiz-template/core': 0.0.1-beta.131(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.131(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/core': 0.0.1-beta.132(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.132(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(qx-util@0.4.8)(ramda@0.28.0)
qs: 6.11.1
qx-util: 0.4.8
dev: false
/@ibiz-template/service@0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(qx-util@0.4.8)(ramda@0.28.0):
resolution: {integrity: sha512-ynZwFgbYNXFRoZCJQsvlcSAGKAlJhiP5ezlVevDLgPAs5bPHmZp1MnF4jyERjApMOaNb6LARV5Aid8uF5ZbipA==}
/@ibiz-template/service@0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(qx-util@0.4.8)(ramda@0.28.0):
resolution: {integrity: sha512-DZGT8bf0CPdVL7ceftCj04LAERMlYy5yKgPErv9aTAwks6Sw/JwSpXklpyOnhqPYcJ+9DbjUgUtr0TDqWx5Bgg==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-beta.30
'@ibiz-template/model': ^0.0.1-beta.30
qx-util: ^0.4.8
ramda: ^0.28.0
dependencies:
'@ibiz-template/core': 0.0.1-beta.131(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.131(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/core': 0.0.1-beta.132(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.132(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
qx-util: 0.4.8
ramda: 0.28.0
dev: false
/@ibiz-template/theme@0.0.1-beta.131:
resolution: {integrity: sha512-gMMB7M4CxDZKu8jud0u0R2/kIQuyQzBp7KiA3QZvj183+85/xF7m0v0qTqPb1LVtY7Fo1IN+jB9ZPBpkxLBq3w==}
/@ibiz-template/theme@0.0.1-beta.132:
resolution: {integrity: sha512-rtSDAPt1RoHMaNOWT+RjAOHl2cTejm/rM1RO/J874qi6u9vLTYgHIhs+laGiO0z6pxahv27Ga0Kmmgig05eDDg==}
dev: false
/@ibiz-template/vue-util@0.0.1-beta.131(@ibiz-template/controller@0.0.1-beta.131)(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(@ibiz-template/service@0.0.1-beta.131)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14):
resolution: {integrity: sha512-4mma7gw8s0ClqpIpweKGqqpUJJKAwGOboDFIIz0k8vsfnrbYe7If6yfbG7e4taWbzOfiD9vqcHw2NBNKTu62JA==}
/@ibiz-template/vue-util@0.0.1-beta.132(@ibiz-template/controller@0.0.1-beta.132)(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(@ibiz-template/service@0.0.1-beta.132)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14):
resolution: {integrity: sha512-HBS7bPNBfcd4BRT8HJMX9sVOJ/zqQ+WPDGHn4n+fN6K3fLoq8Ma5Ngg0CJnLw86MWVyIwiL8k+4W44xcruXzoQ==}
peerDependencies:
'@ibiz-template/controller': ^0.0.1-beta.30
'@ibiz-template/core': ^0.0.1-beta.30
......@@ -1039,10 +1042,10 @@ packages:
vue: ^2.7.14
vue-router: ^3.6.5
dependencies:
'@ibiz-template/controller': 0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(@ibiz-template/runtime@0.0.1-beta.131)(@ibiz-template/service@0.0.1-beta.131)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'@ibiz-template/core': 0.0.1-beta.131(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.131(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.131(@ibiz-template/core@0.0.1-beta.131)(@ibiz-template/model@0.0.1-beta.131)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/controller': 0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(@ibiz-template/runtime@0.0.1-beta.132)(@ibiz-template/service@0.0.1-beta.132)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'@ibiz-template/core': 0.0.1-beta.132(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.132(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.132(@ibiz-template/core@0.0.1-beta.132)(@ibiz-template/model@0.0.1-beta.132)(qx-util@0.4.8)(ramda@0.28.0)
qs: 6.11.1
qx-util: 0.4.8
ramda: 0.28.0
......@@ -4336,6 +4339,14 @@ packages:
optionalDependencies:
fsevents: 2.3.2
/rollup@3.29.4:
resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==}
engines: {node: '>=14.18.0', npm: '>=8.0.0'}
hasBin: true
optionalDependencies:
fsevents: 2.3.2
dev: false
/run-parallel@1.2.0:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
dependencies:
......@@ -5137,6 +5148,12 @@ packages:
he: 1.2.0
dev: true
/vue-text-format@3.1.2:
resolution: {integrity: sha512-TxwtpH3Oj5ezzqNAZ6kAsncuaPUbhoMosBW1mMmtP53ju+EhclO6xH1yGvD884CB0inKRNfiqFXvktez7DQ+Iw==}
dependencies:
rollup: 3.29.4
dev: false
/vue-tsc@1.2.0(typescript@4.9.5):
resolution: {integrity: sha512-rIlzqdrhyPYyLG9zxsVRa+JEseeS9s8F2BbVVVWRRsTZvJO2BbhLEb2HW3MY+DFma0378tnIqs+vfTzbcQtRFw==}
hasBin: true
......
......@@ -39,10 +39,10 @@ export const AppCol = defineComponent({
} = gridLayoutPos;
const multiplier = gridLayoutPos.layout === 'TABLE_24COL' ? 1 : 2;
return {
xs: { span: colXS * multiplier, offset: colXSOffset * multiplier },
sm: { span: colSM * multiplier, offset: colSMOffset * multiplier },
md: { span: colMD * multiplier, offset: colMDOffset * multiplier },
lg: { span: colLG * multiplier, offset: colLGOffset * multiplier },
md: { span: colXS * multiplier, offset: colXSOffset * multiplier },
lg: { span: colSM * multiplier, offset: colSMOffset * multiplier },
xl: { span: colMD * multiplier, offset: colMDOffset * multiplier },
xxl: { span: colLG * multiplier, offset: colLGOffset * multiplier },
};
});
......
......@@ -3,6 +3,7 @@ import { getSpanProps, useNamespace } from '@ibiz-template/vue-util';
import dayjs from 'dayjs';
import '@ibiz-template/theme/style/components/editor/ibiz-span/ibiz-span.scss';
import { CodeListItem } from '@ibiz-template/service';
import { DataTypes } from '@ibiz-template/core';
export const IBizSpan = defineComponent({
name: 'IBizSpan',
......@@ -28,8 +29,18 @@ export const IBizSpan = defineComponent({
text.value = '';
return;
}
const { dataType } = c.parent;
if (c.valueFormat) {
text.value = dayjs(newVal).format(c.valueFormat);
try {
if (dataType != null && DataTypes.isDate(dataType)) {
text.value = dayjs(newVal).format(c.valueFormat);
} else {
text.value = ibiz.util.text.format(`${newVal}`, c.valueFormat);
}
} catch (error) {
text.value = `${newVal}`;
ibiz.log.error(`${newVal} 值格式化错误`);
}
} else {
text.value = `${newVal}`;
}
......
import { computed, defineComponent, ref, watch } from 'vue';
import { debounce, isNaN } from 'lodash-es';
import { debounce } from 'lodash-es';
import {
getEditorEmits,
getInputProps,
......@@ -93,22 +93,7 @@ export const IBizInput = defineComponent({
(e: IData) => {
// 拦截掉blur触发后change
if (blurCacheValue !== e.target.value) {
if (c.model.precision !== -1) {
const num = Number(e.target.value);
if (!isNaN(num)) {
const number = fomatFloat(num, c.model.precision);
currentVal.value = e.target.value; // 1.001
setTimeout(() => {
currentVal.value = number;
// 1.00 1.001
if (number !== props.value) {
emit('change', number);
}
});
}
} else {
emit('change', e.target.value);
}
emit('change', e.target.value);
}
blurCacheValue = undefined;
isDebounce = false;
......@@ -119,10 +104,25 @@ export const IBizInput = defineComponent({
300,
{ leading: true },
);
const matchNum = (e: IData) => {
const newValue = e.target.value;
const regexString = `^(\\d+\\.?\\d{0,${c.model.precision}})$`;
const match = new RegExp(regexString).exec(newValue);
return match;
};
// 值变更
const handleChange = (e: IData) => {
isDebounce = true;
debounceChange(e);
if (c.model.precision !== -1) {
const match = matchNum(e);
if (match) {
debounceChange(e);
}
} else {
debounceChange(e);
}
};
const handleKeyUp = (e: KeyboardEvent) => {
......@@ -142,8 +142,12 @@ export const IBizInput = defineComponent({
*/
const handleBlur = () => {
blurCacheValue = inputRef.value.currentValue;
const number = fomatFloat(Number(blurCacheValue), c.model.precision);
if (c.model.precision !== -1) {
const multiplier = 10 ** c.model.precision;
const num =
Math.floor(Number(blurCacheValue) * multiplier) / multiplier;
const number = blurCacheValue ? fomatFloat(num, c.model.precision) : '';
currentVal.value = number;
emit('change', number);
} else {
emit('change', blurCacheValue);
......@@ -163,6 +167,22 @@ export const IBizInput = defineComponent({
});
}
const input = (e: IData) => {
if (c.model.precision !== -1) {
const match = matchNum(e);
if (!match) {
if (!e.target.value) {
e.target.value = '';
} else {
const multiplier = 10 ** c.model.precision;
const num =
Math.floor(Number(e.target.value) * multiplier) / multiplier;
e.target.value = num;
}
}
}
};
return {
ns,
rows,
......@@ -173,6 +193,7 @@ export const IBizInput = defineComponent({
handleBlur,
inputRef,
autoSize,
input,
c,
};
},
......@@ -209,6 +230,7 @@ export const IBizInput = defineComponent({
},
nativeOn: {
keyup: this.handleKeyUp,
input: this.input,
},
},
[
......
......@@ -2,6 +2,7 @@ import '@ibiz-template/theme/style/index.scss';
import Vue from 'vue';
import Router from 'vue-router';
import { PiniaVuePlugin } from 'pinia';
import { textFormat } from 'vue-text-format';
import router from './router';
import App from './App';
import { AppRegister } from './app-register';
......@@ -64,6 +65,7 @@ async function createApp(): Promise<void> {
ibiz.loading = new LoadingUtil();
ibiz.overlay = new OverlayController();
ibiz.plugin = new PluginFactory();
ibiz.util.text.format = textFormat;
installDefaultPluginRegister();
Vue.use(UserRegister);
},
......
......@@ -942,6 +942,12 @@
"queryCodeExp" : "t1.`CREATEDATE`",
"standardColumnName" : "`CREATEDATE`"
} ],
"getAllPSDEFSearchModes" : [ {
"codeName" : "N_CREATEDATE_LTANDEQ",
"name" : "N_CREATEDATE_LTANDEQ",
"stdDataType" : 5,
"valueOP" : "LTANDEQ"
} ],
"getAllPSDEFUIModes" : [ {
"codeName" : "Default",
"name" : "[CREATEDATE][建立时间]",
......@@ -1183,6 +1189,12 @@
"queryCodeExp" : "t1.`UPDATEDATE`",
"standardColumnName" : "`UPDATEDATE`"
} ],
"getAllPSDEFSearchModes" : [ {
"codeName" : "N_UPDATEDATE_GTANDEQ",
"name" : "N_UPDATEDATE_GTANDEQ",
"stdDataType" : 5,
"valueOP" : "GTANDEQ"
} ],
"getAllPSDEFUIModes" : [ {
"codeName" : "Default",
"name" : "[UPDATEDATE][更新时间]",
......@@ -2856,6 +2868,21 @@
}, {
"name" : "PhoneFilterDTO",
"getPSDEFilterDTOFields" : [ {
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "建立时间",
"name" : "N_CREATEDATE_LTANDEQ",
"getPSDEFSearchMode" : {
"modelref" : true,
"id" : "N_CREATEDATE_LTANDEQ"
},
"getPSDEField" : {
"name" : "CREATEDATE",
"codeName" : "CreateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
}, {
"logicName" : "手机标识",
"name" : "N_PHONEID_EQ",
"getPSDEFSearchMode" : {
......@@ -2939,6 +2966,21 @@
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "更新时间",
"name" : "N_UPDATEDATE_GTANDEQ",
"getPSDEFSearchMode" : {
"modelref" : true,
"id" : "N_UPDATEDATE_GTANDEQ"
},
"getPSDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
} ],
"sourceType" : "DE",
"type" : "DEFILTER",
......
......@@ -1718,6 +1718,18 @@
"codeName" : "PhoneFilterDTO",
"name" : "PhoneFilterDTO",
"getPSAppDEMethodDTOFields" : [ {
"codeName" : "N_CREATEDATE_LTANDEQ",
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "建立时间",
"name" : "N_CREATEDATE_LTANDEQ",
"getPSAppDEField" : {
"name" : "CREATEDATE",
"codeName" : "CreateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
}, {
"codeName" : "N_PHONEID_EQ",
"logicName" : "手机标识",
"name" : "N_PHONEID_EQ",
......@@ -1783,6 +1795,18 @@
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "N_UPDATEDATE_GTANDEQ",
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "更新时间",
"name" : "N_UPDATEDATE_GTANDEQ",
"getPSAppDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
} ],
"sourceType" : "DE",
"type" : "DEFILTER"
......
......@@ -23905,6 +23905,18 @@
"codeName" : "PhoneFilterDTO",
"name" : "PhoneFilterDTO",
"getPSAppDEMethodDTOFields" : [ {
"codeName" : "N_CREATEDATE_LTANDEQ",
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "建立时间",
"name" : "N_CREATEDATE_LTANDEQ",
"getPSAppDEField" : {
"name" : "CREATEDATE",
"codeName" : "CreateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
}, {
"codeName" : "N_PHONEID_EQ",
"logicName" : "手机标识",
"name" : "N_PHONEID_EQ",
......@@ -23970,6 +23982,18 @@
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "N_UPDATEDATE_GTANDEQ",
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "更新时间",
"name" : "N_UPDATEDATE_GTANDEQ",
"getPSAppDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
} ],
"sourceType" : "DE",
"type" : "DEFILTER"
......@@ -1718,6 +1718,18 @@
"codeName" : "PhoneFilterDTO",
"name" : "PhoneFilterDTO",
"getPSAppDEMethodDTOFields" : [ {
"codeName" : "N_CREATEDATE_LTANDEQ",
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "建立时间",
"name" : "N_CREATEDATE_LTANDEQ",
"getPSAppDEField" : {
"name" : "CREATEDATE",
"codeName" : "CreateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
}, {
"codeName" : "N_PHONEID_EQ",
"logicName" : "手机标识",
"name" : "N_PHONEID_EQ",
......@@ -1783,6 +1795,18 @@
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "N_UPDATEDATE_GTANDEQ",
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "更新时间",
"name" : "N_UPDATEDATE_GTANDEQ",
"getPSAppDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
} ],
"sourceType" : "DE",
"type" : "DEFILTER"
......
......@@ -1481,16 +1481,16 @@
"codeName" : "VMGroup2",
"name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息",
"name" : "视图消息2",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg2"
"id" : "ViewMsg3"
}
}, {
"name" : "视图消息2",
"name" : "视图消息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg3"
"id" : "ViewMsg2"
}
} ]
}, {
......@@ -6386,6 +6386,18 @@
"codeName" : "PhoneFilterDTO",
"name" : "PhoneFilterDTO",
"getPSAppDEMethodDTOFields" : [ {
"codeName" : "N_CREATEDATE_LTANDEQ",
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "建立时间",
"name" : "N_CREATEDATE_LTANDEQ",
"getPSAppDEField" : {
"name" : "CREATEDATE",
"codeName" : "CreateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
}, {
"codeName" : "N_PHONEID_EQ",
"logicName" : "手机标识",
"name" : "N_PHONEID_EQ",
......@@ -6451,6 +6463,18 @@
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "N_UPDATEDATE_GTANDEQ",
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "更新时间",
"name" : "N_UPDATEDATE_GTANDEQ",
"getPSAppDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
} ],
"sourceType" : "DE",
"type" : "DEFILTER"
......
......@@ -1718,6 +1718,18 @@
"codeName" : "PhoneFilterDTO",
"name" : "PhoneFilterDTO",
"getPSAppDEMethodDTOFields" : [ {
"codeName" : "N_CREATEDATE_LTANDEQ",
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "建立时间",
"name" : "N_CREATEDATE_LTANDEQ",
"getPSAppDEField" : {
"name" : "CREATEDATE",
"codeName" : "CreateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
}, {
"codeName" : "N_PHONEID_EQ",
"logicName" : "手机标识",
"name" : "N_PHONEID_EQ",
......@@ -1783,6 +1795,18 @@
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 25,
"type" : "SIMPLE"
}, {
"codeName" : "N_UPDATEDATE_GTANDEQ",
"jsonFormat" : "yyyy-MM-dd HH:mm:ss",
"logicName" : "更新时间",
"name" : "N_UPDATEDATE_GTANDEQ",
"getPSAppDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
},
"sourceType" : "DEFSEARCHMODE",
"stdDataType" : 5,
"type" : "SIMPLE"
} ],
"sourceType" : "DE",
"type" : "DEFILTER"
......
......@@ -11857,16 +11857,16 @@
"codeName" : "VMGroup2",
"name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息",
"name" : "视图消息2",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg2"
"id" : "ViewMsg3"
}
}, {
"name" : "视图消息2",
"name" : "视图消息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg3"
"id" : "ViewMsg2"
}
} ]
}, {
......@@ -11927,16 +11927,16 @@
"codeName" : "VMGroup4",
"name" : "视图消息位置测试",
"getPSAppViewMsgGroupDetails" : [ {
"name" : "消息位置-视图上方",
"name" : "消息位置-视图内容区",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg7"
"id" : "ViewMsg9"
}
}, {
"name" : "消息位置-弹出",
"name" : "消息位置-视图上方",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg10"
"id" : "ViewMsg7"
}
}, {
"name" : "消息位置-视图下方",
......@@ -11945,48 +11945,40 @@
"id" : "ViewMsg8"
}
}, {
"name" : "消息位置-视图内容区",
"name" : "消息位置-弹出",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg9"
"id" : "ViewMsg10"
}
} ]
}, {
"codeName" : "VMGroup8",
"name" : "【静态测试】",
"getPSAppViewMsgGroupDetails" : [ {
"name" : "关闭模式-本次删除-上方-警告",
"name" : "关闭模式-无删除-上方-常规",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg13"
"id" : "ViewMsg11"
}
}, {
"name" : "消息类型-警告信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg5"
},
"position" : "POPUP"
}, {
"name" : "消息类型-错误信息",
"name" : "消息类型-常规信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg6"
"id" : "ViewMsg4"
},
"position" : "POPUP"
}, {
"name" : "关闭模式-无删除-上方-常规",
"name" : "消息位置-视图下方",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg11"
"id" : "ViewMsg8"
}
}, {
"name" : "消息类型-常规信息",
"name" : "消息位置-视图内容区",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg4"
},
"position" : "POPUP"
"id" : "ViewMsg9"
}
}, {
"name" : "关闭模式-默认删除-上方-错误",
"getPSAppViewMsg" : {
......@@ -11994,17 +11986,25 @@
"id" : "ViewMsg12"
}
}, {
"name" : "消息位置-视图内容区",
"name" : "消息类型-警告信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg9"
}
"id" : "ViewMsg5"
},
"position" : "POPUP"
}, {
"name" : "消息位置-视图下方",
"name" : "关闭模式-本次删除-上方-警告",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg8"
"id" : "ViewMsg13"
}
}, {
"name" : "消息类型-错误信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg6"
},
"position" : "POPUP"
} ]
}, {
"codeName" : "VMGroup5",
......@@ -12016,16 +12016,16 @@
"id" : "ViewMsg12"
}
}, {
"name" : "关闭模式-删除",
"name" : "关闭模式-本次删除",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg11"
"id" : "ViewMsg13"
}
}, {
"name" : "关闭模式-本次删除",
"name" : "关闭模式-删除",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg13"
"id" : "ViewMsg11"
}
} ]
}, {
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册