cloud-web-corejs 1.0.54-dev.142 → 1.0.54-dev.144
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/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +46 -97
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1 -3
- package/src/components/xform/form-render/container-item/data-table-item.vue +1 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +6 -0
- package/src/views/bd/setting/table_model/edit.vue +6 -13
package/package.json
CHANGED
@@ -1,81 +1,56 @@
|
|
1
1
|
<template>
|
2
|
-
<el-drawer
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
ref="designer"
|
24
|
-
v-if="showDesigner"
|
25
|
-
@customConfirm="customConfirm"
|
26
|
-
:columnFlag="true"
|
27
|
-
:widgetList="widgetList"
|
28
|
-
></designer>
|
29
|
-
</el-tab-pane>
|
30
|
-
</el-tabs>
|
31
|
-
<el-button
|
32
|
-
class="isFullIcon"
|
33
|
-
v-if="!isFullscreen"
|
34
|
-
@click="handleFullscreen"
|
35
|
-
>
|
36
|
-
<el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
|
37
|
-
<i class="iconfont icon-quanping"></i>
|
38
|
-
</el-tooltip>
|
39
|
-
</el-button>
|
40
|
-
<el-button class="isFullIcon" v-else @click="handleFullscreen">
|
41
|
-
<el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
|
42
|
-
<i class="iconfont icon-suoxiao"></i>
|
43
|
-
</el-tooltip>
|
44
|
-
</el-button>
|
45
|
-
</el-drawer>
|
2
|
+
<el-drawer :title="$t1('表单设计({formName})',{formName})" :visible.sync="showDesingerDialog" :modal="false"
|
3
|
+
:destroy-on-close="true"
|
4
|
+
size="100%" direction="rtl" :before-close="closeFormDesignwinEvent" :append-to-body="false"
|
5
|
+
class="designer-drawer" :class="[isFullscreen ? 'is-fullscreen' : '']" @close="handleFormDesignClose">
|
6
|
+
<el-tabs v-model="formDesTabs" type="card" class="tab-boxOnly" :stretch="true">
|
7
|
+
<el-tab-pane :label="$t1('设计器')" name="first">
|
8
|
+
<designer ref="designer" :formTemplate="formTemplate" @customConfirm="customConfirm" :columnFlag="true" :widgetList="widgetList"></designer>
|
9
|
+
</el-tab-pane>
|
10
|
+
</el-tabs>
|
11
|
+
<el-button class="isFullIcon" v-if="!isFullscreen" @click="handleFullscreen">
|
12
|
+
<el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
|
13
|
+
<i class="iconfont icon-quanping"></i>
|
14
|
+
</el-tooltip>
|
15
|
+
|
16
|
+
</el-button>
|
17
|
+
<el-button class="isFullIcon" v-else @click="handleFullscreen">
|
18
|
+
<el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
|
19
|
+
<i class="iconfont icon-suoxiao"></i>
|
20
|
+
</el-tooltip>
|
21
|
+
</el-button>
|
22
|
+
</el-drawer>
|
46
23
|
</template>
|
47
24
|
<script>
|
25
|
+
// import designer from "@base/views/user/form/vform/designer.vue";
|
48
26
|
export default {
|
49
27
|
props: {
|
50
|
-
|
28
|
+
formTemplate: {
|
29
|
+
type: Object,
|
30
|
+
default: () => {}
|
31
|
+
},
|
32
|
+
column:Object
|
51
33
|
},
|
52
34
|
components: {
|
53
|
-
designer: import("@base/views/user/form/vform/designer.vue"),
|
35
|
+
designer: ()=>import("@base/views/user/form/vform/designer.vue"),
|
54
36
|
},
|
55
|
-
inject: ["getReportTemplate"],
|
56
37
|
data() {
|
57
38
|
return {
|
58
39
|
showDesingerDialog: true,
|
59
|
-
formDesTabs:
|
40
|
+
formDesTabs: 'first',
|
60
41
|
showFormScriptList: false,
|
61
42
|
isFullscreen: false,
|
62
|
-
formCode:
|
63
|
-
formName:
|
64
|
-
widgetList: []
|
65
|
-
|
66
|
-
showDesigner:false
|
67
|
-
};
|
43
|
+
formCode: '',
|
44
|
+
formName: '',
|
45
|
+
widgetList: []
|
46
|
+
}
|
68
47
|
},
|
69
48
|
created() {
|
70
|
-
|
71
|
-
|
72
|
-
this.
|
73
|
-
this.
|
74
|
-
|
75
|
-
this.widgetList = this.$baseLodash.cloneDeep(this.column.widgetList || []);
|
76
|
-
this.$nextTick(() => {
|
77
|
-
// this.showDesigner = true;
|
78
|
-
});
|
49
|
+
this.formCode = this.formTemplate.formCode
|
50
|
+
this.formName = this.formTemplate.formName
|
51
|
+
this.widgetList = this.$baseLodash.cloneDeep(this.column.widgetList || [])
|
52
|
+
this.showDesingerDialog = true
|
53
|
+
|
79
54
|
},
|
80
55
|
mounted() {
|
81
56
|
/* this.$nextTick(() => {
|
@@ -84,49 +59,23 @@ export default {
|
|
84
59
|
},
|
85
60
|
methods: {
|
86
61
|
handleFormDesignClose() {
|
87
|
-
this.$emit(
|
62
|
+
this.$emit('closeFormDesignwinEvent')
|
88
63
|
},
|
89
64
|
handleFullscreen() {
|
90
|
-
this.isFullscreen = !this.isFullscreen
|
65
|
+
this.isFullscreen = !this.isFullscreen
|
91
66
|
},
|
92
67
|
closeFormDesignwinEvent() {
|
93
|
-
this.$emit(
|
68
|
+
this.$emit('closeFormDesignwinEvent')
|
94
69
|
},
|
95
70
|
reflushTemplateList() {
|
96
|
-
this.$emit(
|
71
|
+
this.$emit('reflushTemplateList')
|
97
72
|
},
|
98
|
-
customConfirm(formJson)
|
73
|
+
customConfirm(formJson){
|
99
74
|
let widgetList = formJson.widgetList;
|
100
75
|
this.handleFormDesignClose();
|
101
|
-
this.$emit(
|
102
|
-
}
|
103
|
-
},
|
104
|
-
};
|
105
|
-
</script>
|
106
|
-
<style scoped lang="scss">
|
107
|
-
::v-deep .tab-boxOnly > .el-tabs__header {
|
108
|
-
position: absolute;
|
109
|
-
right: 130px;
|
110
|
-
top: 0;
|
111
|
-
}
|
76
|
+
this.$emit('confirm', widgetList)
|
77
|
+
}
|
112
78
|
|
113
|
-
::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
|
114
|
-
.detail-wrap .d-cont {
|
115
|
-
height: calc(100vh - 158px) !important
|
116
|
-
}
|
117
|
-
|
118
|
-
.grid-height {
|
119
|
-
height: calc(100vh - 126px) !important
|
120
79
|
}
|
121
80
|
}
|
122
|
-
|
123
|
-
::v-deep .designer-drawer.is-fullscreen .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
|
124
|
-
.detail-wrap .d-cont {
|
125
|
-
height: calc(100vh - 116px) !important
|
126
|
-
}
|
127
|
-
|
128
|
-
.grid-height {
|
129
|
-
height: calc(100vh - 84px) !important
|
130
|
-
}
|
131
|
-
}
|
132
|
-
</style>
|
81
|
+
</script>
|
@@ -13,8 +13,6 @@
|
|
13
13
|
width="1220px"
|
14
14
|
v-dialog-drag
|
15
15
|
@closed="closeHandle"
|
16
|
-
:fullscreen="true"
|
17
|
-
:append-to-body="true"
|
18
16
|
>
|
19
17
|
<div class="cont">
|
20
18
|
<el-table
|
@@ -356,7 +354,6 @@
|
|
356
354
|
{{ i18nt("designer.hint.confirm") }}
|
357
355
|
</el-button>
|
358
356
|
</div>
|
359
|
-
<columnRenderDialog :column="currentTableColumn" v-if="showColumnRenderDialog" :visiable.sync="showColumnRenderDialog" @confirm="confirmWidgetRenderDialog"></columnRenderDialog>
|
360
357
|
</el-dialog>
|
361
358
|
<el-dialog
|
362
359
|
v-if="showRenderDialogFlag"
|
@@ -493,6 +490,7 @@
|
|
493
490
|
</el-button>
|
494
491
|
</div>
|
495
492
|
</el-dialog>
|
493
|
+
<columnRenderDialog :column="currentTableColumn" v-if="showColumnRenderDialog" :visiable.sync="showColumnRenderDialog" @confirm="confirmWidgetRenderDialog"></columnRenderDialog>
|
496
494
|
</div>
|
497
495
|
</template>
|
498
496
|
<script>
|
@@ -209,7 +209,7 @@
|
|
209
209
|
:field="getRowWidget(obj)"
|
210
210
|
:form-model="globalModel.formModel"
|
211
211
|
:designer="null"
|
212
|
-
:key="obj
|
212
|
+
:key="getRowWidgetKey(obj)"
|
213
213
|
:parent-widget="widget"
|
214
214
|
:columnConfig="obj.column.params.columnConfig"
|
215
215
|
:subFormRowIndex="obj.rowIndex"
|
@@ -198,6 +198,12 @@ modules = {
|
|
198
198
|
}
|
199
199
|
return this.widgetMap[key];
|
200
200
|
},
|
201
|
+
getRowWidgetKey(rowParam) {
|
202
|
+
let row = rowParam.row;
|
203
|
+
let params = rowParam.column.params;
|
204
|
+
let key = this.getRowRefKey(row, params.widget.options.name);
|
205
|
+
return key;
|
206
|
+
},
|
201
207
|
getGridTableName() {
|
202
208
|
let formCode = this.getFormRef().reportTemplate.formCode;
|
203
209
|
let tableName = formCode + "_" + this.widget.options.name;
|
@@ -75,20 +75,13 @@
|
|
75
75
|
<tr>
|
76
76
|
<th>{{ $t1('数据库表名') }}</th>
|
77
77
|
<td colspan="3">
|
78
|
-
<
|
79
|
-
<el-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
<
|
84
|
-
{{ szTaMb.taBm }}
|
85
|
-
</template>
|
78
|
+
<el-form-item prop="taBm" :rules="[{ required: false, trigger: ['blur', 'change'] }]">
|
79
|
+
<el-input type="text" autocomplete="off" v-model="szTaMb.taBm" clearable :disabled="!!dataId"/>
|
80
|
+
</el-form-item>
|
81
|
+
</td>
|
82
|
+
<td colspan="4">
|
83
|
+
<span class="fl tips">{{ $t1('注:数据库表名必须定义为:1、与实体名称一样,2、表单分类数据表前缀_实体名称。') }}</span>
|
86
84
|
</td>
|
87
|
-
<template v-if="!dataId">
|
88
|
-
<td colspan="4">
|
89
|
-
<span class="fl tips">{{ $t1('注:数据库表名必须定义为:1、与实体名称一样,2、表单分类数据表前缀_实体名称。') }}</span>
|
90
|
-
</td>
|
91
|
-
</template>
|
92
85
|
</tr>
|
93
86
|
<tr>
|
94
87
|
<th>
|