feat(website): 调整网站配置与菜单管理功能

- 移除小程序AppId输入框及相关逻辑- 更新网站Logo图片加载失败时的默认占位图- 注释掉二维码分享功能及相关组件引用
- 调整菜单搜索表单位置至表格操作区
- 移除菜单批量删除按钮
- 修改技术支持链接地址- 更新小程序描述字段展示逻辑
- 移除菜单新建按钮及PlusOutlined图标引用
- 调整菜单搜索组件引用位置
- 移除dayjs依赖引用
This commit is contained in:
2025-09-30 23:11:11 +08:00
parent addd4bbe01
commit 52bd53eb70
5 changed files with 26 additions and 40 deletions

View File

@@ -49,13 +49,6 @@
</template> </template>
</a-input> </a-input>
</a-form-item> </a-form-item>
<a-form-item label="AppId" name="websiteCode" v-if="form.type == 20">
<a-input
allow-clear
placeholder="请输入AppId"
v-model:value="form.websiteCode"
/>
</a-form-item>
<!-- <a-form-item label="AppSecret" name="websiteSecret" v-if="form.type == 20">--> <!-- <a-form-item label="AppSecret" name="websiteSecret" v-if="form.type == 20">-->
<!-- <a-input-password--> <!-- <a-input-password-->
<!-- allow-clear--> <!-- allow-clear-->
@@ -71,6 +64,13 @@
v-model:value="form.comments" v-model:value="form.comments"
/> />
</a-form-item> </a-form-item>
<!-- <a-form-item label="小程序AppID" name="websiteCode" v-if="form.type == 20">-->
<!-- <a-input-->
<!-- allow-clear-->
<!-- placeholder="请输入AppId"-->
<!-- v-model:value="form.websiteCode"-->
<!-- />-->
<!-- </a-form-item>-->
<a-form-item label="小程序码" name="avatar"> <a-form-item label="小程序码" name="avatar">
<SelectFile <SelectFile
:placeholder="`请选择图片`" :placeholder="`请选择图片`"

View File

@@ -19,7 +19,7 @@
> >
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'websiteLogo'"> <template v-if="column.key === 'websiteLogo'">
<a-image :src="record.websiteLogo" :width="50"/> <a-image :src="record.websiteLogo" :width="50" fallback="https://file.wsdns.cn/20230218/550e610d43334dd2a7f66d5b20bd58eb.svg"/>
</template> </template>
<template v-if="column.key === 'websiteName'"> <template v-if="column.key === 'websiteName'">
<div class="font-medium">{{ record.websiteName }}</div> <div class="font-medium">{{ record.websiteName }}</div>
@@ -75,11 +75,11 @@
<a-tag v-if="record.status > 0 && record.soon < 0" color="orange">即将过期</a-tag> <a-tag v-if="record.status > 0 && record.soon < 0" color="orange">即将过期</a-tag>
</template> </template>
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<a @click="onShare(record)" class="text-green-600"> <!-- <a @click="onShare(record)" class="text-green-600">-->
<QrcodeOutlined /> <!-- <QrcodeOutlined />-->
二维码 <!-- 二维码-->
</a> <!-- </a>-->
<a-divider type="vertical"/> <!-- <a-divider type="vertical"/>-->
<a @click="openEdit(record)"> <a @click="openEdit(record)">
编辑 编辑
</a> </a>
@@ -108,7 +108,7 @@
<WebsiteEdit v-model:visible="showEdit" :data="current" @done="reload"/> <WebsiteEdit v-model:visible="showEdit" :data="current" @done="reload"/>
<!-- 二维码 --> <!-- 二维码 -->
<Qrcode v-model:visible="showQrcode" :data="`${qrcode}`" @done="hideShare" title="二维码"/> <!-- <Qrcode v-model:visible="showQrcode" :data="`${qrcode}`" @done="hideShare" title="二维码"/>-->
</a-spin> </a-spin>
</a-page-header> </a-page-header>
@@ -117,7 +117,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import {ref} from 'vue'; import {ref} from 'vue';
import {message} from 'ant-design-vue'; import {message} from 'ant-design-vue';
import {QrcodeOutlined} from '@ant-design/icons-vue'; // import {QrcodeOutlined} from '@ant-design/icons-vue';
import type {EleProTable} from 'ele-admin-pro'; import type {EleProTable} from 'ele-admin-pro';
import {toDateString} from 'ele-admin-pro'; import {toDateString} from 'ele-admin-pro';
import type { import type {
@@ -125,7 +125,7 @@ import type {
ColumnItem ColumnItem
} from 'ele-admin-pro/es/ele-pro-table/types'; } from 'ele-admin-pro/es/ele-pro-table/types';
import WebsiteEdit from './components/websiteEdit.vue'; import WebsiteEdit from './components/websiteEdit.vue';
import Qrcode from '@/components/QrCode/index.vue'; // import Qrcode from '@/components/QrCode/index.vue';
import { import {
pageCmsWebsite, pageCmsWebsite,
updateCmsWebsite updateCmsWebsite
@@ -196,17 +196,16 @@ const columns = ref<ColumnItem[]>([
key: 'websiteName', key: 'websiteName',
align: 'center' align: 'center'
}, },
{
title: '小程序信息',
dataIndex: 'websiteCode',
key: 'websiteCode'
},
// { // {
// title: '小程序描述', // title: '小程序信息',
// dataIndex: 'comments', // dataIndex: 'websiteCode',
// key: 'comments', // key: 'websiteCode'
// align: 'center'
// }, // },
{
title: '小程序描述',
dataIndex: 'comments',
key: 'comments'
},
// { // {
// title: '当前版本', // title: '当前版本',
// dataIndex: 'version', // dataIndex: 'version',

View File

@@ -130,7 +130,7 @@
{{ siteInfo?.expirationTime }} {{ siteInfo?.expirationTime }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="技术支持"> <a-descriptions-item label="技术支持">
<span class="cursor-pointer" @click="openNew(`https://websoft.top/order/3429.html`)">网宿软件</span> <span class="cursor-pointer" @click="openNew(`https://websoft.top`)">网宿软件</span>
</a-descriptions-item> </a-descriptions-item>
</a-descriptions> </a-descriptions>
</a-card> </a-card>

View File

@@ -1,12 +1,6 @@
<!-- 菜单搜索表单 --> <!-- 菜单搜索表单 -->
<template> <template>
<a-space> <a-space>
<a-button type="primary" class="ele-btn-icon" @click="add">
<template #icon>
<PlusOutlined />
</template>
<span>新建</span>
</a-button>
<a-button type="dashed" @click="handleExport">备份</a-button> <a-button type="dashed" @click="handleExport">备份</a-button>
<a-button type="dashed" @click="openImport">恢复</a-button> <a-button type="dashed" @click="openImport">恢复</a-button>
<a-input-search <a-input-search
@@ -24,14 +18,12 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { PlusOutlined } from '@ant-design/icons-vue';
import { ref } from 'vue'; import { ref } from 'vue';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';
import { utils, writeFile } from 'xlsx'; import { utils, writeFile } from 'xlsx';
import { listMenus } from '@/api/system/menu'; import { listMenus } from '@/api/system/menu';
import type { Menu, MenuParam } from '@/api/system/menu/model'; import type { Menu, MenuParam } from '@/api/system/menu/model';
import useSearch from '@/utils/use-search'; import useSearch from '@/utils/use-search';
import dayjs from 'dayjs';
import Import from "./Import.vue"; import Import from "./Import.vue";
import {getTenantId} from "@/utils/domain"; import {getTenantId} from "@/utils/domain";

View File

@@ -1,9 +1,6 @@
<template> <template>
<div class="ele-body"> <div class="ele-body">
<a-card :bordered="false"> <a-card :bordered="false">
<!-- 搜索表单 -->
<menu-search @search="reload" />
<!-- 表格 -->
<!-- 表格 --> <!-- 表格 -->
<ele-pro-table <ele-pro-table
ref="tableRef" ref="tableRef"
@@ -34,12 +31,10 @@
<a-button type="dashed" class="ele-btn-icon" @click="foldAll"> <a-button type="dashed" class="ele-btn-icon" @click="foldAll">
折叠全部 折叠全部
</a-button> </a-button>
<a-button type="dashed" class="ele-btn-icon" @click="removeBatch">
批量删除
</a-button>
<a-button type="dashed" class="ele-btn-icon" @click="cloneMenu()"> <a-button type="dashed" class="ele-btn-icon" @click="cloneMenu()">
一键克隆 一键克隆
</a-button> </a-button>
<menu-search @search="reload" />
</a-space> </a-space>
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">