cloud-web-corejs 1.0.129 → 1.0.130
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/VabUpload/view.vue +138 -55
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/errorMsg/mixins.js +1 -2
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/jsonImport/mixins.js +2 -1
- package/src/components/langImport/mixins.js +17 -16
- package/src/components/wf/content.vue +772 -411
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/xform/form-designer/designer.js +3 -2
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -9
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +17 -4
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +4 -0
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +185 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +13 -4
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
- package/src/components/xform/form-designer/indexMixin.js +3 -2
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +376 -366
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +0 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +372 -253
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +9 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +7 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +37 -30
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +19 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +5 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -19
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +132 -0
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
- package/src/components/xform/lang/zh-CN.js +3 -0
- package/src/components/xform/utils/util.js +1 -1451
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1 -1
- package/src/views/user/notify_message/dialog.vue +24 -19
- package/src/views/user/outLink/form_view.vue +211 -211
- package/src/views/user/wf/wfReport/index.vue +448 -0
- package/src/views/user/wf/wf_manage/list.vue +344 -251
- package/src/views/user/wf/wf_transfer_setting/edit.vue +229 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +308 -0
package/package.json
CHANGED
@@ -1,60 +1,120 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
3
|
<div id="uploadImage" :class="classList">
|
4
|
-
<div
|
5
|
-
|
4
|
+
<div
|
5
|
+
class="upload-list"
|
6
|
+
model="singer"
|
7
|
+
v-for="(attachment, index) in attachments"
|
8
|
+
:key="index"
|
9
|
+
style="display: inline-block; vertical-align: middle; float: left"
|
10
|
+
>
|
6
11
|
<template v-if="$attrs.hideInfo !== true && $attrs.hideInfo !== 'true'">
|
7
12
|
<div class="upload-box">
|
8
13
|
<ul class="el-upload-list el-upload-list--picture">
|
9
14
|
<li tabindex="0" class="el-upload-list__item">
|
10
15
|
<div>
|
11
16
|
<div class="el-upload-list__item-thumbnail">
|
12
|
-
<div
|
13
|
-
class="
|
17
|
+
<div
|
18
|
+
class="show-video"
|
19
|
+
v-if="hasPreview(attachment)"
|
20
|
+
@click="openPreview(attachment, index)"
|
21
|
+
>
|
22
|
+
<i class="icon-chakan"></i>
|
23
|
+
</div>
|
14
24
|
<p>
|
15
25
|
<el-image
|
16
26
|
:src="getShowUrl(attachment)"
|
17
|
-
@click="openPreview(attachment,index)"
|
27
|
+
@click="openPreview(attachment, index)"
|
18
28
|
:z-index="999999"
|
19
29
|
/>
|
20
30
|
</p>
|
21
31
|
</div>
|
22
32
|
<div class="el-upload-list__item-name">
|
23
|
-
<el-tooltip
|
24
|
-
|
25
|
-
|
33
|
+
<el-tooltip
|
34
|
+
:enterable="false"
|
35
|
+
class="item"
|
36
|
+
effect="dark"
|
37
|
+
:content="getAttachmentName(attachment)"
|
38
|
+
placement="top"
|
39
|
+
>
|
40
|
+
<p v-if="$attrs.hideName !== true">
|
41
|
+
{{ getAttachmentName(attachment) }}
|
42
|
+
</p>
|
26
43
|
</el-tooltip>
|
27
44
|
<p v-if="$attrs.showSize === true || $attrs.showSize === 'true'">
|
28
|
-
{{ formatFileSize(attachment.fileSize) }}
|
29
|
-
|
45
|
+
{{ formatFileSize(attachment.fileSize) }}
|
46
|
+
</p>
|
47
|
+
<!-- <p v-if="$attrs.showSortInput !== true && !dataType && $attrs.createBy !== false">
|
30
48
|
{{ attachment.createBy }}</p>-->
|
31
|
-
<p
|
32
|
-
|
49
|
+
<p
|
50
|
+
v-if="
|
51
|
+
$attrs.showSortInput !== true &&
|
52
|
+
!dataType &&
|
53
|
+
$attrs.createDate !== false
|
54
|
+
"
|
55
|
+
>
|
56
|
+
{{ attachment.createDate }}
|
57
|
+
</p>
|
33
58
|
</div>
|
34
59
|
<div class="el-upload-input" v-if="$attrs.showSortInput">
|
35
|
-
<base-input-number
|
36
|
-
|
60
|
+
<base-input-number
|
61
|
+
v-model="attachment.orders"
|
62
|
+
class="button-sty"
|
63
|
+
:placeholder="$t2('序号', 'components.VabUpload.orders')"
|
64
|
+
:scale="0"
|
65
|
+
/>
|
37
66
|
</div>
|
38
67
|
<div class="el-upload-input" v-if="$attrs.showNameInput">
|
39
|
-
<el-input
|
40
|
-
|
68
|
+
<el-input
|
69
|
+
v-model="attachment.name"
|
70
|
+
class="button-sty"
|
71
|
+
:placeholder="$t2('请输入名称', 'components.VabUpload.name')"
|
72
|
+
:scale="0"
|
73
|
+
/>
|
41
74
|
</div>
|
42
|
-
<div class="el-upload-list__item-status-label"
|
75
|
+
<div class="el-upload-list__item-status-label">
|
76
|
+
<i class="el-icon-upload-success el-icon-check"></i>
|
43
77
|
</div>
|
44
|
-
<div
|
45
|
-
|
46
|
-
|
78
|
+
<div
|
79
|
+
class="el-icon-close"
|
80
|
+
@click="deleteFile(index)"
|
81
|
+
v-if="
|
82
|
+
$attrs.edit !== false &&
|
83
|
+
$attrs.edit !== 'false' &&
|
84
|
+
attachment.h5 !== 1
|
85
|
+
"
|
86
|
+
>
|
87
|
+
<i
|
88
|
+
class="el-tooltip iconfont iconshanchu"
|
89
|
+
aria-describedby="el-tooltip-6144"
|
90
|
+
tabindex="0"
|
91
|
+
></i>
|
47
92
|
</div>
|
48
|
-
<div class="el-icon-tagEdit" v-if="attachment.h5!==1">
|
49
|
-
<el-tooltip
|
50
|
-
|
51
|
-
|
52
|
-
|
93
|
+
<div class="el-icon-tagEdit" v-if="attachment.h5 !== 1">
|
94
|
+
<el-tooltip
|
95
|
+
class="item"
|
96
|
+
effect="dark"
|
97
|
+
:content="$t2('下载', 'system.button.download')"
|
98
|
+
placement="top"
|
99
|
+
>
|
100
|
+
<i class="el-icon-download" @click="downloadFile(attachment)"></i>
|
53
101
|
</el-tooltip>
|
54
|
-
<el-tooltip
|
55
|
-
|
56
|
-
|
57
|
-
|
102
|
+
<el-tooltip
|
103
|
+
class="item"
|
104
|
+
effect="dark"
|
105
|
+
:content="$t2('详情', 'components.VabUpload.detail')"
|
106
|
+
placement="top"
|
107
|
+
v-if="
|
108
|
+
attachment &&
|
109
|
+
attachment.id &&
|
110
|
+
$attrs.showProperties !== false &&
|
111
|
+
!dataType
|
112
|
+
"
|
113
|
+
>
|
114
|
+
<i
|
115
|
+
class="iconfont icon-shuxing"
|
116
|
+
@click="openPropertiesDialog(attachment)"
|
117
|
+
></i>
|
58
118
|
</el-tooltip>
|
59
119
|
</div>
|
60
120
|
</div>
|
@@ -66,19 +126,27 @@
|
|
66
126
|
<a>
|
67
127
|
<el-image
|
68
128
|
:src="getShowUrl(attachment)"
|
69
|
-
@click="openPreview(attachment,index)"
|
129
|
+
@click="openPreview(attachment, index)"
|
70
130
|
:z-index="999999"
|
71
131
|
/>
|
72
132
|
</a>
|
73
|
-
<a
|
74
|
-
|
133
|
+
<a
|
134
|
+
href="javascript:void(0);"
|
135
|
+
class="del"
|
136
|
+
@click="deleteFile(index)"
|
137
|
+
v-if="$attrs.edit !== false && $attrs.edit !== 'false'"
|
138
|
+
><i class="el-icon-error"></i
|
139
|
+
></a>
|
75
140
|
</template>
|
76
141
|
</div>
|
77
|
-
<div
|
78
|
-
|
142
|
+
<div
|
143
|
+
class="el-upload el-upload--picture"
|
144
|
+
style="vertical-align: middle; display: inline-block; float: left"
|
145
|
+
v-if="$attrs.edit !== false && $attrs.edit !== 'false'"
|
146
|
+
>
|
79
147
|
<button
|
80
148
|
type="button"
|
81
|
-
class="
|
149
|
+
class="avatar-uploader"
|
82
150
|
v-if="showUploadBtn"
|
83
151
|
@keyup.prevent
|
84
152
|
@keydown.enter.prevent
|
@@ -87,15 +155,15 @@
|
|
87
155
|
..._props,
|
88
156
|
...$attrs,
|
89
157
|
limit: limit,
|
90
|
-
multi:multi,
|
158
|
+
multi: multi,
|
91
159
|
accept: accept ? accept : 'file',
|
92
160
|
auto: auto,
|
93
161
|
size: fileMaxSize,
|
94
162
|
chunkSize: chunkSize,
|
95
163
|
callback: fileConfirm,
|
96
|
-
pickPrivateProfile:pickPrivateProfile,
|
97
|
-
confirmUpload:confirmUpload,
|
98
|
-
otherParams
|
164
|
+
pickPrivateProfile: pickPrivateProfile,
|
165
|
+
confirmUpload: confirmUpload,
|
166
|
+
otherParams: $attrs,
|
99
167
|
})
|
100
168
|
"
|
101
169
|
>
|
@@ -103,33 +171,48 @@
|
|
103
171
|
</button>
|
104
172
|
</div>
|
105
173
|
</div>
|
106
|
-
<propertiesDialog
|
107
|
-
|
108
|
-
|
109
|
-
|
174
|
+
<propertiesDialog
|
175
|
+
v-if="showPropertiesDialog"
|
176
|
+
:visiable.sync="showPropertiesDialog"
|
177
|
+
:editAttachment.sync="editAttachment"
|
178
|
+
:edit.sync="$attrs.edit"
|
179
|
+
></propertiesDialog>
|
180
|
+
<el-image-viewer
|
181
|
+
v-if="showViewer"
|
182
|
+
:on-close="closeViewer"
|
183
|
+
:initial-index.sync="chooseIndex"
|
184
|
+
:url-list="pictureDtoList"
|
185
|
+
/>
|
110
186
|
</div>
|
111
187
|
</template>
|
112
188
|
|
113
189
|
<script>
|
114
|
-
import {viewMixins} from
|
190
|
+
import { viewMixins } from "./mixins";
|
115
191
|
|
116
192
|
export default {
|
117
193
|
mixins: [viewMixins],
|
118
|
-
components: {
|
119
|
-
|
120
|
-
|
194
|
+
components: {
|
195
|
+
propertiesDialog: () => import("./propertiesDialog.vue"),
|
196
|
+
ElImageViewer: () => import("./image-viewer"),
|
197
|
+
},
|
198
|
+
computed: {
|
199
|
+
classList() {
|
121
200
|
// 'upload-img': this.dataType || (this.$attrs.hideInfo == true || this.$attrs.hideInfo == 'true')
|
122
201
|
let arr = [];
|
123
|
-
if
|
124
|
-
|
202
|
+
if (
|
203
|
+
this.dataType ||
|
204
|
+
this.$attrs.hideInfo == true ||
|
205
|
+
this.$attrs.hideInfo == "true"
|
206
|
+
) {
|
207
|
+
arr.push("upload-img");
|
125
208
|
}
|
126
|
-
let widgetSize = this.$attrs.widgetSize || 2
|
127
|
-
if(widgetSize){
|
128
|
-
let str1 = "widgetSize-" + widgetSize
|
129
|
-
arr.push(str1)
|
209
|
+
let widgetSize = this.$attrs.widgetSize || 2;
|
210
|
+
if (widgetSize) {
|
211
|
+
let str1 = "widgetSize-" + widgetSize;
|
212
|
+
arr.push(str1);
|
130
213
|
}
|
131
|
-
return arr
|
214
|
+
return arr;
|
132
215
|
},
|
133
|
-
}
|
216
|
+
},
|
134
217
|
};
|
135
218
|
</script>
|