vue2-client 1.15.31 → 1.15.33

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.15.31",
3
+ "version": "1.15.33",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -3,7 +3,7 @@
3
3
  <a-tabs
4
4
  :tabBarGutter="tabBarGutter"
5
5
  :activeKey="activeKey"
6
- @change="tabPaneChange"
6
+ @change="(activeKey) => tabPaneChange(activeKey, false)"
7
7
  :hideAdd="true"
8
8
  :tabBarStyle="{ display: showTabBar ? 'block' : 'none' }"
9
9
  >
@@ -68,7 +68,7 @@ export default {
68
68
  },
69
69
  mounted () {
70
70
  this.activeKey = this.defaultActiveKey
71
- this.tabPaneChange('initTabLoading')
71
+ this.tabPaneChange('initTabLoading', true)
72
72
  },
73
73
  methods: {
74
74
  // 自定义函数中调用的方法 这个不能删
@@ -80,7 +80,7 @@ export default {
80
80
  getRealKeyData,
81
81
  getConfigByName,
82
82
  getConfigByNameAsync,
83
- tabPaneChange (newKey) {
83
+ tabPaneChange (newKey, initStatus = false) {
84
84
  let result = {}
85
85
  if (this.activeKey === newKey) {
86
86
  return
@@ -161,6 +161,9 @@ export default {
161
161
  } else {
162
162
  this.activeKey = newKey
163
163
  }
164
+ if (initStatus) {
165
+ this.activeKey = this.defaultActiveKey
166
+ }
164
167
  },
165
168
  initConfig () {
166
169
  if (this.configName) {
@@ -117,7 +117,8 @@ export default {
117
117
  },
118
118
  toDetail (record, id) {
119
119
  this.$refs.workFlow.init({
120
- workflowId: record.ab_f_workflow_id
120
+ workflowId: record.ab_f_workflow_id,
121
+ queryParamsNameTab: 'ApplySonProcessCRUD',
121
122
  })
122
123
  },
123
124
  handleFormItemEvent (func, data, value) {
@@ -95,6 +95,19 @@
95
95
  <file-item-group @search="getWorkFlowFiles"/>
96
96
  </template>
97
97
  </a-tab-pane>
98
+
99
+ <!--子流程tab-->
100
+ <a-tab-pane key="6" tab="子流程">
101
+ <a-card :bordered="false">
102
+ <x-form-table
103
+ title="子流程"
104
+ ref="xFormTable"
105
+ :queryParamsName="queryParamsNameTab"
106
+ :fixed-query-form="fixedQueryFormTab"
107
+ >
108
+ </x-form-table>
109
+ </a-card>
110
+ </a-tab-pane>
98
111
  </a-tabs>
99
112
  </a-card>
100
113
  </div>
@@ -148,7 +161,10 @@ export default {
148
161
  initStepId: null,
149
162
  visible: false,
150
163
  // 控制流程是否可操作
151
- renderCurrentNode: true
164
+ renderCurrentNode: true,
165
+ // 子流程
166
+ queryParamsNameTab: '',
167
+ fixedQueryFormTab: {},
152
168
  }
153
169
  },
154
170
  expose: ['setFormValue'],
@@ -230,10 +246,14 @@ export default {
230
246
  await this.getBaseInfo()
231
247
  this.fixedQueryForm.a_f_workflow_id = this.workflowId
232
248
  this.fixedAddForm.a_f_workflow_id = this.workflowId
249
+ this.fixedQueryFormTab.w_f_workflow_parentid = this.workflowId
233
250
  },
234
251
  // 初始化两张固定表
235
- async init ({ workflowId, stepId, renderCurrentNode = true, visible = true }) {
252
+ async init ({ workflowId, queryParamsNameTab, stepId, renderCurrentNode = true, visible = true }) {
236
253
  this.workflowId = workflowId
254
+ if (queryParamsNameTab) {
255
+ this.queryParamsNameTab = queryParamsNameTab
256
+ }
237
257
  if (stepId) {
238
258
  this.initStepId = stepId
239
259
  }