cloud-web-corejs 1.0.54-dev.113 → 1.0.54-dev.115
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/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +10 -5
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +40 -3
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +54 -14
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +9 -4
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +8 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
- package/src/components/xform/form-designer/indexMixin.js +3 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +86 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +39 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +15 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +2 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +4 -3
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +35 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1926 -1
- package/src/components/xform/form-render/indexMixin.js +11 -0
- package/src/components/xform/mixins/defaultHandle.js +1 -0
- package/src/components/xform/mixins/scriptHttp.js +82 -1
- package/src/components/xform/utils/util.js +2 -2
- package/src/layout/components/Sidebar/default.vue +35 -3
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +188 -0
- package/src/views/bd/setting/form_script/edit1.vue +1 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +2 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +2 -1
- package/src/views/bd/setting/form_template/edit.vue +9 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
- package/src/views/bd/setting/table_model/edit.vue +12 -2
- package/src/views/bd/setting/table_model/mixins/edit.js +20 -4
- package/src/views/user/form/vform/designer.vue +5 -1
- package/src/views/user/home/default.vue +15 -11
@@ -8,7 +8,7 @@
|
|
8
8
|
</div>
|
9
9
|
<div class="fr">
|
10
10
|
<el-button type="success" class="button-sty" @click="openDesignDialog"
|
11
|
-
icon="iconfont icon-liuchengguanli-shejiqi_liucheng" v-if="!!dataId
|
11
|
+
icon="iconfont icon-liuchengguanli-shejiqi_liucheng" v-if="!!dataId">{{ $t1('表单设计') }}
|
12
12
|
</el-button>
|
13
13
|
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
14
14
|
{{ $t1('重置') }}
|
@@ -111,6 +111,14 @@
|
|
111
111
|
<projectTagView v-model="formTemplate.formTemplateTagDTOs"></projectTagView>
|
112
112
|
</td>
|
113
113
|
</tr>
|
114
|
+
<tr>
|
115
|
+
<th>
|
116
|
+
{{ $t1('唯一标识') }}
|
117
|
+
</th>
|
118
|
+
<td colspan="7">
|
119
|
+
{{ formTemplate.sid }}
|
120
|
+
</td>
|
121
|
+
</tr>
|
114
122
|
<tr>
|
115
123
|
<th>{{ $t1('创建人') }}</th>
|
116
124
|
<td>{{ formTemplate.createBy }}</td>
|
@@ -11,12 +11,12 @@
|
|
11
11
|
{{ $t1('重置') }}
|
12
12
|
</el-button>
|
13
13
|
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData"
|
14
|
-
v-if="isDev && !szTaMb.systems && menuKindAuth.editAuth===1">
|
14
|
+
v-if="isDev && !szTaMb.systems && menuKindAuth.editAuth===1 && !readonly">
|
15
15
|
{{ $t1('保存') }}
|
16
16
|
</el-button>
|
17
17
|
|
18
18
|
<el-button type="success" class="button-sty" icon="el-icon-check"
|
19
|
-
@click="createModifyTable()" v-if="!szTaMb.systems && szTaMb.id && menuKindAuth.editAuth===1">
|
19
|
+
@click="createModifyTable()" v-if="!szTaMb.systems && szTaMb.id && menuKindAuth.editAuth===1 && !readonly">
|
20
20
|
{{ $t1('创建/更新数据表') }}
|
21
21
|
</el-button>
|
22
22
|
</div>
|
@@ -149,6 +149,15 @@
|
|
149
149
|
{{ szTaMb.serviceName }}
|
150
150
|
</td>
|
151
151
|
</tr>
|
152
|
+
|
153
|
+
<tr>
|
154
|
+
<th>
|
155
|
+
{{ $t1('唯一标识') }}
|
156
|
+
</th>
|
157
|
+
<td colspan="7">
|
158
|
+
{{ szTaMb.sid }}
|
159
|
+
</td>
|
160
|
+
</tr>
|
152
161
|
<tr>
|
153
162
|
<th>{{ $t1('创建人') }}</th>
|
154
163
|
<td>{{ szTaMb.createBy }}</td>
|
@@ -322,6 +331,7 @@
|
|
322
331
|
v-model="referenceEntity"
|
323
332
|
@clear="
|
324
333
|
referenceKey = null;
|
334
|
+
refServiceName = null;
|
325
335
|
referenceShowFields = [];
|
326
336
|
$forceUpdate();
|
327
337
|
"
|
@@ -13,7 +13,8 @@ modules = {
|
|
13
13
|
name: 'szTaMbEdit',
|
14
14
|
props: {
|
15
15
|
_dataId: [String, Number],
|
16
|
-
currentFormType: Object
|
16
|
+
currentFormType: Object,
|
17
|
+
readonly: Boolean
|
17
18
|
},
|
18
19
|
components: {
|
19
20
|
formOplogTable,
|
@@ -51,6 +52,7 @@ modules = {
|
|
51
52
|
referenceEntity: null,
|
52
53
|
referenceKey: null,
|
53
54
|
referenceShowFields: null,
|
55
|
+
refServiceName: null,
|
54
56
|
currentIndex: 0,
|
55
57
|
showReferenceZdDialog: false,
|
56
58
|
|
@@ -120,7 +122,7 @@ modules = {
|
|
120
122
|
|
121
123
|
}
|
122
124
|
});
|
123
|
-
}else{
|
125
|
+
} else {
|
124
126
|
this.getMenuKindAuth(this.szTaMb.menuKindCode);
|
125
127
|
}
|
126
128
|
},
|
@@ -283,6 +285,9 @@ modules = {
|
|
283
285
|
default: 'referenceZd'
|
284
286
|
}
|
285
287
|
},
|
288
|
+
{
|
289
|
+
title: this.$t1('关联表对应服务名'), field: 'refServiceName', width: 200
|
290
|
+
},
|
286
291
|
{
|
287
292
|
title: this.$t1('字段类型对应的默认值'),
|
288
293
|
field: 'zdTypeValues',
|
@@ -535,6 +540,7 @@ modules = {
|
|
535
540
|
this.referenceEntity = referenceEntity;
|
536
541
|
this.referenceKey = referenceKey;
|
537
542
|
this.referenceShowFields = referenceShowFields;
|
543
|
+
this.refServiceName = row.refServiceName ?? null;
|
538
544
|
|
539
545
|
this.referenceShowRows = referenceShowFields.map(item => {
|
540
546
|
return {
|
@@ -550,6 +556,8 @@ modules = {
|
|
550
556
|
let oldReferenceZd = row.referenceZd;
|
551
557
|
|
552
558
|
let referenceEntity = this.referenceEntity;
|
559
|
+
let refServiceName = this.refServiceName;
|
560
|
+
debugger
|
553
561
|
let referenceZd = referenceEntity + "." + this.referenceKey;
|
554
562
|
let referenceShowFields = this.referenceShowFields;
|
555
563
|
let keys = referenceShowFields.map(item => {
|
@@ -573,8 +581,13 @@ modules = {
|
|
573
581
|
})
|
574
582
|
}*/ else {
|
575
583
|
this.szTaMb.szTaZdMbDTOs.forEach((item, index) => {
|
576
|
-
if (oldReferenceZd == item.relationZd
|
577
|
-
|
584
|
+
if (oldReferenceZd == item.relationZd) {
|
585
|
+
if (!keys.includes(item.referenceZd)) {
|
586
|
+
delIndex.push(index)
|
587
|
+
} else {
|
588
|
+
item.refServiceName = refServiceName;
|
589
|
+
}
|
590
|
+
|
578
591
|
}
|
579
592
|
})
|
580
593
|
}
|
@@ -617,6 +630,7 @@ modules = {
|
|
617
630
|
zdType: "Text",
|
618
631
|
referenceZd: referenceEntity + "." + item.taZdMc,
|
619
632
|
relationZd: referenceZd,
|
633
|
+
refServiceName,
|
620
634
|
zdTypeValues: null,
|
621
635
|
required: false,
|
622
636
|
enabled: true,
|
@@ -628,6 +642,7 @@ modules = {
|
|
628
642
|
this.szTaMb.szTaZdMbDTOs.splice(rIndex, 0, newItem);
|
629
643
|
});
|
630
644
|
row.referenceZd = referenceZd
|
645
|
+
row.refServiceName = refServiceName
|
631
646
|
this.handleReferenceOrders(row);
|
632
647
|
this.showReferenceZdDialog = false;
|
633
648
|
},
|
@@ -653,6 +668,7 @@ modules = {
|
|
653
668
|
this.referenceShowFields = [];
|
654
669
|
}
|
655
670
|
this.referenceEntity = row.taBm;
|
671
|
+
this.refServiceName = row.serviceName;
|
656
672
|
}
|
657
673
|
},
|
658
674
|
confirmEntityFieldDialog1(rows) {
|
@@ -12,6 +12,7 @@
|
|
12
12
|
@form-json-updated="handleFJU"
|
13
13
|
@reflushTemplateList="reflushTemplateList"
|
14
14
|
v-if="showDesinger"
|
15
|
+
:readonly="readonly"
|
15
16
|
/>
|
16
17
|
</div><!--
|
17
18
|
<el-tabs v-model="activeName" class="tab-boxCard tabCard-sty1" v-if="showDesinger">
|
@@ -32,7 +33,10 @@ import {formFieldMapping} from "../../../../views/user/form/vform/formFieldMappi
|
|
32
33
|
|
33
34
|
export default {
|
34
35
|
name: 'vform-designer:edit',
|
35
|
-
props:
|
36
|
+
props: {
|
37
|
+
formCode: String,
|
38
|
+
readonly: Boolean
|
39
|
+
},
|
36
40
|
components: {
|
37
41
|
VFormDesigner
|
38
42
|
},
|
@@ -44,7 +44,7 @@
|
|
44
44
|
</div>
|
45
45
|
</el-card>
|
46
46
|
</el-col>
|
47
|
-
<el-col :span="homeConfig.toDoSpan ||
|
47
|
+
<el-col :span="homeConfig.toDoSpan || 16" style="padding-left:6px;">
|
48
48
|
<el-card class="box-card">
|
49
49
|
<div slot="header" class="clearfix">
|
50
50
|
<span style="float:left">
|
@@ -67,8 +67,10 @@
|
|
67
67
|
@custom="$vxeTableUtil.customHandle"></vxe-grid>
|
68
68
|
</div>
|
69
69
|
</el-card>
|
70
|
-
</el-col>
|
71
|
-
|
70
|
+
</el-col>
|
71
|
+
</el-row>
|
72
|
+
<el-row>
|
73
|
+
<el-col :span="24" v-show="homeConfig.showFastTrack!==false">
|
72
74
|
<el-card class="box-card">
|
73
75
|
<div slot="header" class="clearfix">
|
74
76
|
<span style="float:left">
|
@@ -731,14 +733,14 @@ body #app .index-home {
|
|
731
733
|
}
|
732
734
|
|
733
735
|
.fast-box {
|
734
|
-
|
736
|
+
margin: 6px 4px 4px;
|
735
737
|
overflow: hidden;
|
736
738
|
|
737
739
|
.item {
|
738
|
-
width:
|
740
|
+
width: 118px;
|
739
741
|
text-align: center;
|
740
742
|
float: left;
|
741
|
-
|
743
|
+
margin-right: 14px;
|
742
744
|
p {
|
743
745
|
color: #2a6494;
|
744
746
|
border: solid 1px #e2e2e2;
|
@@ -746,8 +748,8 @@ body #app .index-home {
|
|
746
748
|
width: calc(100% - 4px);
|
747
749
|
border-radius: 6px;
|
748
750
|
position: relative;
|
749
|
-
height:
|
750
|
-
line-height:
|
751
|
+
height: 54px;
|
752
|
+
line-height: 54px;
|
751
753
|
text-align: left;
|
752
754
|
padding-left: 14px;
|
753
755
|
font-size: 12px;
|
@@ -765,12 +767,13 @@ body #app .index-home {
|
|
765
767
|
&:before {
|
766
768
|
content: '';
|
767
769
|
width: 4px;
|
768
|
-
height:
|
770
|
+
height: 24px;
|
769
771
|
display: inline-block;
|
770
772
|
background: #225279b8;
|
771
773
|
position: absolute;
|
772
774
|
left: -1px;
|
773
|
-
top:
|
775
|
+
top: 50%;
|
776
|
+
margin-top:-12px;
|
774
777
|
}
|
775
778
|
|
776
779
|
&:hover {
|
@@ -974,6 +977,7 @@ body #app .index-home {
|
|
974
977
|
color: $baseColor
|
975
978
|
}
|
976
979
|
}
|
977
|
-
}
|
980
|
+
}
|
981
|
+
::v-deep .el-card.is-always-shadow{box-shadow: 0 2px 2px 0 rgb(0 0 0 / 6%);}
|
978
982
|
}
|
979
983
|
</style>
|