workflow-editor 0.0.5-up → 0.0.7-up

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "workflow-editor",
3
3
  "private": false,
4
- "version": "0.0.5-up",
4
+ "version": "0.0.7-up",
5
5
  "type": "module",
6
6
  "main": "lib/workflow-editor.js",
7
7
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "devDependencies": {
18
18
  "@vitejs/plugin-vue": "^4.2.3",
19
19
  "element-plus": "^2.4.1",
20
- "imatrix-ui": "0.2.7-up",
20
+ "imatrix-ui": "0.2.11-up",
21
21
  "nprogress": "^0.2.0",
22
22
  "sass": "^1.69.4",
23
23
  "vite": "^4.4.5",
@@ -2,7 +2,7 @@ import formValidatorService from './formValidatorUtil'
2
2
 
3
3
  export default {
4
4
  install: function(Vue, options) {
5
- Vue.prototype.$formValidator = formValidatorService.formValidator
6
- Vue.prototype.$getValidator = formValidatorService.getValidator
5
+ Vue.config.globalProperties.$formValidator = formValidatorService.formValidator
6
+ Vue.config.globalProperties.$getValidator = formValidatorService.getValidator
7
7
  }
8
8
  }
@@ -7,7 +7,7 @@ function getHttp() {
7
7
  }
8
8
  const processService = {
9
9
  fetchFormFields(formCode, formVersion) {
10
- getHttp().get(Vue.prototype.baseAPI + '/wf-editor/workflow-editors/form-fields?formCode=' + formCode + '&formVersion=' + formVersion).then(resultFields => {
10
+ getHttp().get(window.$vueApp.config.globalProperties.baseAPI + '/wf-editor/workflow-editors/form-fields?formCode=' + formCode + '&formVersion=' + formVersion).then(resultFields => {
11
11
  const formFields = resultFields.formFields
12
12
  const subFormFields = resultFields.subFormFields
13
13
  getStore().commit('wfEditor/setFormCode', formCode)
@@ -25,7 +25,7 @@ const processService = {
25
25
  })
26
26
  },
27
27
  fetchSubprocessFormFields(processCode, processVersion) {
28
- return getHttp().get(Vue.prototype.baseAPI + '/wf-editor/workflow-editors/form-fields-with-processes?processCode=' + processCode + '&processVersion=' + processVersion)
28
+ return getHttp().get(window.$vueApp.config.globalProperties.baseAPI + '/wf-editor/workflow-editors/form-fields-with-processes?processCode=' + processCode + '&processVersion=' + processVersion)
29
29
  }
30
30
  }
31
31
  export default processService
@@ -143,7 +143,7 @@ export default {
143
143
  }
144
144
  },
145
145
  created() {
146
- this.baseURL = Vue.prototype.baseURL
146
+ this.baseURL = window.$vueApp.config.globalProperties.baseURL
147
147
  this.optionUrl = '/bs/email-templates/list/0'
148
148
  // inform在xml中可能是没有的,所以不能直接使用inform作为model
149
149
  // 通过deep监听model把设置的值返回给流程的inform属性
@@ -57,7 +57,7 @@ export default {
57
57
  }
58
58
  },
59
59
  created() {
60
- this.baseURL = Vue.prototype.baseURL
60
+ this.baseURL = window.$vueApp.config.globalProperties.baseURL
61
61
  this.optionUrl = '/mc/email-templates/list/0'
62
62
  },
63
63
  methods: {
@@ -51,7 +51,7 @@ export default {
51
51
  }
52
52
  },
53
53
  created() {
54
- this.baseURL = Vue.prototype.baseURL
54
+ this.baseURL = window.$vueApp.config.globalProperties.baseURL
55
55
  if (this.pageFormCode) {
56
56
  this.listURL = '/wf-editor/workflow-editors/modulePages/' + this.pageFormCode
57
57
  }