vue2-client 1.14.70 → 1.14.71
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 +1 -1
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/XDetailsView/index.js +3 -3
- package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
- package/src/base-client/components/his/XCharge/XCharge.vue +1 -0
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +6 -1
- package/src/base-client/components/his/XHisEditor/diagnosisAutocomplete.js +1 -1
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +36 -79
- package/vue.config.js +2 -2
package/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import AmapPointRendering from './AmapPointRendering'
|
|
2
|
-
|
|
3
|
-
export default AmapPointRendering
|
|
1
|
+
import AmapPointRendering from './AmapPointRendering'
|
|
2
|
+
|
|
3
|
+
export default AmapPointRendering
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import XDetailsView from './XDetailsView'
|
|
2
|
-
|
|
3
|
-
export default XDetailsView
|
|
1
|
+
import XDetailsView from './XDetailsView'
|
|
2
|
+
|
|
3
|
+
export default XDetailsView
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import XFormGroupDetails from './XFormGroupDetails'
|
|
2
|
-
|
|
3
|
-
export default XFormGroupDetails
|
|
1
|
+
import XFormGroupDetails from './XFormGroupDetails'
|
|
2
|
+
|
|
3
|
+
export default XFormGroupDetails
|
|
@@ -157,6 +157,7 @@ export default {
|
|
|
157
157
|
toggleResId: undefined,
|
|
158
158
|
// 待提交的修改信息
|
|
159
159
|
modifyResModel: {},
|
|
160
|
+
codeData: {},
|
|
160
161
|
resRules: {
|
|
161
162
|
f_file_name: [{ required: true, message: '请输入文档名', trigger: 'blur' }],
|
|
162
163
|
}
|
|
@@ -188,6 +189,7 @@ export default {
|
|
|
188
189
|
this.editorRef.document.addEventListener('diagnosis-selected', function(e) {
|
|
189
190
|
if (e && e.detail) {
|
|
190
191
|
that.$emit('selected', { item: e.detail, editor: that.editorRef });
|
|
192
|
+
that.codeData = { ...that.codeData, ...{[e.detail.codeKey]: e.detail.code} }
|
|
191
193
|
}
|
|
192
194
|
});
|
|
193
195
|
|
|
@@ -394,7 +396,10 @@ export default {
|
|
|
394
396
|
// 获取HTML文档和结构化数据(JSON)
|
|
395
397
|
const data = {
|
|
396
398
|
doc: this.editorRef.getHtml(),
|
|
397
|
-
dataObject:
|
|
399
|
+
dataObject: {
|
|
400
|
+
...this.editorRef.getBindObject(),
|
|
401
|
+
...this.codeData // 合并 codeData 数据
|
|
402
|
+
},
|
|
398
403
|
dataMode: this.dataMode,
|
|
399
404
|
resId: this.resId,
|
|
400
405
|
modifyResModel: this.modifyResModel,
|
|
@@ -225,7 +225,7 @@ export function initDiagnosisDropdown (editor, data, identificationCode, emitFun
|
|
|
225
225
|
// 使用传入的emit函数触发事件
|
|
226
226
|
if (typeof emitFunc === 'function') {
|
|
227
227
|
// 只传递数据参数,不再传递事件名
|
|
228
|
-
emitFunc(selectedItem)
|
|
228
|
+
emitFunc(Object.assign(selectedItem,{codeKey :identificationCode.replace(/^#/, '') + '_code'}))
|
|
229
229
|
}
|
|
230
230
|
} else {
|
|
231
231
|
// 如果找不到完整数据,至少打印出已知信息
|
|
@@ -1,90 +1,47 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-card :bordered="false">
|
|
3
|
-
<x-form-table
|
|
4
|
-
title="示例页面"
|
|
5
|
-
:queryParamsName="queryParamsName"
|
|
6
|
-
:fixed-query-form="{
|
|
7
|
-
users_f_handler_id: currUser.id,
|
|
8
|
-
}"
|
|
9
|
-
@action="toDetail">
|
|
10
|
-
<template slot="button">
|
|
11
|
-
<a-button @click="add">
|
|
12
|
-
<a-icon type="plus"/>
|
|
13
|
-
发起报建
|
|
14
|
-
</a-button>
|
|
15
|
-
</template>
|
|
16
|
-
</x-form-table>
|
|
17
|
-
<a-modal
|
|
18
|
-
v-model="applyAddFlag"
|
|
19
|
-
:footer="null"
|
|
20
|
-
:dialog-style="{ top: '5rem' }"
|
|
21
|
-
:z-index="1001"
|
|
22
|
-
title="发起报建"
|
|
23
|
-
:destroyOnClose="true">
|
|
24
|
-
<x-add-native-form ref="xForm" @onSubmit="applySubmit"/>
|
|
25
|
-
</a-modal>
|
|
26
|
-
<WorkflowDetail ref="workFlow" @success="success"></WorkflowDetail>
|
|
27
|
-
</a-card>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
1
|
<script>
|
|
31
2
|
import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
|
|
32
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
33
|
-
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
34
|
-
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
35
|
-
import { mapState } from 'vuex'
|
|
36
3
|
|
|
37
4
|
export default {
|
|
38
|
-
name: '
|
|
39
|
-
components: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
data () {
|
|
45
|
-
return {
|
|
46
|
-
// 查询配置文件名
|
|
47
|
-
queryParamsName: 'applyCRUD',
|
|
48
|
-
// 发起报建弹框控制
|
|
49
|
-
applyAddFlag: false
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
computed: {
|
|
53
|
-
...mapState('account', { currUser: 'user' }),
|
|
5
|
+
name: 'WorkFlowDemo',
|
|
6
|
+
components: { WorkflowDetail },
|
|
7
|
+
mounted () {
|
|
8
|
+
this.$refs.workFlow.init({
|
|
9
|
+
workflowId: '11'
|
|
10
|
+
})
|
|
54
11
|
},
|
|
55
12
|
methods: {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
...res
|
|
65
|
-
})
|
|
66
|
-
})
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
},
|
|
70
|
-
applySubmit (formData) {
|
|
71
|
-
runLogic('addApply', formData).then(
|
|
72
|
-
res => {
|
|
73
|
-
this.$message.success('发起报建成功')
|
|
74
|
-
this.applyAddFlag = false
|
|
75
|
-
}
|
|
76
|
-
).catch(() => {
|
|
77
|
-
this.applyAddFlag = false
|
|
78
|
-
})
|
|
13
|
+
/**
|
|
14
|
+
* 流程详情页成功
|
|
15
|
+
* @param note 备注信息
|
|
16
|
+
* @param form 表单信息
|
|
17
|
+
* @param workflowId
|
|
18
|
+
*/
|
|
19
|
+
success ({ note, form, workflowId }) {
|
|
20
|
+
console.log('success', note, form, workflowId)
|
|
79
21
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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)
|
|
87
36
|
}
|
|
88
37
|
}
|
|
89
38
|
}
|
|
90
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>
|
package/vue.config.js
CHANGED
|
@@ -11,12 +11,12 @@ const productionGzipExtensions = ['js', 'css']
|
|
|
11
11
|
const isProd = process.env.NODE_ENV === 'production'
|
|
12
12
|
|
|
13
13
|
// v4 产品演示
|
|
14
|
-
const v3Server = 'http://
|
|
14
|
+
const v3Server = 'http://aote-office.8866.org:31567'
|
|
15
15
|
// const gateway = 'http://192.168.50.67:31467'
|
|
16
16
|
// const testUpload = 'http://123.60.214.109:8406'
|
|
17
17
|
const OSSServerDev = 'http://192.168.50.67:30351'
|
|
18
18
|
// const revenue = 'http://aote-office.8866.org:31567'
|
|
19
|
-
const revenue = 'http://
|
|
19
|
+
const revenue = 'http://aote-office.8866.org:31567'
|
|
20
20
|
// const OSSServerProd = 'http://192.168.50.67:31351'
|
|
21
21
|
// const testUploadLocal = 'http://127.0.0.1:9001'
|
|
22
22
|
// v3 铜川
|