|
|
|
@ -361,7 +361,7 @@ export class KeyUnitManagementComponent implements OnInit {
|
|
|
|
|
data.items.forEach( (item,index) => { |
|
|
|
|
item.integrity = this.wanzhengduArr[index] |
|
|
|
|
}) |
|
|
|
|
console.log(789,data.items) |
|
|
|
|
//console.log(789,data.items)
|
|
|
|
|
this.tabledataSource = new MatTableDataSource(data.items); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
@ -669,7 +669,7 @@ export class KeyUnitManagementComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
//提交审核
|
|
|
|
|
submitAudit(element){ |
|
|
|
|
console.log(element) |
|
|
|
|
//console.log(element)
|
|
|
|
|
let body:any = { |
|
|
|
|
title:element.name, |
|
|
|
|
Operation:0, |
|
|
|
@ -679,21 +679,24 @@ export class KeyUnitManagementComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
this.http.post(`/api/ContentVerifies`,body).subscribe(data=>{ |
|
|
|
|
this.getAllKeyUnit() |
|
|
|
|
},err=>{ |
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open(err,'确定',config); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//撤销审核
|
|
|
|
|
cancelAudit(element){ |
|
|
|
|
let body:any = { |
|
|
|
|
//title:element.name,
|
|
|
|
|
//Operation:0,
|
|
|
|
|
id:element.contentVerify.id, |
|
|
|
|
itemId:element.id, |
|
|
|
|
verifyState:-1, |
|
|
|
|
contentType:11 |
|
|
|
|
} |
|
|
|
|
this.http.delete(`/api/ContentVerifies/${element.contentVerify.id}`).subscribe(data=>{ |
|
|
|
|
this.getAllKeyUnit() |
|
|
|
|
}, |
|
|
|
|
err=>{ |
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open(err,'确定',config); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
//审核结果
|
|
|
|
@ -748,7 +751,6 @@ export class CreateUnit {
|
|
|
|
|
this.jsId = node.id |
|
|
|
|
} |
|
|
|
|
onSubmit(value){ |
|
|
|
|
// console.log(value)
|
|
|
|
|
let myDate = new Date(); |
|
|
|
|
let body = { |
|
|
|
|
id: "", |
|
|
|
|