提交 95c924d4 编写于 作者: ibizdev's avatar ibizdev

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

上级 972d19de
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
"dependencies": { "dependencies": {
"@floating-ui/dom": "^1.0.11", "@floating-ui/dom": "^1.0.11",
"@ibiz-template/command": "^0.0.1-beta.50", "@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.122", "@ibiz-template/controller": "^0.0.1-beta.123",
"@ibiz-template/core": "^0.0.1-beta.122", "@ibiz-template/core": "^0.0.1-beta.123",
"@ibiz-template/model": "^0.0.1-beta.122", "@ibiz-template/model": "^0.0.1-beta.123",
"@ibiz-template/runtime": "^0.0.1-beta.122", "@ibiz-template/runtime": "^0.0.1-beta.123",
"@ibiz-template/service": "^0.0.1-beta.122", "@ibiz-template/service": "^0.0.1-beta.123",
"@ibiz-template/theme": "^0.0.1-beta.122", "@ibiz-template/theme": "^0.0.1-beta.123",
"@ibiz-template/vue-util": "^0.0.1-beta.122", "@ibiz-template/vue-util": "^0.0.1-beta.123",
"@ibiz/dynamic-model-api": "^2.1.28", "@ibiz/dynamic-model-api": "^2.1.28",
"@riophae/vue-treeselect": "^0.4.0", "@riophae/vue-treeselect": "^0.4.0",
"dayjs": "^1.11.7", "dayjs": "^1.11.7",
......
此差异已折叠。
import { ref, defineComponent, Ref, watch, computed } from 'vue'; import { ref, defineComponent, Ref, watch, computed, VNode } from 'vue';
import { getSpanProps, useNamespace } from '@ibiz-template/vue-util'; import { getSpanProps, useNamespace } from '@ibiz-template/vue-util';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import '@ibiz-template/theme/style/components/editor/ibiz-span/ibiz-span.scss'; import '@ibiz-template/theme/style/components/editor/ibiz-span/ibiz-span.scss';
...@@ -79,14 +79,22 @@ export const IBizSpan = defineComponent({ ...@@ -79,14 +79,22 @@ export const IBizSpan = defineComponent({
ns, ns,
text, text,
codeListText, codeListText,
items,
codeList,
}; };
}, },
render() { render() {
let text = ''; let content: string | VNode = '';
if (this.codeListText != null) { if (this.codeList && this.items.length) {
text = this.codeListText as string; content = (
<code-list
codeListItems={this.items}
codeList={this.codeList}
value={this.value}
></code-list>
);
} else if (this.text != null) { } else if (this.text != null) {
text = this.text; content = this.text;
} }
return ( return (
<span <span
...@@ -96,7 +104,7 @@ export const IBizSpan = defineComponent({ ...@@ -96,7 +104,7 @@ export const IBizSpan = defineComponent({
this.readonly ? this.ns.m('readonly') : '', this.readonly ? this.ns.m('readonly') : '',
]} ]}
> >
{text} {content}
</span> </span>
); );
}, },
......
...@@ -1432,16 +1432,16 @@ ...@@ -1432,16 +1432,16 @@
"codeName" : "VMGroup2", "codeName" : "VMGroup2",
"name" : "视图消息组2", "name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息2", "name" : "视图消息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg3" "id" : "ViewMsg2"
} }
}, { }, {
"name" : "视图消息", "name" : "视图消息2",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg2" "id" : "ViewMsg3"
} }
} ] } ]
}, { }, {
......
...@@ -9664,16 +9664,16 @@ ...@@ -9664,16 +9664,16 @@
"codeName" : "VMGroup2", "codeName" : "VMGroup2",
"name" : "视图消息组2", "name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息2", "name" : "视图消息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg3" "id" : "ViewMsg2"
} }
}, { }, {
"name" : "视图消息", "name" : "视图消息2",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg2" "id" : "ViewMsg3"
} }
} ] } ]
}, { }, {
...@@ -9702,12 +9702,6 @@ ...@@ -9702,12 +9702,6 @@
"codeName" : "VMGroup3", "codeName" : "VMGroup3",
"name" : "视图消息类型测试", "name" : "视图消息类型测试",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "消息类型-常规信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg4"
}
}, {
"name" : "消息类型-警告信息", "name" : "消息类型-警告信息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
...@@ -9719,6 +9713,12 @@ ...@@ -9719,6 +9713,12 @@
"modelref" : true, "modelref" : true,
"id" : "ViewMsg6" "id" : "ViewMsg6"
} }
}, {
"name" : "消息类型-常规信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg4"
}
} ] } ]
}, { }, {
"codeName" : "VMGroup7", "codeName" : "VMGroup7",
...@@ -9734,12 +9734,6 @@ ...@@ -9734,12 +9734,6 @@
"codeName" : "VMGroup4", "codeName" : "VMGroup4",
"name" : "视图消息位置测试", "name" : "视图消息位置测试",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "消息位置-视图内容区",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg9"
}
}, {
"name" : "消息位置-视图上方", "name" : "消息位置-视图上方",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
...@@ -9757,30 +9751,17 @@ ...@@ -9757,30 +9751,17 @@
"modelref" : true, "modelref" : true,
"id" : "ViewMsg10" "id" : "ViewMsg10"
} }
}, {
"name" : "消息位置-视图内容区",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg9"
}
} ] } ]
}, { }, {
"codeName" : "VMGroup8", "codeName" : "VMGroup8",
"name" : "【静态测试】", "name" : "【静态测试】",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "关闭模式-无删除-上方-常规",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg11"
}
}, {
"name" : "消息类型-常规信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg4"
},
"position" : "POPUP"
}, {
"name" : "消息位置-视图下方",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg8"
}
}, {
"name" : "消息位置-视图内容区", "name" : "消息位置-视图内容区",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
...@@ -9812,27 +9793,46 @@ ...@@ -9812,27 +9793,46 @@
"id" : "ViewMsg6" "id" : "ViewMsg6"
}, },
"position" : "POPUP" "position" : "POPUP"
}, {
"name" : "消息类型-常规信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg4"
},
"position" : "POPUP"
}, {
"name" : "关闭模式-无删除-上方-常规",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg11"
}
}, {
"name" : "消息位置-视图下方",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg8"
}
} ] } ]
}, { }, {
"codeName" : "VMGroup5", "codeName" : "VMGroup5",
"name" : "视图消息关闭模式", "name" : "视图消息关闭模式",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "关闭模式-删除", "name" : "关闭模式-本次删除",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg11" "id" : "ViewMsg13"
} }
}, { }, {
"name" : "关闭模式-默认删除", "name" : "关闭模式-删除",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg12" "id" : "ViewMsg11"
} }
}, { }, {
"name" : "关闭模式-本次删除", "name" : "关闭模式-默认删除",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg13" "id" : "ViewMsg12"
} }
} ] } ]
}, { }, {
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册