cloud-web-corejs 1.0.54-dev.721 → 1.0.54-dev.723
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/wf/content.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/index.vue +6 -1
- package/src/components/xform/form-designer/index.vue +5 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +2 -3
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +28 -0
- package/src/layout/components/AppMain.vue +1 -1
- package/src/layout/components/Sidebar/default.vue +2 -1
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +6 -4
- package/src/views/bd/setting/formVersion/reverButton.vue +1 -1
- package/src/views/user/login/default.vue +0 -8
- package/src/views/user/login/indexMixin.js +1 -10
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<el-button ref="fieldEditor" :type="field.options.type" :size="field.options.size" class="button-sty"
|
|
6
6
|
:plain="field.options.plain" :round="field.options.round"
|
|
7
7
|
:circle="field.options.circle" :icon="field.options.icon"
|
|
8
|
-
:disabled="!designState &&field.options.disabled"
|
|
8
|
+
:disabled="!designState &&field.options.disabled" style="margin-right:12px"
|
|
9
9
|
@click.native="handleButtonWidgetClick">
|
|
10
10
|
{{ getI18nLabel(field.options.label)}}</el-button>
|
|
11
11
|
</static-content-wrapper>
|
package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:display-style="field.options.displayStyle"
|
|
5
5
|
:parent-widget="parentWidget" :parent-list="parentList"
|
|
6
6
|
:index-of-parent-list="indexOfParentList">
|
|
7
|
-
<el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-download" @click="importHandle"
|
|
7
|
+
<el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-download" plain @click="importHandle"
|
|
8
8
|
:disabled="field.options.disabled">{{ getI18nLabel(field.options.label)}}
|
|
9
9
|
</el-button>
|
|
10
10
|
</static-content-wrapper>
|
package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:display-style="field.options.displayStyle"
|
|
5
5
|
:parent-widget="parentWidget" :parent-list="parentList"
|
|
6
6
|
:index-of-parent-list="indexOfParentList">
|
|
7
|
-
<el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-download" @click="importHandle"
|
|
7
|
+
<el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-download" plain @click="importHandle"
|
|
8
8
|
:disabled="field.options.disabled">{{ getI18nLabel(field.options.label)}}
|
|
9
9
|
</el-button>
|
|
10
10
|
</static-content-wrapper>
|
package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
:index-of-parent-list="indexOfParentList"
|
|
10
10
|
>
|
|
11
11
|
<el-dropdown trigger="hover" :disabled="field.options.disabled">
|
|
12
|
-
<el-button type="primary" class="button-sty" size="mini">
|
|
12
|
+
<el-button type="primary" class="button-sty" size="mini" plain>
|
|
13
13
|
<span>{{ getI18nLabel("列表导出") }}</span
|
|
14
14
|
><span class="line"></span> <i class="el-icon-arrow-down el-icon--right"></i>
|
|
15
15
|
</el-button>
|
package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:parent-widget="parentWidget" :parent-list="parentList"
|
|
6
6
|
:index-of-parent-list="indexOfParentList">
|
|
7
7
|
<el-dropdown trigger="hover">
|
|
8
|
-
<el-button type="primary" class="button-sty" size="mini">
|
|
8
|
+
<el-button type="primary" class="button-sty" size="mini" plain>
|
|
9
9
|
<span>{{ getI18nLabel('列表导出') }}</span><span class="line"></span> <i
|
|
10
10
|
class="el-icon-arrow-down el-icon--right"></i>
|
|
11
11
|
</el-button>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:sub-form-col-index="subFormColIndex"
|
|
12
12
|
:sub-form-row-id="subFormRowId"
|
|
13
13
|
>
|
|
14
|
-
<span class="button-sty" v-if="designState">
|
|
14
|
+
<span class="button-sty nobg" v-if="designState">
|
|
15
15
|
<el-button type="success" class="btn-connect" icon="iconfont icon-zancun" plain
|
|
16
16
|
>暂存</el-button
|
|
17
17
|
>
|
|
@@ -98,8 +98,13 @@ export default {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.form-widget-list {
|
|
101
|
-
min-height: calc(100vh - 98px);
|
|
101
|
+
min-height: calc(100vh - var(--xform-designer-body-offset, 98px));
|
|
102
102
|
padding: 3px;
|
|
103
|
+
// 明细区高度默认关闭:--xform-designer-detail-height 未设置时回退为 revert(等同不写该规则)
|
|
104
|
+
// 目标项目在自己的 :root 覆盖,如 --xform-designer-detail-height: calc(100vh - 200px)
|
|
105
|
+
::v-deep .detail-wrap .d-cont {
|
|
106
|
+
height: var(--xform-designer-detail-height, revert) !important;
|
|
107
|
+
}
|
|
103
108
|
}
|
|
104
109
|
}
|
|
105
110
|
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
</toolbar-panel>
|
|
45
45
|
</el-header>
|
|
46
46
|
<el-main class="form-widget-main">
|
|
47
|
-
<el-scrollbar class="container-scroll-bar
|
|
47
|
+
<el-scrollbar class="container-scroll-bar xform-designer-scroll">
|
|
48
48
|
<v-form-widget :designer="designer" :form-config="designer.formConfig" ref="formRef"></v-form-widget>
|
|
49
49
|
</el-scrollbar>
|
|
50
50
|
</el-main>
|
|
@@ -87,6 +87,10 @@ export default {
|
|
|
87
87
|
font-family: inherit !important;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
.xform-designer-scroll {
|
|
91
|
+
height: calc(100vh - var(--xform-designer-scroll-offset, 125px));
|
|
92
|
+
}
|
|
93
|
+
|
|
90
94
|
.el-container.main-container {
|
|
91
95
|
background: #fff;
|
|
92
96
|
|
|
@@ -89,8 +89,7 @@ export default {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
</script>
|
|
92
|
-
<style>
|
|
93
|
-
<style>
|
|
92
|
+
<style lang="scss">
|
|
94
93
|
.designer-drawer1{
|
|
95
94
|
left: 150px;
|
|
96
95
|
right: 10px;
|
|
@@ -119,7 +118,7 @@ export default {
|
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
.grid-height {
|
|
122
|
-
height: calc(100vh - 84px) !important
|
|
121
|
+
height: calc(100vh - var(--xform-column-grid-offset, 84px)) !important
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
</style>
|
|
@@ -147,6 +147,8 @@ modules = {
|
|
|
147
147
|
dynamicColumnsPreloaded: false,
|
|
148
148
|
dynamicColumnsInitResolved: false,
|
|
149
149
|
dynamicColumnsInitSkipped: false,
|
|
150
|
+
// 列/网格未就绪时 setValue 只缓存数据,置此标志延后行 schema 构建
|
|
151
|
+
pendingSchemaInit: false,
|
|
150
152
|
};
|
|
151
153
|
},
|
|
152
154
|
watch: {
|
|
@@ -725,10 +727,34 @@ modules = {
|
|
|
725
727
|
let $grid = this.getGridTable();
|
|
726
728
|
this.fieldModel = rows;
|
|
727
729
|
|
|
730
|
+
// 方向1:列/网格尚未就绪时(如 created 阶段 setFormData 广播触发),
|
|
731
|
+
// 只缓存数据,跳过行 schema 构建,避免 initFieldSchemaData 因无列而进入
|
|
732
|
+
// $nextTick 自递归忙循环导致页面卡死;待 mounted 建好列后由
|
|
733
|
+
// flushPendingSchemaInit 统一补建一次。
|
|
734
|
+
if (!this.isTableSchemaReady()) {
|
|
735
|
+
this.pendingSchemaInit = true;
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
|
|
728
739
|
this.initRowIdData();
|
|
729
740
|
this.initFieldSchemaData();
|
|
730
741
|
// $grid.loadData(rows);
|
|
731
742
|
},
|
|
743
|
+
/** @returns {Boolean} 网格列是否已就绪(可安全构建行级 schema)。 */
|
|
744
|
+
isTableSchemaReady() {
|
|
745
|
+
return this.getTableFullColumns().length > 0;
|
|
746
|
+
},
|
|
747
|
+
/** mounted 建好列后补建一次被延后的行 schema。 */
|
|
748
|
+
flushPendingSchemaInit() {
|
|
749
|
+
if (!this.pendingSchemaInit) return;
|
|
750
|
+
if (!this.isTableSchemaReady()) return;
|
|
751
|
+
this.pendingSchemaInit = false;
|
|
752
|
+
let rows = this.getValue();
|
|
753
|
+
if (Array.isArray(rows) && rows.length) {
|
|
754
|
+
this.initRowIdData();
|
|
755
|
+
this.initFieldSchemaData();
|
|
756
|
+
}
|
|
757
|
+
},
|
|
732
758
|
/** @returns {Array} 表单模型中的当前扁平数据。 */
|
|
733
759
|
getValue() {
|
|
734
760
|
return this.formModel[this.fieldKeyName];
|
|
@@ -2587,6 +2613,8 @@ modules = {
|
|
|
2587
2613
|
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
2588
2614
|
this.vxeOption = opts;
|
|
2589
2615
|
this.applyCompareRowClassName();
|
|
2616
|
+
// 列已就绪,补建 created 阶段被延后的行 schema
|
|
2617
|
+
this.flushPendingSchemaInit();
|
|
2590
2618
|
this.tryAutoLoadDynamicColumns().finally(() => {
|
|
2591
2619
|
if (!isQueryTable) {
|
|
2592
2620
|
setTimeout(() => {
|
|
@@ -1103,6 +1103,7 @@ export default {
|
|
|
1103
1103
|
padding: 0 11px;
|
|
1104
1104
|
height: 48px;
|
|
1105
1105
|
line-height: 48px;
|
|
1106
|
+
overflow: hidden;
|
|
1106
1107
|
&:hover,
|
|
1107
1108
|
&.is-active {
|
|
1108
1109
|
background-color: rgba(0, 0, 0, 0.29);
|
|
@@ -1115,7 +1116,7 @@ export default {
|
|
|
1115
1116
|
|
|
1116
1117
|
&.iconfont {
|
|
1117
1118
|
margin-right: 5px;
|
|
1118
|
-
font-size:
|
|
1119
|
+
font-size: 18px;
|
|
1119
1120
|
float: left;
|
|
1120
1121
|
}
|
|
1121
1122
|
|
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
:fullscreen="true"
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
18
|
-
class="cont"
|
|
19
18
|
id="containt"
|
|
20
|
-
style="height: calc(100vh -
|
|
19
|
+
style="height: calc(100vh - 58px); overflow: hidden"
|
|
21
20
|
>
|
|
22
21
|
<el-tabs ref="xTabs" v-model="activeName" class="tab-box">
|
|
23
22
|
<el-tab-pane :label="$t1('详情')" name="first">
|
|
@@ -483,7 +482,10 @@ export default {
|
|
|
483
482
|
.grid-height {
|
|
484
483
|
height: calc(100vh - 106px) !important;
|
|
485
484
|
}
|
|
486
|
-
::v-deep .detail-wrap
|
|
487
|
-
|
|
485
|
+
::v-deep .detail-wrap{
|
|
486
|
+
margin:-8px -10px 0;
|
|
487
|
+
.d-cont {
|
|
488
|
+
height: calc(100vh - 148px) !important;
|
|
489
|
+
}
|
|
488
490
|
}
|
|
489
491
|
</style>
|
|
@@ -169,14 +169,6 @@ export default {
|
|
|
169
169
|
background: url(~@/resources/images/bg-login5.jpg) center center/cover no-repeat;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.login-container.chigo {
|
|
173
|
-
background: url(~@/resources/images/bg-login6.jpg) center center/cover no-repeat;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.login-container.pcp {
|
|
177
|
-
background: url(~@/resources/images/bg-login8.jpg) center center/cover no-repeat;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
172
|
.el-select-dropdown {
|
|
181
173
|
right: 5px;
|
|
182
174
|
top: 25px;
|
|
@@ -307,16 +307,7 @@ export default {
|
|
|
307
307
|
}
|
|
308
308
|
},
|
|
309
309
|
changeBackground() {
|
|
310
|
-
|
|
311
|
-
location.host.indexOf("pcp.sc.5mall.com") >= 0 ||
|
|
312
|
-
location.host.indexOf("pip.bears.com.cn") >= 0
|
|
313
|
-
) {
|
|
314
|
-
this.backgroundClass = "pcp";
|
|
315
|
-
} else if (location.host.indexOf("chigo.sc.5mall.com") >= 0) {
|
|
316
|
-
this.backgroundClass = "chigo";
|
|
317
|
-
} else {
|
|
318
|
-
this.backgroundClass = "tc";
|
|
319
|
-
}
|
|
310
|
+
this.backgroundClass = "tc";
|
|
320
311
|
},
|
|
321
312
|
login() {
|
|
322
313
|
let url = window.MAIN_WEB_PREFIX + "/index.html/#/login";
|