1
- import { Component , OnInit , } from '@angular/core' ;
1
+ import { Component , OnInit , Renderer2 } from '@angular/core' ;
2
2
import $ from 'jquery' ;
3
3
import * as d3 from 'd3' ;
4
4
declare const jsPlumb : any ;
@@ -28,7 +28,7 @@ export class LayoutDefaultComponent implements OnInit {
28
28
currentNodeData ;
29
29
instance ;
30
30
31
- constructor ( private http : _HttpClient , private msg : NzMessageService , private modalService : NzModalService ) {
31
+ constructor ( private http : _HttpClient , private msg : NzMessageService , private modalService : NzModalService , private renderer : Renderer2 ) {
32
32
33
33
}
34
34
@@ -115,8 +115,8 @@ export class LayoutDefaultComponent implements OnInit {
115
115
116
116
/* <div id='" + nodeId + "-selectfile' title='详情'><i class='anticon anticon-profile'></i></div> */
117
117
118
- $ ( '#' + nodeId ) . append ( "<div class='huangcard'><div class='zuo'><div class='title'><strong>" + data . name + "</strong></div><div class='card-content'><i class='anticon anticon-user'></i><span class='mes'>" + data . id + "黄小民</span></div><div class='card-content'><i class='anticon anticon-message'></i><span class='mes'>低质量数据过滤</span></div><div class='card-content'><i class='anticon anticon-clock-circle-o'></i><span class='mes'>执行时间:20min20s</span></div></div><div class='you'><div id='" + nodeId + "-setting' title='参数设置'><i class='anticon anticon-setting'></i></div><div id='" + nodeId + "-inputFile' title='上传文件'><i class='anticon anticon-file-add'></i></div><div id='" + nodeId + "-delete' title='删除'><i class='anticon anticon-delete'></i></div></div></div>" )
119
- data . inputFile ? $ ( '#' + nodeId + '-setting' ) . hide ( ) : $ ( '#' + nodeId + '-inputFile' ) . hide ( ) ;
118
+ $ ( '#' + nodeId ) . append ( $ ( "<div class='huangcard'><div class='zuo'><div class='title'><strong>" + data . name + "</strong></div><div class='card-content'><i class='anticon anticon-user'></i><span class='mes'>" + data . id + "黄小民</span></div><div class='card-content'><i class='anticon anticon-message'></i><span class='mes'>低质量数据过滤</span></div><div class='card-content'><i class='anticon anticon-clock-circle-o'></i><span class='mes'>执行时间:20min20s</span></div></div><div class='you'><div id='" + nodeId + "-setting' title='参数设置'><i class='anticon anticon-setting'></i></div><div id='" + nodeId + "-inputFile' title='上传文件'><i class='anticon anticon-file-add'></i></div><div id='" + nodeId + "-delete' title='删除'><i class='anticon anticon-delete'></i></div></div></div>" ) ) ;
119
+ /* data.inputFile ? $('#' + nodeId + '-setting').hide() : $('#' + nodeId + '-inputFile').hide(); */
120
120
$ ( '#' + nodeId + '-delete' ) . click ( function ( ) {
121
121
instance . detachAllConnections ( nodeId ) ;
122
122
instance . deleteEndpoint ( nodeId + "-Top" ) ;
@@ -135,6 +135,7 @@ export class LayoutDefaultComponent implements OnInit {
135
135
}
136
136
137
137
selectInputfileModal ( nodeId , toolId ) {
138
+ console . log ( "输入文件选择" + nodeId + 'tool' + toolId )
138
139
this . modalService . create ( {
139
140
nzTitle : '输入文件选择' ,
140
141
nzContent : NodeSelectfileComponent ,
0 commit comments