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.
- package/.env.iot +19 -0
- package/babel.config.js +4 -1
- package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +175 -174
- package/package.json +2 -2
- package/src/base-client/components/common/XCardSet/XCardSet.vue +300 -0
- package/src/base-client/components/common/XCollapse/XCollapse.vue +154 -0
- package/src/base-client/components/common/XConversation/XConversation.vue +87 -2
- package/src/base-client/components/common/XConversation/XConversationDemo.vue +28 -28
- package/src/base-client/components/common/XDataCard/XDataCard.vue +47 -21
- package/src/base-client/components/common/XDatePicker/index.vue +13 -3
- package/src/base-client/components/common/XForm/XForm.vue +1 -1
- package/src/base-client/components/common/XForm/XFormItem.vue +17 -7
- package/src/base-client/components/common/XForm/XTreeSelect.vue +263 -264
- package/src/base-client/components/common/XForm/demo.vue +105 -0
- package/src/base-client/components/common/XFormTable/demo.vue +11 -3
- package/src/base-client/components/common/XPrint/Demo.vue +41 -41
- package/src/base-client/components/common/XRate/demo.vue +102 -0
- package/src/base-client/components/common/XRate/index.vue +136 -0
- package/src/base-client/components/common/XReportGrid/XReport.vue +240 -305
- package/src/base-client/components/common/XReportGrid/XReportDemo.vue +0 -2
- package/src/base-client/components/common/XReportGrid/XReportDesign.vue +115 -345
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +100 -723
- package/src/base-client/components/common/XTable/XTable.vue +3 -0
- package/src/base-client/components/common/XTable/XTableWrapper.vue +7 -3
- package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +172 -0
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +360 -359
- package/src/layouts/GridView.vue +43 -45
- package/src/logic/plugins/common/DateTools.js +3 -0
- package/src/logic/plugins/common/VueTools.js +30 -0
- package/src/logic/plugins/index.js +3 -1
- package/src/pages/LogicCallExample/index.vue +10 -0
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +47 -32
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +5 -0
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +876 -864
- package/src/pages/userInfoDetailManage/index.vue +82 -82
- package/src/plugins/HiPrintPlugin.js +164 -124
- package/src/router/async/router.map.js +3 -2
- package/src/services/v3Api.js +116 -116
- package/src/utils/EncryptUtil.js +6 -7
- package/src/utils/indexedDB.js +3 -1
- package/src/utils/request.js +4 -8
- package/src/utils/routerUtil.js +17 -0
- package/.babelrc +0 -3
- package/src/base-client/components/common/XReportGrid/XReportJsonRender.vue +0 -380
package/src/layouts/GridView.vue
CHANGED
|
@@ -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
|
-
:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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>
|
|
@@ -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: '
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
}
|