cloud-web-corejs 1.0.54-dev.460 → 1.0.54-dev.462
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/App.vue +1 -3
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +71 -50
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +4 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +2 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +10 -8
- package/src/views/bd/setting/form_script/form_list.vue +99 -37
- package/src/views/bd/setting/form_script/list1.vue +181 -118
- package/src/views/bd/setting/form_template/list.vue +326 -214
- package/src/views/bd/setting/menu_kind/list.vue +172 -87
- package/src/views/bd/setting/table_model/list.vue +190 -128
|
@@ -1,214 +1,326 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="containt">
|
|
3
|
-
<x-tabs ref="xTabs" v-model="activeName" class="tab-box" paneKeyName="formCode">
|
|
4
|
-
<el-tab-pane :label="$t1('常规')" name="first">
|
|
5
|
-
<editView
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
{{ $t1(
|
|
64
|
-
</vxe-button>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</vxe-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
</
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
</
|
|
1
|
+
<template>
|
|
2
|
+
<div id="containt">
|
|
3
|
+
<x-tabs ref="xTabs" v-model="activeName" class="tab-box" paneKeyName="formCode">
|
|
4
|
+
<el-tab-pane :label="$t1('常规')" name="first">
|
|
5
|
+
<editView
|
|
6
|
+
v-if="showEdit"
|
|
7
|
+
visible-key="showEdit"
|
|
8
|
+
:_dataId.sync="dataId"
|
|
9
|
+
:currentFormType="currentFormType"
|
|
10
|
+
:parent-target="_self"
|
|
11
|
+
@reload="$reloadHandle"
|
|
12
|
+
@openDesignDialog="openDesingerDialogByChild"
|
|
13
|
+
:otherFlag="otherFlag"
|
|
14
|
+
></editView>
|
|
15
|
+
</el-tab-pane>
|
|
16
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
|
17
|
+
<div class="tree-box fl">
|
|
18
|
+
<div class="tit">
|
|
19
|
+
<b>{{ $t1("表单分类") }}</b>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="tree-btns" style="margin-top: 10px"></div>
|
|
22
|
+
<el-tree
|
|
23
|
+
v-if="showTree"
|
|
24
|
+
:props="defaultProps"
|
|
25
|
+
:load="loadNode"
|
|
26
|
+
node-key="id"
|
|
27
|
+
ref="tree"
|
|
28
|
+
highlight-current
|
|
29
|
+
lazy
|
|
30
|
+
:expand-on-click-node="false"
|
|
31
|
+
@node-click="handleNodeClick"
|
|
32
|
+
class="tree-list"
|
|
33
|
+
icon-class="el-icon-arrow-down"
|
|
34
|
+
></el-tree>
|
|
35
|
+
</div>
|
|
36
|
+
<label id="labBtn">
|
|
37
|
+
<div class="icon">
|
|
38
|
+
<i class="el-icon-more"></i>
|
|
39
|
+
<i class="el-icon-more"></i>
|
|
40
|
+
</div>
|
|
41
|
+
</label>
|
|
42
|
+
<div class="main-right fr" style="padding-left: 6px">
|
|
43
|
+
<div class="grid-height">
|
|
44
|
+
<vxe-grid
|
|
45
|
+
ref="table-m1"
|
|
46
|
+
v-bind="vxeOption"
|
|
47
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
48
|
+
@custom="$vxeTableUtil.customHandle"
|
|
49
|
+
>
|
|
50
|
+
<template #form>
|
|
51
|
+
<tableForm
|
|
52
|
+
:formData.sync="formData"
|
|
53
|
+
@searchEvent="searchEvent"
|
|
54
|
+
@resetEvent="resetEvent"
|
|
55
|
+
>
|
|
56
|
+
<template #buttonLeft>
|
|
57
|
+
<vxe-button
|
|
58
|
+
status="primary"
|
|
59
|
+
class="button-sty"
|
|
60
|
+
icon="el-icon-plus"
|
|
61
|
+
@click="openEditDialog()"
|
|
62
|
+
v-if="isDev && currentFormType.addAuth === 1"
|
|
63
|
+
>{{ $t1("新增") }}
|
|
64
|
+
</vxe-button>
|
|
65
|
+
<vxe-button
|
|
66
|
+
status="success"
|
|
67
|
+
class="button-sty"
|
|
68
|
+
icon="el-icon-download"
|
|
69
|
+
@click="jsonImport"
|
|
70
|
+
>{{ $t1("导入发布") }}
|
|
71
|
+
</vxe-button>
|
|
72
|
+
<vxe-button
|
|
73
|
+
status="success"
|
|
74
|
+
class="button-sty"
|
|
75
|
+
icon="el-icon-upload2"
|
|
76
|
+
@click="jsonExport"
|
|
77
|
+
v-if="isDev && currentFormType.exportAuth === 1"
|
|
78
|
+
>{{ $t1("导出发布") }}
|
|
79
|
+
</vxe-button>
|
|
80
|
+
<projectTagAddButton
|
|
81
|
+
:option="addProjectTagOption"
|
|
82
|
+
v-if="isDev && (currentFormType.editAuth === 1 || otherFlag)"
|
|
83
|
+
></projectTagAddButton>
|
|
84
|
+
<projectTagDeleteButton
|
|
85
|
+
:option="deleteProjectTagOption"
|
|
86
|
+
v-if="isDev && (currentFormType.editAuth === 1 || otherFlag)"
|
|
87
|
+
></projectTagDeleteButton>
|
|
88
|
+
</template>
|
|
89
|
+
<template #buttonRight>
|
|
90
|
+
<vxe-button
|
|
91
|
+
icon="el-icon-brush"
|
|
92
|
+
class="button-sty"
|
|
93
|
+
@click="resetEvent"
|
|
94
|
+
type="text"
|
|
95
|
+
status="primary"
|
|
96
|
+
plain
|
|
97
|
+
>{{ $t1("重置") }}
|
|
98
|
+
</vxe-button>
|
|
99
|
+
<vxe-button
|
|
100
|
+
status="warning"
|
|
101
|
+
icon="el-icon-search"
|
|
102
|
+
class="button-sty"
|
|
103
|
+
@click="searchEvent"
|
|
104
|
+
>
|
|
105
|
+
{{ $t1("搜索") }}
|
|
106
|
+
</vxe-button>
|
|
107
|
+
</template>
|
|
108
|
+
<template #menuKindName>
|
|
109
|
+
<vxe-form-item :title="$t1('表单分类') + ':'" field="tag">
|
|
110
|
+
<template v-slot>
|
|
111
|
+
<el-input v-model="currentMenuKindName" disabled></el-input>
|
|
112
|
+
</template>
|
|
113
|
+
</vxe-form-item>
|
|
114
|
+
</template>
|
|
115
|
+
<template #tag>
|
|
116
|
+
<vxe-form-item :title="$t1('项目标签') + ':'" field="tag">
|
|
117
|
+
<template v-slot>
|
|
118
|
+
<el-input
|
|
119
|
+
class="search-input"
|
|
120
|
+
max="200"
|
|
121
|
+
:value="getTabNames()"
|
|
122
|
+
@clear="checkTags = []"
|
|
123
|
+
v-el-readonly
|
|
124
|
+
clearable
|
|
125
|
+
>
|
|
126
|
+
<i
|
|
127
|
+
slot="suffix"
|
|
128
|
+
class="el-input__icon el-icon-search"
|
|
129
|
+
@click="openProjectTagDialog3"
|
|
130
|
+
></i>
|
|
131
|
+
</el-input>
|
|
132
|
+
</template>
|
|
133
|
+
</vxe-form-item>
|
|
134
|
+
</template>
|
|
135
|
+
</tableForm>
|
|
136
|
+
</template>
|
|
137
|
+
<template #tag="{ row }">
|
|
138
|
+
<projectTagView
|
|
139
|
+
v-model="row.formTemplateTagDTOs"
|
|
140
|
+
:readonly="true"
|
|
141
|
+
></projectTagView>
|
|
142
|
+
</template>
|
|
143
|
+
</vxe-grid>
|
|
144
|
+
<el-drawer
|
|
145
|
+
:title="$t1('流程模板')"
|
|
146
|
+
:visible.sync="showItemView"
|
|
147
|
+
:modal="false"
|
|
148
|
+
:wrapperClosable="false"
|
|
149
|
+
:destroy-on-close="true"
|
|
150
|
+
size="90%"
|
|
151
|
+
direction="btt"
|
|
152
|
+
>
|
|
153
|
+
<itemList
|
|
154
|
+
v-if="showItemView"
|
|
155
|
+
:formTemplate="currentRow"
|
|
156
|
+
@openWfDesignDialog="openWfDesignDialog"
|
|
157
|
+
></itemList>
|
|
158
|
+
</el-drawer>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
</el-tab-pane>
|
|
162
|
+
<template #editTab="{ tab, index, reloadTabContent }">
|
|
163
|
+
<el-tab-pane
|
|
164
|
+
:key="tab.data.id"
|
|
165
|
+
:label.sync="tab.data.formName"
|
|
166
|
+
:name="tab.data.formCode"
|
|
167
|
+
:closable="true"
|
|
168
|
+
>
|
|
169
|
+
<editView
|
|
170
|
+
v-if="tab.showContent"
|
|
171
|
+
:_dataId="tab.dataId"
|
|
172
|
+
:currentFormType="currentFormType"
|
|
173
|
+
:parent-target="_self"
|
|
174
|
+
@reload="reloadTabContent"
|
|
175
|
+
@openDesignDialog="openDesingerDialogByChild"
|
|
176
|
+
:otherFlag="otherFlag"
|
|
177
|
+
></editView>
|
|
178
|
+
</el-tab-pane>
|
|
179
|
+
</template>
|
|
180
|
+
</x-tabs>
|
|
181
|
+
<el-drawer
|
|
182
|
+
:title="$t1('表单设计({formName})', { formName })"
|
|
183
|
+
:visible.sync="showDesingerDialog"
|
|
184
|
+
:modal="false"
|
|
185
|
+
:destroy-on-close="true"
|
|
186
|
+
size="100%"
|
|
187
|
+
direction="rtl"
|
|
188
|
+
:before-close="closeFormDesignwinEvent"
|
|
189
|
+
:append-to-body="false"
|
|
190
|
+
class="designer-drawer"
|
|
191
|
+
:class="[isFullscreen ? 'is-fullscreen' : '']"
|
|
192
|
+
@close="handleFormDesignClose"
|
|
193
|
+
>
|
|
194
|
+
<el-tabs v-model="formDesTabs" type="card" class="tab-boxOnly" :stretch="true">
|
|
195
|
+
<el-tab-pane :label="$t1('设计器')" name="first">
|
|
196
|
+
<designer
|
|
197
|
+
ref="designer"
|
|
198
|
+
:formCode.sync="formCode"
|
|
199
|
+
@reflushTemplateList="reflushTemplateList"
|
|
200
|
+
:readonly="designerReadonly"
|
|
201
|
+
></designer>
|
|
202
|
+
</el-tab-pane>
|
|
203
|
+
<el-tab-pane :label="$t1('后端脚本')" name="second">
|
|
204
|
+
<formScriptList
|
|
205
|
+
:formCode="formCode"
|
|
206
|
+
:formTemplate="currentFormTemplate"
|
|
207
|
+
v-if="showFormScriptList"
|
|
208
|
+
></formScriptList>
|
|
209
|
+
</el-tab-pane>
|
|
210
|
+
</el-tabs>
|
|
211
|
+
<el-button class="isFullIcon" v-if="!isFullscreen" @click="handleFullscreen">
|
|
212
|
+
<el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
|
|
213
|
+
<i class="iconfont icon-quanping"></i>
|
|
214
|
+
</el-tooltip>
|
|
215
|
+
</el-button>
|
|
216
|
+
<el-button class="isFullIcon" v-else @click="handleFullscreen">
|
|
217
|
+
<el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
|
|
218
|
+
<i class="iconfont icon-suoxiao"></i>
|
|
219
|
+
</el-tooltip>
|
|
220
|
+
</el-button>
|
|
221
|
+
</el-drawer>
|
|
222
|
+
|
|
223
|
+
<el-dialog
|
|
224
|
+
:title="$t1('流程设计')"
|
|
225
|
+
:append-to-body="true"
|
|
226
|
+
:modal-append-to-body="true"
|
|
227
|
+
:close-on-click-modal="false"
|
|
228
|
+
v-if="showWfDialog"
|
|
229
|
+
:visible.sync="showWfDialog"
|
|
230
|
+
:modal="false"
|
|
231
|
+
custom-class="dialog-style designer-dialog"
|
|
232
|
+
width="100%"
|
|
233
|
+
height="100%"
|
|
234
|
+
top="0px"
|
|
235
|
+
bottom="0px"
|
|
236
|
+
:before-close="closeDesignwinEvent"
|
|
237
|
+
:destroy-on-close="true"
|
|
238
|
+
v-el-drag-dialog
|
|
239
|
+
>
|
|
240
|
+
<iframe
|
|
241
|
+
:src="wfUrl"
|
|
242
|
+
:style="'width:100%;height:' + ($root.$el.clientHeight - 30 - 12) + 'px'"
|
|
243
|
+
></iframe>
|
|
244
|
+
</el-dialog>
|
|
245
|
+
|
|
246
|
+
<userDialog
|
|
247
|
+
v-if="showUserDialog"
|
|
248
|
+
:visiable.sync="showUserDialog"
|
|
249
|
+
@confirm="confirmUser"
|
|
250
|
+
:multi.sync="wfAssignMulti"
|
|
251
|
+
/>
|
|
252
|
+
<positionDialog
|
|
253
|
+
v-if="showPositionDialog"
|
|
254
|
+
:visiable.sync="showPositionDialog"
|
|
255
|
+
@confirm="confirmPosition"
|
|
256
|
+
/>
|
|
257
|
+
<scriptDescriptionDialog
|
|
258
|
+
path="static/readme/Wf.txt"
|
|
259
|
+
v-if="showScriptDescriptionDialog"
|
|
260
|
+
:visiable.sync="showScriptDescriptionDialog"
|
|
261
|
+
></scriptDescriptionDialog>
|
|
262
|
+
|
|
263
|
+
<formTypeEditDialog
|
|
264
|
+
v-if="showFormTypeDialog"
|
|
265
|
+
:visiable.sync="showFormTypeDialog"
|
|
266
|
+
:_dataId.sync="editFormTypeId"
|
|
267
|
+
@confirm="confirmFormTypeEditDialog"
|
|
268
|
+
></formTypeEditDialog>
|
|
269
|
+
|
|
270
|
+
<ftHistoryDialog
|
|
271
|
+
v-if="showFtHistoryDialog"
|
|
272
|
+
:visiable.sync="showFtHistoryDialog"
|
|
273
|
+
:formCode.sync="operateFtHistory.formCode"
|
|
274
|
+
@confirm="confirmFtHistoryDialog"
|
|
275
|
+
:multi="false"
|
|
276
|
+
/>
|
|
277
|
+
<projectTagDialog
|
|
278
|
+
v-if="showProjectTagDialog3"
|
|
279
|
+
:visiable.sync="showProjectTagDialog3"
|
|
280
|
+
@confirm="confirmProjectTagDialog3"
|
|
281
|
+
:rows="checkTags"
|
|
282
|
+
:multi="true"
|
|
283
|
+
></projectTagDialog>
|
|
284
|
+
</div>
|
|
285
|
+
</template>
|
|
286
|
+
|
|
287
|
+
<script>
|
|
288
|
+
import mixin from "./mixins/list";
|
|
289
|
+
|
|
290
|
+
export default {
|
|
291
|
+
name: "bd_form_template:list",
|
|
292
|
+
mixins: [mixin],
|
|
293
|
+
};
|
|
294
|
+
</script>
|
|
295
|
+
<style scoped lang="scss">
|
|
296
|
+
::v-deep .tab-boxOnly > .el-tabs__header {
|
|
297
|
+
position: absolute;
|
|
298
|
+
right: 130px;
|
|
299
|
+
top: 0;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
|
|
303
|
+
.detail-wrap .d-cont {
|
|
304
|
+
height: calc(100vh - 158px) !important;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.grid-height {
|
|
308
|
+
height: calc(100vh - 126px) !important;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
::v-deep
|
|
313
|
+
.designer-drawer.is-fullscreen
|
|
314
|
+
.tab-boxOnly
|
|
315
|
+
> .el-tabs__content
|
|
316
|
+
.el-tab-pane
|
|
317
|
+
.el-tab-pane {
|
|
318
|
+
.detail-wrap .d-cont {
|
|
319
|
+
height: calc(100vh - 116px) !important;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.grid-height {
|
|
323
|
+
height: calc(100vh - 84px) !important;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
</style>
|