cloud-web-corejs 1.0.54-dev.533 → 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.
@@ -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"),
@@ -393,7 +393,8 @@ export default {
393
393
  this.wfContentOption = {
394
394
  objId: row.objId,
395
395
  url: row.url,
396
- objTypeCode: row.objTypeCode
396
+ objTypeCode: row.objTypeCode,
397
+ formCode: row.formCode
397
398
  };
398
399
  this.showWfDialog = true;
399
400
  },
@@ -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: param.objTypeCode.substr(9),
91
+ formCode: formCode,
86
92
  dataId: wfDataId,
87
93
  });
88
94
  let url = "/user/form/vform/render.vue";
@@ -297,6 +297,7 @@ export default {
297
297
  objId: row.obj_id,
298
298
  url: row.url,
299
299
  objTypeCode: row.obj_type_code,
300
+ formCode: row.formCode,
300
301
  };
301
302
  this.showWfDialog = true;
302
303
  },
@@ -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: row.objTypeCode.substr(9),
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('update:visible', false);
78
- this.$emit('close');
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 == 'object' ? 0 : Number(id);
81
+ let wfDataId = !id || typeof id == "object" ? 0 : Number(id);
83
82
  let param = this.option.param || {};
84
- if (this.option.url == 'form') {
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: this.option.objTypeCode.substr(9),
87
- dataId: wfDataId
91
+ formCode: formCode,
92
+ dataId: wfDataId,
88
93
  });
89
- let url = '/user/form/vform/render.vue';
90
- this.wfContent = require('@base/views' + url).default;
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 + '.vue';
96
- this.wfContent = require('@/views' + url).default;
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>