|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="assist-dag-model"> |
|
|
|
<div class="assist-dag-model"> |
|
|
|
<template v-if="isView"> |
|
|
|
<template v-if="isView && isActive"> |
|
|
|
<m-variables-view></m-variables-view> |
|
|
|
<m-variables-view></m-variables-view> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -11,7 +11,8 @@ |
|
|
|
name: 'assist-dag-index', |
|
|
|
name: 'assist-dag-index', |
|
|
|
data () { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
isView: false |
|
|
|
isView: false, |
|
|
|
|
|
|
|
isActive: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
@ -19,6 +20,15 @@ |
|
|
|
this.isView = !this.isView |
|
|
|
this.isView = !this.isView |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
|
|
|
|
'$route': { |
|
|
|
|
|
|
|
deep: true, |
|
|
|
|
|
|
|
handler () { |
|
|
|
|
|
|
|
this.isActive = false |
|
|
|
|
|
|
|
this.$nextTick(() => (this.isActive = true)) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
components: { mVariablesView } |
|
|
|
components: { mVariablesView } |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|