From b626f5a35b4e11db3ede2de9203bca6556e8102c Mon Sep 17 00:00:00 2001
From: rd <1344903914@qq.com>
Date: Mon, 15 Sep 2025 14:54:55 +0800
Subject: [PATCH 01/35] =?UTF-8?q?refactor(layout):=20=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E6=98=BE=E7=A4=BA=E9=80=BB?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在 App.vue 中使用 route.meta.withoutLayout 替代原有的 route.path 和 route.name判断逻辑
- 在 router/index.ts 和 materialCenter.ts 中为需要独立布局的路由添加 withoutLayout: true 标记
- 更新 router/typeings.d.ts,添加 withoutLayout属性定义
---
src/App.vue | 2 +-
src/router/index.ts | 2 ++
src/router/routes/modules/materialCenter.ts | 2 ++
src/router/typeings.d.ts | 1 +
4 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/App.vue b/src/App.vue
index 036a5ba..5222b03 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/router/index.ts b/src/router/index.ts
index 27e95c5..94f266e 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -22,6 +22,7 @@ export const router = createRouter({
meta: {
requiresAuth: false,
requireLogin: false,
+ withoutLayout: true,
},
},
{
@@ -50,6 +51,7 @@ export const router = createRouter({
meta: {
requiresAuth: false,
requireLogin: true,
+ withoutLayout: true,
},
},
diff --git a/src/router/routes/modules/materialCenter.ts b/src/router/routes/modules/materialCenter.ts
index 0f91eb1..e8cd94e 100644
--- a/src/router/routes/modules/materialCenter.ts
+++ b/src/router/routes/modules/materialCenter.ts
@@ -120,6 +120,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: false,
hideFooter: true,
hideSidebar: true,
+ withoutLayout: true,
roles: ['*'],
},
component: () => import('@/views/material-center/components/finished-products/explore/list/index.vue'),
@@ -133,6 +134,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: false,
hideFooter: true,
hideSidebar: true,
+ withoutLayout: true,
roles: ['*'],
},
component: () => import('@/views/material-center/components/finished-products/explore/detail/index.vue'),
diff --git a/src/router/typeings.d.ts b/src/router/typeings.d.ts
index f64b2f6..1baa8f4 100644
--- a/src/router/typeings.d.ts
+++ b/src/router/typeings.d.ts
@@ -19,5 +19,6 @@ declare module 'vue-router' {
requireLogin?: boolean; // 是否需要登陆才能访问
independent?: boolean; // 独立于layout的路由
group?: string; // 路由分组
+ withoutLayout?: boolean; // 不使用layout,默认false
}
}
From 984e0c27b8b56ba824aa1ac6f858e0c6ee7d545d Mon Sep 17 00:00:00 2001
From: rd <1344903914@qq.com>
Date: Mon, 15 Sep 2025 15:42:37 +0800
Subject: [PATCH 02/35] =?UTF-8?q?refactor:=20=E9=99=90=E5=88=B6=E6=A0=87?=
=?UTF-8?q?=E9=A2=98=E8=BE=93=E5=85=A5=E9=95=BF=E5=BA=A6=E5=B9=B6=E7=A7=BB?=
=?UTF-8?q?=E9=99=A4=E5=BA=8F=E5=8F=B7=E8=BF=87=E6=BB=A4=E9=A1=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
-- 移除成品稿和原材料 将标题输入的最大长度从30改为20
- 移除列表中的序号搜索功能
-各页面中序号相关的过滤项 将标题输入框的最大长度限制- 更新相关常量和枚举定义从 30 改为20
- 注释掉审核列表中的序号搜索功能
- 优化相关组件的代码结构,提高可维护性
---
.../components/filter-block/index.vue | 36 +++++++++----------
.../manuscript/components/edit-form/index.vue | 2 +-
.../list/components/filter-block/index.vue | 28 +++++++--------
.../manuscript/list/constants.ts | 2 +-
.../components/filter-block/index.vue | 16 ++++-----
.../components/raw-material/constants.ts | 4 +--
.../components/filter-block/index.vue | 34 +++++++++---------
.../manuscript/components/edit-form/index.vue | 3 +-
.../list/components/filter-block/index.vue | 34 +++++++++---------
.../manuscript/list/constants.ts | 6 ++--
10 files changed, 83 insertions(+), 82 deletions(-)
diff --git a/src/views/material-center/components/finished-products/manuscript/check-list/components/filter-block/index.vue b/src/views/material-center/components/finished-products/manuscript/check-list/components/filter-block/index.vue
index cec2842..0e61be1 100644
--- a/src/views/material-center/components/finished-products/manuscript/check-list/components/filter-block/index.vue
+++ b/src/views/material-center/components/finished-products/manuscript/check-list/components/filter-block/index.vue
@@ -23,23 +23,23 @@
-
- 序号
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
上传时间
diff --git a/src/views/material-center/components/finished-products/manuscript/components/edit-form/index.vue b/src/views/material-center/components/finished-products/manuscript/components/edit-form/index.vue
index b778581..4133f47 100644
--- a/src/views/material-center/components/finished-products/manuscript/components/edit-form/index.vue
+++ b/src/views/material-center/components/finished-products/manuscript/components/edit-form/index.vue
@@ -309,7 +309,7 @@ export default {
placeholder="请输入标题"
size="large"
class="!w-500px"
- maxlength={30}
+ maxlength={20}
showCount
/>
diff --git a/src/views/material-center/components/finished-products/manuscript/list/components/filter-block/index.vue b/src/views/material-center/components/finished-products/manuscript/list/components/filter-block/index.vue
index fb0249e..0b391ec 100644
--- a/src/views/material-center/components/finished-products/manuscript/list/components/filter-block/index.vue
+++ b/src/views/material-center/components/finished-products/manuscript/list/components/filter-block/index.vue
@@ -25,20 +25,20 @@
@change="handleSearch"
/>
-->
-
- 序号
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
审核状态
-
- 序号
-
-
-
-
-
-
+
+
+
+
+
+
+
+
上传时间
-
- 序号
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
上传时间
diff --git a/src/views/material-center/components/raw-material/components/tags-manage-modal/delete-tag.vue b/src/views/material-center/components/raw-material/components/tags-manage-modal/delete-tag.vue
new file mode 100644
index 0000000..0543477
--- /dev/null
+++ b/src/views/material-center/components/raw-material/components/tags-manage-modal/delete-tag.vue
@@ -0,0 +1,63 @@
+
+
+
+
+
![]()
+
确认删除 "{{ tagName }}" 这个标签吗?
+
+
+
+
+
+
+
+
+
diff --git a/src/views/material-center/components/raw-material/components/tags-manage-modal/index.vue b/src/views/material-center/components/raw-material/components/tags-manage-modal/index.vue
new file mode 100644
index 0000000..a7f0b32
--- /dev/null
+++ b/src/views/material-center/components/raw-material/components/tags-manage-modal/index.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+ 标签名称
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ tag.name }}
+
![]()
+
+
+
+
+
+ 暂无标签
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/material-center/components/raw-material/components/tags-manage-modal/style.scss b/src/views/material-center/components/raw-material/components/tags-manage-modal/style.scss
new file mode 100644
index 0000000..2ec1a38
--- /dev/null
+++ b/src/views/material-center/components/raw-material/components/tags-manage-modal/style.scss
@@ -0,0 +1,51 @@
+.raw-material-tags-manage-modal {
+ border-radius: 8px;
+
+ .ant-modal-body {
+ // padding: 24px 24px 44px !important;
+ overflow: hidden;
+ display: flex;
+ flex-direction: column;
+
+ .arcanto-btn {
+ width: fit-content;
+
+ .ant-btn-icon {
+ line-height: 16px;
+ }
+ }
+
+ .tag-list {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 12px;
+
+ .tag-item {
+ height: 24px;
+ display: flex;
+ align-items: center;
+ background: #f5f5f5;
+ border-radius: 4px;
+ padding: 4px 12px;
+ position: relative;
+
+ .delete-icon {
+ position: absolute;
+ z-index: 1;
+ top: -6px;
+ right: -6px;
+ cursor: pointer;
+ width: 12px;
+ height: 12px;
+ display: none;
+ }
+
+ &:hover {
+ .delete-icon {
+ display: block;
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/src/views/material-center/components/raw-material/index.vue b/src/views/material-center/components/raw-material/index.vue
index 0673c1c..d662d5e 100644
--- a/src/views/material-center/components/raw-material/index.vue
+++ b/src/views/material-center/components/raw-material/index.vue
@@ -1,14 +1,18 @@
+
+
diff --git a/src/views/material-center/components/raw-material/components/add-raw-material-drawer/style.scss b/src/views/material-center/components/raw-material/components/add-raw-material-drawer/style.scss
new file mode 100644
index 0000000..2362f69
--- /dev/null
+++ b/src/views/material-center/components/raw-material/components/add-raw-material-drawer/style.scss
@@ -0,0 +1,48 @@
+.xt-add-raw-material-modal {
+ .ant-drawer-header {
+ height: 58px;
+ border-bottom: none;
+ }
+
+ .ant-upload {
+ width: 100%;
+ }
+
+ .ant-drawer-body {
+ padding: 0;
+ display: flex;
+ flex-direction: column;
+
+ .cts {
+ color: #211f24;
+ font-family: $font-family-regular;
+ font-size: 14px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: 22px;
+ }
+
+ .content {
+ .upload-box {
+ transition: all 0.3s;
+
+ &:hover {
+ border-color: #6d4cfe;
+ }
+ }
+
+ .upload-text {
+ color: #000;
+ text-align: center;
+ font-family: $font-family-regular;
+ font-size: 12px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: 20px;
+ }
+ }
+
+ .footer {
+ }
+ }
+}
diff --git a/src/views/material-center/components/raw-material/index.vue b/src/views/material-center/components/raw-material/index.vue
index d662d5e..cc29a72 100644
--- a/src/views/material-center/components/raw-material/index.vue
+++ b/src/views/material-center/components/raw-material/index.vue
@@ -7,6 +7,7 @@ import FilterBlock from './components/filter-block/index.vue';
import RawMaterialTable from './components/table/index.vue';
import DeleteRawMaterialModal from './components/table/delete-file-modal.vue';
import TagsManageModal from './components/tags-manage-modal';
+import AddRawMaterialDrawer from './components/add-raw-material-drawer';
import { useTableSelectionWithPagination } from '@/hooks/useTableSelectionWithPagination';
import { getRawMaterialsPage } from '@/api/all/generationWorkshop';
@@ -32,6 +33,7 @@ export default defineComponent({
const deleteRawMaterialModalRef = ref(null);
const tagsManageModalRef = ref(null);
+ const addRawMaterialDrawerRef = ref(null);
const query = ref(cloneDeep(INITIAL_QUERY));
const handleSearch = () => {
@@ -91,7 +93,7 @@ export default defineComponent({
tagsManageModalRef.value?.open();
};
const handleAddMaterial = () => {
- console.log('handleAddMaterial');
+ addRawMaterialDrawerRef.value?.open();
};
onMounted(() => {
@@ -182,6 +184,7 @@ export default defineComponent({
+
);
From 1630481437821f5386d3415d954c972f60b27a44 Mon Sep 17 00:00:00 2001
From: rd <1344903914@qq.com>
Date: Tue, 16 Sep 2025 17:14:52 +0800
Subject: [PATCH 13/35] =?UTF-8?q?fix(input):=20=E4=BC=98=E5=8C=96=E8=BE=93?=
=?UTF-8?q?=E5=85=A5=E6=A1=86=E4=BA=A4=E4=BA=92=E5=92=8C=E9=AA=8C=E8=AF=81?=
=?UTF-8?q?=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修改密码输入框增加 @change 事件处理,用于清除确认密码的验证信息- 验证码输入框增加 @focus 事件处理,用于清除错误状态和信息
- 登录和注册页面的错误信息显示进行样式统一和优化
-调整注册表单中同意条款的样式
---
.../components/change-password-modal/index.vue | 15 ++++++++++++++-
.../person/components/verification-code/index.vue | 5 +++++
src/views/login/components/login-form/index.vue | 4 ++--
.../login/components/register-form/index.vue | 4 ++--
4 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/src/views/components/management/person/components/change-password-modal/index.vue b/src/views/components/management/person/components/change-password-modal/index.vue
index 5c062ae..4b7c55a 100644
--- a/src/views/components/management/person/components/change-password-modal/index.vue
+++ b/src/views/components/management/person/components/change-password-modal/index.vue
@@ -14,7 +14,13 @@
验证成功,请更改密码