vue2-client 1.12.2 → 1.12.3-9.alpha.1

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.
Files changed (44) hide show
  1. package/.env.iot +19 -0
  2. package/babel.config.js +4 -1
  3. package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +175 -174
  4. package/package.json +2 -2
  5. package/src/base-client/components/common/XCardSet/XCardSet.vue +300 -0
  6. package/src/base-client/components/common/XCollapse/XCollapse.vue +154 -0
  7. package/src/base-client/components/common/XConversation/XConversation.vue +87 -2
  8. package/src/base-client/components/common/XConversation/XConversationDemo.vue +28 -28
  9. package/src/base-client/components/common/XDataCard/XDataCard.vue +47 -21
  10. package/src/base-client/components/common/XDatePicker/index.vue +13 -3
  11. package/src/base-client/components/common/XForm/XForm.vue +1 -1
  12. package/src/base-client/components/common/XForm/XFormItem.vue +17 -7
  13. package/src/base-client/components/common/XForm/XTreeSelect.vue +263 -264
  14. package/src/base-client/components/common/XForm/demo.vue +105 -0
  15. package/src/base-client/components/common/XFormTable/demo.vue +11 -3
  16. package/src/base-client/components/common/XPrint/Demo.vue +41 -41
  17. package/src/base-client/components/common/XRate/demo.vue +102 -0
  18. package/src/base-client/components/common/XRate/index.vue +136 -0
  19. package/src/base-client/components/common/XReportGrid/XReport.vue +240 -305
  20. package/src/base-client/components/common/XReportGrid/XReportDemo.vue +0 -2
  21. package/src/base-client/components/common/XReportGrid/XReportDesign.vue +115 -345
  22. package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +100 -723
  23. package/src/base-client/components/common/XTable/XTable.vue +3 -0
  24. package/src/base-client/components/common/XTable/XTableWrapper.vue +7 -3
  25. package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +172 -0
  26. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +360 -359
  27. package/src/layouts/GridView.vue +43 -45
  28. package/src/logic/plugins/common/DateTools.js +3 -0
  29. package/src/logic/plugins/common/VueTools.js +30 -0
  30. package/src/logic/plugins/index.js +3 -1
  31. package/src/pages/LogicCallExample/index.vue +10 -0
  32. package/src/pages/WorkflowDetail/WorkFlowDemo.vue +47 -32
  33. package/src/pages/WorkflowDetail/WorkflowDetail.vue +5 -0
  34. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +876 -864
  35. package/src/pages/userInfoDetailManage/index.vue +82 -82
  36. package/src/plugins/HiPrintPlugin.js +164 -124
  37. package/src/router/async/router.map.js +3 -2
  38. package/src/services/v3Api.js +116 -116
  39. package/src/utils/EncryptUtil.js +6 -7
  40. package/src/utils/indexedDB.js +3 -1
  41. package/src/utils/request.js +4 -8
  42. package/src/utils/routerUtil.js +17 -0
  43. package/.babelrc +0 -3
  44. package/src/base-client/components/common/XReportGrid/XReportJsonRender.vue +0 -380
@@ -1,45 +1,43 @@
1
- <template>
2
- <div id="test">
3
- <a-card :bordered="false">
4
- <XReport
5
- ref="main"
6
- v-if="configName"
7
- :use-oss-for-img="false"
8
- :config-name="configName"
9
- :show-img-in-cell="true"
10
- :display-only="true"
11
- :edit-mode="false"
12
- :show-save-button="false"
13
- :no-padding="true"
14
- :dont-format="true"/>
15
- <a-empty v-else/>
16
- </a-card>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- import XReport from '@vue2-client/base-client/components/common/XReportGrid/XReport.vue'
22
-
23
- export default {
24
- name: 'GridView',
25
- components: {
26
- XReport
27
- },
28
- mounted () {
29
- // 获取当前路由中的meta
30
- this.configName = this.$router.currentRoute.meta.configName
31
- this.nothing = !this.configName
32
- },
33
- data () {
34
- return {
35
- configName: '',
36
- nothing: false
37
- }
38
- },
39
- methods: {
40
- }
41
- }
42
- </script>
43
- <style scoped>
44
-
45
- </style>
1
+ <template>
2
+ <div id="test">
3
+ <a-card :bordered="false">
4
+ <XReport
5
+ ref="main"
6
+ v-if="configName"
7
+ :use-oss-for-img="false"
8
+ :config-name="configName"
9
+ :show-img-in-cell="true"
10
+ :display-only="true"
11
+ :edit-mode="false"
12
+ :dont-format="true"/>
13
+ <a-empty v-else/>
14
+ </a-card>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+ import XReport from '@vue2-client/base-client/components/common/XReportGrid/XReport.vue'
20
+
21
+ export default {
22
+ name: 'GridView',
23
+ components: {
24
+ XReport
25
+ },
26
+ mounted () {
27
+ // 获取当前路由中的meta
28
+ this.configName = this.$router.currentRoute.meta.configName
29
+ this.nothing = !this.configName
30
+ },
31
+ data () {
32
+ return {
33
+ configName: '',
34
+ nothing: false
35
+ }
36
+ },
37
+ methods: {
38
+ }
39
+ }
40
+ </script>
41
+ <style scoped>
42
+
43
+ </style>
@@ -1,3 +1,6 @@
1
+ /**
2
+ * 日期工具类
3
+ */
1
4
  export default class DateTools {
2
5
  static instance = new DateTools()
3
6
 
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Vue工具类
3
+ */
4
+ export default class VueTools {
5
+ static instance = new VueTools()
6
+
7
+ constructor () {
8
+ if (VueTools.instance) {
9
+ return VueTools.instance
10
+ }
11
+ VueTools.instance = this
12
+ }
13
+
14
+ static getInstance () {
15
+ if (!VueTools.instance) {
16
+ VueTools.instance = new VueTools()
17
+ }
18
+ return VueTools.instance
19
+ }
20
+
21
+ /**
22
+ * 获取组件实例
23
+ * @param vueRef vue实例
24
+ * @param componentName 组件实例名(refName)
25
+ * @returns {VueComponent}
26
+ */
27
+ getComponent (vueRef, componentName) {
28
+ return vueRef.$refs[componentName]
29
+ }
30
+ }
@@ -1,5 +1,7 @@
1
1
  import DateTools from '@vue2-client/logic/plugins/common/DateTools'
2
+ import VueTools from '@vue2-client/logic/plugins/common/VueTools'
2
3
 
3
4
  export default {
4
- dateTools: DateTools.getInstance()
5
+ dateTools: DateTools.getInstance(),
6
+ vueTools: VueTools.getInstance()
5
7
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  import LogicRunner from '@vue2-client/logic/LogicRunner'
4
4
  import { getCurrentInstance, ref } from 'vue'
5
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
5
6
 
6
7
  const { proxy } = getCurrentInstance()
7
8
 
@@ -28,6 +29,15 @@ async function testLogic () {
28
29
  显示值:<span ref="displaySpan">{{ metaData.displayValue }}</span>
29
30
  <br/>
30
31
  <a-button @click="testLogic">修改</a-button>
32
+ <br/>
33
+ <p>调用组件方法</p>
34
+ <br/>
35
+ <x-form-table
36
+ ref="testFormTable"
37
+ serviceName="af-system"
38
+ :queryParamsName="'crud_dictionary_manage'"
39
+ title="字典">
40
+ </x-form-table>
31
41
  </div>
32
42
  </template>
33
43
 
@@ -1,32 +1,47 @@
1
- <script>
2
- import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
3
-
4
- export default {
5
- name: 'WorkFlowDemo',
6
- components: { WorkflowDetail },
7
- mounted () {
8
- this.$refs.workFlow.init({
9
- workflowId: '9'
10
- })
11
- },
12
- methods: {
13
- /**
14
- * 流程详情页成功
15
- * @param note 备注信息
16
- * @param form 表单信息
17
- * @param workflowId
18
- */
19
- success ({ note, form, workflowId }) {
20
- console.log('success', note, form, workflowId)
21
- }
22
- }
23
- }
24
- </script>
25
-
26
- <template>
27
- <WorkflowDetail ref="workFlow" @success="success"></WorkflowDetail>
28
- </template>
29
-
30
- <style scoped lang="less">
31
-
32
- </style>
1
+ <script>
2
+ import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
3
+
4
+ export default {
5
+ name: 'WorkFlowDemo',
6
+ components: { WorkflowDetail },
7
+ mounted () {
8
+ this.$refs.workFlow.init({
9
+ workflowId: '194'
10
+ })
11
+ },
12
+ methods: {
13
+ /**
14
+ * 流程详情页成功
15
+ * @param note 备注信息
16
+ * @param form 表单信息
17
+ * @param workflowId
18
+ */
19
+ success ({ note, form, workflowId }) {
20
+ console.log('success', note, form, workflowId)
21
+ },
22
+ /**
23
+ * 流程详情页成功
24
+ * @param note 备注信息
25
+ * @param form 表单信息
26
+ * @param workflowId 工作流id
27
+ * @param fromStepId 起ID
28
+ * @param toStepId 往ID
29
+ * @param successStepId 完成步骤id
30
+ * @param successStep 完成步骤名称
31
+ * @param fromStep 起步骤名称
32
+ * @param toStep 往步骤名称
33
+ */
34
+ nextClick ({ note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep }) {
35
+ console.log('success', note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep)
36
+ }
37
+ }
38
+ }
39
+ </script>
40
+
41
+ <template>
42
+ <WorkflowDetail ref="workFlow" @success="success" @nextClick="nextClick"></WorkflowDetail>
43
+ </template>
44
+
45
+ <style scoped lang="less">
46
+
47
+ </style>
@@ -36,6 +36,7 @@
36
36
  :details="details"
37
37
  @refresh="stepChanged"
38
38
  @success="success"
39
+ @nextClick="nextClick"
39
40
  />
40
41
  </a-tab-pane>
41
42
  <a-tab-pane key="2" tab="任务流转记录">
@@ -193,6 +194,10 @@ export default {
193
194
  success (res) {
194
195
  this.visible = false
195
196
  this.$emit('success', res)
197
+ },
198
+ // 提交完成后事件
199
+ nextClick (res) {
200
+ this.$emit('nextClick', res)
196
201
  }
197
202
  }
198
203
  }