cloud-web-corejs 1.0.54-dev.745 → 1.0.54-dev.746

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 (50) hide show
  1. package/package.json +192 -192
  2. package/src/App.vue +73 -71
  3. package/src/components/baseArea/index.vue +1628 -1628
  4. package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
  5. package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -297
  6. package/src/components/fileLibrary/index.vue +1109 -1109
  7. package/src/components/fileLibrary/propertiesDialog.vue +190 -190
  8. package/src/components/fileLibrary/recycleBinDialog.vue +237 -237
  9. package/src/components/wf/mixins/setCandidateDialog.js +217 -217
  10. package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
  11. package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +986 -986
  12. package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -272
  13. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +216 -216
  14. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +928 -928
  15. package/src/components/xform/form-designer/index.vue +195 -195
  16. package/src/components/xform/form-designer/indexMixin.js +848 -848
  17. package/src/components/xform/form-designer/setting-panel/index.vue +313 -313
  18. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +124 -124
  19. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +369 -369
  20. package/src/components/xform/form-designer/widget-panel/index.vue +389 -389
  21. package/src/components/xform/form-designer/widget-panel/indexMixin.js +343 -343
  22. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4531 -4531
  23. package/src/components/xform/form-render/container-item/data-table-mixin.js +4748 -4576
  24. package/src/components/xform/form-render/container-item/tab-item.vue +125 -125
  25. package/src/components/xform/form-render/indexMixin.js +5061 -5078
  26. package/src/components/xform/lang/en-US.js +457 -457
  27. package/src/components/xform/lang/zh-CN.js +628 -628
  28. package/src/components/xform/utils/util.js +1585 -1554
  29. package/src/index.js +344 -230
  30. package/src/layout/components/AppMain.vue +122 -125
  31. package/src/layout/components/extractedCode/viewDialog.vue +207 -207
  32. package/src/layout/components/langTool.vue +128 -123
  33. package/src/layout/defaultLayout.vue +164 -158
  34. package/src/permission.js +185 -135
  35. package/src/store/config/index.js +667 -669
  36. package/src/store/modules/micro.js +46 -0
  37. package/src/store/modules/permission.js +461 -373
  38. package/src/store/modules/user.js +419 -415
  39. package/src/utils/auth.js +27 -1
  40. package/src/utils/index.js +579 -6
  41. package/src/utils/keepAlive.js +4 -0
  42. package/src/utils/menuAdapter.js +183 -0
  43. package/src/utils/request.js +417 -28
  44. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +483 -483
  45. package/src/views/bd/setting/form_script/form_list.vue +174 -174
  46. package/src/views/bd/setting/form_script/mixins/form_list.js +330 -330
  47. package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -171
  48. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -253
  49. package/src/views/user/menuFallback/index.vue +123 -0
  50. package/src/views/user/wf/wfReport/index.vue +625 -625
@@ -1,171 +1,171 @@
1
- <template>
2
- <el-drawer
3
- :title="$t1('表单设计({formName})', { formName })"
4
- :visible.sync="showDesingerDialog"
5
- :modal="false"
6
- :destroy-on-close="true"
7
- size="100%"
8
- direction="rtl"
9
- :before-close="closeFormDesignwinEvent"
10
- :append-to-body="false"
11
- class="designer-drawer"
12
- :class="[isFullscreen ? 'is-fullscreen' : '']"
13
- @close="handleFormDesignClose"
14
- >
15
- <el-tabs v-model="formDesTabs" type="card" class="tab-boxOnly" :stretch="true">
16
- <el-tab-pane :label="$t1('设计器')" name="first">
17
- <designer
18
- ref="designer"
19
- :formCode.sync="formCode"
20
- @reflushTemplateList="reflushTemplateList"
21
- :readonly="readonly"
22
- :historyFlag="historyFlag"
23
- :widgetList="widgetList"
24
- :columnFlag="columnFlag"
25
- :sourceData="sourceData"
26
- :formTemplate="formTemplate"
27
- :jsonFlag="jsonFlag"
28
- ></designer>
29
- </el-tab-pane>
30
- <el-tab-pane :label="$t1('后端脚本')" name="second" v-if="showFormScript">
31
- <formScriptList
32
- :formCode="formCode"
33
- :formTemplate="formTemplate"
34
- v-if="showFormScriptList"
35
- ></formScriptList>
36
- </el-tab-pane>
37
- </el-tabs>
38
- <el-button class="isFullIcon" v-if="!isFullscreen" @click="handleFullscreen">
39
- <el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
40
- <i class="iconfont icon-quanping"></i>
41
- </el-tooltip>
42
- </el-button>
43
- <el-button class="isFullIcon" v-else @click="handleFullscreen">
44
- <el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
45
- <i class="iconfont icon-suoxiao"></i>
46
- </el-tooltip>
47
- </el-button>
48
- </el-drawer>
49
- </template>
50
- <script>
51
- import indexUtil from "@base/utils";
52
- export default {
53
- props: {
54
- visiable: {
55
- type: Boolean,
56
- default: false,
57
- },
58
- formName: {
59
- type: String,
60
- default: "",
61
- },
62
- formCode: {
63
- type: String,
64
- default: "",
65
- },
66
- readonly: {
67
- type: Boolean,
68
- default: false,
69
- },
70
- formTemplate: {
71
- type: Object,
72
- default: () => {},
73
- },
74
- showFormScript: {
75
- type: Boolean,
76
- default: true,
77
- },
78
- historyFlag: {
79
- type: Boolean,
80
- default: false,
81
- },
82
- jsonFlag: {
83
- type: Boolean,
84
- default: false,
85
- },
86
- widgetList: Array,
87
- columnFlag: Boolean,
88
- sourceData: Object,
89
- },
90
- components: {
91
- designer: () => import("@base/views/user/form/vform/designer.vue"),
92
- formScriptList: () => import("@base/views/bd/setting/form_script/form_list.vue"),
93
- },
94
- data() {
95
- return {
96
- showDesingerDialog: true,
97
- isFullscreen: false,
98
- formDesTabs: "first",
99
- currentFormTemplate: {},
100
- designerReadonly: false,
101
- showFormScriptList: false,
102
- };
103
- },
104
- watch: {
105
- formDesTabs(val) {
106
- if (this.showFormScriptList === false && val === "second") {
107
- this.showFormScriptList = true;
108
- }
109
- },
110
- },
111
- methods: {
112
- handleFormDesignClose() {
113
- this.showDesingerDialog = false;
114
- this.formDesTabs = "first";
115
- this.showFormScriptList = false;
116
- this.$emit("close");
117
- this.$emit("update:visiable", false);
118
- },
119
- handleFullscreen() {
120
- let isFullscreen = this.isFullscreen;
121
- if (!isFullscreen) {
122
- indexUtil.addClass(document.body, "hideMenu");
123
- } else {
124
- indexUtil.removeClass(document.body, "hideMenu");
125
- }
126
- this.isFullscreen = !isFullscreen;
127
- },
128
- closeFormDesignwinEvent(done) {
129
- this.$baseConfirm(this.$t1('请确认"已保存"报表模板,是否继续关闭?')).then(() => {
130
- indexUtil.removeClass(document.body, "hideMenu");
131
- done && done();
132
- });
133
- },
134
- reflushTemplateList() {
135
- this.$emit("reflushTemplateList");
136
- },
137
- },
138
- };
139
- </script>
140
- <style scoped lang="scss">
141
- ::v-deep .tab-boxOnly > .el-tabs__header {
142
- position: absolute;
143
- right: 130px;
144
- top: 0;
145
- }
146
-
147
- // ::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
148
- // .detail-wrap .d-cont {
149
- // height: calc(100vh - 158px) !important;
150
- // }
151
-
152
- // .grid-height {
153
- // height: calc(100vh - 126px) !important;
154
- // }
155
- // }
156
-
157
- // ::v-deep
158
- // .designer-drawer.is-fullscreen
159
- // .tab-boxOnly
160
- // > .el-tabs__content
161
- // .el-tab-pane
162
- // .el-tab-pane {
163
- // .detail-wrap .d-cont {
164
- // height: calc(100vh - 116px) !important;
165
- // }
166
-
167
- // .grid-height {
168
- // height: calc(100vh - 84px) !important;
169
- // }
170
- // }
171
- </style>
1
+ <template>
2
+ <el-drawer
3
+ :title="$t1('表单设计({formName})', { formName })"
4
+ :visible.sync="showDesingerDialog"
5
+ :modal="false"
6
+ :destroy-on-close="true"
7
+ size="100%"
8
+ direction="rtl"
9
+ :before-close="closeFormDesignwinEvent"
10
+ :append-to-body="false"
11
+ class="designer-drawer"
12
+ :class="[isFullscreen ? 'is-fullscreen' : '']"
13
+ @close="handleFormDesignClose"
14
+ >
15
+ <el-tabs v-model="formDesTabs" type="card" class="tab-boxOnly" :stretch="true">
16
+ <el-tab-pane :label="$t1('设计器')" name="first">
17
+ <designer
18
+ ref="designer"
19
+ :formCode.sync="formCode"
20
+ @reflushTemplateList="reflushTemplateList"
21
+ :readonly="readonly"
22
+ :historyFlag="historyFlag"
23
+ :widgetList="widgetList"
24
+ :columnFlag="columnFlag"
25
+ :sourceData="sourceData"
26
+ :formTemplate="formTemplate"
27
+ :jsonFlag="jsonFlag"
28
+ ></designer>
29
+ </el-tab-pane>
30
+ <el-tab-pane :label="$t1('后端脚本')" name="second" v-if="showFormScript">
31
+ <formScriptList
32
+ :formCode="formCode"
33
+ :formTemplate="formTemplate"
34
+ v-if="showFormScriptList"
35
+ ></formScriptList>
36
+ </el-tab-pane>
37
+ </el-tabs>
38
+ <el-button class="isFullIcon" v-if="!isFullscreen" @click="handleFullscreen">
39
+ <el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
40
+ <i class="iconfont icon-quanping"></i>
41
+ </el-tooltip>
42
+ </el-button>
43
+ <el-button class="isFullIcon" v-else @click="handleFullscreen">
44
+ <el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
45
+ <i class="iconfont icon-suoxiao"></i>
46
+ </el-tooltip>
47
+ </el-button>
48
+ </el-drawer>
49
+ </template>
50
+ <script>
51
+ import indexUtil from "@base/utils";
52
+ export default {
53
+ props: {
54
+ visiable: {
55
+ type: Boolean,
56
+ default: false,
57
+ },
58
+ formName: {
59
+ type: String,
60
+ default: "",
61
+ },
62
+ formCode: {
63
+ type: String,
64
+ default: "",
65
+ },
66
+ readonly: {
67
+ type: Boolean,
68
+ default: false,
69
+ },
70
+ formTemplate: {
71
+ type: Object,
72
+ default: () => {},
73
+ },
74
+ showFormScript: {
75
+ type: Boolean,
76
+ default: true,
77
+ },
78
+ historyFlag: {
79
+ type: Boolean,
80
+ default: false,
81
+ },
82
+ jsonFlag: {
83
+ type: Boolean,
84
+ default: false,
85
+ },
86
+ widgetList: Array,
87
+ columnFlag: Boolean,
88
+ sourceData: Object,
89
+ },
90
+ components: {
91
+ designer: () => import("@base/views/user/form/vform/designer.vue"),
92
+ formScriptList: () => import("@base/views/bd/setting/form_script/form_list.vue"),
93
+ },
94
+ data() {
95
+ return {
96
+ showDesingerDialog: true,
97
+ isFullscreen: false,
98
+ formDesTabs: "first",
99
+ currentFormTemplate: {},
100
+ designerReadonly: false,
101
+ showFormScriptList: false,
102
+ };
103
+ },
104
+ watch: {
105
+ formDesTabs(val) {
106
+ if (this.showFormScriptList === false && val === "second") {
107
+ this.showFormScriptList = true;
108
+ }
109
+ },
110
+ },
111
+ methods: {
112
+ handleFormDesignClose() {
113
+ this.showDesingerDialog = false;
114
+ this.formDesTabs = "first";
115
+ this.showFormScriptList = false;
116
+ this.$emit("close");
117
+ this.$emit("update:visiable", false);
118
+ },
119
+ handleFullscreen() {
120
+ let isFullscreen = this.isFullscreen;
121
+ if (!isFullscreen) {
122
+ indexUtil.addClass(document.body, "hideMenu");
123
+ } else {
124
+ indexUtil.removeClass(document.body, "hideMenu");
125
+ }
126
+ this.isFullscreen = !isFullscreen;
127
+ },
128
+ closeFormDesignwinEvent(done) {
129
+ this.$baseConfirm(this.$t1('请确认"已保存"报表模板,是否继续关闭?')).then(() => {
130
+ indexUtil.removeClass(document.body, "hideMenu");
131
+ done && done();
132
+ });
133
+ },
134
+ reflushTemplateList() {
135
+ this.$emit("reflushTemplateList");
136
+ },
137
+ },
138
+ };
139
+ </script>
140
+ <style scoped lang="scss">
141
+ ::v-deep .tab-boxOnly > .el-tabs__header {
142
+ position: absolute;
143
+ right: 130px;
144
+ top: 0;
145
+ }
146
+
147
+ // ::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
148
+ // .detail-wrap .d-cont {
149
+ // height: calc(100vh - 158px) !important;
150
+ // }
151
+
152
+ // .grid-height {
153
+ // height: calc(100vh - 126px) !important;
154
+ // }
155
+ // }
156
+
157
+ // ::v-deep
158
+ // .designer-drawer.is-fullscreen
159
+ // .tab-boxOnly
160
+ // > .el-tabs__content
161
+ // .el-tab-pane
162
+ // .el-tab-pane {
163
+ // .detail-wrap .d-cont {
164
+ // height: calc(100vh - 116px) !important;
165
+ // }
166
+
167
+ // .grid-height {
168
+ // height: calc(100vh - 84px) !important;
169
+ // }
170
+ // }
171
+ </style>