系统修改

This commit is contained in:
cwchen 2025-09-11 14:05:59 +08:00
parent 7823d77aeb
commit e22640f6c6
23 changed files with 111 additions and 107 deletions

View File

@ -1,10 +1,10 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 工程档案资料移交管理系统 VUE_APP_TITLE = 档案预归档管理系统
# 开发环境配置 # 开发环境配置
ENV = 'development' ENV = 'development'
# 工程档案资料移交管理系统/开发环境 # 档案预归档管理系统/开发环境
VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = '/dev-api'
# 路由懒加载 # 路由懒加载

View File

@ -1,8 +1,8 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 工程档案资料移交管理系统 VUE_APP_TITLE = 档案预归档管理系统
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'
# 工程档案资料移交管理系统/生产环境 # 档案预归档管理系统/生产环境
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'

View File

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 工程档案资料移交管理系统 VUE_APP_TITLE = 档案预归档管理系统
BABEL_ENV = production BABEL_ENV = production
@ -8,5 +8,5 @@ NODE_ENV = production
# 测试环境配置 # 测试环境配置
ENV = 'staging' ENV = 'staging'
# 工程档案资料移交管理系统/测试环境 # 档案预归档管理系统/测试环境
VUE_APP_BASE_API = '/stage-api' VUE_APP_BASE_API = '/stage-api'

View File

@ -1,7 +1,7 @@
{ {
"name": "ruoyi", "name": "ruoyi",
"version": "3.9.0", "version": "3.9.0",
"description": "工程档案资料移交管理系统", "description": "档案预归档管理系统",
"author": "bonus", "author": "bonus",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 851 B

BIN
public/favicon.ico2 Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

View File

@ -3,8 +3,8 @@ import request from '@/utils/request'
// 获取左侧树列表接口 // 获取左侧树列表接口
export function getLeftTreeListAPI(data) { export function getLeftTreeListAPI(data) {
return request({ return request({
url: '/smartArchives/***', url: '/smartArchives/data/classify/listAll',
method: 'POST', method: 'GET',
data: data, data: data,
}) })
} }
@ -12,7 +12,7 @@ export function getLeftTreeListAPI(data) {
// 获取数据列表接口 // 获取数据列表接口
export function getListDataSetAPI(data) { export function getListDataSetAPI(data) {
return request({ return request({
url: '/smartArchives/***', url: '/smartArchives/data/Collect/list',
method: 'GET', method: 'GET',
params: data, params: data,
}) })

Binary file not shown.

Before

Width:  |  Height:  |  Size: 509 KiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 851 B

View File

@ -36,7 +36,7 @@ $base-sub-menu-background:#000c17;
$base-sub-menu-hover:#001528; $base-sub-menu-hover:#001528;
*/ */
$base-sidebar-width: 200px; $base-sidebar-width: 250px;
// the :export directive is the magic sauce for webpack // the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass

View File

@ -96,7 +96,7 @@ export default {
line-height: 50px; line-height: 50px;
margin-left: 8px; margin-left: 8px;
.no-redirect { .no-redirect {
color: #97a8be; color: #fff;
cursor: text; cursor: text;
} }
} }

View File

@ -9,13 +9,13 @@
<template v-if="device!=='mobile'"> <template v-if="device!=='mobile'">
<search id="header-search" class="right-menu-item" /> <search id="header-search" class="right-menu-item" />
<el-tooltip content="源码地址" effect="dark" placement="bottom"> <!-- <el-tooltip content="源码地址" effect="dark" placement="bottom">
<ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" /> <ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />
</el-tooltip> </el-tooltip> -->
<el-tooltip content="文档地址" effect="dark" placement="bottom"> <!-- <el-tooltip content="文档地址" effect="dark" placement="bottom">
<ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" /> <ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" />
</el-tooltip> </el-tooltip> -->
<screenfull id="screenfull" class="right-menu-item hover-effect" /> <screenfull id="screenfull" class="right-menu-item hover-effect" />
@ -115,7 +115,8 @@ export default {
height: 50px; height: 50px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: #fff; // background: #fff;
background: #006e6afe;
box-shadow: 0 1px 4px rgba(0,21,41,.08); box-shadow: 0 1px 4px rgba(0,21,41,.08);
.hamburger-container { .hamburger-container {
@ -127,7 +128,7 @@ export default {
-webkit-tap-highlight-color:transparent; -webkit-tap-highlight-color:transparent;
&:hover { &:hover {
background: rgba(0, 0, 0, .025) background: #006E6B50
} }
} }
@ -159,7 +160,8 @@ export default {
padding: 0 8px; padding: 0 8px;
height: 100%; height: 100%;
font-size: 18px; font-size: 18px;
color: #5a5e66; // color: #5a5e66;
color: #fff;
vertical-align: text-bottom; vertical-align: text-bottom;
&.hover-effect { &.hover-effect {

View File

@ -57,7 +57,8 @@ export default {
width: 100%; width: 100%;
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
background: #2b2f3a; // background: #2b2f3a;
background: #006E6B !important;
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;
@ -75,7 +76,7 @@ export default {
& .sidebar-title { & .sidebar-title {
display: inline-block; display: inline-block;
margin: 0; margin: 0;
color: #fff; color: #fff !important;
font-weight: 600; font-weight: 600;
line-height: 50px; line-height: 50px;
font-size: 14px; font-size: 14px;

View File

@ -11,9 +11,9 @@ import { generateRequestSignature } from '@/utils/crypto-js'
const systemConfig = { const systemConfig = {
requestConfig: { requestConfig: {
encryptRequest: 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 : false, checkIntegrity: process.env.VUE_APP_ENV === 'production' ? true : true,
encryptResponse: process.env.VUE_APP_ENV === 'production' ? true : false, encryptResponse: process.env.VUE_APP_ENV === 'production' ? true : true,
}, },
} }

View File

@ -4,31 +4,18 @@
<el-card style="min-height: calc(100vh - 125px)"> <el-card style="min-height: calc(100vh - 125px)">
<el-row :gutter="20" style="display: flex; align-items: center"> <el-row :gutter="20" style="display: flex; align-items: center">
<el-col :span="16"> <el-col :span="16">
<el-input <el-input v-model="filterText" placeholder="输入关键字" @keyup.enter.native="onHandleSearch">
v-model="filterText"
placeholder="输入关键字"
@keyup.enter.native="onHandleSearch"
>
</el-input> </el-input>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-button <el-button type="primary" size="small" @click="onHandleSearch">
type="primary" 查询
size="small"
@click="onHandleSearch"
>
搜索
</el-button> </el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-tree <el-tree ref="leftTreeRef" :data="filteredTreeData" default-expand-all class="left-tree-list"
ref="leftTreeRef" @node-click="onHandleNodeClick" :filter-node-method="filterNode">
:data="treeDataList"
default-expand-all
class="left-tree-list"
@node-click="onHandleNodeClick"
>
</el-tree> </el-tree>
</el-card> </el-card>
</div> </div>
@ -43,43 +30,21 @@ export default {
treeDataList: [ treeDataList: [
{ {
label: '数据汇集管理', label: '数据汇集管理',
id: 1, id: 0,
children: [ 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,
},
],
}, },
], ],
filterText: '',
originalTreeData: [], //
}
},
computed: {
//
filteredTreeData() {
if (!this.filterText) {
return this.treeDataList
}
return this.filterTreeData(this.treeDataList)
} }
}, },
methods: { methods: {
@ -92,16 +57,46 @@ export default {
// //
async getLeftTreeList() { async getLeftTreeList() {
const res = await getLeftTreeListAPI() 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() { onHandleSearch() {
// console.log(this.filterText) this.$refs.leftTreeRef.filter(this.filterText)
// this.getLeftTreeList() },
//
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() { created() {
// this.getLeftTreeList() this.getLeftTreeList()
}, },
} }
</script> </script>

View File

@ -52,13 +52,13 @@
</template> </template>
<script> <script>
import { getListDataSetClassAPI } from '@/api/data-collect/data-set-manage' import { getListDataSetAPI } from '@/api/data-collect/data-set-manage'
export default { export default {
name: 'RightTable', name: 'RightTable',
props: { props: {
selectedNodeId: { selectedNodeId: {
type: [Number, String], type: [Number, String],
default: null, default: 0,
}, },
}, },
data() { data() {
@ -82,17 +82,18 @@ export default {
}, },
// //
async getListDataSetClassFun(id) { async getListDataSetClassFun(node) {
// const res = await getListDataSetClassAPI({ const res = await getListDataSetAPI({
// id, dataClassifyId: node
// ...this.queryParams, })
// }) console.log(res);
// this.tableData = res.rows // this.tableData = res.rows
// this.total = res.total // this.total = res.total
// //
const num = Math.floor(Math.random() * 6) + 1 /* const num = Math.floor(Math.random() * 6) + 1
const num2 = Math.floor(Math.random() * 6) + 1 const num2 = Math.floor(Math.random() * 6) + 1
for (let i = 0; i < num; i++) { for (let i = 0; i < num; i++) {
this.columns.push({ this.columns.push({
@ -107,7 +108,7 @@ export default {
obj[this.columns[j].prop] = `字段${j + 1}的值` obj[this.columns[j].prop] = `字段${j + 1}的值`
} }
this.tableData.push(obj) this.tableData.push(obj)
} } */
}, },
}, },
@ -117,9 +118,9 @@ export default {
handler(newVal) { handler(newVal) {
this.columns = [] this.columns = []
this.tableData = [] this.tableData = []
this.getListDataSetClassFun(newVal.id) this.getListDataSetClassFun(newVal)
}, },
immediate: true, immediate: true, //
}, },
}, },
} }

View File

@ -24,13 +24,12 @@ export default {
data() { data() {
return { return {
// ID // ID
selectedNodeId: null, selectedNodeId: 0,
} }
}, },
methods: { methods: {
// //
handleNodeClick(data) { handleNodeClick(data) {
console.log(data)
this.selectedNodeId = data.id this.selectedNodeId = data.id
}, },
}, },

View File

@ -1,6 +1,7 @@
<template> <template>
<div class="login"> <div class="login">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form"> <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
<h3 class="title">欢迎登录</h3>
<h3 class="title">{{title}}</h3> <h3 class="title">{{title}}</h3>
<el-form-item prop="username"> <el-form-item prop="username">
<el-input <el-input
@ -56,7 +57,7 @@
</el-form> </el-form>
<!-- 底部 --> <!-- 底部 -->
<div class="el-login-footer"> <div class="el-login-footer">
<span>Copyright © 2018-2025 ruoyi.vip All Rights Reserved.</span> <span></span>
</div> </div>
</div> </div>
</template> </template>
@ -162,23 +163,28 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100%; height: 100%;
background-image: url("../assets/images/login-background.jpg"); // background-image: url("../assets/images/login-background.jpg");
background-size: cover; // background-size: cover;
background: url("../assets/images/login-background.jpg") no-repeat left center;
} }
.title { .title {
margin: 0px auto 30px auto; margin: 0px auto 20px auto;
text-align: center; font-weight: bold;
color: #707070; text-align: left;
color: #060F2E;
font-size: 28px;
} }
.login-form { .login-form {
border-radius: 6px; border-radius: 6px;
background: #ffffff; background: #ffffff;
width: 400px; width: 550px;
padding: 25px 25px 5px 25px; // padding: 25px 25px 5px 25px;
z-index: 1; z-index: 1;
margin-left: 58%;
.el-input { .el-input {
height: 38px; height: 38px;
margin: 5px 0;
input { input {
height: 38px; height: 38px;
} }

View File

@ -186,7 +186,7 @@ export default {
// //
if (previous !== undefined && value === previous) return callback() if (previous !== undefined && value === previous) return callback()
if (!value) return callback(new Error('单个IP地址不能为空')) if (!value) return callback(new Error('单个IP地址不能为空'))
//if (!isIPv4(value)) return callback(new Error('IPv4 192.168.1.1')) if (!isIPv4(value)) return callback(new Error('请输入合法的IPv4地址如 192.168.1.1'))
} }
callback() callback()
}, },
@ -195,7 +195,7 @@ export default {
const previous = this.form.ipRangeStartDesNew const previous = this.form.ipRangeStartDesNew
if (previous !== undefined && value === previous) return callback() if (previous !== undefined && value === previous) return callback()
if (!value) return callback(new Error('IP网段起始地址不能为空')) if (!value) return callback(new Error('IP网段起始地址不能为空'))
//if (!isIPv4(value)) return callback(new Error('IPv4 192.168.1.1')) if (!isIPv4(value)) return callback(new Error('请输入合法的IPv4地址如 192.168.1.1'))
const end = this.form.ipRangeEndDes const end = this.form.ipRangeEndDes
if (end && isIPv4(end) && !isIPv4RangeOrder(value, end)) { if (end && isIPv4(end) && !isIPv4RangeOrder(value, end)) {
return callback(new Error('起始地址不能大于结束地址')) return callback(new Error('起始地址不能大于结束地址'))
@ -208,7 +208,7 @@ export default {
const previous = this.form.ipRangeEndDesNew const previous = this.form.ipRangeEndDesNew
if (previous !== undefined && value === previous) return callback() if (previous !== undefined && value === previous) return callback()
if (!value) return callback(new Error('IP网段结束地址不能为空')) if (!value) return callback(new Error('IP网段结束地址不能为空'))
//if (!isIPv4(value)) return callback(new Error('IPv4 192.168.1.100')) if (!isIPv4(value)) return callback(new Error('请输入合法的IPv4地址如 192.168.1.100'))
const start = this.form.ipRangeStartDes const start = this.form.ipRangeStartDes
if (start && isIPv4(start) && !isIPv4RangeOrder(start, value)) { if (start && isIPv4(start) && !isIPv4RangeOrder(start, value)) {
return callback(new Error('结束地址不能小于起始地址')) return callback(new Error('结束地址不能小于起始地址'))

View File

@ -7,10 +7,10 @@ function resolve(dir) {
const CompressionPlugin = require('compression-webpack-plugin') const CompressionPlugin = require('compression-webpack-plugin')
const name = process.env.VUE_APP_TITLE || '工程档案资料移交管理系统' // 网页标题 const name = process.env.VUE_APP_TITLE || '档案预归档管理系统' // 网页标题
// const baseUrl = 'http://localhost:8080' // 后端接口 // const baseUrl = 'http://localhost:8080' // 后端接口
const baseUrl = 'http://192.168.0.60:8080' // 后端接口-福 const baseUrl = 'http://192.168.0.39:8080' // 后端接口-福
const port = process.env.port || process.env.npm_config_port || 80 // 端口 const port = process.env.port || process.env.npm_config_port || 80 // 端口