cloud-web-corejs 1.0.54-dev.787 → 1.0.54-dev.789

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 (42) hide show
  1. package/package.json +1 -1
  2. package/src/components/baseInputExport/mixins.js +13 -2
  3. package/src/components/code-editor/async.js +29 -0
  4. package/src/components/code-editor/index.vue +65 -6
  5. package/src/components/table/index.js +4 -0
  6. package/src/components/xform/docs/2026-08 /345/210/227/350/241/250/345/257/274/345/207/272/350/204/261/346/225/217/345/210/227/345/211/224/351/231/244/350/220/275/345/234/260/346/226/207/346/241/243.md" +173 -0
  7. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +18 -73
  8. package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +3 -0
  9. package/src/components/xform/form-render/container-item/data-table-mixin.js +20 -0
  10. package/src/components/xform/form-render/container-item/list-h5-item.vue +12 -0
  11. package/src/components/xform/utils/textMaskUtil.js +179 -0
  12. package/src/index.js +2 -3
  13. package/src/store/config/index.js +224 -0
  14. package/src/store/modules/tagsView.js +4 -2
  15. package/src/views/bd/project/branch/bd_branch/edit.vue +145 -0
  16. package/src/views/bd/project/branch/bd_branch/list.vue +72 -0
  17. package/src/views/bd/project/branch/bd_branch/menuKindDialog.vue +106 -0
  18. package/src/views/bd/project/branch/bd_branch/mixins/edit.js +189 -0
  19. package/src/views/bd/project/branch/bd_branch/mixins/list.js +124 -0
  20. package/src/views/bd/project/branch/bd_branch/mixins/menuKindDialog.js +85 -0
  21. package/src/views/bd/project/branch/form_script/list.vue +22 -0
  22. package/src/views/bd/project/branch/form_template/list.vue +21 -0
  23. package/src/views/bd/project/branch/menu_kind/list.vue +21 -0
  24. package/src/views/bd/project/common/form_script/list.vue +16 -0
  25. package/src/views/bd/project/common/form_template/list.vue +15 -0
  26. package/src/views/bd/project/common/menu_kind/list.vue +15 -0
  27. package/src/views/bd/project/core/branchContext.js +100 -0
  28. package/src/views/bd/project/core/branchPage.js +78 -0
  29. package/src/views/bd/project/core/branchPageWrap.vue +216 -0
  30. package/src/views/bd/project/core/branchScope.js +44 -0
  31. package/src/views/bd/project/core/branchSelect.vue +106 -0
  32. package/src/views/bd/project/core/httpBranchPatch.js +58 -0
  33. package/src/views/bd/project/datatable/menu_kind/list.vue +15 -0
  34. package/src/views/bd/project/datatable/table_model/list.vue +15 -0
  35. package/src/views/bd/setting/form_template/formDesignerDialog.vue +1 -0
  36. package/src/views/bd/setting/form_template/list.vue +2 -2
  37. package/src/views/bd/setting/form_template/mixins/edit.js +3 -3
  38. package/src/views/bd/setting/form_template/mixins/list.js +3 -3
  39. package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
  40. package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -3
  41. package/src/views/bd/setting/form_template/wf_list.vue +2 -2
  42. package/src/views/user/form/vform/designer.vue +51 -22
@@ -153,13 +153,13 @@ modules = {
153
153
  this.$refs['table-m1'].commitProxy('reload');
154
154
  },
155
155
  openEditDialog(row) {
156
- let formCode = row?.formCode || null;
156
+ let dataId = row?.id || 0;
157
157
  /*this.dataId = !id || typeof id === 'object' ? 0 : id;
158
158
  this.activeName = 'first';
159
159
  this.showItemEdit = false;
160
160
  this.$openEditView('showEdit');*/
161
- if (!formCode) {
162
- this.dataId = formCode;
161
+ if (!dataId) {
162
+ this.dataId = dataId;
163
163
  this.activeName = 'first';
164
164
  this.$openEditView('showEdit');
165
165
  } else {
@@ -156,13 +156,13 @@ modules = {
156
156
  this.$refs['table-m1'].commitProxy('reload');
157
157
  },
158
158
  openEditDialog(row) {
159
- let formCode = row?.formCode || null;
159
+ let dataId = row?.id || 0;
160
160
  /*this.dataId = !id || typeof id === 'object' ? 0 : id;
161
161
  this.activeName = 'first';
162
162
  this.showItemEdit = false;
163
163
  this.$openEditView('showEdit');*/
164
- if (!formCode) {
165
- this.dataId = formCode;
164
+ if (!dataId) {
165
+ this.dataId = dataId;
166
166
  this.activeName = 'first';
167
167
  this.$openEditView('showEdit');
168
168
  } else {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div id="containt">
3
- <x-tabs ref="xTabs" v-model="activeName" class="tab-box" paneKeyName="formCode">
3
+ <x-tabs ref="xTabs" v-model="activeName" class="tab-box" paneKeyName="id">
4
4
  <el-tab-pane :label="$t1('常规')" name="first">
5
5
  <editView
6
6
  v-if="showEdit"
@@ -109,7 +109,7 @@
109
109
  <el-tab-pane
110
110
  :key="tab.data.id"
111
111
  :label.sync="tab.data.formName"
112
- :name="tab.data.formCode"
112
+ :name="tab.data.id + ''"
113
113
  :closable="true"
114
114
  >
115
115
  <editView
@@ -30,6 +30,7 @@ export default {
30
30
  name: "vform-designer:edit",
31
31
  props: {
32
32
  formCode: String,
33
+ id: [String, Number],
33
34
  readonly: Boolean,
34
35
  formTemplate: Object,
35
36
  widgetList: Array,
@@ -106,28 +107,56 @@ export default {
106
107
  this.$refs.designer.setFormJson(this.reportTemplate.formViewContent);
107
108
  });
108
109
  } else {
109
- this.$http({
110
- aes: true,
111
- url: USER_PREFIX + `/formTemplate/getByFormCode`,
112
- method: `post`,
113
- data: {
114
- stringOne: this.formCode,
115
- },
116
- isLoading: true,
117
- modalStrictly: true,
118
- success: (res) => {
119
- if (!res.objx) {
120
- this.$baseAlert(this.$t1("获取报表模板失败"));
121
- return;
122
- }
123
- let reportTemplate = res.objx || {};
124
- this.reportTemplate = reportTemplate;
125
- this.showDesinger = true;
126
- this.$nextTick(() => {
127
- this.$refs.designer.setFormJson(reportTemplate.formViewContent);
128
- });
129
- },
130
- });
110
+ let id = this.id || this.formTemplate?.id;
111
+ if (id) {
112
+ this.$http({
113
+ aes: true,
114
+ url: USER_PREFIX + `/formTemplate/get`,
115
+ method: `post`,
116
+ data: {
117
+ id,
118
+ },
119
+ isLoading: true,
120
+ modalStrictly: true,
121
+ success: (res) => {
122
+ if (!res.objx) {
123
+ this.$baseAlert(this.$t1("获取报表模板失败"));
124
+ return;
125
+ }
126
+ let reportTemplate = res.objx || {};
127
+ this.reportTemplate = reportTemplate;
128
+ this.showDesinger = true;
129
+ this.$nextTick(() => {
130
+ this.$refs.designer.setFormJson(reportTemplate.formViewContent);
131
+ });
132
+ },
133
+ });
134
+ } else if (this.formCode) {
135
+ this.$http({
136
+ aes: true,
137
+ url: USER_PREFIX + `/formTemplate/getByFormCode`,
138
+ method: `post`,
139
+ data: {
140
+ stringOne: this.formCode,
141
+ },
142
+ isLoading: true,
143
+ modalStrictly: true,
144
+ success: (res) => {
145
+ if (!res.objx) {
146
+ this.$baseAlert(this.$t1("获取报表模板失败"));
147
+ return;
148
+ }
149
+ let reportTemplate = res.objx || {};
150
+ this.reportTemplate = reportTemplate;
151
+ this.showDesinger = true;
152
+ this.$nextTick(() => {
153
+ this.$refs.designer.setFormJson(reportTemplate.formViewContent);
154
+ });
155
+ },
156
+ });
157
+ } else {
158
+ this.$baseAlert(this.$t1("获取报表模板失败"));
159
+ }
131
160
  }
132
161
  },
133
162
  loadFieldListData(res) {