cloud-web-corejs 1.0.108 → 1.0.110

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 (58) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/mixins.js +1 -1
  3. package/src/components/VabUpload/propertiesDialog.vue +1 -1
  4. package/src/components/VabUpload/view.vue +2 -2
  5. package/src/components/baseAttachment/index.vue +49 -49
  6. package/src/components/baseAttachment/mixins.js +1 -1
  7. package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
  8. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
  9. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
  10. package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
  11. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
  12. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +5 -3
  13. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +104 -45
  14. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
  15. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +18 -17
  16. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
  17. package/src/components/xform/form-designer/indexMixin.js +1 -1
  18. package/src/components/xform/form-designer/setting-panel/form-setting.vue +588 -164
  19. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +69 -10
  20. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +3 -3
  21. package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
  22. package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
  23. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +32 -1
  24. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +17 -2
  25. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
  26. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
  27. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +2 -2
  28. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +4 -0
  29. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +1 -1
  30. package/src/components/xform/form-designer/setting-panel/property-editor/formulaEnabled-editor.vue +1 -1
  31. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
  32. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
  33. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
  34. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
  35. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +23 -23
  36. package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
  37. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +161 -74
  38. package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
  39. package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
  40. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +236 -92
  41. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +74 -31
  42. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +10 -9
  43. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +52 -17
  44. package/src/components/xform/form-render/container-item/data-table-item.vue +1 -1
  45. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  46. package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
  47. package/src/components/xform/form-render/index.vue +4 -1
  48. package/src/components/xform/form-render/indexMixin.js +2 -1
  49. package/src/components/xform/mixins/defaultHandle.js +1 -1
  50. package/src/components/xform/mixins/scriptHttp.js +1 -1
  51. package/src/components/xform/utils/util.js +1 -1
  52. package/src/components/xform/utils/validators.js +1 -5
  53. package/src/store/config/index.js +1 -1
  54. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
  55. package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
  56. package/src/views/bd/setting/bd_company_env/list.vue +175 -0
  57. package/src/views/bd/setting/config_manage/list.vue +51 -0
  58. package/src/views/user/wf/wf_manage/list.vue +29 -0
@@ -0,0 +1,13 @@
1
+ <script>
2
+ export default {
3
+ name: "exportDialog"
4
+ }
5
+ </script>
6
+
7
+ <template>
8
+
9
+ </template>
10
+
11
+ <style scoped>
12
+
13
+ </style>
@@ -0,0 +1,301 @@
1
+ <template>
2
+ <el-dialog
3
+ :visible.sync="showDialog"
4
+ v-el-drag-dialog
5
+ v-el-dialog-center
6
+ v-bind="dialogConfig"
7
+ @close="close"
8
+ >
9
+ <div class="cont designer-view" v-bind="bodyConfig" id="containt">
10
+ <component v-if="showWfContent && wfContent" :is="wfContent" visible-key="showWfContent" :outParam.sync="outParam"
11
+ :_dataId.sync="dataId" :defaultShowWfContent="defaultShowWfContent" :_isOutLink="true"
12
+ :parent-target="_self"
13
+ @reload="$reloadHandle" v-bind="queryParam" v-on="listeners"></component>
14
+ </div>
15
+ <span slot="footer" class="dialog-footer" v-if="option.showFooter!==false" v-bind="option.footerConfig">
16
+ <el-button type="primary" plain class="button-sty" @click="close">
17
+ <i class="el-icon-close el-icon"></i>
18
+ {{ $t2('取 消', 'system.button.cancel2') }}
19
+ </el-button>
20
+ <el-button type="primary" @click="dialogSubmit" class="button-sty">
21
+ <i class="el-icon-check el-icon"></i>
22
+ {{ $t2('确 定', 'system.button.confirm2') }}
23
+ </el-button>
24
+ </span>
25
+ </el-dialog>
26
+ </template>
27
+
28
+ <script>
29
+
30
+ export default {
31
+ // name: "vabSearchDialog",
32
+ components: {},
33
+ props: {
34
+ visiable: Boolean,
35
+ option: Object
36
+ },
37
+ mixins: [],
38
+ inject: ["getFormConfig"],
39
+
40
+ mounted() {
41
+
42
+ },
43
+ data() {
44
+ var that = this;
45
+ return {
46
+ showFormField: "_tt",
47
+ showDialog: true,
48
+ falseValue: false,
49
+ selectMulti: true,
50
+
51
+ formJson: {},
52
+ formData: {},
53
+ optionData: {},
54
+ showRender: false,
55
+ formTemplate: {},
56
+ /* formCode: null,*/
57
+ layoutType: null,
58
+ conditionParam: null,
59
+ formInsData: null,
60
+ $grid: null,
61
+ currentLayoutType: null,
62
+ dataId: null,
63
+
64
+ showWfContent: true,
65
+ wfContent: null,
66
+ outParam: null,
67
+ // dataId: null,
68
+ defaultShowWfContent: null,
69
+ queryParam: {},
70
+ listeners:null
71
+ };
72
+ },
73
+ computed: {
74
+ formCode() {
75
+ return this.option.formCode;
76
+ },
77
+ dialogParam() {
78
+ return this.option?.param;
79
+ },
80
+ formConfig() {
81
+ return this.option?.formConfig;
82
+ },
83
+ dialogConfig() {
84
+ let customClass = "dialog-style list-dialog dialog-checkbox pd_0";
85
+ if (this.option.dialogConfig?.customClass) {
86
+ customClass = customClass + " " + this.option.dialogConfig.customClass
87
+ }
88
+ let config = {
89
+ title: this.formTemplate.formName,
90
+ appendToBody: true,
91
+ modalAppendToBody: true,
92
+ closeOnClickModal: false,
93
+ modal: false,
94
+ width: "1200px",
95
+ fullscreen: this.option.fullscreen,
96
+ };
97
+ config = Object.assign({}, config, this.option.dialogConfig, {customClass});
98
+ config.title = this.$t1(config.title);
99
+ return config;
100
+ },
101
+ bodyConfig() {
102
+ let config = {};
103
+ let classStr = this.currentLayoutType
104
+ if (this.option.bodyConfig?.class) {
105
+ classStr = classStr + " " + this.option.bodyConfig.class;
106
+ }
107
+ if (this.option.showFooter == false) {
108
+ classStr = classStr + " nfootBtn";
109
+ }
110
+ config = Object.assign({}, config, this.option.bodyConfig, {class: classStr});
111
+ return config;
112
+ }
113
+ },
114
+ created() {
115
+ /*let dataId = this.option?.formConfig?.dataId??null
116
+ delete this.option?.formConfig?.dataId
117
+ this.dataId = dataId;*/
118
+
119
+ let currentFormConfig = this.getFormConfig();
120
+ this.currentLayoutType = currentFormConfig.layoutType
121
+
122
+ // this.selectMulti = this.option.multiple ?? true;
123
+ this.initData();
124
+ },
125
+ methods: {
126
+ initData() {
127
+ const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
128
+ let queryParam = this.$baseLodash.cloneDeep(this.dialogParam);
129
+ let murl = queryParam.urlmobile;
130
+ let purl = murl && isMobile ? murl : queryParam.url;
131
+ let dataId = queryParam.dataId??null;
132
+ if (purl == '/index') {
133
+ location.hash = '/home';
134
+ location.reload();
135
+ return;
136
+ }
137
+
138
+ this.dataId = dataId;
139
+ if (queryParam.showWfContent == 'true') {
140
+ this.defaultShowWfContent = true;
141
+ }
142
+
143
+ delete queryParam.urlmobile;
144
+ delete queryParam.url;
145
+
146
+ if (purl.indexOf('.html') >= 0) {
147
+ let eUrl = purl;
148
+ let pstr = Object.keys(queryParam).map(key => {
149
+ return key + "=" + queryParam[key]
150
+ }).join("&")
151
+
152
+ if (pstr) {
153
+ if (purl.indexOf('.html?') >= 0) {
154
+ eUrl = eUrl + '&' + pstr
155
+ } else {
156
+ eUrl = eUrl + '?' + pstr
157
+ }
158
+ }
159
+
160
+ location.href = eUrl;
161
+ return
162
+ }
163
+
164
+ delete queryParam.dataId;
165
+ delete queryParam.showWfContent;
166
+ delete queryParam.access_token;
167
+ delete queryParam.tp;
168
+ delete queryParam.thirdparty_info;
169
+ delete queryParam.i18nLang;
170
+
171
+ let url = purl + '.vue';
172
+ this.queryParam = queryParam;
173
+ let listeners= this.option?.on;
174
+ this.listeners = listeners;
175
+
176
+ this.showWfContent = true;
177
+
178
+ let t = "@base/views";
179
+ let urlArr = [
180
+ '/user/bill_setting/h5_view.vue',
181
+ '/user/form/view/list.vue',
182
+ '/user/form/view/edit.vue'
183
+ ]
184
+
185
+ if (urlArr.includes(url)) {
186
+ this.wfContent = require('@base/views' + url).default;
187
+ } else if (url.startsWith(t)) {
188
+ let path = url.slice(t.length);
189
+ this.wfContent = require('@base/views' + path).default;
190
+ } else {
191
+ this.wfContent = require('@/views' + url).default;
192
+ }
193
+ },
194
+
195
+
196
+ reload(e, option) {
197
+ let updateParam = option?.updateParam || {};
198
+ Object.assign(this.formConfig, updateParam)
199
+ this.showRender = false;
200
+ this.getReportTemplate();
201
+ },
202
+ async getReportTemplate(callback) {
203
+ let param = {
204
+ objTypeCode: this.$attrs.objTypeCode,
205
+ objId: this.$attrs.objId,
206
+ taskId: this.$attrs.taskId
207
+ };
208
+ this.conditionParam = param;
209
+ let url, data;
210
+ url = USER_PREFIX + `/formTemplate/getByFormCode`;
211
+ data = {stringOne: this.formCode}
212
+
213
+ let that = this;
214
+ this.$http({
215
+ url: url,
216
+ method: `post`,
217
+ data: data,
218
+ isLoading: true,
219
+ loadingTarget: document.body,
220
+ modalStrictly: true,
221
+ success: res => {
222
+ let formTemplate = res.objx || {};
223
+ this.formTemplate = formTemplate;
224
+ this.formJson = formTemplate.formViewContent ? JSON.parse(formTemplate.formViewContent) : {};
225
+ this.layoutType = this.formJson.formConfig.layoutType
226
+ let formConfig = this.formJson.formConfig;
227
+ if (formConfig.searchDialogUniqueField) {
228
+ this.fieldKey = formConfig.searchDialogUniqueField;
229
+ }
230
+
231
+ this.showRender = true;
232
+
233
+
234
+ }
235
+ });
236
+ },
237
+ close() {
238
+ let formRef = this.$refs.vFormRef;
239
+ this.showDialog = false;
240
+ this.$emit('update:visiable', false);
241
+ this.option.close && this.option.close(formRef, this);
242
+ },
243
+ dialogSubmit() {
244
+ let formRef = this.$refs.vFormRef;
245
+ if (this.option.confirm) {
246
+ if (this.option.confirm(formRef, this) !== false) {
247
+ this.close();
248
+ }
249
+ } else {
250
+ this.close();
251
+ }
252
+ }
253
+ }
254
+ }
255
+ </script>
256
+
257
+ <style lang="scss" scoped>
258
+ ::v-deep .H5 .h5-fixed-bottom-btns {
259
+ bottom: 95px;
260
+ }
261
+
262
+ .list-dialog {
263
+ .el-dialog__body {
264
+ height: calc(100% - 42px);
265
+
266
+ .cont {
267
+ height: calc(100vh - 210px);
268
+
269
+ &.nfootBtn {
270
+ height: calc(100vh - 158px)
271
+ }
272
+
273
+ &#containt {
274
+ padding: 0;
275
+
276
+ ::v-deep .grid-container {
277
+ outline: none;
278
+
279
+ &.detail-wrap .d-cont {
280
+ height: calc(100vh - 150px);
281
+
282
+ .title .field-wrapper {
283
+ display: inline-block !important
284
+ }
285
+ }
286
+ }
287
+ }
288
+ }
289
+ }
290
+
291
+ &.is-fullscreen .el-dialog__body {
292
+ .cont {
293
+ height: calc(100vh - 110px);
294
+
295
+ &.nfootBtn {
296
+ height: calc(100vh - 58px)
297
+ }
298
+ }
299
+ }
300
+ }
301
+ </style>
@@ -70,7 +70,7 @@ export default {
70
70
  widgetClass() {
71
71
  let list = [];
72
72
  let optionModel = this.field.options
73
- if (optionModel.coloClass) list.push(optionModel.coloClass);
73
+ if (optionModel.colorClass) list.push(optionModel.colorClass);
74
74
  if (optionModel.underline) list.push('underLine');
75
75
  if (optionModel.disabled) list.push('is-disabled');
76
76
  return list
@@ -66,7 +66,7 @@ export default {
66
66
  widgetClass() {
67
67
  let list = [];
68
68
  let optionModel = this.field.options
69
- if (optionModel.coloClass) list.push(optionModel.coloClass);
69
+ if (optionModel.colorClass) list.push(optionModel.colorClass);
70
70
  if (optionModel.underline) list.push('underLine');
71
71
  if (optionModel.disabled) list.push('is-disabled');
72
72
  return list
@@ -10,7 +10,9 @@
10
10
  :format="field.options.format" :value-format="field.options.valueFormat"
11
11
  :placeholder="getI18nLabel(field.options.placeholder || '选择日期')"
12
12
  @focus="handleFocusCustomEvent" @blur="handleBlurCustomEvent"
13
- @change="handleChangeEvent">
13
+ @change="handleChangeEvent"
14
+ :picker-options="pickerOptions"
15
+ >
14
16
  </el-date-picker>
15
17
  </form-item-wrapper>
16
18
  </template>
@@ -60,6 +62,7 @@ export default {
60
62
  oldFieldValue: null, //field组件change之前的值
61
63
  fieldModel: null,
62
64
  rules: [],
65
+ pickerOptions: {}
63
66
  }
64
67
  },
65
68
  computed: {},
@@ -76,6 +79,15 @@ export default {
76
79
  this.buildFieldRules()
77
80
 
78
81
  this.handleOnCreated()
82
+
83
+ if(['year','month','date'].includes(this.field.options.type)){
84
+ this.pickerOptions.shortcuts = [{
85
+ text: this.$t1('此刻'),
86
+ onClick(picker) {
87
+ picker.$emit('pick', new Date());
88
+ }
89
+ }]
90
+ }
79
91
  },
80
92
 
81
93
  mounted() {
@@ -86,7 +98,14 @@ export default {
86
98
  this.unregisterFromRefList()
87
99
  },
88
100
 
89
- methods: {}
101
+ methods: {
102
+ setNow() {
103
+ this.$refs.fieldEditor.panel.changeToNow()
104
+ /*this.selectedDate = new Date();
105
+ // 可选:点击后自动关闭弹窗
106
+ this.$refs.datePicker.pickerVisible = false;*/
107
+ }
108
+ }
90
109
  }
91
110
  </script>
92
111