From b732b59aa90d28c06c575b64cd27041902600034 Mon Sep 17 00:00:00 2001
From: 031026 <1558394962@qq.com>
Date: Mon, 15 Apr 2024 13:58:48 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E7=B3=BB=E7=BB=9F=E6=8E=A5=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/source/source.js | 66 ++++
src/api/system/notice.js | 24 +-
src/layout/components/Navbar.vue | 140 +++++++-
src/layout/index.vue | 1 +
src/views/source/source/index.vue | 514 ++++++++++++++++++++++++++++++
src/views/system/dept/index.vue | 2 +
src/views/system/notice/index.vue | 143 ++++++++-
src/views/system/user/index.vue | 1 +
src/views/tool/gen/editTable.vue | 1 +
9 files changed, 887 insertions(+), 5 deletions(-)
create mode 100644 src/api/source/source.js
create mode 100644 src/views/source/source/index.vue
diff --git a/src/api/source/source.js b/src/api/source/source.js
new file mode 100644
index 0000000..f392d69
--- /dev/null
+++ b/src/api/source/source.js
@@ -0,0 +1,66 @@
+import request from '@/utils/request'
+
+// 查询数据接入基本信息列表
+export function listSource(query) {
+ return request({
+ url: '/source/source/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询数据接入基本信息详细
+export function getSource(id) {
+ return request({
+ url: '/source/source/' + id,
+ method: 'get'
+ })
+}
+
+export function typeList() {
+ return request({
+ url: '/source/type/typeList',
+ method: 'get'
+ })
+}
+
+
+// 新增数据接入基本信息
+export function addSource(data) {
+ return request({
+ url: '/source/source/add',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改数据接入基本信息
+export function updateSource(data) {
+ return request({
+ url: '/source/source/'+data.id,
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除数据接入基本信息
+export function delSource(id) {
+ return request({
+ url: '/source/source/' + id,
+ method: 'delete'
+ })
+}
+
+export function connectTest(id) {
+ return request({
+ url: '/source/source/connect?id=' + id,
+ method: 'post'
+ })
+}
+
+export function synchronization(data) {
+ return request({
+ url: '/source/structure/'+data.id,
+ method: 'post'
+ })
+}
diff --git a/src/api/system/notice.js b/src/api/system/notice.js
index c274ea5..d0f0ba4 100644
--- a/src/api/system/notice.js
+++ b/src/api/system/notice.js
@@ -9,6 +9,28 @@ export function listNotice(query) {
})
}
+export function updateAsUserDept(id) {
+ return request({
+ url: '/system/userDept/UpdateAsUserDept?id=' + id,
+ method: 'get'
+ })
+}
+
+export function getNum(id) {
+ return request({
+ url: '/system/userDept/GetNum?noticeId=' + id,
+ method: 'get'
+ })
+}
+
+export function getNoticeList(data) {
+ return request({
+ url: '/system/notice/GetNoticeList',
+ method: 'post',
+ data
+ })
+}
+
// 查询公告详细
export function getNotice(noticeId) {
return request({
@@ -41,4 +63,4 @@ export function delNotice(noticeId) {
url: '/system/notice/' + noticeId,
method: 'delete'
})
-}
\ No newline at end of file
+}
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 7ccea26..bf3287e 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -7,10 +7,13 @@