cloud-web-corejs 1.0.54-dev.781 → 1.0.54-dev.783
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.
- package/package.json +1 -1
- package/src/components/VabUpload/index.vue +242 -242
- package/src/components/VabUpload/mixins.js +1971 -1971
- package/src/components/VabUpload/privateProfileDialog.vue +2 -2
- package/src/components/hiprint/view/design/index.vue +7 -2
- package/src/components/obsUpload/index.vue +234 -234
- package/src/components/obsUpload/mixins.js +1542 -1542
- package/src/components/vb-tabs/x-tabs.vue +7 -3
- package/src/components/xform/docs//346/240/221/350/241/250rowField/346/224/266/346/225/233-/350/220/275/345/234/260/346/226/207/346/241/243.md +1427 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +11 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +369 -369
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +69 -23
- package/src/components/xform/form-render/container-item/data-table-item.vue +1 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1469 -428
- package/src/components/xform/form-render/indexMixin.js +379 -263
- package/src/components/xform/mixins/defaultHandle.js +234 -28
- package/src/components/xform/mixins/scriptHttp.js +4 -4
- package/src/components/xform/utils/treeTableUtil.js +1265 -0
- package/src/components/xform/utils/util.js +29 -14
- package/src/microRouter/index.js +3 -0
- package/src/mixins/tableTree/index.js +77 -14
- package/src/store/config/index.js +28 -28
- package/src/utils/menuAdapter.js +277 -277
- package/src/utils/resolveViewComponent.js +203 -203
- package/src/utils/vab.js +6 -3
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +9 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/form/vform/render.vue +17 -2
- package/src/views/user/form/view/list.vue +11 -10
- package/src/views/user/wf/wfReport/index.vue +625 -625
|
@@ -138,7 +138,7 @@ export default {
|
|
|
138
138
|
let updateParam = option?.updateParam || {};
|
|
139
139
|
if (this.formConfig) Object.assign(this.formConfig, updateParam);
|
|
140
140
|
this.showRender = false;
|
|
141
|
-
this.getReportTemplate();
|
|
141
|
+
return this.getReportTemplate();
|
|
142
142
|
},
|
|
143
143
|
async getReportTemplate(callback) {
|
|
144
144
|
let param = {
|
|
@@ -152,7 +152,7 @@ export default {
|
|
|
152
152
|
data = { stringOne: this.formCode };
|
|
153
153
|
|
|
154
154
|
let that = this;
|
|
155
|
-
this.$http({
|
|
155
|
+
return this.$http({
|
|
156
156
|
url: url,
|
|
157
157
|
method: `post`,
|
|
158
158
|
data: data,
|
|
@@ -106,7 +106,7 @@ export default {
|
|
|
106
106
|
methods: {
|
|
107
107
|
reload(){
|
|
108
108
|
this.showRender = false;
|
|
109
|
-
this.getReportTemplate();
|
|
109
|
+
return this.getReportTemplate();
|
|
110
110
|
},
|
|
111
111
|
async getReportTemplate() {
|
|
112
112
|
let param = {
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
120
120
|
data = {stringOne: this.formCode}
|
|
121
121
|
|
|
122
122
|
let that = this;
|
|
123
|
-
this.$http({
|
|
123
|
+
return this.$http({
|
|
124
124
|
url: url,
|
|
125
125
|
method: `post`,
|
|
126
126
|
data: data,
|
|
@@ -209,7 +209,7 @@ export default {
|
|
|
209
209
|
methods: {
|
|
210
210
|
reload() {
|
|
211
211
|
this.showRender = false;
|
|
212
|
-
this.getReportTemplate();
|
|
212
|
+
return this.getReportTemplate();
|
|
213
213
|
},
|
|
214
214
|
async getReportTemplate() {
|
|
215
215
|
let param = {
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
223
223
|
data = { stringOne: this.formCode };
|
|
224
224
|
|
|
225
225
|
let that = this;
|
|
226
|
-
this.$http({
|
|
226
|
+
return this.$http({
|
|
227
227
|
url: url,
|
|
228
228
|
method: `post`,
|
|
229
229
|
data: data,
|
|
@@ -71,12 +71,21 @@
|
|
|
71
71
|
},
|
|
72
72
|
|
|
73
73
|
methods: {
|
|
74
|
-
clickHandle(){
|
|
74
|
+
async clickHandle(){
|
|
75
75
|
if(this.designState || this.field.options.disabled)return
|
|
76
|
+
const formRef = this.getFormRef()
|
|
77
|
+
try {
|
|
78
|
+
if (typeof formRef.prepareTreeTablesForCopy === "function") {
|
|
79
|
+
await formRef.prepareTreeTablesForCopy()
|
|
80
|
+
}
|
|
81
|
+
} catch (error) {
|
|
82
|
+
this.$message.error(error?.message || "树表数据尚未准备完成")
|
|
83
|
+
return
|
|
84
|
+
}
|
|
76
85
|
let copyData = this.$baseLodash.cloneDeep(this.formModel);
|
|
77
86
|
|
|
78
87
|
const done = () => {
|
|
79
|
-
|
|
88
|
+
formRef.openCopyEditTab(copyData);
|
|
80
89
|
}
|
|
81
90
|
let result = this.handleCustomEvent(this.field.options.copyDataHandle, ["copyData",'done'], [copyData,done])
|
|
82
91
|
if(result === false){
|