车辆接口更新
This commit is contained in:
@ -30,7 +30,6 @@ export class AnnouncementMessageComponent implements OnInit {
|
||||
|
||||
columns: STColumn[] = [
|
||||
{ title: '公告标题', index: 'announcementTitle' },
|
||||
{ title: '发布平台', index: 'appName' },
|
||||
{ title: '创建时间', index: 'createTime' },
|
||||
{ title: '发送时间', index: 'sendTime' },
|
||||
{ title: '公告内容', index: 'announcementContent' },
|
||||
@ -166,7 +165,7 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
|
||||
this.editText = '新增';
|
||||
this.formData = {};
|
||||
} else {
|
||||
this.service.request(this.service.$api_getButtonInfo_one, {id: value.id}).subscribe((res: any) => {
|
||||
this.service.request(this.service.$api_getAnnouncementInfoById_detail, {id: value.id}).subscribe((res: any) => {
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.formData = res;
|
||||
@ -230,7 +229,7 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
|
||||
if(this.editId) {
|
||||
params.id = this.editId
|
||||
console.log(params)
|
||||
this.service.request(this.service.$api_addAnnouncementInfo, params).subscribe((res:any) => {
|
||||
this.service.request(this.service.$api_modifyAnnouncementInfo, params).subscribe((res:any) => {
|
||||
if(res) {
|
||||
this.service.msgSrv.success('保存成功!')
|
||||
this.isVisible = false
|
||||
@ -238,7 +237,7 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.service.request(this.service.$api_modifyAnnouncementInfo, params).subscribe((res:any) => {
|
||||
this.service.request(this.service.$api_addAnnouncementInfo, params).subscribe((res:any) => {
|
||||
if(res) {
|
||||
this.service.msgSrv.success('保存成功!')
|
||||
this.isVisible = false
|
||||
|
||||
Reference in New Issue
Block a user