Commit 33692086d15a187e05d50429ec23c6572d605cbe

Authored by 史婷婷
1 parent c6cf0253

feat: 审核-bizFlag赋值代码优化

Showing 1 changed file with 4 additions and 1 deletions
... ... @@ -192,13 +192,16 @@ export default {
192 192 }
193 193 getInstanceByBusinessIdApi(params).then(res => {
194 194 console.log('审核详情__getInstanceByBusinessIdApi', res)
  195 + // todo 审批 在bizFlag值后面拼 _EDIT,这个配置一个新的审核组件
  196 + // 1.在映射的地方,如果审核和审批详情一样 就映射成同一个组件
  197 + // 2.在映射的地方,如果审核和审批详情不一样 就映射成两一个组件
195 198 const _data = res && res.data ? res.data : {};
196 199 const _ext = JSON.parse(_data.ext || '{}');
197 200 this.auditCtx = {
198 201 taskId: _data.taskId || '',
199 202 instanceId: _data.id || '',
200 203 businessId: _data.businessId || '',
201   - bizFlag: _ext.bizFlag || ''
  204 + bizFlag: _ext.bizFlag + '_EDIT' || ''
202 205 }
203 206 if (this.auditCtx && this.auditCtx.instanceId) {
204 207 this.loadFlowLinkByInstanceId(this.auditCtx.instanceId)
... ...