feat(coupon-detail-tab): 同步优惠券详情页签标题并移除列表直达入口
Co-Authored-By: 祝美莲 <zhuml4@xiaopeng.com>
| | |
| | | "opsAppContent": "运维APP内容管理", |
| | | "contentCenterActive": "活动", |
| | | "contentCenterConpon": "优惠券管理", |
| | | "contentCenterConponAdd": "添加优惠券", |
| | | "bannerManagement": "Banner管理", |
| | | "businessOperations": "运营&城市", |
| | | "openCity": "开通城市管理", |
| | |
| | | "opsAppContent": "运维APP内容管理", |
| | | "contentCenterActive": "活动", |
| | | "contentCenterConpon": "优惠券管理", |
| | | "contentCenterConponAdd": "添加优惠券", |
| | | "bannerManagement": "Banner管理", |
| | | "businessOperations": "运营&城市", |
| | | "openCity": "开通城市管理", |
| | |
| | | import noDataImg from '@/assets/element-img/no-data.png' |
| | | import { computed, onMounted, ref, watch } from 'vue' |
| | | import { useRoute, useRouter } from 'vue-router' |
| | | import type { RouteLocationNormalized } from 'vue-router' |
| | | import type { FormInst, FormRules } from 'naive-ui' |
| | | import { useDialog, useMessage } from 'naive-ui' |
| | | import AiRichTextEditor from '@/components/custom/Editor/AiRichTextEditor/index.vue' |
| | |
| | | } |
| | | } |
| | | |
| | | function syncPageTitle() { |
| | | route.meta.title = pageTitle.value |
| | | document.title = pageTitle.value |
| | | |
| | | const fullPath = route.fullPath |
| | | tabStore.modifyTab(fullPath, (tab: RouteLocationNormalized) => { |
| | | if (tab) |
| | | tab.meta.title = pageTitle.value |
| | | }) |
| | | } |
| | | |
| | | watch(() => route.fullPath, () => { |
| | | syncPageTitle() |
| | | }, { immediate: true }) |
| | | |
| | | onMounted(() => { |
| | | getDetail().finally(() => { |
| | | initialSnapshot.value = getSnapshot() |
| | | syncPageTitle() |
| | | }) |
| | | }) |
| | | |
| | |
| | | width: 260, |
| | | ellipsis: true, |
| | | resizable: true, |
| | | // 名称做成入口链接,点击直达详情;.n-button 已在行点击忽略名单里,不会连带勾选当前行 |
| | | render: row => ( |
| | | <NButton text type="primary" onClick={() => handleDetail(row)}> |
| | | {row.couponName || '-'} |
| | | </NButton> |
| | | ), |
| | | render: row => row.couponName || '-', |
| | | }, |
| | | { |
| | | title: '优惠券类型', |