主页通知
This commit is contained in:
parent
f281ce1200
commit
6e3c475124
@ -131,6 +131,7 @@
|
||||
tabsViewStore.closeAllTabs();
|
||||
localStorage.removeItem(TABS_ROUTES);
|
||||
localStorage.removeItem(FIRST_ROUTE);
|
||||
localStorage.removeItem('adClosed');
|
||||
asyncRouteStore.setDynamicAddedRoute(false);
|
||||
router
|
||||
.replace({
|
||||
|
@ -65,10 +65,10 @@
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<a-space>
|
||||
<a-button @click="dialogClose">取消</a-button>
|
||||
<a-button :loading="subLoading" type="primary" @click="submit"> 确定 </a-button>
|
||||
</span>
|
||||
</a-space>
|
||||
</template>
|
||||
<chooseArticle
|
||||
v-if="chooseVisible"
|
||||
|
@ -163,8 +163,9 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { ref, onMounted,h } from 'vue';
|
||||
import { ArrowUpOutlined, ArrowDownOutlined } from '@ant-design/icons-vue';
|
||||
import { notification } from 'ant-design-vue';
|
||||
import NewVisitAmount from './components/NewVisitAmount.vue';
|
||||
import VisitSource from './components/VisitSource.vue';
|
||||
import Percent from './components/Percent.vue';
|
||||
@ -185,7 +186,25 @@
|
||||
// orderLarge.value = res.orderLarge;
|
||||
// volume.value = res.volume;
|
||||
loading.value = false;
|
||||
});
|
||||
if (!localStorage.getItem('adClosed')) {
|
||||
notification.info({
|
||||
message: '双十二限时特惠',
|
||||
description: () =>
|
||||
h('div', [
|
||||
h('span', '正在进行双十二限时促销活动,五折特平惠,'),
|
||||
h(
|
||||
'a',
|
||||
{
|
||||
href: 'https://www.baidu.com',
|
||||
target: '_blank',
|
||||
},
|
||||
'前往购买授权',
|
||||
),
|
||||
])
|
||||
});
|
||||
localStorage.setItem('adClosed', 'true');
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
@ -58,10 +58,10 @@
|
||||
</div>
|
||||
</a-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<a-space>
|
||||
<a-button @click="dialogClose">取消</a-button>
|
||||
<a-button :loading="subLoading" type="primary" @click="submit"> 确定 </a-button>
|
||||
</span>
|
||||
</a-space>
|
||||
</template>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
@ -56,7 +56,7 @@
|
||||
<template #icon><FieldTimeOutlined /></template>
|
||||
暂停
|
||||
</a-button>
|
||||
<a-button type="primary" @click="handleEdit(record.id)" v-perm="['sys:job:update']">
|
||||
<a-button type="primary" @click="handleEdit(record.id)" v-perm="['sys:job:update']" :disabled='record.status == 1?true:false'>
|
||||
<template #icon><EditOutlined /></template>
|
||||
编辑
|
||||
</a-button>
|
||||
|
Loading…
Reference in New Issue
Block a user