Commit 18a66d2d authored by wangqinghua's avatar wangqinghua

update

parent 3e9ec20b
......@@ -49,7 +49,7 @@
<td class="handle">
<span (click)="deleteIcon(data)">删除</span>
<ng-container *ngIf="data.defaultIcon == 0">
<span (click)="setDefault()">设为默认</span>
<span (click)="setDefault(data)">设为默认</span>
</ng-container>
</td>
</tr>
......
......@@ -76,6 +76,7 @@ export class TopologyImgComponent implements OnInit {
nzOkText: '确定',
nzOkType: 'danger',
nzOnOk: () => {
console.log(item);
this.topologySer.iconDefault(item.id).subscribe(
(res) => {
if (res.errCode == 10000) {
......
......@@ -51,7 +51,7 @@ export class TopologyService {
//设置默认图标
iconDefault(params): Observable<any> {
return this.http.get(SERVER_API_URL + '/default/' + params);
return this.http.get(SERVER_API_URL + '/icon/default/' + params);
}
//查找所有设备类型+网站监测
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment