|
|
@ -1,19 +1,19 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more |
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more |
|
|
|
* contributor license agreements. See the NOTICE file distributed with |
|
|
|
* contributor license agreements. See the NOTICE file distributed with |
|
|
|
* this work for additional information regarding copyright ownership. |
|
|
|
* this work for additional information regarding copyright ownership. |
|
|
|
* The ASF licenses this file to You under the Apache License, Version 2.0 |
|
|
|
* The ASF licenses this file to You under the Apache License, Version 2.0 |
|
|
|
* (the "License"); you may not use this file except in compliance with |
|
|
|
* (the "License"); you may not use this file except in compliance with |
|
|
|
* the License. You may obtain a copy of the License at |
|
|
|
* the License. You may obtain a copy of the License at |
|
|
|
* |
|
|
|
* |
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0 |
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0 |
|
|
|
* |
|
|
|
* |
|
|
|
* Unless required by applicable law or agreed to in writing, software |
|
|
|
* Unless required by applicable law or agreed to in writing, software |
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, |
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, |
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* limitations under the License. |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="clearfix dag-model" > |
|
|
|
<div class="clearfix dag-model" > |
|
|
|
<div class="toolbar"> |
|
|
|
<div class="toolbar"> |
|
|
@ -101,17 +101,6 @@ |
|
|
|
@click="_rtNodesDag" > |
|
|
|
@click="_rtNodesDag" > |
|
|
|
{{$t('Return_1')}} |
|
|
|
{{$t('Return_1')}} |
|
|
|
</x-button> |
|
|
|
</x-button> |
|
|
|
<x-button |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
v-tooltip.light="$t('Close')" |
|
|
|
|
|
|
|
icon="ans-icon-off" |
|
|
|
|
|
|
|
size="xsmall" |
|
|
|
|
|
|
|
data-container="body" |
|
|
|
|
|
|
|
v-if="(type === 'instance' || 'definition') " |
|
|
|
|
|
|
|
style="vertical-align: middle;" |
|
|
|
|
|
|
|
@click="_closeDAG"> |
|
|
|
|
|
|
|
{{$t('Close')}} |
|
|
|
|
|
|
|
</x-button> |
|
|
|
|
|
|
|
<x-button |
|
|
|
<x-button |
|
|
|
style="vertical-align: middle;" |
|
|
|
style="vertical-align: middle;" |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
@ -388,15 +377,6 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
_closeDAG(){ |
|
|
|
|
|
|
|
let $name = this.$route.name |
|
|
|
|
|
|
|
if($name && $name.indexOf("definition") != -1){ |
|
|
|
|
|
|
|
this.$router.push({ name: 'projects-definition-list'}) |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.$router.push({ name: 'projects-instance-list'}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
_verifConditions (value) { |
|
|
|
_verifConditions (value) { |
|
|
|
let tasks = value |
|
|
|
let tasks = value |
|
|
|
let bool = true |
|
|
|
let bool = true |
|
|
|