提交 62eda7d5 编写于 作者: ibizdev's avatar ibizdev

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

上级 8758fdff
......@@ -12,12 +12,12 @@
},
"dependencies": {
"@ibiz-template/command": "^0.0.1-alpha.2",
"@ibiz-template/controller": "^0.0.1-alpha.9",
"@ibiz-template/core": "^0.0.1-alpha.6",
"@ibiz-template/model": "^0.0.1-alpha.9",
"@ibiz-template/runtime": "^0.0.1-alpha.9",
"@ibiz-template/service": "^0.0.1-alpha.9",
"@ibiz-template/vue-util": "^0.0.1-alpha.9",
"@ibiz-template/controller": "^0.0.1-alpha.10",
"@ibiz-template/core": "^0.0.1-alpha.10",
"@ibiz-template/model": "^0.0.1-alpha.10",
"@ibiz-template/runtime": "^0.0.1-alpha.10",
"@ibiz-template/service": "^0.0.1-alpha.10",
"@ibiz-template/vue-util": "^0.0.1-alpha.10",
"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.2
'@ibiz-template/controller': ^0.0.1-alpha.9
'@ibiz-template/core': ^0.0.1-alpha.6
'@ibiz-template/model': ^0.0.1-alpha.9
'@ibiz-template/runtime': ^0.0.1-alpha.9
'@ibiz-template/service': ^0.0.1-alpha.9
'@ibiz-template/vue-util': ^0.0.1-alpha.9
'@ibiz-template/controller': ^0.0.1-alpha.10
'@ibiz-template/core': ^0.0.1-alpha.10
'@ibiz-template/model': ^0.0.1-alpha.10
'@ibiz-template/runtime': ^0.0.1-alpha.10
'@ibiz-template/service': ^0.0.1-alpha.10
'@ibiz-template/vue-util': ^0.0.1-alpha.10
'@types/lodash-es': ^4.17.6
'@types/node': ^18.7.18
'@types/qs': ^6.9.7
......@@ -59,12 +59,12 @@ specifiers:
dependencies:
'@ibiz-template/command': 0.0.1-alpha.2
'@ibiz-template/controller': 0.0.1-alpha.9_pn5t7rzxoocvtaxoxnkcgu57aq
'@ibiz-template/core': 0.0.1-alpha.6_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.9_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/runtime': 0.0.1-alpha.9_2uvt75o6revqajpktymyrx7ge4
'@ibiz-template/service': 0.0.1-alpha.9_xbpycvz6bgykdro3aqncm424jq
'@ibiz-template/vue-util': 0.0.1-alpha.9_balyl6hutiruqe5gnsqct7zbfe
'@ibiz-template/controller': 0.0.1-alpha.10_6b6o4t2s55tj7xmgcutdq7omca
'@ibiz-template/core': 0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/runtime': 0.0.1-alpha.10_m3dremkediu55ltwbgqsbcbn7i
'@ibiz-template/service': 0.0.1-alpha.10_xxe6hslcfag3wewwngvkdltooe
'@ibiz-template/vue-util': 0.0.1-alpha.10_ljfcwvrb5iit5rsphwgwinkrau
ionicons: 6.0.3
lodash-es: 4.17.21
pinia: 2.0.22_2yy4t5siusazdnz3rivdy3cuzy
......@@ -654,8 +654,8 @@ packages:
resolution: {integrity: sha512-C0T/Z5rAU4RISUchbayGoyBcxDJ29OinPsFR156Rtuckg/R0p52CTeoj20j83oSPzH5QQ9+SoSOdZlKAdQ8HXg==}
dev: false
/@ibiz-template/controller/0.0.1-alpha.9_pn5t7rzxoocvtaxoxnkcgu57aq:
resolution: {integrity: sha512-z2zIianI1t3sIVn4ArDJ1X65HQd6X2nqipehP3wRjxJ1HMlLSneQzEDdVRjegwVZJK1FbSf5CYzSpXHn3P+C4w==}
/@ibiz-template/controller/0.0.1-alpha.10_6b6o4t2s55tj7xmgcutdq7omca:
resolution: {integrity: sha512-Su3HIXbVxVtNDWx++6vPkjc5BxVJPFzTvm1pFoqsu9Y6ZnhwsSosy45ZcVIl1HwdT8NxMuH0lVP2/fqlwbMtZg==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-alpha.2
'@ibiz-template/model': ^0.0.1-alpha.2
......@@ -663,16 +663,16 @@ packages:
'@ibiz-template/service': ^0.0.1-alpha.2
qx-util: ^0.4.1
dependencies:
'@ibiz-template/core': 0.0.1-alpha.6_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.9_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/runtime': 0.0.1-alpha.9_2uvt75o6revqajpktymyrx7ge4
'@ibiz-template/service': 0.0.1-alpha.9_xbpycvz6bgykdro3aqncm424jq
'@ibiz-template/core': 0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/runtime': 0.0.1-alpha.10_m3dremkediu55ltwbgqsbcbn7i
'@ibiz-template/service': 0.0.1-alpha.10_xxe6hslcfag3wewwngvkdltooe
async-validator: 4.2.5
qx-util: 0.4.1
dev: false
/@ibiz-template/core/0.0.1-alpha.6_amgpmzcbvys7f63sicqtedd4k4:
resolution: {integrity: sha512-S/YFbU/NkP6iAR4L83hyH8naqBClFezXeybl3PMs8lzgYBJJR8UnBhGkmvJd/AawKmcuIXqELdaMPwyOm+Qlrw==}
/@ibiz-template/core/0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4:
resolution: {integrity: sha512-J/rJN8meWnZtehQSNSLtjdicJB3BtpR5EAl/FjRuaXqge4vyWCG34HWvBoFDCaJuyGfWISyZra/wlYYVF95Zlw==}
peerDependencies:
lodash-es: ^4.17.21
qx-util: ^0.4.1
......@@ -686,8 +686,8 @@ packages:
- debug
dev: false
/@ibiz-template/model/0.0.1-alpha.9_amgpmzcbvys7f63sicqtedd4k4:
resolution: {integrity: sha512-SdgY3FWs1nCdOiP0FsYb4vreFDnmyxgZTFnOB0ReB2lVOECf7twk0jWAws3OnY9MKvKCcY3JK/jKyBD32VmZuw==}
/@ibiz-template/model/0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4:
resolution: {integrity: sha512-m7rVimM7XPlvVkpH9dyKEEYfbtIzSeRtd4BzrmWGQn1VQfEn+V0J9+nB1hQmBLYVCdaM1R9kxHz+4AJ2FPu+WA==}
peerDependencies:
lodash-es: ^4.17.21
qx-util: ^0.4.1
......@@ -698,8 +698,8 @@ packages:
qx-util: 0.4.1
dev: false
/@ibiz-template/runtime/0.0.1-alpha.9_2uvt75o6revqajpktymyrx7ge4:
resolution: {integrity: sha512-Z5HH2IeNVWvuAx5pRVcAG5DlP44xbEqE81JFpDzDC8vJQYJ4ICutPDuIZEx6iGrUMf5ofPDpVlBowchIOyTmKw==}
/@ibiz-template/runtime/0.0.1-alpha.10_m3dremkediu55ltwbgqsbcbn7i:
resolution: {integrity: sha512-kF1IOTTNqTGR1JO4FbDWKhMaYzJRBNfSaXht7YZN7hxUszjl/wfiZMWvX44KIKElsKtDLmCw+XHVZeM0VNXPbg==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-alpha.2
'@ibiz-template/model': ^0.0.1-alpha.2
......@@ -707,28 +707,28 @@ packages:
qx-util: ^0.4.1
dependencies:
'@ibiz-template/command': 0.0.1-alpha.2
'@ibiz-template/core': 0.0.1-alpha.6_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.9_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/service': 0.0.1-alpha.9_xbpycvz6bgykdro3aqncm424jq
'@ibiz-template/core': 0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/service': 0.0.1-alpha.10_xxe6hslcfag3wewwngvkdltooe
qx-util: 0.4.1
dev: false
/@ibiz-template/service/0.0.1-alpha.9_xbpycvz6bgykdro3aqncm424jq:
resolution: {integrity: sha512-qXheY4vxsoMmv/SY2V2wjrc3Y27hm0HK/s5I2o7BqXjwA71B0+egeZjouxqMoI2inPFKyCWlUNrVA1sna5+KiA==}
/@ibiz-template/service/0.0.1-alpha.10_xxe6hslcfag3wewwngvkdltooe:
resolution: {integrity: sha512-r4VD2qSh0GA5bgssQ52BglKCPwLh1GfzhvSjKR+5Sqs/ZN7/t9t2DEFI/rUjJ/F0WpfoPMVg0ci2PKdNP2VnHA==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-alpha.2
'@ibiz-template/model': ^0.0.1-alpha.2
qx-util: ^0.4.1
ramda: ^0.28.0
dependencies:
'@ibiz-template/core': 0.0.1-alpha.6_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.9_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/core': 0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4
qx-util: 0.4.1
ramda: 0.28.0
dev: false
/@ibiz-template/vue-util/0.0.1-alpha.9_balyl6hutiruqe5gnsqct7zbfe:
resolution: {integrity: sha512-miNSc5pqivLlDsPD7S956Ey37kSxLpjJ2s6/cWOWrgCD8lrOFJJYLw/TrcLVMrC1lWac4EvPjWYYR3AeMRgN2A==}
/@ibiz-template/vue-util/0.0.1-alpha.10_ljfcwvrb5iit5rsphwgwinkrau:
resolution: {integrity: sha512-ge5orbRJvBKriOLSsRaNW3R6umxk8MmJjuWRqVK5GZappZne5OG1uz5PQzifPBJbp1+IS4JnVJk+DngNRA7i5g==}
peerDependencies:
'@ibiz-template/controller': '>=0.0.1-alpha.2'
'@ibiz-template/core': '>=0.0.1-alpha.2'
......@@ -738,9 +738,9 @@ packages:
vue: ^2.7.10
vue-router: ^3.6.4
dependencies:
'@ibiz-template/controller': 0.0.1-alpha.9_pn5t7rzxoocvtaxoxnkcgu57aq
'@ibiz-template/core': 0.0.1-alpha.6_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.9_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/controller': 0.0.1-alpha.10_6b6o4t2s55tj7xmgcutdq7omca
'@ibiz-template/core': 0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4
'@ibiz-template/model': 0.0.1-alpha.10_amgpmzcbvys7f63sicqtedd4k4
qs: 6.11.0
qx-util: 0.4.1
vue: 2.7.10
......
......@@ -4,6 +4,7 @@ import {
} from '@ibiz-template/controller';
import { computed, defineComponent } from 'vue';
import { useNamespace } from '@ibiz-template/vue-util';
import '@/styles/components/widgets/grid/grid-field-column.scss';
export const GridFieldColumn = defineComponent({
name: 'GridFieldColumn',
......@@ -18,7 +19,7 @@ export const GridFieldColumn = defineComponent({
},
},
setup(props) {
const ns = useNamespace('grid-column');
const ns = useNamespace('grid-field-column');
const codeListText = computed(() => {
if (props.controller.codeListItems?.length) {
const value = props.row.data[props.controller.model.codeName];
......@@ -30,11 +31,32 @@ export const GridFieldColumn = defineComponent({
return null;
});
return { ns, codeListText };
/**
* 单元格点击事件
*
* @author lxm
* @date 2022-09-28 18:09:27
* @param {MouseEvent} event
*/
const onCellClick = (event: MouseEvent) => {
if (props.controller.isLinkColumn) {
props.controller.openLinkView(props.row, event);
}
};
return { ns, codeListText, onCellClick };
},
render() {
const value = this.row.data[this.controller.model.codeName];
return <span class={this.ns.b()}>{this.codeListText || value}</span>;
const c = this.controller;
const value = this.row.data[c.model.codeName];
return (
<span
class={[this.ns.b(), c.isLinkColumn && this.ns.m('link-column')]}
onClick={this.onCellClick}
>
{this.codeListText || value}
</span>
);
},
});
export default GridFieldColumn;
@include b(grid-field-column) {
@include set-component-css-var('grid-field-column', $grid-field-column);
@include m(link-column){
color: getCssVar('grid-field-column', 'font-color');
cursor: pointer;
}
}
......@@ -633,6 +633,14 @@ $grid-ua-column: map.merge(
$grid-ua-column
);
$grid-field-column: () !default;
$grid-field-column: map.merge(
(
'font-color': #2d8cf0,
),
$grid-field-column
);
/* 表格 end */
/* 模态 start */
......
......@@ -20,6 +20,10 @@ export default defineConfig({
target: 'http://172.16.103.120:30060',
changeOrigin: true,
},
'/pms__portalwebapp': {
target: 'http://172.16.103.120:30061',
changeOrigin: true,
},
'/trainsys__web': {
target: 'http://172.16.240.140:20086',
changeOrigin: true,
......
......@@ -495,46 +495,46 @@
resolved "https://registry.yarnpkg.com/@ibiz-template/command/-/command-0.0.1-alpha.2.tgz#59ab6c99f1f23c3e4b6852ec39a0c546e0d3fcf5"
integrity sha512-C0T/Z5rAU4RISUchbayGoyBcxDJ29OinPsFR156Rtuckg/R0p52CTeoj20j83oSPzH5QQ9+SoSOdZlKAdQ8HXg==
"@ibiz-template/controller@^0.0.1-alpha.9":
version "0.0.1-alpha.9"
resolved "https://registry.yarnpkg.com/@ibiz-template/controller/-/controller-0.0.1-alpha.9.tgz#42aeed94d47c8999ff0a20480e8d291cf0d8184b"
integrity sha512-z2zIianI1t3sIVn4ArDJ1X65HQd6X2nqipehP3wRjxJ1HMlLSneQzEDdVRjegwVZJK1FbSf5CYzSpXHn3P+C4w==
"@ibiz-template/controller@^0.0.1-alpha.10":
version "0.0.1-alpha.10"
resolved "https://registry.yarnpkg.com/@ibiz-template/controller/-/controller-0.0.1-alpha.10.tgz#a21e5282176b5abea72e8fd958e6aefb1505263c"
integrity sha512-Su3HIXbVxVtNDWx++6vPkjc5BxVJPFzTvm1pFoqsu9Y6ZnhwsSosy45ZcVIl1HwdT8NxMuH0lVP2/fqlwbMtZg==
dependencies:
async-validator "^4.2.5"
"@ibiz-template/core@^0.0.1-alpha.6":
version "0.0.1-alpha.6"
resolved "https://registry.yarnpkg.com/@ibiz-template/core/-/core-0.0.1-alpha.6.tgz#3b4c790493a0b6d4a765b6348a020b8de4239927"
integrity sha512-S/YFbU/NkP6iAR4L83hyH8naqBClFezXeybl3PMs8lzgYBJJR8UnBhGkmvJd/AawKmcuIXqELdaMPwyOm+Qlrw==
"@ibiz-template/core@^0.0.1-alpha.10":
version "0.0.1-alpha.10"
resolved "https://registry.yarnpkg.com/@ibiz-template/core/-/core-0.0.1-alpha.10.tgz#1a2aff6d7775d0b50329ac2805119cc4c3295f41"
integrity sha512-J/rJN8meWnZtehQSNSLtjdicJB3BtpR5EAl/FjRuaXqge4vyWCG34HWvBoFDCaJuyGfWISyZra/wlYYVF95Zlw==
dependencies:
axios "^0.27.2"
pluralize "^8.0.0"
qs "^6.11.0"
"@ibiz-template/model@^0.0.1-alpha.9":
version "0.0.1-alpha.9"
resolved "https://registry.yarnpkg.com/@ibiz-template/model/-/model-0.0.1-alpha.9.tgz#55c596d7ebcfd6ceba6fe5dbf22c3785e3725206"
integrity sha512-SdgY3FWs1nCdOiP0FsYb4vreFDnmyxgZTFnOB0ReB2lVOECf7twk0jWAws3OnY9MKvKCcY3JK/jKyBD32VmZuw==
"@ibiz-template/model@^0.0.1-alpha.10":
version "0.0.1-alpha.10"
resolved "https://registry.yarnpkg.com/@ibiz-template/model/-/model-0.0.1-alpha.10.tgz#12e0fd50fede37acc14aae3e19bd602273d3770c"
integrity sha512-m7rVimM7XPlvVkpH9dyKEEYfbtIzSeRtd4BzrmWGQn1VQfEn+V0J9+nB1hQmBLYVCdaM1R9kxHz+4AJ2FPu+WA==
dependencies:
"@ibiz/dynamic-model-api" "^2.0.2"
pluralize "^8.0.0"
"@ibiz-template/runtime@^0.0.1-alpha.9":
version "0.0.1-alpha.9"
resolved "https://registry.yarnpkg.com/@ibiz-template/runtime/-/runtime-0.0.1-alpha.9.tgz#65c2468a4dcc1b298be8dc2e2698f1a7b5276746"
integrity sha512-Z5HH2IeNVWvuAx5pRVcAG5DlP44xbEqE81JFpDzDC8vJQYJ4ICutPDuIZEx6iGrUMf5ofPDpVlBowchIOyTmKw==
"@ibiz-template/runtime@^0.0.1-alpha.10":
version "0.0.1-alpha.10"
resolved "https://registry.yarnpkg.com/@ibiz-template/runtime/-/runtime-0.0.1-alpha.10.tgz#12b860e406467d9192f0447c22ed562fe1b23937"
integrity sha512-kF1IOTTNqTGR1JO4FbDWKhMaYzJRBNfSaXht7YZN7hxUszjl/wfiZMWvX44KIKElsKtDLmCw+XHVZeM0VNXPbg==
dependencies:
"@ibiz-template/command" "^0.0.1-alpha.2"
"@ibiz-template/service@^0.0.1-alpha.9":
version "0.0.1-alpha.9"
resolved "https://registry.yarnpkg.com/@ibiz-template/service/-/service-0.0.1-alpha.9.tgz#46d3e6e3756383a8876a6da8f1f15f71ff26b710"
integrity sha512-qXheY4vxsoMmv/SY2V2wjrc3Y27hm0HK/s5I2o7BqXjwA71B0+egeZjouxqMoI2inPFKyCWlUNrVA1sna5+KiA==
"@ibiz-template/service@^0.0.1-alpha.10":
version "0.0.1-alpha.10"
resolved "https://registry.yarnpkg.com/@ibiz-template/service/-/service-0.0.1-alpha.10.tgz#d553f4a1aaea4e8dea253c465255901431a84b2e"
integrity sha512-r4VD2qSh0GA5bgssQ52BglKCPwLh1GfzhvSjKR+5Sqs/ZN7/t9t2DEFI/rUjJ/F0WpfoPMVg0ci2PKdNP2VnHA==
"@ibiz-template/vue-util@^0.0.1-alpha.9":
version "0.0.1-alpha.9"
resolved "https://registry.yarnpkg.com/@ibiz-template/vue-util/-/vue-util-0.0.1-alpha.9.tgz#95836be876acf789e1113b2d054e02a3e59fa216"
integrity sha512-miNSc5pqivLlDsPD7S956Ey37kSxLpjJ2s6/cWOWrgCD8lrOFJJYLw/TrcLVMrC1lWac4EvPjWYYR3AeMRgN2A==
"@ibiz-template/vue-util@^0.0.1-alpha.10":
version "0.0.1-alpha.10"
resolved "https://registry.yarnpkg.com/@ibiz-template/vue-util/-/vue-util-0.0.1-alpha.10.tgz#476edc18b09fb24ae516ae90fed408ec7da1d01e"
integrity sha512-ge5orbRJvBKriOLSsRaNW3R6umxk8MmJjuWRqVK5GZappZne5OG1uz5PQzifPBJbp1+IS4JnVJk+DngNRA7i5g==
"@ibiz/dynamic-model-api@^2.0.2":
version "2.0.4"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册