|
@@ -106,10 +106,9 @@ class FuncItem extends Component {
|
|
|
if (this.props.onFuncClick) {
|
|
if (this.props.onFuncClick) {
|
|
|
this.props.onFuncClick(funcObj)
|
|
this.props.onFuncClick(funcObj)
|
|
|
} else {
|
|
} else {
|
|
|
- // if (funcObj.url) {
|
|
|
|
|
- // window.open(funcObj.url)
|
|
|
|
|
- // } else
|
|
|
|
|
- if (funcObj.funcType === FUNC_TYPE_DOC) {
|
|
|
|
|
|
|
+ if (funcObj.url) {
|
|
|
|
|
+ window.open(funcObj.url, '_self')
|
|
|
|
|
+ } else if (funcObj.funcType === FUNC_TYPE_DOC) {
|
|
|
this.props.history.push(
|
|
this.props.history.push(
|
|
|
'/serviceList/' + funcObj.caller + '/' + funcObj.name)
|
|
'/serviceList/' + funcObj.caller + '/' + funcObj.name)
|
|
|
} else if (funcObj.funcType === FUNC_TYPE_REPORT) {
|
|
} else if (funcObj.funcType === FUNC_TYPE_REPORT) {
|