cloud-web-corejs 1.0.115 → 1.0.117

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 (45) hide show
  1. package/package.json +3 -1
  2. package/src/components/VabUpload/view.vue +135 -135
  3. package/src/components/errorMsg/mixins.js +7 -5
  4. package/src/components/excelExport/button.vue +57 -4
  5. package/src/components/excelExport/index.js +7 -6
  6. package/src/components/excelExport/index.vue +56 -2
  7. package/src/components/excelExport/mixins.js +1 -1
  8. package/src/components/formOplog/mixins.js +1 -1
  9. package/src/components/statusTag/mixins.js +1 -1
  10. package/src/components/table/index.js +1 -1
  11. package/src/components/table/util/index.js +1 -1
  12. package/src/components/tempStorage/index.vue +9 -6
  13. package/src/components/tempStorage/tempStorageDialog.vue +1 -1
  14. package/src/components/wf/content.vue +17 -1
  15. package/src/components/wf/mixins/setCandidateDialog.js +2 -1
  16. package/src/components/wf/setCandidateDialog.vue +9 -0
  17. package/src/components/wf/setCandidateDialog2.vue +320 -0
  18. package/src/components/wf/wf.js +1 -1
  19. package/src/components/wf/wfStartDialog.vue +70 -42
  20. package/src/components/wf/wfTaskUserRangeDialog.vue +131 -0
  21. package/src/components/wf/wfUtil.js +1 -1
  22. package/src/components/xform/form-designer/designer.js +1 -1
  23. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +2 -2
  24. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  25. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +2 -2
  26. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +4 -4
  27. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
  28. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
  29. package/src/components/xform/form-designer/indexMixin.js +1 -1
  30. package/src/components/xform/form-designer/setting-panel/form-setting.vue +93 -5
  31. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +18 -2
  32. package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
  33. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
  34. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +31 -0
  35. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  36. package/src/components/xform/form-render/indexMixin.js +3 -1
  37. package/src/components/xform/lang/zh-CN.js +1 -0
  38. package/src/components/xform/mixins/defaultHandle.js +1 -1
  39. package/src/components/xform/utils/util.js +1451 -1
  40. package/src/utils/index.js +2 -5
  41. package/src/views/user/form/view/list.vue +18 -3
  42. package/src/views/user/user/edit.vue +1059 -1041
  43. package/src/views/user/user/list.vue +19 -0
  44. package/src/views/user/wf/wf_obj_config/itemEdit.vue +3 -3
  45. package/src/views/user/wf/wf_obj_config/list.vue +5 -5
@@ -68,10 +68,10 @@
68
68
  },
69
69
  computed: {
70
70
  labelField(){
71
- return this.field.options.labelKey || "label";
71
+ return this.getOptionItemLabelKey();
72
72
  },
73
73
  valueField(){
74
- return this.field.options.valueKey || "value";
74
+ return this.getOptionItemValueKey();
75
75
  },
76
76
  optionItems(){
77
77
  return this.getOptionItems();
@@ -74,11 +74,11 @@ export default {
74
74
  }
75
75
  },
76
76
  computed: {
77
- labelField() {
78
- return this.field.options.labelKey || "label";
77
+ labelField(){
78
+ return this.getOptionItemLabelKey();
79
79
  },
80
- valueField() {
81
- return this.field.options.valueKey || "value";
80
+ valueField(){
81
+ return this.getOptionItemValueKey();
82
82
  },
83
83
  allowDefaultFirstOption() {
84
84
  return (!!this.field.options.filterable && !!this.field.options.allowCreate)
@@ -76,7 +76,8 @@ export default {
76
76
  return !!this.field.options.customClass ? this.field.options.customClass.join(' ') : ''
77
77
  },
78
78
  computedStyle() {
79
- return {display: this.displayStyle, height: this.heightStyle};
79
+ let displayStyle = !this.designState && this.field.options.hidden ? "none !important":this.displayStyle
80
+ return {display: displayStyle, height: this.heightStyle};
80
81
  },
81
82
  isShow() {
82
83
  let result = !this.field.options.hidden || (this.designState === true);
@@ -0,0 +1,127 @@
1
+ <template>
2
+ <static-content-wrapper
3
+ :designer="designer"
4
+ :field="field"
5
+ :design-state="designState"
6
+ :display-style="field.options.displayStyle"
7
+ :parent-widget="parentWidget"
8
+ :parent-list="parentList"
9
+ :index-of-parent-list="indexOfParentList"
10
+ :sub-form-row-index="subFormRowIndex"
11
+ :sub-form-col-index="subFormColIndex"
12
+ :sub-form-row-id="subFormRowId"
13
+ >
14
+ <span class="button-sty" v-if="designState">
15
+ <el-button type="success" class="btn-connect" icon="iconfont icon-zancun" plain >暂存</el-button>
16
+ <el-button class="btn-connect" icon="iconfont icon-chakanshuju" type="success"></el-button>
17
+ </span>
18
+ <temp-storage-button
19
+ v-else
20
+ :option="tempStorageOption"
21
+ :disabled="!designState && field.options.disabled"
22
+ ></temp-storage-button>
23
+ </static-content-wrapper>
24
+ </template>
25
+
26
+ <script>
27
+ import StaticContentWrapper from "./static-content-wrapper";
28
+ import emitter from "../../../../../components/xform/utils/emitter";
29
+ import i18n from "../../../../../components/xform/utils/i18n";
30
+ import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
31
+ import tempStorageButton from "@base/components/tempStorage/index.vue";
32
+
33
+ export default {
34
+ name: "tempStorage-widget",
35
+ componentName: "FieldWidget", //必须固定为FieldWidget,用于接收父级组件的broadcast事件
36
+ mixins: [emitter, fieldMixin, i18n],
37
+ props: {
38
+ field: Object,
39
+ parentWidget: Object,
40
+ parentList: Array,
41
+ indexOfParentList: Number,
42
+ designer: Object,
43
+
44
+ designState: {
45
+ type: Boolean,
46
+ default: false,
47
+ },
48
+
49
+ subFormRowIndex: {
50
+ /* 子表单组件行索引,从0开始计数 */ type: Number,
51
+ default: -1,
52
+ },
53
+ subFormColIndex: {
54
+ /* 子表单组件列索引,从0开始计数 */ type: Number,
55
+ default: -1,
56
+ },
57
+ subFormRowId: {
58
+ /* 子表单组件行Id,唯一id且不可变 */ type: String,
59
+ default: "",
60
+ },
61
+ },
62
+ components: {
63
+ StaticContentWrapper,
64
+ tempStorageButton,
65
+ },
66
+ computed: {},
67
+ beforeCreate() {
68
+ /* 这里不能访问方法和属性!! */
69
+ },
70
+
71
+ data() {
72
+ return {
73
+ tempStorageOption: {},
74
+ };
75
+ },
76
+
77
+ created() {
78
+ /* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
79
+ 需要在父组件created中初始化!! */
80
+ this.registerToRefList();
81
+ this.initEventHandler();
82
+
83
+ this.handleOnCreated();
84
+ this.init();
85
+ },
86
+
87
+ mounted() {
88
+ this.handleOnMounted();
89
+ },
90
+
91
+ beforeDestroy() {
92
+ this.unregisterFromRefList();
93
+ },
94
+
95
+ methods: {
96
+ init() {
97
+ if (this.designer) return;
98
+ let dataId = this.getFormRef().dataId;
99
+ if (dataId) {
100
+ this.setHidden(true);
101
+ }
102
+
103
+ this.initConfig();
104
+ },
105
+ initConfig(){
106
+ let formCode = this.getFormRef()?.reportTemplate?.formCode;
107
+ let tempStorageCode = this.field.options.tempStorageCode || formCode;
108
+ let vue = this.getFormRef();
109
+ this.tempStorageOption = {
110
+ vue,
111
+ storageType: tempStorageCode,
112
+ data: () => {
113
+ return this.formModel;
114
+ },
115
+ chooseConfirm: (tempStorageData) => {
116
+ this.getFormRef().setFormData(tempStorageData);
117
+ },
118
+ saveConfirm: () => {},
119
+ }
120
+ }
121
+ },
122
+ };
123
+ </script>
124
+
125
+ <style lang="scss" scoped>
126
+ @import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
127
+ </style>