commit
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user