|
@@ -105,11 +105,20 @@ class ActionEditor extends Component{
|
|
|
</div>
|
|
</div>
|
|
|
<div className="btn-group btn-group-sm" style={{margin:'2px'}}>
|
|
<div className="btn-group btn-group-sm" style={{margin:'2px'}}>
|
|
|
<button className="btn btn-info" type="button" onClick={(e)=>{
|
|
<button className="btn btn-info" type="button" onClick={(e)=>{
|
|
|
- refEvent.eventEmitter.emit(refEvent.OPEN_REFERENCE_DIALOG,file);
|
|
|
|
|
|
|
+ if(!this.currentData){
|
|
|
|
|
+ bootbox.alert('请先选择一条具体的动作方法');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ //const text=`const-category="${this.masterData.name}" const="${this.currentData.name}"`;
|
|
|
|
|
+ const text=`bean-name="${this.masterData.id}" bean-label="${this.masterData.name}" method-name="${this.currentData.methodName}"`;
|
|
|
|
|
+ const title=`动作"${this.masterData.name}.${this.currentData.name}"`;
|
|
|
|
|
+ refEvent.eventEmitter.emit(refEvent.OPEN_REFERENCE_DIALOG,file,text,title);
|
|
|
}}><i className="rf rf-link"></i> 查看引用</button>
|
|
}}><i className="rf rf-link"></i> 查看引用</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<Grid headers={masterGridHeaders} rows={masterData} operationConfig={masterGridOperationCol} rowClick={(rowData,rowIndex)=>{
|
|
<Grid headers={masterGridHeaders} rows={masterData} operationConfig={masterGridOperationCol} rowClick={(rowData,rowIndex)=>{
|
|
|
|
|
+ this.masterData=rowData;
|
|
|
|
|
+ this.currentData=null;
|
|
|
dispatch(action.loadSlaveData(rowData,rowIndex));
|
|
dispatch(action.loadSlaveData(rowData,rowIndex));
|
|
|
}}/>
|
|
}}/>
|
|
|
<SelectMethodDialog/>
|
|
<SelectMethodDialog/>
|
|
@@ -123,6 +132,7 @@ class ActionEditor extends Component{
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<Grid headers={slaveGridHeaders} rows={masterRowData.methods} operationConfig={slaveGridOperationCol} rowClick={(rowData,rowIndex)=>{
|
|
<Grid headers={slaveGridHeaders} rows={masterRowData.methods} operationConfig={slaveGridOperationCol} rowClick={(rowData,rowIndex)=>{
|
|
|
|
|
+ this.currentData=rowData;
|
|
|
dispatch(action.loadMethodData(rowData,rowIndex));
|
|
dispatch(action.loadMethodData(rowData,rowIndex));
|
|
|
}}/>
|
|
}}/>
|
|
|
</div>
|
|
</div>
|