修改禅道已知bug
This commit is contained in:
@@ -183,19 +183,34 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
rejectCauseAdd(rejectCause,ids) {
|
||||||
|
let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
let query = {
|
||||||
|
rejectUserId:this.userInfo().id,
|
||||||
|
rejectTime:rejectTime,
|
||||||
|
rejectCause:rejectCause,
|
||||||
|
projectLawsInventoryId:ids.join(','),
|
||||||
|
rejectType:'0',
|
||||||
|
}
|
||||||
|
postAction('/project/projectLawsInventoryRejectCauseEO/add', query).then((res) => {
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
completeTask(value, handlingTime) {
|
completeTask(value, handlingTime) {
|
||||||
let json = Object.assign(this.queryBy, { handlingTime: handlingTime }, value)
|
let json = Object.assign(this.queryBy, { handlingTime: handlingTime }, value)
|
||||||
let data = JSON.stringify(json).replace(/\"/g, '\'')
|
// if (json.flag == '1'){
|
||||||
Object.keys(data).forEach(res => {
|
// this.rejectCauseAdd(value.approvalOpinion,this.queryBy.id)
|
||||||
if (data[res] && typeof data[res] == 'string') {
|
// }
|
||||||
data[res] = data[res].replace(/\"/g, '“')
|
Object.keys(json).forEach(res => {
|
||||||
data[res] = data[res].replace(/\'/g, '‘')
|
if (json[res] && typeof json[res] == 'string') {
|
||||||
|
json[res] = json[res].replace(/\"/g, '“')
|
||||||
|
json[res] = json[res].replace(/\'/g, '‘')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
let query = {
|
let query = {
|
||||||
userid: this.userInfo().id,
|
userid: this.userInfo().id,
|
||||||
taskId: this.$route.query.taskId || this.$route.query.taskIds,
|
taskId: this.$route.query.taskId || this.$route.query.taskIds,
|
||||||
json: data
|
json: JSON.stringify(json).replace(/\"/g, '\'')
|
||||||
}
|
}
|
||||||
postAction('/workFlow/completeTask', query).then((res) => {
|
postAction('/workFlow/completeTask', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user