未验证 提交 f047f517 编写于 作者: B BoYiZhang 提交者: GitHub

Enhance user experience, add close button, return to the previous page (#4006)

Co-authored-by: Nzhanglong <zhanglong@ysstech.com>
上级 46091bb8
......@@ -16,6 +16,11 @@
*/
<template>
<m-list-construction :title="$t('TreeView')">
<template slot="operation">
<span style=" float: right; padding-right:50px">
<em class="ans-icon-fail-empty" style="font-size:20px " data-container="body" data-toggle="tooltip" :title="$t('Return')" @click="_close()"></em>
</span>
</template>
<template slot="conditions"></template>
<template slot="content">
<div class="tree-view-index-model">
......@@ -101,6 +106,9 @@
props: {},
methods: {
...mapActions('dag', ['getViewTree']),
_close(){
this.$router.go(-1)
},
/**
* get tree data
*/
......
......@@ -16,6 +16,11 @@
*/
<template>
<m-list-construction :title="$t('Cron Manage')">
<template slot="operation">
<span style=" float: right; padding-right:50px">
<em class="ans-icon-fail-empty" style="font-size:20px " data-container="body" data-toggle="tooltip" :title="$t('Return')" @click="_close()"></em>
</span>
</template>
<template slot="content">
<m-list></m-list>
</template>
......@@ -27,6 +32,11 @@
import mListConstruction from '@/module/components/listConstruction/listConstruction'
export default {
name: 'definition-timing-index',
methods :{
_close(){
this.$router.go(-1)
}
},
components: { mList, mListConstruction, mSecondaryMenu }
}
</script>
......@@ -18,6 +18,7 @@
<div class="home-main list-construction-model">
<div class="content-title">
<span>{{title}}</span>
<slot name="operation"></slot>
</div>
<div class="conditions-box">
<slot name="conditions">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册