diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index a7cea0b..a59750c 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,3 +1,6 @@
{
- "recommendations": ["Vue.volar"]
-}
+ "recommendations": [
+ "Vue.volar",
+ "google.geminicodeassist"
+ ]
+}
\ No newline at end of file
diff --git a/jsconfig.json b/jsconfig.json
index 5a1f2d2..8e8440b 100644
--- a/jsconfig.json
+++ b/jsconfig.json
@@ -1,8 +1,14 @@
{
"compilerOptions": {
+ "baseUrl": ".",
"paths": {
- "@/*": ["./src/*"]
+ "@/*": [
+ "./src/*"
+ ]
}
},
- "exclude": ["node_modules", "dist"]
-}
+ "exclude": [
+ "node_modules",
+ "dist"
+ ]
+}
\ No newline at end of file
diff --git a/src/components/TicketForm.vue b/src/components/TicketForm.vue
deleted file mode 100644
index acad85e..0000000
--- a/src/components/TicketForm.vue
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 未分配
- 进行中
- 已完成
- 已完结
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/TicketFilter.vue b/src/components/ticket/TicketFilter.vue
similarity index 59%
rename from src/components/TicketFilter.vue
rename to src/components/ticket/TicketFilter.vue
index 6b9374c..bad194f 100644
--- a/src/components/TicketFilter.vue
+++ b/src/components/ticket/TicketFilter.vue
@@ -4,7 +4,11 @@
-
+
全部
未分配
进行中
@@ -15,48 +19,48 @@
-
-
+
-
+
/
-
+
-
-
-
@@ -69,17 +73,26 @@
-
+
执行筛选
重置条件
-
+
排序
- 创建时间 (新→旧)
- 创建时间 (旧→新)
+ 创建时间 (新→旧)
+ 创建时间 (旧→新)
@@ -90,48 +103,48 @@
\ No newline at end of file
+
diff --git a/src/components/ticket/TicketForm.vue b/src/components/ticket/TicketForm.vue
new file mode 100644
index 0000000..c13c7df
--- /dev/null
+++ b/src/components/ticket/TicketForm.vue
@@ -0,0 +1,262 @@
+
+
+
+
+
+
+
+
+
+
+ 未分配
+ 进行中
+ 已完成
+ 已完结
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/TicketList.vue b/src/components/ticket/TicketList.vue
similarity index 100%
rename from src/components/TicketList.vue
rename to src/components/ticket/TicketList.vue
diff --git a/src/router/index.js b/src/router/index.js
index 1a50921..a122ee5 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -24,7 +24,7 @@ const router = createRouter({
{
path: 'customers',
name: 'customers',
- component: () => import('../views/CustomersView.vue'),
+ component: () => import('../views/CustomersManagement.vue'),
meta: { requiresAuth: true, role: 'admin' }
},
]
diff --git a/src/views/CustomersView.vue b/src/views/CustomersView.vue
deleted file mode 100644
index 4edc236..0000000
--- a/src/views/CustomersView.vue
+++ /dev/null
@@ -1,289 +0,0 @@
-
-
-
客户及员工管理系统
-
-
-
-
-
-
- 新增客户单位
- 新增员工
-
-
-
-
-
-
-
-
-
-
- 共 {{ getEmployeeCount(scope.row.customer_id) }} 人
-
- 查看详情
-
-
-
-
-
- 删除单位
-
-
-
-
-
-
-
-
-
-
-
- 取消
- 确定
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取消
- 保存员工
-
-
-
-
-
-
-
-
-
- 移除
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/TicketManagement.vue b/src/views/TicketManagement.vue
index d26296f..dfbc8b5 100644
--- a/src/views/TicketManagement.vue
+++ b/src/views/TicketManagement.vue
@@ -93,9 +93,9 @@ import { Plus, Memo, Clock, Loading, CircleCheck, Checked } from '@element-plus/
import { ticketApi ,customerApi} from '@/api/ticket'
// 组件引入
-import TicketFilter from '@/components/TicketFilter.vue'
-import TicketList from '@/components/TicketList.vue'
-import TicketForm from '@/components/TicketForm.vue'
+import TicketFilter from '@/components/ticket/TicketFilter.vue'
+import TicketList from '@/components/ticket/TicketList.vue'
+import TicketForm from '@/components/ticket/TicketForm.vue'
// --- 响应式状态 ---
const tickets = ref([])
diff --git a/vite.config.js b/vite.config.js
index 81a6d78..738c75e 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -25,8 +25,4 @@ export default defineConfig({
}
}
}
-
-
-
-
})