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.
Files changed (52) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/view.vue +138 -55
  3. package/src/components/baseInputExport/mixins.js +1 -1
  4. package/src/components/errorMsg/mixins.js +1 -2
  5. package/src/components/excelImport/mixins.js +2 -1
  6. package/src/components/jsonImport/mixins.js +2 -1
  7. package/src/components/langImport/mixins.js +17 -16
  8. package/src/components/wf/content.vue +772 -411
  9. package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
  10. package/src/components/wf/wf.js +1 -1
  11. package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
  12. package/src/components/xform/form-designer/designer.js +3 -2
  13. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
  14. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -9
  15. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
  16. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2 -1
  17. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +3 -1
  18. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +17 -4
  19. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +4 -0
  20. package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +185 -0
  21. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
  22. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
  23. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
  24. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +13 -4
  25. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
  26. package/src/components/xform/form-designer/indexMixin.js +3 -2
  27. package/src/components/xform/form-designer/setting-panel/form-setting.vue +1 -1
  28. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +376 -366
  29. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +0 -1
  30. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +372 -253
  31. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +9 -43
  32. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +7 -0
  33. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
  34. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
  35. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +37 -30
  36. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
  37. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +19 -14
  38. package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
  39. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +5 -1
  40. package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -19
  41. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +132 -0
  42. package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
  43. package/src/components/xform/lang/zh-CN.js +3 -0
  44. package/src/components/xform/utils/util.js +1 -1451
  45. package/src/utils/request.js +1 -1
  46. package/src/utils/vab.js +1 -1
  47. package/src/views/user/notify_message/dialog.vue +24 -19
  48. package/src/views/user/outLink/form_view.vue +211 -211
  49. package/src/views/user/wf/wfReport/index.vue +448 -0
  50. package/src/views/user/wf/wf_manage/list.vue +344 -251
  51. package/src/views/user/wf/wf_transfer_setting/edit.vue +229 -0
  52. package/src/views/user/wf/wf_transfer_setting/list.vue +308 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.129",
4
+ "version": "1.0.130",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -1,60 +1,120 @@
1
1
  <template>
2
2
  <div>
3
3
  <div id="uploadImage" :class="classList">
4
- <div class="upload-list" model="singer" v-for="(attachment, index) in attachments" :key="index"
5
- style="display: inline-block;vertical-align: middle;float: left;">
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 class="show-video" v-if="hasPreview(attachment)" @click="openPreview(attachment,index)"><i
13
- class="icon-chakan"></i></div>
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 :enterable="false" class="item" effect="dark" :content="getAttachmentName(attachment)"
24
- placement="top">
25
- <p v-if="$attrs.hideName !== true">{{ getAttachmentName(attachment) }}</p>
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) }}</p>
29
- <!-- <p v-if="$attrs.showSortInput !== true && !dataType && $attrs.createBy !== false">
45
+ {{ formatFileSize(attachment.fileSize) }}
46
+ </p>
47
+ <!-- <p v-if="$attrs.showSortInput !== true && !dataType && $attrs.createBy !== false">
30
48
  {{ attachment.createBy }}</p>-->
31
- <p v-if="$attrs.showSortInput !== true && !dataType && $attrs.createDate !== false">
32
- {{ attachment.createDate }}</p>
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 v-model="attachment.orders" class="button-sty"
36
- :placeholder="$t2('序号', 'components.VabUpload.orders')" :scale="0"/>
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 v-model="attachment.name" class="button-sty"
40
- :placeholder="$t2('请输入名称', 'components.VabUpload.name')" :scale="0"/>
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"><i class="el-icon-upload-success el-icon-check"></i>
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 class="el-icon-close" @click="deleteFile(index)"
45
- v-if="$attrs.edit !== false && $attrs.edit !== 'false' && attachment.h5!==1">
46
- <i class="el-tooltip iconfont iconshanchu" aria-describedby="el-tooltip-6144" tabindex="0"></i>
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 class="item" effect="dark" :content="$t2('下载', 'system.button.download')"
50
- placement="top">
51
- <i class="el-icon-download"
52
- @click="downloadFile(attachment)"></i>
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 class="item" effect="dark" :content="$t2('详情', 'components.VabUpload.detail')"
55
- placement="top"
56
- v-if="attachment && attachment.id && $attrs.showProperties!==false && !dataType">
57
- <i class="iconfont icon-shuxing" @click="openPropertiesDialog(attachment)"></i>
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 href="javascript:void(0);" class="del" @click="deleteFile(index)"
74
- v-if="$attrs.edit !== false && $attrs.edit !== 'false'"><i class="el-icon-error"></i></a>
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 class="el-upload el-upload--picture" style="vertical-align: middle;display: inline-block;float:left"
78
- v-if="$attrs.edit !== false && $attrs.edit !== 'false'">
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=" avatar-uploader"
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:$attrs
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 v-if="showPropertiesDialog" :visiable.sync="showPropertiesDialog"
107
- :editAttachment.sync="editAttachment" :edit.sync="$attrs.edit"></propertiesDialog>
108
- <el-image-viewer v-if="showViewer" :on-close="closeViewer" :initial-index.sync="chooseIndex"
109
- :url-list="pictureDtoList"/>
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 './mixins';
190
+ import { viewMixins } from "./mixins";
115
191
 
116
192
  export default {
117
193
  mixins: [viewMixins],
118
- components: {propertiesDialog: () => import('./propertiesDialog.vue'), ElImageViewer: () => import('./image-viewer')},
119
- computed:{
120
- classList(){
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(this.dataType || (this.$attrs.hideInfo == true || this.$attrs.hideInfo == 'true')){
124
- arr.push('upload-img')
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>