cloud-web-corejs 1.0.54-dev.532 → 1.0.54-dev.535
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 +8 -1
- package/src/components/excelExport/exportFieldDialog.vue +69 -7
- package/src/components/table/index.js +1 -0
- package/src/components/univer/index.vue +161 -0
- package/src/components/xform/form-designer/form-widget/dialog/univerDialog.vue +184 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1630 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2 -1
- package/src/components/xform/form-render/index.vue +3 -0
- package/src/components/xform/form-render/indexMixin.js +3503 -1
- package/src/router/modules/customer.js +8 -0
- package/src/views/user/home/default.vue +2 -1
- package/src/views/user/notify_message/dialog.vue +7 -1
- package/src/views/user/wf/wfReport/index.vue +1 -0
- package/src/views/user/wf/wf_manage/list.vue +8 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +25 -22
|
@@ -20,6 +20,14 @@ export const constantRoutes = [
|
|
|
20
20
|
},
|
|
21
21
|
hidden: true
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
path: '/test_univer',
|
|
25
|
+
component: () => import('@/views/test/test_univer.vue'),
|
|
26
|
+
meta: {
|
|
27
|
+
checkToken: false,
|
|
28
|
+
},
|
|
29
|
+
hidden: true
|
|
30
|
+
},
|
|
23
31
|
{
|
|
24
32
|
path: "",
|
|
25
33
|
component: () => import("@/layout/index"),
|
|
@@ -81,8 +81,14 @@ export default {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
if (wfUrl == "form") {
|
|
84
|
+
let formCode = null;
|
|
85
|
+
if (param.formCode) {
|
|
86
|
+
formCode = param.formCode;
|
|
87
|
+
} else {
|
|
88
|
+
formCode = param.objTypeCode.substr(9);
|
|
89
|
+
}
|
|
84
90
|
this.param = Object.assign(param, {
|
|
85
|
-
formCode:
|
|
91
|
+
formCode: formCode,
|
|
86
92
|
dataId: wfDataId,
|
|
87
93
|
});
|
|
88
94
|
let url = "/user/form/vform/render.vue";
|
|
@@ -475,9 +475,16 @@ export default {
|
|
|
475
475
|
|
|
476
476
|
let id = row.objId;
|
|
477
477
|
let wfDataId = !id || typeof id == "object" ? 0 : Number(id);
|
|
478
|
+
|
|
478
479
|
if (row.url == "form") {
|
|
480
|
+
let formCode = null;
|
|
481
|
+
if (row.formCode) {
|
|
482
|
+
formCode = row.formCode;
|
|
483
|
+
} else {
|
|
484
|
+
formCode = row.objTypeCode.substr(9);
|
|
485
|
+
}
|
|
479
486
|
this.param = {
|
|
480
|
-
formCode:
|
|
487
|
+
formCode: formCode,
|
|
481
488
|
dataId: wfDataId,
|
|
482
489
|
};
|
|
483
490
|
let url = "/user/form/vform/render.vue";
|
|
@@ -31,14 +31,13 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
|
|
33
33
|
<script>
|
|
34
|
-
|
|
35
34
|
export default {
|
|
36
35
|
name: "wfContentDialog",
|
|
37
36
|
props: {
|
|
38
37
|
option: {
|
|
39
38
|
type: Object,
|
|
40
|
-
default: {}
|
|
41
|
-
}
|
|
39
|
+
default: {},
|
|
40
|
+
},
|
|
42
41
|
},
|
|
43
42
|
components: {},
|
|
44
43
|
data() {
|
|
@@ -46,7 +45,7 @@ export default {
|
|
|
46
45
|
param: {},
|
|
47
46
|
wfContent: null,
|
|
48
47
|
showWfContent: false,
|
|
49
|
-
showWfDialog: true
|
|
48
|
+
showWfDialog: true,
|
|
50
49
|
};
|
|
51
50
|
},
|
|
52
51
|
created() {
|
|
@@ -58,7 +57,7 @@ export default {
|
|
|
58
57
|
this.$http({
|
|
59
58
|
url: USER_PREFIX + "/wf_diy_attribute/getValue",
|
|
60
59
|
method: `post`,
|
|
61
|
-
data: {attributeKey: "param4"},
|
|
60
|
+
data: { attributeKey: "param4" },
|
|
62
61
|
isLoading: true,
|
|
63
62
|
success: (res) => {
|
|
64
63
|
let val = res.objx || false;
|
|
@@ -66,7 +65,7 @@ export default {
|
|
|
66
65
|
if (val === true) {
|
|
67
66
|
this.wfClose();
|
|
68
67
|
}
|
|
69
|
-
}
|
|
68
|
+
},
|
|
70
69
|
});
|
|
71
70
|
} else {
|
|
72
71
|
this.option._handleCallback && this.option._handleCallback(flag);
|
|
@@ -74,33 +73,37 @@ export default {
|
|
|
74
73
|
},
|
|
75
74
|
wfClose() {
|
|
76
75
|
this.showWfDialog = false;
|
|
77
|
-
this.$emit(
|
|
78
|
-
this.$emit(
|
|
76
|
+
this.$emit("update:visible", false);
|
|
77
|
+
this.$emit("close");
|
|
79
78
|
},
|
|
80
79
|
openWfDialog() {
|
|
81
80
|
let id = this.option.objId;
|
|
82
|
-
let wfDataId = !id || typeof id ==
|
|
81
|
+
let wfDataId = !id || typeof id == "object" ? 0 : Number(id);
|
|
83
82
|
let param = this.option.param || {};
|
|
84
|
-
if (this.option.url ==
|
|
83
|
+
if (this.option.url == "form") {
|
|
84
|
+
let formCode = null;
|
|
85
|
+
if (this.option.formCode) {
|
|
86
|
+
formCode = this.option.formCode;
|
|
87
|
+
} else {
|
|
88
|
+
formCode = this.option.objTypeCode.substr(9);
|
|
89
|
+
}
|
|
85
90
|
this.param = Object.assign(param, {
|
|
86
|
-
formCode:
|
|
87
|
-
dataId: wfDataId
|
|
91
|
+
formCode: formCode,
|
|
92
|
+
dataId: wfDataId,
|
|
88
93
|
});
|
|
89
|
-
let url =
|
|
90
|
-
this.wfContent = require(
|
|
94
|
+
let url = "/user/form/vform/render.vue";
|
|
95
|
+
this.wfContent = require("@base/views" + url).default;
|
|
91
96
|
} else {
|
|
92
97
|
this.param = Object.assign(param, {
|
|
93
|
-
_dataId: wfDataId
|
|
98
|
+
_dataId: wfDataId,
|
|
94
99
|
});
|
|
95
|
-
let url = this.option.url +
|
|
96
|
-
this.wfContent = require(
|
|
100
|
+
let url = this.option.url + ".vue";
|
|
101
|
+
this.wfContent = require("@/views" + url).default;
|
|
97
102
|
}
|
|
98
103
|
this.showWfContent = true;
|
|
99
104
|
},
|
|
100
|
-
}
|
|
101
|
-
}
|
|
105
|
+
},
|
|
106
|
+
};
|
|
102
107
|
</script>
|
|
103
108
|
|
|
104
|
-
<style scoped>
|
|
105
|
-
|
|
106
|
-
</style>
|
|
109
|
+
<style scoped></style>
|