diff --git a/.env.development b/.env.development
index 8cee688..f73bcc9 100644
--- a/.env.development
+++ b/.env.development
@@ -1,10 +1,10 @@
# 页面标题
-VUE_APP_TITLE = 工程档案资料移交管理系统
+VUE_APP_TITLE = 档案预归档管理系统
# 开发环境配置
ENV = 'development'
-# 工程档案资料移交管理系统/开发环境
+# 档案预归档管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'
# 路由懒加载
diff --git a/.env.production b/.env.production
index ce5b3b8..88dbde8 100644
--- a/.env.production
+++ b/.env.production
@@ -1,8 +1,8 @@
# 页面标题
-VUE_APP_TITLE = 工程档案资料移交管理系统
+VUE_APP_TITLE = 档案预归档管理系统
# 生产环境配置
ENV = 'production'
-# 工程档案资料移交管理系统/生产环境
+# 档案预归档管理系统/生产环境
VUE_APP_BASE_API = '/prod-api'
diff --git a/.env.staging b/.env.staging
index ebd607b..ab93cfd 100644
--- a/.env.staging
+++ b/.env.staging
@@ -1,5 +1,5 @@
# 页面标题
-VUE_APP_TITLE = 工程档案资料移交管理系统
+VUE_APP_TITLE = 档案预归档管理系统
BABEL_ENV = production
@@ -8,5 +8,5 @@ NODE_ENV = production
# 测试环境配置
ENV = 'staging'
-# 工程档案资料移交管理系统/测试环境
+# 档案预归档管理系统/测试环境
VUE_APP_BASE_API = '/stage-api'
diff --git a/package.json b/package.json
index 80c31e0..f818345 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "ruoyi",
"version": "3.9.0",
- "description": "工程档案资料移交管理系统",
+ "description": "档案预归档管理系统",
"author": "bonus",
"license": "MIT",
"scripts": {
diff --git a/public/favicon.ico b/public/favicon.ico
index e263760..4a16faa 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/public/favicon.ico2 b/public/favicon.ico2
new file mode 100644
index 0000000..e263760
Binary files /dev/null and b/public/favicon.ico2 differ
diff --git a/public/styles/theme-chalk/favicon.ico b/public/styles/theme-chalk/favicon.ico
new file mode 100644
index 0000000..4a16faa
Binary files /dev/null and b/public/styles/theme-chalk/favicon.ico differ
diff --git a/src/api/data-collect/data-set-manage.js b/src/api/data-collect/data-set-manage.js
index adc4f74..67eea29 100644
--- a/src/api/data-collect/data-set-manage.js
+++ b/src/api/data-collect/data-set-manage.js
@@ -3,8 +3,8 @@ import request from '@/utils/request'
// 获取左侧树列表接口
export function getLeftTreeListAPI(data) {
return request({
- url: '/smartArchives/***',
- method: 'POST',
+ url: '/smartArchives/data/classify/listAll',
+ method: 'GET',
data: data,
})
}
@@ -12,7 +12,7 @@ export function getLeftTreeListAPI(data) {
// 获取数据列表接口
export function getListDataSetAPI(data) {
return request({
- url: '/smartArchives/***',
+ url: '/smartArchives/data/Collect/list',
method: 'GET',
params: data,
})
diff --git a/src/assets/images/login-background.jpg b/src/assets/images/login-background.jpg
index 8a89eb8..3b06080 100644
Binary files a/src/assets/images/login-background.jpg and b/src/assets/images/login-background.jpg differ
diff --git a/src/assets/images/login-background2.jpg b/src/assets/images/login-background2.jpg
new file mode 100644
index 0000000..8a89eb8
Binary files /dev/null and b/src/assets/images/login-background2.jpg differ
diff --git a/src/assets/images/pay.png b/src/assets/images/pay.png
deleted file mode 100644
index bb8b967..0000000
Binary files a/src/assets/images/pay.png and /dev/null differ
diff --git a/src/assets/logo/logo.png b/src/assets/logo/logo.png
index e263760..4a16faa 100644
Binary files a/src/assets/logo/logo.png and b/src/assets/logo/logo.png differ
diff --git a/src/assets/styles/variables.scss b/src/assets/styles/variables.scss
index 34484d4..b585086 100644
--- a/src/assets/styles/variables.scss
+++ b/src/assets/styles/variables.scss
@@ -36,7 +36,7 @@ $base-sub-menu-background:#000c17;
$base-sub-menu-hover:#001528;
*/
-$base-sidebar-width: 200px;
+$base-sidebar-width: 250px;
// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index 080595a..80cce6a 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -96,7 +96,7 @@ export default {
line-height: 50px;
margin-left: 8px;
.no-redirect {
- color: #97a8be;
+ color: #fff;
cursor: text;
}
}
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 5c31196..51a4348 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -9,13 +9,13 @@
-
+
-
+
@@ -115,7 +115,8 @@ export default {
height: 50px;
overflow: hidden;
position: relative;
- background: #fff;
+ // background: #fff;
+ background: #006e6afe;
box-shadow: 0 1px 4px rgba(0,21,41,.08);
.hamburger-container {
@@ -127,7 +128,7 @@ export default {
-webkit-tap-highlight-color:transparent;
&:hover {
- background: rgba(0, 0, 0, .025)
+ background: #006E6B50
}
}
@@ -159,7 +160,8 @@ export default {
padding: 0 8px;
height: 100%;
font-size: 18px;
- color: #5a5e66;
+ // color: #5a5e66;
+ color: #fff;
vertical-align: text-bottom;
&.hover-effect {
diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue
index 4ec53eb..4ac72f8 100644
--- a/src/layout/components/Sidebar/Logo.vue
+++ b/src/layout/components/Sidebar/Logo.vue
@@ -57,7 +57,8 @@ export default {
width: 100%;
height: 50px;
line-height: 50px;
- background: #2b2f3a;
+ // background: #2b2f3a;
+ background: #006E6B !important;
text-align: center;
overflow: hidden;
@@ -75,7 +76,7 @@ export default {
& .sidebar-title {
display: inline-block;
margin: 0;
- color: #fff;
+ color: #fff !important;
font-weight: 600;
line-height: 50px;
font-size: 14px;
diff --git a/src/utils/request.js b/src/utils/request.js
index 147be74..fde73c0 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -11,9 +11,9 @@ import { generateRequestSignature } from '@/utils/crypto-js'
const systemConfig = {
requestConfig: {
- encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : false,
- checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : false,
- encryptResponse: process.env.VUE_APP_ENV === 'production' ? true : false,
+ encryptRequest: process.env.VUE_APP_ENV === 'production' ? true : true,
+ checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : true,
+ encryptResponse: process.env.VUE_APP_ENV === 'production' ? true : true,
},
}
diff --git a/src/views/data-collect/data-set-manage/components/left-tree.vue b/src/views/data-collect/data-set-manage/components/left-tree.vue
index 2a193f8..04104d9 100644
--- a/src/views/data-collect/data-set-manage/components/left-tree.vue
+++ b/src/views/data-collect/data-set-manage/components/left-tree.vue
@@ -4,31 +4,18 @@
-
+
-
- 搜索
+
+ 查询
-
+
@@ -43,43 +30,21 @@ export default {
treeDataList: [
{
label: '数据汇集管理',
- id: 1,
- children: [
- {
- label: '数据汇集1',
- id: 11,
- },
- {
- label: '数据汇集2',
- id: 12,
- },
- {
- label: '数据汇集3',
- id: 13,
- },
- {
- label: '数据汇集4',
- id: 14,
- },
- {
- label: '数据汇集5',
- id: 15,
- },
- {
- label: '数据汇集6',
- id: 16,
- },
- {
- label: '数据汇集7',
- id: 17,
- },
- {
- label: '数据汇集8',
- id: 18,
- },
- ],
+ id: 0,
+ children: [],
},
],
+ filterText: '',
+ originalTreeData: [], // 保存原始数据
+ }
+ },
+ computed: {
+ // 过滤后的树数据
+ filteredTreeData() {
+ if (!this.filterText) {
+ return this.treeDataList
+ }
+ return this.filterTreeData(this.treeDataList)
}
},
methods: {
@@ -92,16 +57,46 @@ export default {
// 获取左侧树列表
async getLeftTreeList() {
const res = await getLeftTreeListAPI()
- // this.treeDataList = res.data
+ const transformedData = res.rows.map(item => ({
+ id: item.id,
+ label: item.dataTypeName
+ }));
+ this.treeDataList[0].children = transformedData
+ // 保存原始数据
+ this.originalTreeData = JSON.parse(JSON.stringify(this.treeDataList))
},
// 搜索
onHandleSearch() {
- // console.log(this.filterText)
- // this.getLeftTreeList()
+ this.$refs.leftTreeRef.filter(this.filterText)
+ },
+ // 树节点过滤方法
+ filterNode(value, data) {
+ if (!value) return true
+ return data.label.indexOf(value) !== -1
+ },
+ // 递归过滤树数据
+ filterTreeData(treeData) {
+ const result = []
+ for (const node of treeData) {
+ const newNode = { ...node }
+ if (node.children && node.children.length > 0) {
+ const filteredChildren = this.filterTreeData(node.children)
+ if (filteredChildren.length > 0) {
+ newNode.children = filteredChildren
+ result.push(newNode)
+ } else if (node.label.indexOf(this.filterText) !== -1) {
+ // 如果父节点匹配,保留所有子节点
+ result.push(node)
+ }
+ } else if (node.label.indexOf(this.filterText) !== -1) {
+ result.push(newNode)
+ }
+ }
+ return result
},
},
created() {
- // this.getLeftTreeList()
+ this.getLeftTreeList()
},
}
diff --git a/src/views/data-collect/data-set-manage/components/right-table.vue b/src/views/data-collect/data-set-manage/components/right-table.vue
index ebf2b2f..6055bab 100644
--- a/src/views/data-collect/data-set-manage/components/right-table.vue
+++ b/src/views/data-collect/data-set-manage/components/right-table.vue
@@ -52,13 +52,13 @@