|  | @@ -120,6 +120,34 @@
 | 
	
		
			
				|  |  |          workflowInfot(id).then(({ data }) => {
 | 
	
		
			
				|  |  |            if (data.code === '200') {
 | 
	
		
			
				|  |  |              this.item = data.data
 | 
	
		
			
				|  |  | +            if (this.item.workFlowStepVOs) {
 | 
	
		
			
				|  |  | +              this.item.workFlowStepVOs.forEach((v, index) => {
 | 
	
		
			
				|  |  | +                this.list.push({
 | 
	
		
			
				|  |  | +                  id: index + 1,
 | 
	
		
			
				|  |  | +                  new_or_edit: 'new',
 | 
	
		
			
				|  |  | +                  step_name: v.name,
 | 
	
		
			
				|  |  | +                  step_type: v.type,
 | 
	
		
			
				|  |  | +                  step_func: v.assigneeIds
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +                if (index === 0) {
 | 
	
		
			
				|  |  | +                  this.stepForm.step_name = v.name
 | 
	
		
			
				|  |  | +                  this.stepForm.step_type = v.type
 | 
	
		
			
				|  |  | +                  this.stepForm.step_func = v.assigneeIds
 | 
	
		
			
				|  |  | +                  this.templateAddDisable = false
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +              this.id = this.item.workFlowStepVOs.length - 1
 | 
	
		
			
				|  |  | +              this.$nextTick(() => {
 | 
	
		
			
				|  |  | +                let stepsArrey = document.querySelectorAll('textarea')
 | 
	
		
			
				|  |  | +                this.index = 0
 | 
	
		
			
				|  |  | +                for (let i = 0; i < stepsArrey.length; i++) {
 | 
	
		
			
				|  |  | +                  stepsArrey[i].style.backgroundColor = '#ecf5ff'
 | 
	
		
			
				|  |  | +                  stepsArrey[i].style.color = '#409eff'
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                stepsArrey[this.index].style.backgroundColor = '#409eff'
 | 
	
		
			
				|  |  | +                stepsArrey[this.index].style.color = '#fff'
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |            } else {
 | 
	
		
			
				|  |  |              this.$message.error(data.msg || '未获取到数据')
 | 
	
		
			
				|  |  |            }
 | 
	
	
		
			
				|  | @@ -251,13 +279,21 @@
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          let params = {
 | 
	
		
			
				|  |  | -          name: this.menuList[this.active],
 | 
	
		
			
				|  |  | -          content: this.menuList[this.active],
 | 
	
		
			
				|  |  | +          name: this.item.name,
 | 
	
		
			
				|  |  | +          content: this.item.content,
 | 
	
		
			
				|  |  | +          id: this.item.id,
 | 
	
		
			
				|  |  | +          code: this.item.code,
 | 
	
		
			
				|  |  |            workFlowStepVOs: myList
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          workflowUpdate(params).then(({ data }) => {
 | 
	
		
			
				|  |  |            if (data.code === '200') {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +            this.$message({
 | 
	
		
			
				|  |  | +              message: '操作成功',
 | 
	
		
			
				|  |  | +              type: 'success',
 | 
	
		
			
				|  |  | +              duration: 1500,
 | 
	
		
			
				|  |  | +              onClose: () => {
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  |            } else {
 | 
	
		
			
				|  |  |              this.$message.error(data.msg)
 | 
	
		
			
				|  |  |            }
 |