vue2-client 1.14.84 → 1.14.86
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/docs/Logic/345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +0 -1
- package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +2 -4
- package/package.json +1 -1
- package/src/base-client/components/common/XFormTable/XFormTable.vue +7 -0
- package/src/base-client/components/his/XQuestionnaire/XQuestionnaire.vue +20 -7
- package/src/base-client/components/his/XQuestionnaire/XQuestionnaireDemo.vue +10 -1
- package/src/base-client/components/his/XQuestionnaire/XQuestionnaireItem.vue +0 -3
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/XTreeRows/TreeNode.vue +100 -100
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +197 -197
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/base-client/components/layout/XPageView/RenderRow.vue +57 -31
- package/src/base-client/components/layout/XPageView/XErrorView.vue +14 -3
- package/src/base-client/components/layout/XPageView/XPageView.vue +138 -71
- package/src/base-client/components/layout/XPageView/index.js +1 -3
- package/src/base-client/components/layout/XPageView/index.md +65 -26
- package/src/pages/WorkflowDetail/WorkFlowDemo2.vue +90 -0
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +13 -1
- package/src/pages/XPageViewExample/index.vue +41 -8
- package/src/pages/addressSelect/addressDemo.vue +24 -24
- package/src/pages/addressSelect/index.vue +6 -12
- package/src/router/async/router.map.js +4 -2
- package/.history/public/his/editor/editor_20250606134713.html +0 -51
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +0 -509
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +0 -524
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172825.vue +0 -207
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172945.vue +0 -211
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172949.vue +0 -212
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611173010.vue +0 -212
- package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +0 -1320
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +0 -1332
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +0 -1339
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612092804.vue +0 -731
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612112546.vue +0 -748
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612113808.vue +0 -748
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115237.vue +0 -1071
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115346.vue +0 -1078
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115350.vue +0 -1077
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115415.vue +0 -1077
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115429.vue +0 -1077
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611091619.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092547.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092552.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092744.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092955.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092957.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095652.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095701.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095704.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100005.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100011.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100014.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100833.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100853.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100940.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101011.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101013.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101014.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101159.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101238.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101240.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101242.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101404.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101410.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101459.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101500.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101502.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101504.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101610.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101700.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101702.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101741.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101749.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101759.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611091349.vue +0 -131
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105854.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105902.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105924.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105932.vue +0 -158
- package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +0 -173
- package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +0 -222
- package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +0 -317
- package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +0 -306
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250609151519.vue +0 -222
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155514.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155556.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155600.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181609.vue +0 -206
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181629.vue +0 -209
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095553.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095610.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095612.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100041.vue +0 -251
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100047.vue +0 -251
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100054.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100105.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100107.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100114.vue +0 -250
- package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +0 -36
- package/src/base-client/components/TreeList/TreeList.vue +0 -91
- package/src/base-client/components/TreeList/TreeNode.vue +0 -81
- package/src/base-client/components/common/XCardSet/XTiltle.vue +0 -191
@@ -1,38 +1,77 @@
|
|
1
1
|
# XPageView
|
2
2
|
|
3
|
-
JSON
|
3
|
+
基于 JSON 配置动态构建页面的容器组件,具有高度的灵活性和可扩展性。
|
4
4
|
|
5
|
-
|
5
|
+
## 使用方法
|
6
6
|
|
7
7
|
```vue
|
8
8
|
<template>
|
9
|
-
<x-page-view ref="
|
9
|
+
<x-page-view ref="pageView" />
|
10
10
|
</template>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
11
|
+
|
12
|
+
<script setup>
|
13
|
+
import { ref, onMounted } from 'vue'
|
14
|
+
import XPageView from '@vue2-client/base-client/components/layout/XPageView'
|
15
|
+
|
16
|
+
const pageView = ref(null)
|
17
|
+
|
18
|
+
onMounted(() => {
|
19
|
+
initView()
|
20
|
+
})
|
21
|
+
|
22
|
+
const initView = () => {
|
23
|
+
pageView.value.init({
|
24
|
+
configName: 'templateTreeConfig',
|
25
|
+
serviceName: 'af-his'
|
26
|
+
})
|
27
|
+
}
|
31
28
|
</script>
|
32
29
|
```
|
33
30
|
|
34
31
|
## API
|
35
32
|
|
36
|
-
|
37
|
-
|
38
|
-
|
|
33
|
+
### 属性
|
34
|
+
|
35
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
36
|
+
| --- | --- | --- | --- |
|
37
|
+
| - | - | - | - |
|
38
|
+
|
39
|
+
### 方法
|
40
|
+
|
41
|
+
| 方法名 | 说明 | 参数 |
|
42
|
+
| --- | --- | --- |
|
43
|
+
| init | 初始化页面组件 | `{ configName, configValue, serviceName }` |
|
44
|
+
|
45
|
+
### 参数说明
|
46
|
+
|
47
|
+
| 参数名 | 说明 | 类型 | 必填 |
|
48
|
+
| --- | --- | --- | --- |
|
49
|
+
| configName | 配置名称,用于从服务端获取配置 | String | 二选一 |
|
50
|
+
| configValue | 配置的JSON数据,可以是字符串或对象 | String/Object | 二选一 |
|
51
|
+
| serviceName | 服务名称 | String | 是 |
|
52
|
+
|
53
|
+
## 结构化配置项
|
54
|
+
|
55
|
+
```json
|
56
|
+
{
|
57
|
+
"children": [
|
58
|
+
{
|
59
|
+
"type": "row",
|
60
|
+
"id": "row1",
|
61
|
+
"gutter": 16,
|
62
|
+
"children": [
|
63
|
+
{
|
64
|
+
"type": "XFormTable",
|
65
|
+
"id": "table1",
|
66
|
+
"span": 24,
|
67
|
+
"props": { ... },
|
68
|
+
"event": {
|
69
|
+
"change": "function(val, data) { console.log(val) }"
|
70
|
+
}
|
71
|
+
}
|
72
|
+
]
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"onMounted": "function(data) { console.log('页面已加载') }"
|
76
|
+
}
|
77
|
+
```
|
@@ -0,0 +1,90 @@
|
|
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
|
+
<script>
|
31
|
+
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
|
+
|
37
|
+
export default {
|
38
|
+
name: 'Apply',
|
39
|
+
components: {
|
40
|
+
XFormTable,
|
41
|
+
XAddNativeForm,
|
42
|
+
WorkflowDetail
|
43
|
+
},
|
44
|
+
data () {
|
45
|
+
return {
|
46
|
+
// 查询配置文件名
|
47
|
+
queryParamsName: 'applyCRUD',
|
48
|
+
// 发起报建弹框控制
|
49
|
+
applyAddFlag: false
|
50
|
+
}
|
51
|
+
},
|
52
|
+
computed: {
|
53
|
+
...mapState('account', { currUser: 'user' }),
|
54
|
+
},
|
55
|
+
methods: {
|
56
|
+
add () {
|
57
|
+
this.applyAddFlag = true
|
58
|
+
this.$nextTick(
|
59
|
+
() => {
|
60
|
+
getConfigByName('addApplyForm', 'af-apply', (res) => {
|
61
|
+
this.$refs.xForm.init({
|
62
|
+
businessType: '新增',
|
63
|
+
title: '发起报建',
|
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
|
+
})
|
79
|
+
},
|
80
|
+
success () {
|
81
|
+
console.log('完工')
|
82
|
+
},
|
83
|
+
toDetail (record, id) {
|
84
|
+
this.$refs.workFlow.init({
|
85
|
+
workflowId: record.twf_id
|
86
|
+
})
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
</script>
|
@@ -82,6 +82,7 @@
|
|
82
82
|
<template v-if="showForm">
|
83
83
|
<x-add-native-form
|
84
84
|
ref="xAddForm"
|
85
|
+
@x-form-item-emit-func="formItemEmitFunc"
|
85
86
|
@onSubmit="submitForm"/>
|
86
87
|
</template>
|
87
88
|
</template>
|
@@ -214,6 +215,7 @@
|
|
214
215
|
</a-tab-pane>
|
215
216
|
</a-tabs>
|
216
217
|
</template>
|
218
|
+
<address-select ref="addressSelect" @selAddress="setFormValue"></address-select>
|
217
219
|
</div>
|
218
220
|
</template>
|
219
221
|
|
@@ -237,6 +239,7 @@ import * as util from '@vue2-client/utils/util'
|
|
237
239
|
import { getConfigByNameAsync, runLogic } from '@vue2-client/services/api/common'
|
238
240
|
import XTab from '@vue2-client/base-client/components/common/XTab/XTab.vue'
|
239
241
|
import WorkFlowPreview from './WorkFlowPreview'
|
242
|
+
import AddressSelect from '@/pages/addressSelect/index.vue'
|
240
243
|
|
241
244
|
export default {
|
242
245
|
name: 'WorkFlowHandle',
|
@@ -250,7 +253,8 @@ export default {
|
|
250
253
|
FilePreview,
|
251
254
|
FileItem,
|
252
255
|
ImageItem,
|
253
|
-
WorkFlowPreview
|
256
|
+
WorkFlowPreview,
|
257
|
+
AddressSelect
|
254
258
|
},
|
255
259
|
computed: {
|
256
260
|
...mapState('account', { currUser: 'user' }),
|
@@ -1035,6 +1039,14 @@ export default {
|
|
1035
1039
|
console.error('执行按钮显示函数失败:', error)
|
1036
1040
|
return false
|
1037
1041
|
}
|
1042
|
+
},
|
1043
|
+
formItemEmitFunc (func) {
|
1044
|
+
if (func === 'selectAddress') {
|
1045
|
+
this.$refs.addressSelect.setFormShow()
|
1046
|
+
}
|
1047
|
+
},
|
1048
|
+
setFormValue (record) {
|
1049
|
+
this.$refs.xAddForm.setForm({ address: record.f_address })
|
1038
1050
|
}
|
1039
1051
|
},
|
1040
1052
|
watch: {}
|
@@ -8,19 +8,52 @@ onMounted(() => {
|
|
8
8
|
xPageViewRef.value.init({
|
9
9
|
configValue: `{
|
10
10
|
"type": "page",
|
11
|
-
"onMounted": "function (data) {
|
11
|
+
"onMounted": "function (data) {}",
|
12
|
+
"gutter": [16, 16],
|
12
13
|
"children": [
|
13
14
|
{
|
14
|
-
"id": "
|
15
|
-
"type": "
|
15
|
+
"id": "row1",
|
16
|
+
"type": "row",
|
17
|
+
"gutter": 16,
|
18
|
+
"children": [
|
19
|
+
{
|
20
|
+
"id": "xFormTable2",
|
21
|
+
"span": "12",
|
22
|
+
"type": "XFormTable",
|
23
|
+
"event": {
|
24
|
+
},
|
25
|
+
"props": {
|
26
|
+
"serviceName": "af-system",
|
27
|
+
"queryParamsName": "crud_dictionary_manage"
|
28
|
+
},
|
29
|
+
"children": [
|
30
|
+
]
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"id": "xFormTable3",
|
34
|
+
"span": "12",
|
35
|
+
"type": "XFormTable",
|
36
|
+
"event": {
|
37
|
+
},
|
38
|
+
"props": {
|
39
|
+
"serviceName": "af-system",
|
40
|
+
"queryParamsName": "crud_dictionary_manage"
|
41
|
+
},
|
42
|
+
"children": [
|
43
|
+
]
|
44
|
+
}
|
45
|
+
]
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"id": "xFormTable",
|
49
|
+
"type": "XFormTable",
|
16
50
|
"event": {
|
17
|
-
|
51
|
+
},
|
52
|
+
"props": {
|
53
|
+
"serviceName": "af-system",
|
54
|
+
"queryParamsName": "crud_dictionary_manage"
|
18
55
|
},
|
19
56
|
"children": [
|
20
|
-
{
|
21
|
-
"id": "xTreeViewAddNativeForm1",
|
22
|
-
"type": "XAddNativeForm"
|
23
|
-
}
|
24
57
|
]
|
25
58
|
}
|
26
59
|
]
|
@@ -1,24 +1,24 @@
|
|
1
|
-
<template>
|
2
|
-
<!-- 测试界面——测试地址选择新增组件-->
|
3
|
-
<div>
|
4
|
-
<a-button @click="open">打开选择地址弹窗</a-button>
|
5
|
-
<address-select :addressShow="showDialog"/>
|
6
|
-
</div>
|
7
|
-
</template>
|
8
|
-
|
9
|
-
<script>
|
10
|
-
import AddressSelect from '@/pages/addressSelect'
|
11
|
-
|
12
|
-
export default {
|
13
|
-
components: { AddressSelect },
|
14
|
-
data: () => ({
|
15
|
-
showDialog: false
|
16
|
-
}),
|
17
|
-
methods: {
|
18
|
-
open () {
|
19
|
-
console.log('打开选择地址弹窗')
|
20
|
-
this.showDialog = true
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<!-- 测试界面——测试地址选择新增组件-->
|
3
|
+
<div>
|
4
|
+
<a-button @click="open">打开选择地址弹窗</a-button>
|
5
|
+
<address-select :addressShow="showDialog"/>
|
6
|
+
</div>
|
7
|
+
</template>
|
8
|
+
|
9
|
+
<script>
|
10
|
+
import AddressSelect from '@/pages/addressSelect'
|
11
|
+
|
12
|
+
export default {
|
13
|
+
components: { AddressSelect },
|
14
|
+
data: () => ({
|
15
|
+
showDialog: false
|
16
|
+
}),
|
17
|
+
methods: {
|
18
|
+
open () {
|
19
|
+
console.log('打开选择地址弹窗')
|
20
|
+
this.showDialog = true
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
</script>
|
@@ -6,17 +6,8 @@ export default {
|
|
6
6
|
components: {
|
7
7
|
XFormTable
|
8
8
|
},
|
9
|
-
|
10
|
-
addressShow: {
|
11
|
-
required: true,
|
12
|
-
type: Boolean,
|
13
|
-
default: false
|
14
|
-
}
|
15
|
-
},
|
9
|
+
expose: ['setFormShow'],
|
16
10
|
watch: {
|
17
|
-
addressShow (val) {
|
18
|
-
this.selectAddressVisible = val
|
19
|
-
},
|
20
11
|
'form.f_address_type' (newVal, oldVal) {
|
21
12
|
this.onAddressTypeChange(newVal, oldVal)
|
22
13
|
}
|
@@ -56,6 +47,9 @@ export default {
|
|
56
47
|
}
|
57
48
|
},
|
58
49
|
methods: {
|
50
|
+
setFormShow () {
|
51
|
+
this.selectAddressVisible = true
|
52
|
+
},
|
59
53
|
selAddress (record) {
|
60
54
|
// 给表单赋值
|
61
55
|
const form = {
|
@@ -105,7 +99,7 @@ export default {
|
|
105
99
|
this.getAreaList(value)
|
106
100
|
},
|
107
101
|
getAreaList (value) {
|
108
|
-
console.log('搜索小区', this.currUser
|
102
|
+
console.log('搜索小区', this.currUser)
|
109
103
|
runLogic('getAreaListByName', {
|
110
104
|
orgId: this.currUser.orgid,
|
111
105
|
name: value
|
@@ -187,7 +181,7 @@ export default {
|
|
187
181
|
<a-modal
|
188
182
|
v-model="selectAddressVisible"
|
189
183
|
:dialog-style="{ top: '30px' }"
|
190
|
-
:bodyStyle="{height:'
|
184
|
+
:bodyStyle="{height:'80vh',overflowY:'scroll'}"
|
191
185
|
:destroy-on-close="true"
|
192
186
|
:z-index="1002"
|
193
187
|
title="选择地址"
|
@@ -55,6 +55,8 @@ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynami
|
|
55
55
|
routerResource.example = {
|
56
56
|
path: 'example',
|
57
57
|
name: '示例主页面',
|
58
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
|
59
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
58
60
|
// component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
|
59
61
|
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
60
62
|
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
@@ -66,9 +68,9 @@ routerResource.example = {
|
|
66
68
|
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
67
69
|
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
68
70
|
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
69
|
-
component: () => import('@vue2-client/base-client/components/his/XQuestionnaire/XQuestionnaireDemo.vue'),
|
70
71
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
71
|
-
// component: () => import('@vue2-client/
|
72
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
73
|
+
component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
72
74
|
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
73
75
|
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
74
76
|
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
@@ -1,51 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8"/>
|
5
|
-
<link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml"/>
|
6
|
-
<link rel="stylesheet" href="./vender/jquery/zTreeStyle/zTreeStyle.css" type="text/css">
|
7
|
-
<script src = "./vender/jquery/jquery.js"></script>
|
8
|
-
<script src = "./vender/date97/WdatePicker.js"></script>
|
9
|
-
<script src = "./vender/jquery/jquery.ztree.core.min.js"></script>
|
10
|
-
<script src = "./vender/jquery/jquery.ztree.exedit.min.js"></script>
|
11
|
-
<script src = "./vender/jquery/jquery.ztree.exhide.min.js"></script>
|
12
|
-
<script src = "./vender/codemirror.js"></script>
|
13
|
-
<script src = "./vender/fabric.js"></script>
|
14
|
-
<script src="./vender/editor.js"></script>
|
15
|
-
<script>
|
16
|
-
$(function() {
|
17
|
-
//配置项可以不设置,会使用默认设置
|
18
|
-
let option = {
|
19
|
-
license:'QO1pepfLYwDNqGvW21ensj0psE9CxBxf5MSRD1q2sCvclYGGtk6clTZEIth12i4SvvvDC04ZNcHe3uQuNtBUFcAk7sHUwAdYvffM2aZis/jpZqrm1rDGk1NHYsheD6DroF+m3jZ5Izh/LxRjzZJfaHHejfrn5InFoSqErfPm4gY=',
|
20
|
-
mode:'form', //默认模式 form:表单模式,design:设计模式
|
21
|
-
pdfUrl:'https://www.x-emr.cn/pdf/post', //pdf生成服务
|
22
|
-
dictionary: [ //知识库
|
23
|
-
{name: '体征', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=20', itemUrl:'https://www.x-emr.cn/dictitem'},
|
24
|
-
{name: '症状', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=20', itemUrl:'https://www.x-emr.cn/dictitem'},
|
25
|
-
{name: '卫生信息数据元', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=40', itemUrl:'https://www.x-emr.cn/dictitem'},
|
26
|
-
{name: '电子病历数据集', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=50', itemUrl:'https://www.x-emr.cn/dictitem'},
|
27
|
-
{name: '国家医保标准', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=80', itemUrl:'https://www.x-emr.cn/dictitem'},
|
28
|
-
{name: '省数据平台标准', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=90', itemUrl:'https://www.x-emr.cn/dictitem'},
|
29
|
-
]
|
30
|
-
}
|
31
|
-
|
32
|
-
//从模块的Editor组件中获取mode,doc,lang属性 (该段代码可删除)
|
33
|
-
let mode = window.frameElement.getAttribute('mode')
|
34
|
-
let doc = window.frameElement.getAttribute('doc')
|
35
|
-
let lang = window.frameElement.getAttribute('lang')
|
36
|
-
mode? option.mode = mode: null
|
37
|
-
lang? option.lang = lang: null
|
38
|
-
|
39
|
-
//初始化编辑器(初始化代码可以放入组件的load事件中)
|
40
|
-
editor.init(option).then(()=>{
|
41
|
-
doc? editor.loadUrl(doc) : null
|
42
|
-
})
|
43
|
-
|
44
|
-
})
|
45
|
-
</script>
|
46
|
-
</head>
|
47
|
-
<body>
|
48
|
-
<!-- 默认id 为editor -->
|
49
|
-
<div id="editor" style="width:100%; height:100%;"></div>
|
50
|
-
</body>
|
51
|
-
</html>
|