vue2-client 1.15.1 → 1.15.3
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.message +19 -19
- package/package.json +109 -109
- package/src/base-client/components/common/XFormTable/XFormTable.vue +7 -0
- package/src/base-client/components/common/XFormTable/demo.vue +86 -86
- package/src/base-client/components/common/XTab/XTab.vue +1 -0
- package/src/base-client/components/common/XTable/XTable.vue +1587 -1587
- package/src/pages/WorkflowDetail/WorkFlowDemo2.vue +34 -7
- package/src/pages/addressSelect/addressDemo.vue +24 -24
- package/src/router/async/router.map.js +127 -127
- package/vue.config.js +220 -220
@@ -1,14 +1,15 @@
|
|
1
1
|
<template>
|
2
2
|
<a-card :bordered="false">
|
3
3
|
<x-form-table
|
4
|
-
title="
|
4
|
+
title="我的工单"
|
5
|
+
ref="xFormTable"
|
5
6
|
:queryParamsName="queryParamsName"
|
6
7
|
:fixed-query-form="{
|
7
8
|
users_f_handler_id: currUser.id,
|
8
9
|
}"
|
9
10
|
@action="toDetail">
|
10
11
|
<template slot="button">
|
11
|
-
<a-button @click="
|
12
|
+
<a-button @click="addApply">
|
12
13
|
<a-icon type="plus"/>
|
13
14
|
发起报建
|
14
15
|
</a-button>
|
@@ -26,6 +27,7 @@
|
|
26
27
|
<WorkflowDetail
|
27
28
|
ref="workFlow"
|
28
29
|
@success="success"
|
30
|
+
@nextClick="nextClick"
|
29
31
|
@x-form-item-emit-func="handleFormItemEvent"
|
30
32
|
>
|
31
33
|
</WorkflowDetail>
|
@@ -66,10 +68,17 @@ export default {
|
|
66
68
|
WorkflowDetail,
|
67
69
|
AddressSelect
|
68
70
|
},
|
71
|
+
provide () {
|
72
|
+
return {
|
73
|
+
parentAPI: {
|
74
|
+
setCancel: this.setCancel,
|
75
|
+
}
|
76
|
+
}
|
77
|
+
},
|
69
78
|
data () {
|
70
79
|
return {
|
71
80
|
// 查询配置文件名
|
72
|
-
queryParamsName: '
|
81
|
+
queryParamsName: 'ApplyProcessCRUD',
|
73
82
|
// 发起报建弹框控制
|
74
83
|
applyAddFlag: false,
|
75
84
|
formState: false,
|
@@ -81,7 +90,8 @@ export default {
|
|
81
90
|
...mapState('account', { currUser: 'user' }),
|
82
91
|
},
|
83
92
|
methods: {
|
84
|
-
|
93
|
+
addApply () {
|
94
|
+
console.log('打开了吗')
|
85
95
|
this.applyAddFlag = true
|
86
96
|
this.$nextTick(
|
87
97
|
() => {
|
@@ -99,6 +109,7 @@ export default {
|
|
99
109
|
runLogic('addApply', formData).then(
|
100
110
|
res => {
|
101
111
|
this.$message.success('发起报建成功')
|
112
|
+
this.$refs.xFormTable.refreshTable(true)
|
102
113
|
this.applyAddFlag = false
|
103
114
|
}
|
104
115
|
).catch(() => {
|
@@ -110,7 +121,7 @@ export default {
|
|
110
121
|
},
|
111
122
|
toDetail (record, id) {
|
112
123
|
this.$refs.workFlow.init({
|
113
|
-
workflowId: record.
|
124
|
+
workflowId: record.ab_f_workflow_id
|
114
125
|
})
|
115
126
|
},
|
116
127
|
handleFormItemEvent (func, data, value) {
|
@@ -120,7 +131,23 @@ export default {
|
|
120
131
|
}
|
121
132
|
},
|
122
133
|
setForm (record) {
|
123
|
-
this.$refs.workFlow.setFormValue({ address: record.f_address })
|
134
|
+
this.$refs.workFlow.setFormValue({ address: record.f_address, address_id: record.f_address_id })
|
135
|
+
},
|
136
|
+
nextClick ({ form, formStep, workflowId }) {
|
137
|
+
console.log('success', form, formStep, workflowId)
|
138
|
+
const data = {
|
139
|
+
workflowId,
|
140
|
+
form,
|
141
|
+
formStep
|
142
|
+
}
|
143
|
+
runLogic('applySubmitAfter', data, 'af-apply').then(
|
144
|
+
res => {
|
145
|
+
if (res) {
|
146
|
+
// this.$message.success('提交成功!')
|
147
|
+
this.$refs.xFormTable.refreshTable(true)
|
148
|
+
}
|
149
|
+
}
|
150
|
+
)
|
124
151
|
},
|
125
152
|
// 协议作废
|
126
153
|
setCancel (record) {
|
@@ -166,7 +193,7 @@ export default {
|
|
166
193
|
...formData,
|
167
194
|
}
|
168
195
|
console.log('==formData', data)
|
169
|
-
await runLogic('
|
196
|
+
await runLogic('暂时没有实现的logic', data, 'af-apply').then(() => {
|
170
197
|
this.$message.success('操作成功')
|
171
198
|
this.formState = false
|
172
199
|
})
|
@@ -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>
|
@@ -1,127 +1,127 @@
|
|
1
|
-
const { homePage } = require('../../config')
|
2
|
-
// 视图组件
|
3
|
-
const view = {
|
4
|
-
tabs: () => import('@vue2-client/layouts/tabs'),
|
5
|
-
blank: () => import('@vue2-client/layouts/BlankView'),
|
6
|
-
page: () => import('@vue2-client/layouts/PageView'),
|
7
|
-
// his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
|
8
|
-
gridView: () => import('@vue2-client/layouts/GridView'),
|
9
|
-
login: () => import('@vue2-client/pages/login/Login'),
|
10
|
-
loginv3: () => import('@vue2-client/pages/login/LoginV3')
|
11
|
-
}
|
12
|
-
// 动态路由对象定义
|
13
|
-
const routerResource = {}
|
14
|
-
// --------------------------------------基本视图组件--------------------------------------
|
15
|
-
// 空白视图
|
16
|
-
routerResource.blank = view.blank
|
17
|
-
// 单页面视图
|
18
|
-
routerResource.singlePage = view.blank
|
19
|
-
// 栅格配置视图
|
20
|
-
routerResource.gridView = view.gridView
|
21
|
-
// 测试
|
22
|
-
routerResource.businessQuery = view.blank
|
23
|
-
// 业务查询 - 收费查询
|
24
|
-
routerResource.chargeQuery = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
25
|
-
// --------------------------------------仪表盘--------------------------------------
|
26
|
-
routerResource.dashboard = view.blank
|
27
|
-
// 工作台
|
28
|
-
routerResource.workplace = () =>
|
29
|
-
import('@vue2-client/pages/dashboard/workplace')
|
30
|
-
// --------------------------------------系统配置--------------------------------------
|
31
|
-
routerResource.system = view.blank
|
32
|
-
// 字典管理
|
33
|
-
routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
|
34
|
-
// 文件管理
|
35
|
-
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
36
|
-
// 登录日志
|
37
|
-
routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
|
38
|
-
// 操作日志
|
39
|
-
routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
|
40
|
-
// 系统问题反馈工单
|
41
|
-
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
42
|
-
// 通用服务评价
|
43
|
-
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
44
|
-
// 系统设置
|
45
|
-
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
46
|
-
// AMIS示例页面
|
47
|
-
routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
|
48
|
-
// 页面编辑器
|
49
|
-
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
50
|
-
// 数据检索
|
51
|
-
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
52
|
-
// 数据检索(新)
|
53
|
-
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
54
|
-
// 示例页面
|
55
|
-
routerResource.example = {
|
56
|
-
path: 'example',
|
57
|
-
name: '示例主页面',
|
58
|
-
|
59
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
60
|
-
// component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
|
61
|
-
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
62
|
-
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
63
|
-
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
64
|
-
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
65
|
-
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
66
|
-
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
67
|
-
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
68
|
-
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
69
|
-
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
70
|
-
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
71
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
72
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
73
|
-
// component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
74
|
-
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
75
|
-
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
76
|
-
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
77
|
-
// component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
|
78
|
-
// component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
|
79
|
-
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
80
|
-
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
81
|
-
// component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
|
82
|
-
// component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
|
83
|
-
}
|
84
|
-
// routerResource.example = () =>
|
85
|
-
// import('@vue2-client/pages/Example')
|
86
|
-
routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
|
87
|
-
|
88
|
-
routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
89
|
-
|
90
|
-
routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
|
91
|
-
|
92
|
-
// 基础路由组件注册
|
93
|
-
const routerMap = {
|
94
|
-
login: {
|
95
|
-
authority: '*',
|
96
|
-
path: '/login',
|
97
|
-
component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
|
98
|
-
? view.loginv3 : view.login
|
99
|
-
},
|
100
|
-
root: {
|
101
|
-
path: '/',
|
102
|
-
name: '首页',
|
103
|
-
redirect: homePage,
|
104
|
-
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
|
105
|
-
},
|
106
|
-
exp403: {
|
107
|
-
authority: '*',
|
108
|
-
name: 'exp403',
|
109
|
-
path: '403',
|
110
|
-
component: () =>
|
111
|
-
import('@vue2-client/pages/exception/403')
|
112
|
-
},
|
113
|
-
exp404: {
|
114
|
-
name: 'exp404',
|
115
|
-
path: '404',
|
116
|
-
component: () =>
|
117
|
-
import('@vue2-client/pages/exception/404')
|
118
|
-
},
|
119
|
-
exp500: {
|
120
|
-
name: 'exp500',
|
121
|
-
path: '500',
|
122
|
-
component: () =>
|
123
|
-
import('@vue2-client/pages/exception/500')
|
124
|
-
}
|
125
|
-
}
|
126
|
-
Object.assign(routerMap, routerResource)
|
127
|
-
export default routerMap
|
1
|
+
const { homePage } = require('../../config')
|
2
|
+
// 视图组件
|
3
|
+
const view = {
|
4
|
+
tabs: () => import('@vue2-client/layouts/tabs'),
|
5
|
+
blank: () => import('@vue2-client/layouts/BlankView'),
|
6
|
+
page: () => import('@vue2-client/layouts/PageView'),
|
7
|
+
// his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
|
8
|
+
gridView: () => import('@vue2-client/layouts/GridView'),
|
9
|
+
login: () => import('@vue2-client/pages/login/Login'),
|
10
|
+
loginv3: () => import('@vue2-client/pages/login/LoginV3')
|
11
|
+
}
|
12
|
+
// 动态路由对象定义
|
13
|
+
const routerResource = {}
|
14
|
+
// --------------------------------------基本视图组件--------------------------------------
|
15
|
+
// 空白视图
|
16
|
+
routerResource.blank = view.blank
|
17
|
+
// 单页面视图
|
18
|
+
routerResource.singlePage = view.blank
|
19
|
+
// 栅格配置视图
|
20
|
+
routerResource.gridView = view.gridView
|
21
|
+
// 测试
|
22
|
+
routerResource.businessQuery = view.blank
|
23
|
+
// 业务查询 - 收费查询
|
24
|
+
routerResource.chargeQuery = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
25
|
+
// --------------------------------------仪表盘--------------------------------------
|
26
|
+
routerResource.dashboard = view.blank
|
27
|
+
// 工作台
|
28
|
+
routerResource.workplace = () =>
|
29
|
+
import('@vue2-client/pages/dashboard/workplace')
|
30
|
+
// --------------------------------------系统配置--------------------------------------
|
31
|
+
routerResource.system = view.blank
|
32
|
+
// 字典管理
|
33
|
+
routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
|
34
|
+
// 文件管理
|
35
|
+
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
36
|
+
// 登录日志
|
37
|
+
routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
|
38
|
+
// 操作日志
|
39
|
+
routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
|
40
|
+
// 系统问题反馈工单
|
41
|
+
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
42
|
+
// 通用服务评价
|
43
|
+
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
44
|
+
// 系统设置
|
45
|
+
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
46
|
+
// AMIS示例页面
|
47
|
+
routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
|
48
|
+
// 页面编辑器
|
49
|
+
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
50
|
+
// 数据检索
|
51
|
+
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
52
|
+
// 数据检索(新)
|
53
|
+
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
54
|
+
// 示例页面
|
55
|
+
routerResource.example = {
|
56
|
+
path: 'example',
|
57
|
+
name: '示例主页面',
|
58
|
+
component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
|
59
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
60
|
+
// component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
|
61
|
+
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
62
|
+
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
63
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
64
|
+
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
65
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
66
|
+
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
67
|
+
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
68
|
+
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
69
|
+
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
70
|
+
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
71
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
72
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
73
|
+
// component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
74
|
+
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
75
|
+
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
76
|
+
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
77
|
+
// component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
|
78
|
+
// component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
|
79
|
+
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
80
|
+
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
81
|
+
// component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
|
82
|
+
// component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
|
83
|
+
}
|
84
|
+
// routerResource.example = () =>
|
85
|
+
// import('@vue2-client/pages/Example')
|
86
|
+
routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
|
87
|
+
|
88
|
+
routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
89
|
+
|
90
|
+
routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
|
91
|
+
|
92
|
+
// 基础路由组件注册
|
93
|
+
const routerMap = {
|
94
|
+
login: {
|
95
|
+
authority: '*',
|
96
|
+
path: '/login',
|
97
|
+
component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
|
98
|
+
? view.loginv3 : view.login
|
99
|
+
},
|
100
|
+
root: {
|
101
|
+
path: '/',
|
102
|
+
name: '首页',
|
103
|
+
redirect: homePage,
|
104
|
+
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
|
105
|
+
},
|
106
|
+
exp403: {
|
107
|
+
authority: '*',
|
108
|
+
name: 'exp403',
|
109
|
+
path: '403',
|
110
|
+
component: () =>
|
111
|
+
import('@vue2-client/pages/exception/403')
|
112
|
+
},
|
113
|
+
exp404: {
|
114
|
+
name: 'exp404',
|
115
|
+
path: '404',
|
116
|
+
component: () =>
|
117
|
+
import('@vue2-client/pages/exception/404')
|
118
|
+
},
|
119
|
+
exp500: {
|
120
|
+
name: 'exp500',
|
121
|
+
path: '500',
|
122
|
+
component: () =>
|
123
|
+
import('@vue2-client/pages/exception/500')
|
124
|
+
}
|
125
|
+
}
|
126
|
+
Object.assign(routerMap, routerResource)
|
127
|
+
export default routerMap
|