修改禅道已知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) {
|
||||
let json = Object.assign(this.queryBy, { handlingTime: handlingTime }, value)
|
||||
let data = JSON.stringify(json).replace(/\"/g, '\'')
|
||||
Object.keys(data).forEach(res => {
|
||||
if (data[res] && typeof data[res] == 'string') {
|
||||
data[res] = data[res].replace(/\"/g, '“')
|
||||
data[res] = data[res].replace(/\'/g, '‘')
|
||||
// if (json.flag == '1'){
|
||||
// this.rejectCauseAdd(value.approvalOpinion,this.queryBy.id)
|
||||
// }
|
||||
Object.keys(json).forEach(res => {
|
||||
if (json[res] && typeof json[res] == 'string') {
|
||||
json[res] = json[res].replace(/\"/g, '“')
|
||||
json[res] = json[res].replace(/\'/g, '‘')
|
||||
}
|
||||
})
|
||||
let query = {
|
||||
userid: this.userInfo().id,
|
||||
taskId: this.$route.query.taskId || this.$route.query.taskIds,
|
||||
json: data
|
||||
json: JSON.stringify(json).replace(/\"/g, '\'')
|
||||
}
|
||||
postAction('/workFlow/completeTask', query).then((res) => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user