This commit is contained in:
zhutianqi
2021-12-24 14:05:45 +08:00
parent 8378cdc4c0
commit fe28e0b569
2 changed files with 24 additions and 42 deletions
@@ -774,28 +774,19 @@
this.$refs['Form'].validate((valid) => { this.$refs['Form'].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
this.$http.get('lawss/activiti/startProcess', { var json = Object.assign(this.rhform, this.roleForm)
type: '18' json.commentText = this.commentText
json.data1 = this.data1
json.data2 = this.data2
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: res.data,
userId: this.$store.getters.userInfo.userId
}, {}, res => { }, {}, res => {
if (res.ok) { if (res.success) {
var json = Object.assign(this.rhform, this.roleForm) this.$message.success('流程发起成功')
json.commentText = this.commentText this.$router.push('/processCenter')
json.data1 = this.data1 this.isSubmit = false
json.data2 = this.data2
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: res.data,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.success) {
this.$message.success('流程发起成功')
this.$router.push('/processCenter')
this.isSubmit = false
} else {
this.$message.warning('流程启动失败')
this.isSubmit = false
}
})
} else { } else {
this.$message.warning('流程启动失败') this.$message.warning('流程启动失败')
this.isSubmit = false this.isSubmit = false
@@ -752,28 +752,19 @@
this.$refs['Form'].validate((valid) => { this.$refs['Form'].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
this.$http.get('lawss/activiti/startProcess', { var json = Object.assign(this.rhform, this.roleForm)
type: '17' json.commentText = this.commentText
json.data1 = this.data1
json.data2 = this.data2
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: res.data,
userId: this.$store.getters.userInfo.userId
}, {}, res => { }, {}, res => {
if (res.ok) { if (res.success) {
var json = Object.assign(this.rhform, this.roleForm) this.$message.success('流程发起成功')
json.commentText = this.commentText this.$router.push('/processCenter')
json.data1 = this.data1 this.isSubmit = false
json.data2 = this.data2
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: res.data,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.success) {
this.$message.success('流程发起成功')
this.$router.push('/processCenter')
this.isSubmit = false
} else {
this.$message.warning('流程启动失败')
this.isSubmit = false
}
})
} else { } else {
this.$message.warning('流程启动失败') this.$message.warning('流程启动失败')
this.isSubmit = false this.isSubmit = false