vue2-client 1.10.14 → 1.10.16
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/.cursorrules +19 -19
- package/package.json +107 -107
- package/public/index.html +27 -27
- package/src/base-client/components/common/Upload/Upload.vue +322 -322
- package/src/base-client/components/common/XAddNativeForm/demo.vue +34 -34
- package/src/base-client/components/common/XForm/XFormItem.vue +1286 -1286
- package/src/base-client/components/common/XPrint/Demo.vue +41 -41
- package/src/base-client/components/common/XSimpleDescriptions/XSimpleDescriptions.vue +166 -166
- package/src/base-client/components/common/XTable/XTable.vue +1 -1
- package/src/base-client/components/layout/XPageView/XPageView.vue +155 -155
- package/src/components/HeightScanner/index.vue +50 -38
- package/src/config/CreateQueryConfig.js +325 -325
- package/src/main.js +34 -34
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +230 -230
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +864 -864
- package/src/pages/XTreeOneProExample/index.vue +67 -67
- package/src/router/async/router.map.js +188 -188
- package/src/services/api/workFlow.js +63 -63
- package/src/utils/util.js +329 -329
- package/vue.config.js +213 -213
package/src/main.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import App from './App.vue'
|
|
3
|
-
import Router from 'vue-router'
|
|
4
|
-
import Vuex from 'vuex'
|
|
5
|
-
import { routerOptions, modules, i18n, message, bootstrap } from '../index'
|
|
6
|
-
// import eventLogPlugin from '@/plugins/EventLogPlugin'
|
|
7
|
-
import findParentData from '@/plugins/FindParentsData'
|
|
8
|
-
import { Modal } from 'ant-design-vue'
|
|
9
|
-
|
|
10
|
-
Vue.use(Router)
|
|
11
|
-
Vue.use(Vuex)
|
|
12
|
-
// Vue.use(eventLogPlugin)
|
|
13
|
-
Vue.use(findParentData)
|
|
14
|
-
|
|
15
|
-
// 创建router store
|
|
16
|
-
const store = new Vuex.Store({ modules })
|
|
17
|
-
const router = new Router(routerOptions)
|
|
18
|
-
|
|
19
|
-
// 绑定原型,用于amis
|
|
20
|
-
Vue.$store = store
|
|
21
|
-
Vue.$router = router
|
|
22
|
-
Vue.$i18n = i18n
|
|
23
|
-
Vue.config.devtools = true
|
|
24
|
-
// 绑定原型
|
|
25
|
-
Vue.Modal = Modal
|
|
26
|
-
|
|
27
|
-
bootstrap({ router, store, i18n, message }).then(() => {
|
|
28
|
-
new Vue({
|
|
29
|
-
router,
|
|
30
|
-
store,
|
|
31
|
-
i18n,
|
|
32
|
-
render: h => h(App)
|
|
33
|
-
}).$mount('#app')
|
|
34
|
-
})
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import App from './App.vue'
|
|
3
|
+
import Router from 'vue-router'
|
|
4
|
+
import Vuex from 'vuex'
|
|
5
|
+
import { routerOptions, modules, i18n, message, bootstrap } from '../index'
|
|
6
|
+
// import eventLogPlugin from '@/plugins/EventLogPlugin'
|
|
7
|
+
import findParentData from '@/plugins/FindParentsData'
|
|
8
|
+
import { Modal } from 'ant-design-vue'
|
|
9
|
+
|
|
10
|
+
Vue.use(Router)
|
|
11
|
+
Vue.use(Vuex)
|
|
12
|
+
// Vue.use(eventLogPlugin)
|
|
13
|
+
Vue.use(findParentData)
|
|
14
|
+
|
|
15
|
+
// 创建router store
|
|
16
|
+
const store = new Vuex.Store({ modules })
|
|
17
|
+
const router = new Router(routerOptions)
|
|
18
|
+
|
|
19
|
+
// 绑定原型,用于amis
|
|
20
|
+
Vue.$store = store
|
|
21
|
+
Vue.$router = router
|
|
22
|
+
Vue.$i18n = i18n
|
|
23
|
+
Vue.config.devtools = true
|
|
24
|
+
// 绑定原型
|
|
25
|
+
Vue.Modal = Modal
|
|
26
|
+
|
|
27
|
+
bootstrap({ router, store, i18n, message }).then(() => {
|
|
28
|
+
new Vue({
|
|
29
|
+
router,
|
|
30
|
+
store,
|
|
31
|
+
i18n,
|
|
32
|
+
render: h => h(App)
|
|
33
|
+
}).$mount('#app')
|
|
34
|
+
})
|
|
@@ -1,230 +1,230 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- 抽屉 -->
|
|
3
|
-
<a-drawer
|
|
4
|
-
:visible="visible"
|
|
5
|
-
width="85vw"
|
|
6
|
-
:placement="direction"
|
|
7
|
-
title="流程详情"
|
|
8
|
-
@close="onClose"
|
|
9
|
-
>
|
|
10
|
-
<div>
|
|
11
|
-
<!-- 基础信息 -->
|
|
12
|
-
<workflow-base-information
|
|
13
|
-
v-if="details"
|
|
14
|
-
ref="baseInformation"
|
|
15
|
-
:workflow-id="workflowId"
|
|
16
|
-
:details="details"
|
|
17
|
-
:visible="visible"
|
|
18
|
-
/>
|
|
19
|
-
<div :style="{ height: screenHeight * 0.9 + 'px' }">
|
|
20
|
-
<a-card style="margin-top: 20px">
|
|
21
|
-
<a-tabs :activeKey="activeKey" @change="changeTab">
|
|
22
|
-
<a-tab-pane key="1" tab="查看 / 编辑进度">
|
|
23
|
-
<WorkFlowHandle
|
|
24
|
-
v-if="
|
|
25
|
-
activeKey === '1' &&
|
|
26
|
-
details.f_state !== undefined &&
|
|
27
|
-
steps !== undefined
|
|
28
|
-
"
|
|
29
|
-
ref="workflowHandle"
|
|
30
|
-
:workflow-id="workflowId"
|
|
31
|
-
:workflowState="details.f_state === 1"
|
|
32
|
-
:complete-time="details.f_complete_time"
|
|
33
|
-
:stepsForChild="steps"
|
|
34
|
-
:visible="visible"
|
|
35
|
-
:taskName="details.f_task_name"
|
|
36
|
-
:details="details"
|
|
37
|
-
@refresh="stepChanged"
|
|
38
|
-
@success="success"
|
|
39
|
-
/>
|
|
40
|
-
</a-tab-pane>
|
|
41
|
-
<a-tab-pane key="2" tab="任务流转记录">
|
|
42
|
-
<workflow-log v-if="activeKey === '2'" :workflow-id="workflowId"/>
|
|
43
|
-
</a-tab-pane>
|
|
44
|
-
<a-tab-pane key="4">
|
|
45
|
-
<span slot="tab">
|
|
46
|
-
<span>任务留言</span>
|
|
47
|
-
<a-badge
|
|
48
|
-
:count="messageList.length"
|
|
49
|
-
:offset="[4, -4]"
|
|
50
|
-
:number-style="{ backgroundColor: '#b2b2b2' }"></a-badge>
|
|
51
|
-
</span>
|
|
52
|
-
<a-row>
|
|
53
|
-
<a-col :span="14">
|
|
54
|
-
<leave-message
|
|
55
|
-
:workflowId="this.workflowId"
|
|
56
|
-
:projectName="details.f_task_name"
|
|
57
|
-
:data="messageList"
|
|
58
|
-
:loading="messageLoading"
|
|
59
|
-
@success="success"/>
|
|
60
|
-
</a-col>
|
|
61
|
-
</a-row>
|
|
62
|
-
</a-tab-pane>
|
|
63
|
-
</a-tabs>
|
|
64
|
-
</a-card>
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</a-drawer>
|
|
68
|
-
</template>
|
|
69
|
-
|
|
70
|
-
<script>
|
|
71
|
-
import { mapState } from 'vuex'
|
|
72
|
-
import workflowBaseInformation from './WorkflowPageDetail/WorkFlowBaseInformation.vue'
|
|
73
|
-
import WorkFlowHandle from './WorkflowPageDetail/WorkFlowHandle.vue'
|
|
74
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
75
|
-
import { postByServiceName } from '@vue2-client/services/api/restTools'
|
|
76
|
-
import { workFlowViewApi } from '@vue2-client/services/api/workFlow'
|
|
77
|
-
import WorkflowLog from './WorkflowPageDetail/WorkflowLog.vue'
|
|
78
|
-
import LeaveMessage from './WorkflowPageDetail/LeaveMessage'
|
|
79
|
-
|
|
80
|
-
export default {
|
|
81
|
-
name: 'WorkflowDetail',
|
|
82
|
-
components: {
|
|
83
|
-
workflowBaseInformation,
|
|
84
|
-
WorkFlowHandle,
|
|
85
|
-
XFormTable,
|
|
86
|
-
WorkflowLog,
|
|
87
|
-
LeaveMessage
|
|
88
|
-
},
|
|
89
|
-
data () {
|
|
90
|
-
return {
|
|
91
|
-
// 页面宽度
|
|
92
|
-
screenWidth: document.documentElement.clientWidth,
|
|
93
|
-
// 页面高度
|
|
94
|
-
screenHeight: document.documentElement.clientHeight,
|
|
95
|
-
// 控制当前标签页
|
|
96
|
-
activeKey: '1',
|
|
97
|
-
// 保存流程和留言信息
|
|
98
|
-
steps: undefined,
|
|
99
|
-
// 基础信息
|
|
100
|
-
details: {},
|
|
101
|
-
// 是否已完成
|
|
102
|
-
allStepDown: false,
|
|
103
|
-
// 给XFormTable增加额外查询条件
|
|
104
|
-
fixedAddForm: {},
|
|
105
|
-
fixedQueryForm: {},
|
|
106
|
-
// 统计数据
|
|
107
|
-
chartData: {
|
|
108
|
-
// 流程进度
|
|
109
|
-
instructRateOfSuccessValue: 0
|
|
110
|
-
},
|
|
111
|
-
// 留言数据
|
|
112
|
-
messageList: [],
|
|
113
|
-
messageLoading: true,
|
|
114
|
-
workflowId: '',
|
|
115
|
-
direction: '',
|
|
116
|
-
visible: false
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
computed: {
|
|
120
|
-
...mapState('account', { currUser: 'user' }),
|
|
121
|
-
...mapState('setting', ['isMobile'])
|
|
122
|
-
},
|
|
123
|
-
props: {},
|
|
124
|
-
mounted () {
|
|
125
|
-
// this.init()
|
|
126
|
-
},
|
|
127
|
-
methods: {
|
|
128
|
-
// 内部组件更新了当前步骤后的回调
|
|
129
|
-
stepChanged () {
|
|
130
|
-
this.loading = true
|
|
131
|
-
this.reload()
|
|
132
|
-
},
|
|
133
|
-
// 获取所有步骤
|
|
134
|
-
getSteps () {
|
|
135
|
-
return postByServiceName(workFlowViewApi.getStepNoteAndHandler, {
|
|
136
|
-
workflowId: this.workflowId
|
|
137
|
-
})
|
|
138
|
-
.then(res => {
|
|
139
|
-
this.steps = res
|
|
140
|
-
}, err => {
|
|
141
|
-
console.log(err)
|
|
142
|
-
})
|
|
143
|
-
},
|
|
144
|
-
// 关闭抽屉的回调
|
|
145
|
-
onClose () {
|
|
146
|
-
if (this.$refs.workflowHandle !== undefined) {
|
|
147
|
-
this.$refs.workflowHandle.onClose()
|
|
148
|
-
}
|
|
149
|
-
this.visible = false
|
|
150
|
-
this.activeKey = '1'
|
|
151
|
-
this.allStepDown = false
|
|
152
|
-
this.details = {}
|
|
153
|
-
this.fixedAddForm = {}
|
|
154
|
-
this.fixedQueryForm = {}
|
|
155
|
-
this.steps = undefined
|
|
156
|
-
this.messageList = []
|
|
157
|
-
},
|
|
158
|
-
// 获取基础信息
|
|
159
|
-
getBaseInfo () {
|
|
160
|
-
this.loading = true
|
|
161
|
-
return postByServiceName(workFlowViewApi.getWorkFlowBasicInfo, {
|
|
162
|
-
workflowId: this.workflowId
|
|
163
|
-
})
|
|
164
|
-
.then(res => {
|
|
165
|
-
res.f_sub_state = this.steps[res.f_step_id - 1].name
|
|
166
|
-
this.details = res
|
|
167
|
-
if (res.f_state === 1) {
|
|
168
|
-
this.allStepDown = true
|
|
169
|
-
}
|
|
170
|
-
this.chartData.instructRateOfSuccessValue = Math.round(res.f_step_id / this.steps.length * 100)
|
|
171
|
-
}, err => {
|
|
172
|
-
console.log(err)
|
|
173
|
-
})
|
|
174
|
-
},
|
|
175
|
-
async reload () {
|
|
176
|
-
await this.getSteps()
|
|
177
|
-
await this.getBaseInfo()
|
|
178
|
-
this.fixedQueryForm.a_f_workflow_id = this.workflowId
|
|
179
|
-
this.fixedAddForm.a_f_workflow_id = this.workflowId
|
|
180
|
-
},
|
|
181
|
-
// 初始化两张固定表
|
|
182
|
-
async init ({ workflowId, direction, visible = true }) {
|
|
183
|
-
this.workflowId = workflowId
|
|
184
|
-
this.direction = direction
|
|
185
|
-
this.visible = visible
|
|
186
|
-
await this.reload()
|
|
187
|
-
},
|
|
188
|
-
// 切换标签页
|
|
189
|
-
changeTab (id) {
|
|
190
|
-
this.activeKey = id
|
|
191
|
-
},
|
|
192
|
-
// 提交完成后事件
|
|
193
|
-
success (res) {
|
|
194
|
-
this.visible = false
|
|
195
|
-
this.$emit('success', res)
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
</script>
|
|
200
|
-
|
|
201
|
-
<style lang="less" scoped>
|
|
202
|
-
/deep/ .step-label {
|
|
203
|
-
&:not(:first-child) {
|
|
204
|
-
margin-left: 16px;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.step-icon {
|
|
208
|
-
position: relative;
|
|
209
|
-
top: 1px;
|
|
210
|
-
display: inline-block;
|
|
211
|
-
width: 12px;
|
|
212
|
-
height: 12px;
|
|
213
|
-
background: #ffffff;
|
|
214
|
-
border-radius: 50%;
|
|
215
|
-
margin-right: 8px;
|
|
216
|
-
|
|
217
|
-
&.blue {
|
|
218
|
-
border: 3px solid rgb(24, 144, 255);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
&.green {
|
|
222
|
-
border: 3px solid rgb(82, 196, 26);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
&.gray {
|
|
226
|
-
border: 3px solid rgb(191, 191, 191);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<!-- 抽屉 -->
|
|
3
|
+
<a-drawer
|
|
4
|
+
:visible="visible"
|
|
5
|
+
width="85vw"
|
|
6
|
+
:placement="direction"
|
|
7
|
+
title="流程详情"
|
|
8
|
+
@close="onClose"
|
|
9
|
+
>
|
|
10
|
+
<div>
|
|
11
|
+
<!-- 基础信息 -->
|
|
12
|
+
<workflow-base-information
|
|
13
|
+
v-if="details"
|
|
14
|
+
ref="baseInformation"
|
|
15
|
+
:workflow-id="workflowId"
|
|
16
|
+
:details="details"
|
|
17
|
+
:visible="visible"
|
|
18
|
+
/>
|
|
19
|
+
<div :style="{ height: screenHeight * 0.9 + 'px' }">
|
|
20
|
+
<a-card style="margin-top: 20px">
|
|
21
|
+
<a-tabs :activeKey="activeKey" @change="changeTab">
|
|
22
|
+
<a-tab-pane key="1" tab="查看 / 编辑进度">
|
|
23
|
+
<WorkFlowHandle
|
|
24
|
+
v-if="
|
|
25
|
+
activeKey === '1' &&
|
|
26
|
+
details.f_state !== undefined &&
|
|
27
|
+
steps !== undefined
|
|
28
|
+
"
|
|
29
|
+
ref="workflowHandle"
|
|
30
|
+
:workflow-id="workflowId"
|
|
31
|
+
:workflowState="details.f_state === 1"
|
|
32
|
+
:complete-time="details.f_complete_time"
|
|
33
|
+
:stepsForChild="steps"
|
|
34
|
+
:visible="visible"
|
|
35
|
+
:taskName="details.f_task_name"
|
|
36
|
+
:details="details"
|
|
37
|
+
@refresh="stepChanged"
|
|
38
|
+
@success="success"
|
|
39
|
+
/>
|
|
40
|
+
</a-tab-pane>
|
|
41
|
+
<a-tab-pane key="2" tab="任务流转记录">
|
|
42
|
+
<workflow-log v-if="activeKey === '2'" :workflow-id="workflowId"/>
|
|
43
|
+
</a-tab-pane>
|
|
44
|
+
<a-tab-pane key="4">
|
|
45
|
+
<span slot="tab">
|
|
46
|
+
<span>任务留言</span>
|
|
47
|
+
<a-badge
|
|
48
|
+
:count="messageList.length"
|
|
49
|
+
:offset="[4, -4]"
|
|
50
|
+
:number-style="{ backgroundColor: '#b2b2b2' }"></a-badge>
|
|
51
|
+
</span>
|
|
52
|
+
<a-row>
|
|
53
|
+
<a-col :span="14">
|
|
54
|
+
<leave-message
|
|
55
|
+
:workflowId="this.workflowId"
|
|
56
|
+
:projectName="details.f_task_name"
|
|
57
|
+
:data="messageList"
|
|
58
|
+
:loading="messageLoading"
|
|
59
|
+
@success="success"/>
|
|
60
|
+
</a-col>
|
|
61
|
+
</a-row>
|
|
62
|
+
</a-tab-pane>
|
|
63
|
+
</a-tabs>
|
|
64
|
+
</a-card>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</a-drawer>
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
<script>
|
|
71
|
+
import { mapState } from 'vuex'
|
|
72
|
+
import workflowBaseInformation from './WorkflowPageDetail/WorkFlowBaseInformation.vue'
|
|
73
|
+
import WorkFlowHandle from './WorkflowPageDetail/WorkFlowHandle.vue'
|
|
74
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
75
|
+
import { postByServiceName } from '@vue2-client/services/api/restTools'
|
|
76
|
+
import { workFlowViewApi } from '@vue2-client/services/api/workFlow'
|
|
77
|
+
import WorkflowLog from './WorkflowPageDetail/WorkflowLog.vue'
|
|
78
|
+
import LeaveMessage from './WorkflowPageDetail/LeaveMessage'
|
|
79
|
+
|
|
80
|
+
export default {
|
|
81
|
+
name: 'WorkflowDetail',
|
|
82
|
+
components: {
|
|
83
|
+
workflowBaseInformation,
|
|
84
|
+
WorkFlowHandle,
|
|
85
|
+
XFormTable,
|
|
86
|
+
WorkflowLog,
|
|
87
|
+
LeaveMessage
|
|
88
|
+
},
|
|
89
|
+
data () {
|
|
90
|
+
return {
|
|
91
|
+
// 页面宽度
|
|
92
|
+
screenWidth: document.documentElement.clientWidth,
|
|
93
|
+
// 页面高度
|
|
94
|
+
screenHeight: document.documentElement.clientHeight,
|
|
95
|
+
// 控制当前标签页
|
|
96
|
+
activeKey: '1',
|
|
97
|
+
// 保存流程和留言信息
|
|
98
|
+
steps: undefined,
|
|
99
|
+
// 基础信息
|
|
100
|
+
details: {},
|
|
101
|
+
// 是否已完成
|
|
102
|
+
allStepDown: false,
|
|
103
|
+
// 给XFormTable增加额外查询条件
|
|
104
|
+
fixedAddForm: {},
|
|
105
|
+
fixedQueryForm: {},
|
|
106
|
+
// 统计数据
|
|
107
|
+
chartData: {
|
|
108
|
+
// 流程进度
|
|
109
|
+
instructRateOfSuccessValue: 0
|
|
110
|
+
},
|
|
111
|
+
// 留言数据
|
|
112
|
+
messageList: [],
|
|
113
|
+
messageLoading: true,
|
|
114
|
+
workflowId: '',
|
|
115
|
+
direction: '',
|
|
116
|
+
visible: false
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
computed: {
|
|
120
|
+
...mapState('account', { currUser: 'user' }),
|
|
121
|
+
...mapState('setting', ['isMobile'])
|
|
122
|
+
},
|
|
123
|
+
props: {},
|
|
124
|
+
mounted () {
|
|
125
|
+
// this.init()
|
|
126
|
+
},
|
|
127
|
+
methods: {
|
|
128
|
+
// 内部组件更新了当前步骤后的回调
|
|
129
|
+
stepChanged () {
|
|
130
|
+
this.loading = true
|
|
131
|
+
this.reload()
|
|
132
|
+
},
|
|
133
|
+
// 获取所有步骤
|
|
134
|
+
getSteps () {
|
|
135
|
+
return postByServiceName(workFlowViewApi.getStepNoteAndHandler, {
|
|
136
|
+
workflowId: this.workflowId
|
|
137
|
+
})
|
|
138
|
+
.then(res => {
|
|
139
|
+
this.steps = res
|
|
140
|
+
}, err => {
|
|
141
|
+
console.log(err)
|
|
142
|
+
})
|
|
143
|
+
},
|
|
144
|
+
// 关闭抽屉的回调
|
|
145
|
+
onClose () {
|
|
146
|
+
if (this.$refs.workflowHandle !== undefined) {
|
|
147
|
+
this.$refs.workflowHandle.onClose()
|
|
148
|
+
}
|
|
149
|
+
this.visible = false
|
|
150
|
+
this.activeKey = '1'
|
|
151
|
+
this.allStepDown = false
|
|
152
|
+
this.details = {}
|
|
153
|
+
this.fixedAddForm = {}
|
|
154
|
+
this.fixedQueryForm = {}
|
|
155
|
+
this.steps = undefined
|
|
156
|
+
this.messageList = []
|
|
157
|
+
},
|
|
158
|
+
// 获取基础信息
|
|
159
|
+
getBaseInfo () {
|
|
160
|
+
this.loading = true
|
|
161
|
+
return postByServiceName(workFlowViewApi.getWorkFlowBasicInfo, {
|
|
162
|
+
workflowId: this.workflowId
|
|
163
|
+
})
|
|
164
|
+
.then(res => {
|
|
165
|
+
res.f_sub_state = this.steps[res.f_step_id - 1].name
|
|
166
|
+
this.details = res
|
|
167
|
+
if (res.f_state === 1) {
|
|
168
|
+
this.allStepDown = true
|
|
169
|
+
}
|
|
170
|
+
this.chartData.instructRateOfSuccessValue = Math.round(res.f_step_id / this.steps.length * 100)
|
|
171
|
+
}, err => {
|
|
172
|
+
console.log(err)
|
|
173
|
+
})
|
|
174
|
+
},
|
|
175
|
+
async reload () {
|
|
176
|
+
await this.getSteps()
|
|
177
|
+
await this.getBaseInfo()
|
|
178
|
+
this.fixedQueryForm.a_f_workflow_id = this.workflowId
|
|
179
|
+
this.fixedAddForm.a_f_workflow_id = this.workflowId
|
|
180
|
+
},
|
|
181
|
+
// 初始化两张固定表
|
|
182
|
+
async init ({ workflowId, direction, visible = true }) {
|
|
183
|
+
this.workflowId = workflowId
|
|
184
|
+
this.direction = direction
|
|
185
|
+
this.visible = visible
|
|
186
|
+
await this.reload()
|
|
187
|
+
},
|
|
188
|
+
// 切换标签页
|
|
189
|
+
changeTab (id) {
|
|
190
|
+
this.activeKey = id
|
|
191
|
+
},
|
|
192
|
+
// 提交完成后事件
|
|
193
|
+
success (res) {
|
|
194
|
+
this.visible = false
|
|
195
|
+
this.$emit('success', res)
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
</script>
|
|
200
|
+
|
|
201
|
+
<style lang="less" scoped>
|
|
202
|
+
/deep/ .step-label {
|
|
203
|
+
&:not(:first-child) {
|
|
204
|
+
margin-left: 16px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.step-icon {
|
|
208
|
+
position: relative;
|
|
209
|
+
top: 1px;
|
|
210
|
+
display: inline-block;
|
|
211
|
+
width: 12px;
|
|
212
|
+
height: 12px;
|
|
213
|
+
background: #ffffff;
|
|
214
|
+
border-radius: 50%;
|
|
215
|
+
margin-right: 8px;
|
|
216
|
+
|
|
217
|
+
&.blue {
|
|
218
|
+
border: 3px solid rgb(24, 144, 255);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&.green {
|
|
222
|
+
border: 3px solid rgb(82, 196, 26);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&.gray {
|
|
226
|
+
border: 3px solid rgb(191, 191, 191);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
</style>
|