vue2-client 1.15.39 → 1.15.40

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,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.15.39",
3
+ "version": "1.15.40",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -8,7 +8,7 @@
8
8
  users_f_handler_id: currUser.id,
9
9
  }"
10
10
  @action="toDetail">
11
- <template slot="button">
11
+ <template #leftButton>
12
12
  <a-button @click="addApply">
13
13
  <a-icon type="plus"/>
14
14
  发起报建
@@ -923,6 +923,17 @@ export default {
923
923
  layout: properties.form.xAddFormLayout,
924
924
  showSubmitBtn: false
925
925
  })
926
+ // 初始化的数据渲染(流程第一步)
927
+ postByServiceName(workFlowViewApi.getStepNoteAndHandler, {
928
+ workflowId: this.workflowId
929
+ })
930
+ .then(res => {
931
+ console.log('导入的原始数据-json', res[0].f_data)
932
+ console.log('转换后的数据-对象', JSON.parse(res[0].f_data))
933
+ this.$refs.xAddForm.setForm(JSON.parse(res[0].f_data))
934
+ }, err => {
935
+ console.log(err)
936
+ })
926
937
  })
927
938
  } else {
928
939
  this.showForm = false
@@ -54,13 +54,14 @@ routerResource.example = {
54
54
  path: 'example',
55
55
  name: '示例主页面',
56
56
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
57
+ component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo3.vue'),
57
58
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
58
59
  // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
59
60
  // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
60
61
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
61
62
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
62
63
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
63
- component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
64
+ // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
64
65
  // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
65
66
  // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
66
67
  // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),