From a69c1f0cb25de9f0a899c3ab19e731e83b5b6070 Mon Sep 17 00:00:00 2001
From: zuqijia <2924963185@qq.com>
Date: Mon, 20 Apr 2026 17:51:59 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=8C=E6=88=90=E5=9F=8E=E5=B8=82?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E5=A2=9E=E5=88=AA=E6=94=B9=E6=9F=A5=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/api/system/city.js | 44 +++++++
ruoyi-ui/src/router/index.js | 16 +++
ruoyi-ui/src/views/oa/city/index.vue | 169 +++++++++++++++++++++++++++
3 files changed, 229 insertions(+)
create mode 100644 ruoyi-ui/src/api/system/city.js
create mode 100644 ruoyi-ui/src/views/oa/city/index.vue
diff --git a/ruoyi-ui/src/api/system/city.js b/ruoyi-ui/src/api/system/city.js
new file mode 100644
index 0000000..e500978
--- /dev/null
+++ b/ruoyi-ui/src/api/system/city.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询城市列表
+export function listCity(query) {
+ return request({
+ url: '/oa/city/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询城市详细
+export function getCity(cityId) {
+ return request({
+ url: `/oa/city/${cityId}`,
+ method: 'get'
+ })
+}
+
+// 新增城市
+export function addCity(data) {
+ return request({
+ url: '/oa/city',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改城市
+export function updateCity(data) {
+ return request({
+ url: '/oa/city',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除城市
+export function delCity(cityIds) {
+ return request({
+ url: `/oa/city/${cityIds}`,
+ method: 'delete'
+ })
+}
\ No newline at end of file
diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js
index c588125..3ebcb51 100644
--- a/ruoyi-ui/src/router/index.js
+++ b/ruoyi-ui/src/router/index.js
@@ -9,6 +9,20 @@ import Layout from "@/layout";
// 公共路由
export const constantRoutes = [
+ {
+ path: "/oa/city",
+ component: Layout,
+ hidden: false,
+ meta: { title: "城市管理", icon: "dashboard" },
+ children: [
+ {
+ path: "index",
+ component: () => import("@/views/oa/city/index"),
+ name: "City",
+ meta: { title: "城市管理", icon: "el-icon-office-building" }
+ }
+ ]
+},
{
path: "/redirect",
component: Layout,
@@ -182,6 +196,7 @@ export const constantRoutes = [
];
export const dynamicRoutes = [
+
{
path: "/system/user-auth",
component: Layout,
@@ -314,6 +329,7 @@ export const dynamicRoutes = [
},
],
},
+
];
let routerPush = Router.prototype.push;
diff --git a/ruoyi-ui/src/views/oa/city/index.vue b/ruoyi-ui/src/views/oa/city/index.vue
new file mode 100644
index 0000000..064f38f
--- /dev/null
+++ b/ruoyi-ui/src/views/oa/city/index.vue
@@ -0,0 +1,169 @@
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确 定
+ 取 消
+
+
+
+
+
+
\ No newline at end of file