Browse Source

[修改]接口censor修改为verify

master
邵佳豪 3 years ago
parent
commit
730626ba75
  1. 6
      src/app/pages/criminal-records-admin/criminal-records-admin.component.ts
  2. 4
      src/app/pages/get-out-of-line-details/get-out-of-line-details.component.ts
  3. 2
      src/app/pages/login/login.component.ts

6
src/app/pages/criminal-records-admin/criminal-records-admin.component.ts

@ -111,14 +111,14 @@ export class CriminalRecordsAdminComponent implements OnInit {
ViolateArea: this.validateForm.value.site,
OrganizationUnitId: JSON.parse(sessionStorage.getItem('userdata')).organization.id,
IsContainsChildren: 'true',
CanCensor: 'true',
CanVerify: 'true',
// IsHandled: disposalState,
ViolateTime: this.validateForm.value.datePicker ? [moment(this.validateForm.value.datePicker[0]).format('yyyy-MM-DD'), moment(this.validateForm.value.datePicker[1]).format('yyyy-MM-DD')] : null,
SkipCount: this.SkipCount,
MaxResultCount: this.MaxResultCount //每页50条
}
this.tableSpin = true
this.http.get('/api/services/app/ViolateRecordCensorship/GetAll', {
this.http.get('/api/services/app/ViolateRecordVerification/GetAll', {
params: params
}).subscribe((data: any) => {
this.list = this.list.concat(data.result.items);
@ -151,7 +151,7 @@ export class CriminalRecordsAdminComponent implements OnInit {
let params = {
id: userNotification.notification.entityId
}
this.http.get('/api/services/app/ViolateRecordCensorship/Get', {
this.http.get('/api/services/app/ViolateRecordVerification/Get', {
params: params
}).subscribe((data: any) => {
data.result.isNewMessage = true

4
src/app/pages/get-out-of-line-details/get-out-of-line-details.component.ts

@ -40,7 +40,7 @@ export class GetOutOfLineDetailsComponent implements OnInit {
id: this.data.id,
positive: true
}
this.http.post('/api/services/app/ViolateRecordCensorship/CensorViolateRecord', body).subscribe(data => {
this.http.post('/api/services/app/ViolateRecordVerification/VerifyViolateRecord', body).subscribe(data => {
this.message.create('success', '处置成功!');
this.isPushLoading = false
this.initialModal.triggerOk()
@ -61,7 +61,7 @@ export class GetOutOfLineDetailsComponent implements OnInit {
id: this.data.id,
positive: false
}
this.http.post('/api/services/app/ViolateRecordCensorship/CensorViolateRecord', body).subscribe(data => {
this.http.post('/api/services/app/ViolateRecordVerification/VerifyViolateRecord', body).subscribe(data => {
this.message.create('success', '处置成功!');
this.isMisinformationLoading = false
this.initialModal.triggerOk()

2
src/app/pages/login/login.component.ts

@ -110,7 +110,7 @@ export class LoginComponent implements OnInit {
//自动登录
this.autoLogin()
if (data.result.user.roles.find((item) => {
return item.name == 'ViolationPositiveCensorer'
return item.name == 'ViolationPositiveVerifier'
})) {
this.router.navigate(['/records'])
this.message.create('success', `登录成功`);

Loading…
Cancel
Save