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

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

上级 388d9503
...@@ -61,6 +61,24 @@ export class AppCodeEditor extends Vue { ...@@ -61,6 +61,24 @@ export class AppCodeEditor extends Vue {
@Prop({type: Boolean, default: true}) @Prop({type: Boolean, default: true})
isMinimap!: boolean; isMinimap!: boolean;
/**
* 是否显示行号
*
* @type {boolean}
* @memberof AppCodeEditor
*/
@Prop({type: Boolean, default: true})
showLineNum!: boolean;
/**
* 是否显示语言区
*
* @type {boolean}
* @memberof AppCodeEditor
*/
@Prop({type: Boolean, default: true})
showLanguage!: boolean;
/** /**
* 是否能够更换语言 * 是否能够更换语言
* *
...@@ -166,6 +184,7 @@ export class AppCodeEditor extends Vue { ...@@ -166,6 +184,7 @@ export class AppCodeEditor extends Vue {
theme: this.theme, theme: this.theme,
language: this.presentLanguage, language: this.presentLanguage,
readOnly: this.isReadOnly, readOnly: this.isReadOnly,
lineNumbers: this.showLineNum ? 'on' : 'off',
minimap: { enabled: this.isMinimap }, minimap: { enabled: this.isMinimap },
}); });
this.registerEvent(); this.registerEvent();
...@@ -266,7 +285,7 @@ export class AppCodeEditor extends Vue { ...@@ -266,7 +285,7 @@ export class AppCodeEditor extends Vue {
render(h: CreateElement) { render(h: CreateElement) {
return ( return (
<div class='app-code-editor'> <div class='app-code-editor'>
<div class={{ 'app-code-editor__header': true, [this.theme]: true }}> <div class={{ 'app-code-editor__header': true, [this.theme]: true, 'app-code-editor__header--hidden': !this.showLanguage }}>
<div class='app-code-editor__header__left__toolbar'> <div class='app-code-editor__header__left__toolbar'>
<i-select <i-select
v-model={this.presentLanguage} v-model={this.presentLanguage}
......
...@@ -244,6 +244,7 @@ export class AppPortletBase extends PortletControlBase { ...@@ -244,6 +244,7 @@ export class AppPortletBase extends PortletControlBase {
viewparam: JSON.stringify(this.viewparams), viewparam: JSON.stringify(this.viewparams),
}, },
}, },
class: "view-container2",
on: { on: {
'viewIsMounted': () => { 'viewIsMounted': () => {
this.setIsMounted(portletAppView?.name); this.setIsMounted(portletAppView?.name);
......
...@@ -63,6 +63,12 @@ export default class CodeEditor extends EditorBase { ...@@ -63,6 +63,12 @@ export default class CodeEditor extends EditorBase {
if (params.LANGUAGE) { if (params.LANGUAGE) {
param.language = params.LANGUAGE; param.language = params.LANGUAGE;
} }
if (params.showLanguage) {
param.showLanguage = this.handleBoolean(params.showLanguage);
}
if (params.showLineNum) {
param.showLineNum = this.handleBoolean(params.showLineNum);
}
return Object.assign(params, param); return Object.assign(params, param);
} }
......
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
font-size: 12px; font-size: 12px;
font-weight: 800; font-weight: 800;
justify-content: space-between; justify-content: space-between;
&.app-code-editor__header--hidden {
display: none;
}
} }
.app-code-editor__header__left__toolbar{ .app-code-editor__header__left__toolbar{
...@@ -33,6 +36,9 @@ ...@@ -33,6 +36,9 @@
background: transparent; background: transparent;
color: rgb(157, 165, 180); color: rgb(157, 165, 180);
} }
.ivu-select-arrow {
top: 16px;
}
} }
.app-code-editor__header__right__toolbar{ .app-code-editor__header__right__toolbar{
.toolbar-item { .toolbar-item {
......
...@@ -9,11 +9,16 @@ ...@@ -9,11 +9,16 @@
.ivu-card-head { .ivu-card-head {
padding: 4px; padding: 4px;
} }
.ivu-card {
height: 100%;
.ivu-card-extra { .ivu-card-extra {
display: flex; display: flex;
top: 0px; top: 0px;
} }
.ivu-card-body {
padding: 8px;
}
}
.app-form-group__action__extract { .app-form-group__action__extract {
display: flex; display: flex;
} }
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
height: 100%; height: 100%;
padding: 0 6px; padding: 0 6px;
.app-form-item__tip,.app-form-item__show-tip{ .app-form-item__tip,.app-form-item__show-tip{
i,img{ >i,img{
margin-right: 4px; margin-right: 4px;
} }
} }
.app-form-item__label { .app-form-item__label {
padding: 6px 8px 6px 0px; padding: 6px 8px 6px 8px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
&.label--right { &.label--right {
>.app-form-item__label { >.app-form-item__label {
float: right; float: right;
padding: 6px 0px 6px 10px; text-align: left;
} }
} }
&.label--none { &.label--none {
......
...@@ -50,24 +50,19 @@ ...@@ -50,24 +50,19 @@
.el-row { .el-row {
display: flex; display: flex;
}
.el-col { .el-col {
flex-grow: 1; flex-grow: 1;
}
div:first-child { .process-definition-name:first-child {
font-weight: 500; font-weight: 500;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
div:nth-child(n+2) { .process-definition-name:nth-child(n+2) {
font-size: 12px; font-size: 12px;
} }
} }
}
}
} }
\ No newline at end of file
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
height: calc(100% - 58px); height: calc(100% - 58px);
overflow: auto; overflow: auto;
} }
.view-container,.control-container,.view-content {
height: 100%;
}
> .app-control-portlet__content.portlet--no-title { > .app-control-portlet__content.portlet--no-title {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
...@@ -5,13 +5,6 @@ ...@@ -5,13 +5,6 @@
width: 100%; width: 100%;
border: 0; border: 0;
} }
.app-form-item.label--left,
.app-form-item.label--right {
>.app-form-item__label {
position: relative;
top: -5px;
}
}
.app-form-item__content > .ivu-form-item { .app-form-item__content > .ivu-form-item {
margin-bottom: 8px; margin-bottom: 8px;
} }
......
...@@ -23,13 +23,14 @@ ...@@ -23,13 +23,14 @@
} }
.control-content { .control-content {
height: 100%; flex-grow: 1;
min-height: 0;
min-width: 0;
padding: 4px; padding: 4px;
overflow: auto; overflow: auto;
} }
.control-footer { .control-footer {
height: 50px;
width: 100%; width: 100%;
padding: 4px; padding: 4px;
} }
......
...@@ -64,18 +64,23 @@ ...@@ -64,18 +64,23 @@
// 视图内容 // 视图内容
.view-content { .view-content {
flex-grow: 1;
min-height: 0;
min-width: 0;
width: 100%; width: 100%;
height: 0;
padding: 4px; padding: 4px;
flex-grow: 1;
.flex(column, normal, normal); .flex(column, normal, normal);
} }
.view-content__left, .view-content__left,
.view-content__right, .view-content__right{
.view-content__body {
height: 100%; height: 100%;
} }
.view-content__body{
flex-grow: 1;
min-height: 0;
min-width: 0;
}
.view-footer { .view-footer {
padding: 4px; padding: 4px;
......
// 嵌入视图容器布局 // 嵌入视图容器布局
.view-container2 { .view-container2 {
padding: 4px; padding: 4px;
.view-content__left,
.view-content__right,
.view-content__body {
flex-grow: 1;
min-height: 0;
min-width: 0;
}
} }
\ No newline at end of file
...@@ -2058,6 +2058,9 @@ export class GridControlBase extends MDControlBase implements GridControlInterfa ...@@ -2058,6 +2058,9 @@ export class GridControlBase extends MDControlBase implements GridControlInterfa
* @memberof GridControlBase * @memberof GridControlBase
*/ */
public rowClick(row: any, column?: any, event?: any, isExecute: boolean = false): void { public rowClick(row: any, column?: any, event?: any, isExecute: boolean = false): void {
if (column?.columnKey && column.columnKey.includes('uagridcolumn')) {
return
}
if (this.ctrlTriggerLogicMap.get(`${this.realCtrlSeparator}row-click`)) { if (this.ctrlTriggerLogicMap.get(`${this.realCtrlSeparator}row-click`)) {
return; return;
} }
...@@ -2106,6 +2109,9 @@ export class GridControlBase extends MDControlBase implements GridControlInterfa ...@@ -2106,6 +2109,9 @@ export class GridControlBase extends MDControlBase implements GridControlInterfa
* @memberof GridControlBase * @memberof GridControlBase
*/ */
public rowDBLClick(row: any, column?: any, event?: any): void { public rowDBLClick(row: any, column?: any, event?: any): void {
if (column?.columnKey && column.columnKey.includes('uagridcolumn')) {
return
}
this.handleCtrlEvents('onrowdblclick', { action: 'RowDBLClick', data: row }).then((res: boolean) => { this.handleCtrlEvents('onrowdblclick', { action: 'RowDBLClick', data: row }).then((res: boolean) => {
if (res) { if (res) {
if (this.ctrlTriggerLogicMap.get(`${this.realCtrlSeparator}row-dblclick`)) { if (this.ctrlTriggerLogicMap.get(`${this.realCtrlSeparator}row-dblclick`)) {
......
...@@ -2071,20 +2071,19 @@ body { ...@@ -2071,20 +2071,19 @@ body {
.popover__show-more { .popover__show-more {
color: @color-primary-base; color: @color-primary-base;
} }
.popover__content { .popover__content {
border-bottom: 1px solid @color-primary-base; border-bottom: 1px solid @color-primary-base;
.popover__content__avatar { .popover__content__avatar {
// border: 0px solid @border-color; border: 0px solid @color-primary-base;
span{
background-color: @color-primary-base!important;
color: @color-primary-contrast!important;
}
} }
.popover__content__caption { .popover__content__caption {
// border: 0px @border-color solid;
.process-definition-name:hover { .process-definition-name:hover {
// color: @hover-color; color: @color-primary-base;
} }
} }
} }
......
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
</changeSet> </changeSet>
<!--输出实体[PHONE]数据结构 --> <!--输出实体[PHONE]数据结构 -->
<changeSet author="root" id="tab-phone-53-6"> <changeSet author="root" id="tab-phone-54-6">
<createTable tableName="T_PHONE"> <createTable tableName="T_PHONE">
<column name="PHONEID" remarks="" type="VARCHAR(100)"> <column name="PHONEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_PHONE"/> <constraints primaryKey="true" primaryKeyName="PK_PHONE"/>
......
...@@ -185,6 +185,21 @@ ...@@ -185,6 +185,21 @@
"name" : "PHONETYPE", "name" : "PHONETYPE",
"codeName" : "Phonetype" "codeName" : "Phonetype"
}, },
"getPSDEFDGroupLogics" : [ {
"groupOP" : "AND",
"logicCat" : "ITEMENABLE",
"logicType" : "GROUP",
"name" : "表单成员[phonetype][表单项启用]逻辑",
"getPSDEFDLogics" : [ {
"condOP" : "EQ",
"dEFDName" : "phonename",
"logicType" : "SINGLE",
"name" : "phonename 等于(=) (10)",
"value" : "10"
} ],
"relatedDetailNames" : [ "phonename" ],
"notMode" : false
} ],
"getPSEditor" : { "getPSEditor" : {
"editorType" : "DROPDOWNLIST", "editorType" : "DROPDOWNLIST",
"name" : "phonetype", "name" : "phonetype",
......
...@@ -1171,6 +1171,21 @@ ...@@ -1171,6 +1171,21 @@
"name" : "PHONETYPE", "name" : "PHONETYPE",
"codeName" : "Phonetype" "codeName" : "Phonetype"
}, },
"getPSDEFDGroupLogics" : [ {
"groupOP" : "AND",
"logicCat" : "ITEMENABLE",
"logicType" : "GROUP",
"name" : "表单成员[phonetype][表单项启用]逻辑",
"getPSDEFDLogics" : [ {
"condOP" : "EQ",
"dEFDName" : "phonename",
"logicType" : "SINGLE",
"name" : "phonename 等于(=) (10)",
"value" : "10"
} ],
"relatedDetailNames" : [ "phonename" ],
"notMode" : false
} ],
"getPSEditor" : { "getPSEditor" : {
"editorType" : "DROPDOWNLIST", "editorType" : "DROPDOWNLIST",
"name" : "phonetype", "name" : "phonetype",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册