Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
1e10941e
提交
1e10941e
编写于
4月 21, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lxm1993 发布系统代码 [TrainSys,网页端]
上级
05fa5995
变更
7
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
110 行增加
和
84 行删除
+110
-84
package.json
app_Web/package.json
+7
-7
pnpm-lock.yaml
app_Web/pnpm-lock.yaml
+41
-41
git-publish.sh
app_Web/scripts/git-publish.sh
+4
-2
update.sh
app_Web/scripts/update.sh
+2
-1
tree-control.tsx
app_Web/src/components/widgets/tree-control/tree-control.tsx
+28
-1
index-view.ts
app_Web/src/views/index-view/index-view.ts
+0
-4
yarn.lock
app_Web/yarn.lock
+28
-28
未找到文件。
app_Web/package.json
浏览文件 @
1e10941e
...
...
@@ -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.6
5
"
,
"@ibiz-template/core"
:
"^0.0.1-beta.6
5
"
,
"@ibiz-template/model"
:
"^0.0.1-beta.6
5
"
,
"@ibiz-template/runtime"
:
"^0.0.1-beta.6
5
"
,
"@ibiz-template/service"
:
"^0.0.1-beta.6
5
"
,
"@ibiz-template/theme"
:
"^0.0.1-beta.6
5
"
,
"@ibiz-template/vue-util"
:
"^0.0.1-beta.6
5
"
,
"@ibiz-template/controller"
:
"^0.0.1-beta.6
7
"
,
"@ibiz-template/core"
:
"^0.0.1-beta.6
7
"
,
"@ibiz-template/model"
:
"^0.0.1-beta.6
7
"
,
"@ibiz-template/runtime"
:
"^0.0.1-beta.6
7
"
,
"@ibiz-template/service"
:
"^0.0.1-beta.6
7
"
,
"@ibiz-template/theme"
:
"^0.0.1-beta.6
7
"
,
"@ibiz-template/vue-util"
:
"^0.0.1-beta.6
7
"
,
"@ibiz/dynamic-model-api"
:
"^2.1.17"
,
"@riophae/vue-treeselect"
:
"^0.4.0"
,
"dayjs"
:
"^1.11.7"
,
...
...
app_Web/pnpm-lock.yaml
浏览文件 @
1e10941e
此差异已折叠。
点击以展开。
app_Web/scripts/git-publish.sh
浏览文件 @
1e10941e
...
...
@@ -6,6 +6,8 @@ git commit -m "build: 升级底包"
git push
git checkout publish
git pull
git merge vue2
git merge vue2
--no-edit
git push
git checkout vue2
\ No newline at end of file
git checkout vue2
exit
0
\ No newline at end of file
app_Web/scripts/update.sh
浏览文件 @
1e10941e
...
...
@@ -6,4 +6,5 @@ yarn add "@ibiz-template/vue-util@latest" "@ibiz-template/service@latest" "@ibiz
yarn build
rm
-rf
node_modules
pnpm
install
npm run dev
\ No newline at end of file
exit
0
\ No newline at end of file
app_Web/src/components/widgets/tree-control/tree-control.tsx
浏览文件 @
1e10941e
import
{
TreeModel
}
from
'@ibiz-template/model'
;
import
{
ITreeNodeData
}
from
'@ibiz-template/service'
;
import
{
useTreeController
,
useNamespace
}
from
'@ibiz-template/vue-util'
;
import
{
defineComponent
,
getCurrentInstance
,
h
,
PropType
,
ref
}
from
'vue'
;
import
{
CreateElement
,
defineComponent
,
getCurrentInstance
,
h
,
PropType
,
ref
,
}
from
'vue'
;
import
{
Tree
}
from
'element-ui'
;
import
'@ibiz-template/theme/style/components/widgets/tree/tree.scss'
;
export
const
TreeControl
=
defineComponent
({
name
:
'TreeControl'
,
...
...
@@ -86,6 +94,22 @@ export const TreeControl = defineComponent({
isLeaf
:
'leaf'
,
});
const
renderContent
=
(
_h
:
CreateElement
,
{
node
,
data
,
_store
}:
IData
,
)
=>
{
return
(
<
span
class=
{
ns
.
b
(
'custom-tree-node'
)
}
>
{
data
.
image
?
(
<
span
class=
{
ns
.
b
(
'node-icon'
)
}
>
<
app
-
icon
icon=
{
data
.
image
}
/>
</
span
>
)
:
null
}
<
span
class=
{
ns
.
b
(
'node-label'
)
}
>
{
node
.
label
}
</
span
>
</
span
>
);
};
return
{
c
,
ns
,
...
...
@@ -95,6 +119,7 @@ export const TreeControl = defineComponent({
onCurrentChange
,
loadData
,
defaultProps
,
renderContent
,
};
},
render
()
{
...
...
@@ -106,6 +131,7 @@ export const TreeControl = defineComponent({
{
this
.
c
.
complete
&&
h
(
Tree
,
{
ref
:
'treeRef'
,
class
:
this
.
ns
.
b
(),
props
:
{
data
:
this
.
c
.
treeNodes
,
props
:
this
.
defaultProps
,
...
...
@@ -116,6 +142,7 @@ export const TreeControl = defineComponent({
lazy
:
true
,
load
:
this
.
loadData
,
'expand-on-click-node'
:
false
,
'render-content'
:
this
.
renderContent
,
},
on
:
{
'current-change'
:
this
.
onCurrentChange
,
...
...
app_Web/src/views/index-view/index-view.ts
浏览文件 @
1e10941e
...
...
@@ -73,10 +73,6 @@ export function useIndexRouteManage(
// 只处理有二级路由,只有首页的时候不需要
if
(
newVal
!==
oldVal
)
{
const
route
=
useRoute
(
proxy
);
// 当跳转到二级路由的时候清空缓存
if
(
route
.
matched
.
length
<=
2
)
{
deleteRouteCache
(
keyHistory
.
value
.
splice
(
0
));
}
currentKey
.
value
=
getView2Value
(
route
);
indexPath
.
value
=
getView1Value
(
route
);
// 更新或新建对应key的全路由信息,主要是三级路由变更时会用
...
...
app_Web/yarn.lock
浏览文件 @
1e10941e
...
...
@@ -651,54 +651,54 @@
dependencies:
qx-util "^0.4.8"
"@ibiz-template/controller@^0.0.1-beta.6
5
":
version "0.0.1-beta.6
5
"
resolved "http://npm.zhr.icu/@ibiz-template/controller/-/controller-0.0.1-beta.6
5.tgz#cf1738f8cb715eaafe363fa6ecdc85fb3822d184
"
integrity sha512-
G8wwC0LjGjK3P4br8x42Ug0UwRR5CkrDTRSVnlTluqo51SvxdGMQEMsiUTr9YCn+3vSja1y2CHWzkQEOhay1Qw
==
"@ibiz-template/controller@^0.0.1-beta.6
7
":
version "0.0.1-beta.6
7
"
resolved "http://npm.zhr.icu/@ibiz-template/controller/-/controller-0.0.1-beta.6
7.tgz#3f00d44ecd37b1842736734b757ec142a85562fc
"
integrity sha512-
uDURuRzI1drCabG1LGqie6XUR8h3O5o6AoIgqPavPF3Ls39hynrRFjuA7o5XVsXQqVXwW/E//8hISxG3AyjcfQ
==
dependencies:
async-validator "^4.2.5"
dayjs "^1.11.5"
"@ibiz-template/core@^0.0.1-beta.6
5
":
version "0.0.1-beta.6
5
"
resolved "http://npm.zhr.icu/@ibiz-template/core/-/core-0.0.1-beta.6
5.tgz#74ca1ab9f8d75d3f104653729e525dbd8f835018
"
integrity sha512-
T7mxdBkLzLSARHCsdJ3wYfEnmAuHpSogD8Mb6omwRkey5vFv4dw/1dB2mQw+Vfv8Jbi/alTP2apDBG6B6wSsd
Q==
"@ibiz-template/core@^0.0.1-beta.6
7
":
version "0.0.1-beta.6
7
"
resolved "http://npm.zhr.icu/@ibiz-template/core/-/core-0.0.1-beta.6
7.tgz#c528ab7fbc79a19e767677eac63d1be9e8dd3b60
"
integrity sha512-
i0MuCzt7y4KziWGXcahAt2C+/hRtQzzFR91Csay38upb+gAmaMUSNJdkPYQb1C52yBl8qQ4J708XxnF228bSj
Q==
dependencies:
axios "^1.2.1"
loglevel "^1.8.0"
pluralize "^8.0.0"
qs "^6.11.0"
"@ibiz-template/model@^0.0.1-beta.6
5
":
version "0.0.1-beta.6
5
"
resolved "http://npm.zhr.icu/@ibiz-template/model/-/model-0.0.1-beta.6
5.tgz#8e62d49f47ffd55710d5ecbfac55160f6e4fb70c
"
integrity sha512-
muSKLTuzgweisCdx/LJxRcM49i6tZZ7/uCMULNEF1fOHw+UFrVRurQpMLIETLM+H/wTj6mgAIUdO8Knky9hBFw
==
"@ibiz-template/model@^0.0.1-beta.6
7
":
version "0.0.1-beta.6
7
"
resolved "http://npm.zhr.icu/@ibiz-template/model/-/model-0.0.1-beta.6
7.tgz#34ee3728ade9e91f9ce1830be97c9db2cac662ef
"
integrity sha512-
MhSwptRLJBglQb+upmrnA6uBS2MsbowLIPFHRnyMrr63cacmcirZUTMc+R/lBv7WygF9drFdUHi61v/CqiBy2g
==
dependencies:
"@ibiz/dynamic-model-api" "^2.1.17"
pluralize "^8.0.0"
"@ibiz-template/runtime@^0.0.1-beta.6
5
":
version "0.0.1-beta.6
5
"
resolved "http://npm.zhr.icu/@ibiz-template/runtime/-/runtime-0.0.1-beta.6
5.tgz#4e2af9e6a4272e9e688bef6bcdea6c3fd196296c
"
integrity sha512-
fq196X4KweWLl9eTGtFF4/H13xI8pd73ryWi0m1B+Zq2sW/kER9gd2my2gwTj1F0md7v/8+HM/nhDbOrxbDzd
w==
"@ibiz-template/runtime@^0.0.1-beta.6
7
":
version "0.0.1-beta.6
7
"
resolved "http://npm.zhr.icu/@ibiz-template/runtime/-/runtime-0.0.1-beta.6
7.tgz#d1d1a1a574ec16e629cdda4e10b6b76e03650e2a
"
integrity sha512-
RSGV5MBFkiVRDK3bfiUmdBGPNIwmGFoxH6fqhwWPbU8AOaM7PGNVaC10xiw5TkOA2a7QbCYFNc52g76L4hq9i
w==
dependencies:
"@ibiz-template/command" "^0.0.1-beta.50"
qs "^6.11.0"
"@ibiz-template/service@^0.0.1-beta.6
5
":
version "0.0.1-beta.6
5
"
resolved "http://npm.zhr.icu/@ibiz-template/service/-/service-0.0.1-beta.6
5.tgz#c0fad064edd29d699f756db8e4145dd4485ae05b
"
integrity sha512-
Hk9kKS/KGCKgIxwbUMQYzreQ1mWLyizR117k5TeRC2ixuEof3hX41t26XJZSVFTFaRP4lxioPnt5ihHu9Nl0vg
==
"@ibiz-template/service@^0.0.1-beta.6
7
":
version "0.0.1-beta.6
7
"
resolved "http://npm.zhr.icu/@ibiz-template/service/-/service-0.0.1-beta.6
7.tgz#d2b3d3a74fd27d5a6e54b97591d0c90cacb58dc8
"
integrity sha512-
IHWtLZ6WSSbfX3xVuKcNVFwaujSOxRO2QJFf97d3DRX4lQ9qVaI12JZQfiMPYkbhIul8hhTFDC9jTM66Ukr7Yw
==
"@ibiz-template/theme@^0.0.1-beta.6
5
":
version "0.0.1-beta.6
5
"
resolved "http://npm.zhr.icu/@ibiz-template/theme/-/theme-0.0.1-beta.6
5.tgz#93f1ff2813a30ed83b71ff1997e9e2908d19acf3
"
integrity sha512-
Y6uWfZXwIlZo+7PfxTs/hFeaiawm7OSs1VTjQABPXph+EEJDd/qrXThLrBhKIaqqLIR9EXH3Ck6jalqDH5qfnQ
==
"@ibiz-template/theme@^0.0.1-beta.6
7
":
version "0.0.1-beta.6
7
"
resolved "http://npm.zhr.icu/@ibiz-template/theme/-/theme-0.0.1-beta.6
7.tgz#56a5d0f42321ec42cb070e2612767af0a072b5af
"
integrity sha512-
6FxGBzuQ3Fj7gcr8WNt13SXkiPzs15TIKfHRqV+L1CDkk+l+hFwSEmnL/L9r/3HWnjkAeM+qLTKltEEPu99+nw
==
"@ibiz-template/vue-util@^0.0.1-beta.6
5
":
version "0.0.1-beta.6
5
"
resolved "http://npm.zhr.icu/@ibiz-template/vue-util/-/vue-util-0.0.1-beta.6
5.tgz#d2c6a6a81288ea18e7e5371dada880d56181bff4
"
integrity sha512-
78hJEgsRpKmLEsM1BQdkaKPV/4ZUuKlhxPKVjS7fSoj2e142ZKDR6AEPjLF2GmBNDCqrnvMJm1Q+0XwG7xHKUQ
==
"@ibiz-template/vue-util@^0.0.1-beta.6
7
":
version "0.0.1-beta.6
7
"
resolved "http://npm.zhr.icu/@ibiz-template/vue-util/-/vue-util-0.0.1-beta.6
7.tgz#9b118ad5e079ceb26eb3dad144da92ed79ccc45a
"
integrity sha512-
lGt4pZ6hviJaCOa4s10KaMvOkjnSgJWvjf6CV7GjwUzcbiCfk1kWQkSdnPfKQGz5xfzSDNUXUkbEXiRve88yFA
==
"@ibiz/dynamic-model-api@^2.1.17":
version "2.1.17"
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录