添加项目模块
This commit is contained in:
parent
7499a6e295
commit
bad8cd11d5
50
business-css/frontend/src/api/business/project/index.ts
Normal file
50
business-css/frontend/src/api/business/project/index.ts
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
import request from '@/utils/request';
|
||||||
|
|
||||||
|
//获取所有项目列表
|
||||||
|
export function searchProjectsLsit(queryParams:any){
|
||||||
|
return request({
|
||||||
|
url: '/projects/search' ,
|
||||||
|
method: 'get',
|
||||||
|
params:queryParams
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//新增项目
|
||||||
|
export function addProjects(data:any){
|
||||||
|
return request({
|
||||||
|
url:'/projects/create' ,
|
||||||
|
method: 'Post',
|
||||||
|
data: data
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//更新项目信息
|
||||||
|
export function updateProjects (queryParams:any){
|
||||||
|
return request({
|
||||||
|
url:'/projects/update' ,
|
||||||
|
method: 'PUT',
|
||||||
|
data: queryParams
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//单个删除项目
|
||||||
|
export function deleteProjects (queryParams:any){
|
||||||
|
return request({
|
||||||
|
url:'/projects/deleteById?id='+queryParams.id ,
|
||||||
|
method: 'delete'
|
||||||
|
// params: queryParams
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//多选删除项目
|
||||||
|
export function deleteBatchProjects (queryParams:any){
|
||||||
|
return request({
|
||||||
|
url:'/projects/deleteBatch',
|
||||||
|
method: 'delete',
|
||||||
|
data: queryParams
|
||||||
|
});
|
||||||
|
}
|
||||||
@ -32,7 +32,7 @@ function toggleClick() {
|
|||||||
.hamburger {
|
.hamburger {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
fill: #409eff;
|
fill: #266fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hamburger.is-active {
|
.hamburger.is-active {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-color-picker
|
<el-color-picker
|
||||||
:predefine="[
|
:predefine="[
|
||||||
'#409EFF',
|
'#266fff',
|
||||||
'#1890ff',
|
'#1890ff',
|
||||||
'#304156',
|
'#304156',
|
||||||
'#212121',
|
'#212121',
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
:root {
|
:root {
|
||||||
// 这里可以设置你自定义的颜色变量
|
// 这里可以设置你自定义的颜色变量
|
||||||
// 这个是element主要按钮:active的颜色,当主题更改后此变量的值也随之更改
|
// 这个是element主要按钮:active的颜色,当主题更改后此变量的值也随之更改
|
||||||
--el-color-primary-dark: #0d84ff;
|
--el-color-primary-dark: #266fff;
|
||||||
|
--el-color-primary:#266fff !important;
|
||||||
|
--el-color-primary-light-3: #5189ff !important;
|
||||||
// --el-font-size-base: 16px !important;
|
// --el-font-size-base: 16px !important;
|
||||||
}
|
}
|
||||||
.el-button--large, .el-input--large, .el-table--large, .el-form--large, .el-select__tags-text{
|
.el-button--large, .el-input--large, .el-table--large, .el-form--large, .el-select__tags-text{
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
:export {
|
:export {
|
||||||
menuText: #409eff;
|
menuText: #266fff;
|
||||||
menuActiveText: #409eff;
|
menuActiveText: #266fff;
|
||||||
subMenuActiveText: #409eff;
|
subMenuActiveText: #266fff;
|
||||||
menuBg: #ffffff;
|
menuBg: #ffffff;
|
||||||
menuHover: #409eff;
|
menuHover: #266fff;
|
||||||
subMenuBg: #ffffff;
|
subMenuBg: #ffffff;
|
||||||
subMenuHover: #409eff;
|
subMenuHover: #266fff;
|
||||||
sideBarWidth: 210px;
|
sideBarWidth: 210px;
|
||||||
}
|
}
|
||||||
/*# sourceMappingURL=variables.module.css.map */
|
/*# sourceMappingURL=variables.module.css.map */
|
||||||
@ -1,13 +1,13 @@
|
|||||||
// sidebar
|
// sidebar
|
||||||
$menuText: #505050;
|
$menuText: #505050;
|
||||||
$menuActiveText: #409eff;
|
$menuActiveText: #266fff;
|
||||||
$subMenuActiveText: #409eff;
|
$subMenuActiveText: #266fff;
|
||||||
|
|
||||||
$menuBg: #ffffff;
|
$menuBg: #ffffff;
|
||||||
$menuHover: #409eff;
|
$menuHover: #266fff;
|
||||||
|
|
||||||
$subMenuBg: #ffffff;
|
$subMenuBg: #ffffff;
|
||||||
$subMenuHover: #409eff;
|
$subMenuHover: #266fff;
|
||||||
|
|
||||||
$sideBarWidth: 210px;
|
$sideBarWidth: 210px;
|
||||||
|
|
||||||
|
|||||||
@ -1161,7 +1161,7 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex;display: -webkit-flex;align-items: center; justify-content: space-between;-webkit-align-items: center; -webkit-justify-content: space-between; width: 65px; margin-top: 20px;">
|
<div style="display: flex;display: -webkit-flex;align-items: center; justify-content: space-between;-webkit-align-items: center; -webkit-justify-content: space-between; width: 65px; margin-top: 20px;">
|
||||||
<div style="width: 5px;height: 15px;background-color: #409EFF;"></div>
|
<div style="width: 5px;height: 15px;background-color: #266fff;"></div>
|
||||||
<div style="color:#333333;font-size: 16px;font-weight: 700;">表达式</div>
|
<div style="color:#333333;font-size: 16px;font-weight: 700;">表达式</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 20px;">表达式字段</div>
|
<div style="margin-top: 20px;">表达式字段</div>
|
||||||
@ -1267,7 +1267,7 @@ onMounted(() => {
|
|||||||
z-index: 100;
|
z-index: 100;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
color: #409EFF;
|
color: #266fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fieldInput {
|
.fieldInput {
|
||||||
|
|||||||
400
business-css/frontend/src/views/business/project/index.vue
Normal file
400
business-css/frontend/src/views/business/project/index.vue
Normal file
@ -0,0 +1,400 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
name: "project",
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { onMounted, ref, nextTick } from "vue";
|
||||||
|
import { ElForm, ElMessage, ElMessageBox } from "element-plus";
|
||||||
|
import { isvaildTo, addDept, renewDept, deleDept, assignmentPer, setMenuById, setOrgscope, postOrgscope } from "@/api/role";
|
||||||
|
|
||||||
|
import { searchProjectsLsit,addProjects,updateProjects,deleteProjects,deleteBatchProjects} from "@/api/business/project";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//定义表格数据
|
||||||
|
|
||||||
|
const tableData: any = ref([]);
|
||||||
|
const multipleSelection = ref([]);
|
||||||
|
// 权限
|
||||||
|
const tree = ref()
|
||||||
|
|
||||||
|
// 表格加载
|
||||||
|
const loading = ref(false)
|
||||||
|
function gettableData() {
|
||||||
|
let params = {
|
||||||
|
name: input.value,
|
||||||
|
};
|
||||||
|
loading.value = true;
|
||||||
|
searchProjectsLsit(params).then((result) => {
|
||||||
|
tableData.value = result;
|
||||||
|
loading.value = false;
|
||||||
|
}).catch((err) => {
|
||||||
|
loading.value = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//表格多选事件
|
||||||
|
function handleSelectionChange(val: any) {
|
||||||
|
multipleSelection.value = val;
|
||||||
|
}
|
||||||
|
|
||||||
|
const infoForm = ref();
|
||||||
|
//搜索内容及点击搜索按钮
|
||||||
|
const input = ref("");
|
||||||
|
//新建项目
|
||||||
|
const title = ref("");
|
||||||
|
const info: any = ref({
|
||||||
|
name: "",
|
||||||
|
code: "",
|
||||||
|
description: "",
|
||||||
|
});
|
||||||
|
|
||||||
|
const dialogVisible = ref(false);
|
||||||
|
function addClick() {
|
||||||
|
title.value = "新增项目";
|
||||||
|
info.value = {
|
||||||
|
name: "",
|
||||||
|
code: "",
|
||||||
|
description: "",
|
||||||
|
};
|
||||||
|
dialogVisible.value = true;
|
||||||
|
}
|
||||||
|
//新建项目-确认按钮/修改按钮
|
||||||
|
function confirmClick(formEl: any) {
|
||||||
|
console.log(info.value)
|
||||||
|
formEl.validate((valid: any) => {
|
||||||
|
if (valid) {
|
||||||
|
|
||||||
|
if (!info.value.projectId) {
|
||||||
|
const params = {
|
||||||
|
name: info.value.name,
|
||||||
|
code: info.value.code,
|
||||||
|
description: info.value.description,
|
||||||
|
};
|
||||||
|
addProjects(params).then((res) => {
|
||||||
|
gettableData();
|
||||||
|
dialogVisible.value = false;
|
||||||
|
});
|
||||||
|
} else if (info.value.projectId) {
|
||||||
|
const params = {
|
||||||
|
name: info.value.name,
|
||||||
|
description: info.value.description,
|
||||||
|
projectId: info.value.projectId,
|
||||||
|
};
|
||||||
|
updateProjects(params).then((res) => {
|
||||||
|
gettableData();
|
||||||
|
dialogVisible.value = false;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
//新建角色-取消按钮
|
||||||
|
function handleClose() {
|
||||||
|
dialogVisible.value = false;
|
||||||
|
accessVisible.value = false
|
||||||
|
if (infoForm.value != null) infoForm.value.resetFields();
|
||||||
|
}
|
||||||
|
//新建项目
|
||||||
|
const rules = ref({
|
||||||
|
name: [{ required: true, message: "请输入项目名称", trigger: "blur" }],
|
||||||
|
code: [{ required: true, message: "请输入项目编码", trigger: "blur" }],
|
||||||
|
});
|
||||||
|
//修改项目
|
||||||
|
function editClick(row: any) {
|
||||||
|
title.value = "修改项目";
|
||||||
|
info.value = JSON.parse(JSON.stringify(row));
|
||||||
|
dialogVisible.value = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//删除项目
|
||||||
|
function delAloneClick(row: any) {
|
||||||
|
ElMessageBox.confirm("确定删除此项目吗?", "删除提示", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning",
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
let params = {
|
||||||
|
id: row.projectId,
|
||||||
|
};
|
||||||
|
deleteProjects(params).then(() => {
|
||||||
|
gettableData();
|
||||||
|
ElMessage({
|
||||||
|
type: "success",
|
||||||
|
message: "删除成功",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//权限分配
|
||||||
|
const accessVisible: any = ref()
|
||||||
|
const accessdata: any = ref([])
|
||||||
|
//默认展开节点的key数组
|
||||||
|
const DefaultDeployment: any = ref([])
|
||||||
|
//传参id
|
||||||
|
const Passparameter: any = ref([])
|
||||||
|
const defaultProps = {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name',
|
||||||
|
}
|
||||||
|
const rowid = ref()
|
||||||
|
function menuChange(data: any, ids: any) {
|
||||||
|
data.forEach((item: any) => {
|
||||||
|
if (item.checkinfo == true) {
|
||||||
|
ids.push(item.id)
|
||||||
|
DefaultDeployment.value.push(item.id)
|
||||||
|
}
|
||||||
|
if (item.children) {
|
||||||
|
menuChange(item.children, ids)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function assignment(row: any) {
|
||||||
|
rowid.value = row.id
|
||||||
|
accessVisible.value = true
|
||||||
|
const params = {
|
||||||
|
roleId: rowid.value
|
||||||
|
}
|
||||||
|
assignmentPer(params).then((res: any) => {
|
||||||
|
accessdata.value = res
|
||||||
|
let ids: any = []
|
||||||
|
menuChange(res, ids)
|
||||||
|
nextTick(() => {
|
||||||
|
tree.value.setCheckedKeys(ids)
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 树形选择器
|
||||||
|
function currentChecked(nodeObj: any, SelectedObj: any) {
|
||||||
|
Passparameter.value = SelectedObj.checkedKeys.concat(SelectedObj.halfCheckedKeys)
|
||||||
|
}
|
||||||
|
// 权限范围-权限范围-确定
|
||||||
|
function accesssubmit() {
|
||||||
|
const parans = {
|
||||||
|
id: rowid.value,
|
||||||
|
menuIds: Passparameter.value.toString()
|
||||||
|
}
|
||||||
|
setMenuById(parans).then((res) => {
|
||||||
|
accessVisible.value = false
|
||||||
|
gettableData()
|
||||||
|
ElMessage({
|
||||||
|
type: "success",
|
||||||
|
message: "修改成功",
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 多选删除?
|
||||||
|
function delClick() {
|
||||||
|
ElMessageBox.confirm("确定删除已选择角色吗?", "删除提示", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning",
|
||||||
|
}).then(() => {
|
||||||
|
let id = [] as any[];
|
||||||
|
multipleSelection.value.forEach((item: any) => {
|
||||||
|
id.push(item.projectId)
|
||||||
|
})
|
||||||
|
let params = {
|
||||||
|
ids: id.join(','),
|
||||||
|
};
|
||||||
|
deleteBatchProjects(params).then(() => {
|
||||||
|
gettableData();
|
||||||
|
ElMessage({
|
||||||
|
message: "删除成功",
|
||||||
|
type: "success",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function dateFormat(row: any) {
|
||||||
|
const daterc = row;
|
||||||
|
if (daterc != null) {
|
||||||
|
var date = new Date(daterc);
|
||||||
|
var year = date.getFullYear();
|
||||||
|
var month =
|
||||||
|
date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
|
||||||
|
date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
|
||||||
|
var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
|
||||||
|
var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
|
||||||
|
var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
|
||||||
|
var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
|
||||||
|
// 拼接
|
||||||
|
return year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
gettableData();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="invalidcatalogue-box">
|
||||||
|
<div class="conductproject-bg-box">
|
||||||
|
<div
|
||||||
|
style="display: flex;display: -webkit-flex; justify-content: space-between; -webkit-justify-content: space-between;margin-bottom: 10px">
|
||||||
|
<div style="display: flex;display: -webkit-flex;">
|
||||||
|
<el-input v-model="input" placeholder="请输入项目名称" @keyup.enter="gettableData" style="width: 200px" clearable />
|
||||||
|
<el-button type="primary" style="margin-left: 10px" @click="gettableData">搜索</el-button>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<el-button type="primary" @click="addClick">
|
||||||
|
<img src="@/assets/MenuIcon/jscz_xz.png" alt="" style="margin-right: 3px">
|
||||||
|
新增</el-button>
|
||||||
|
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
|
||||||
|
:disabled="multipleSelection.length <= 0" @click="delClick"><el-icon>
|
||||||
|
<Delete />
|
||||||
|
</el-icon> 删除</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<el-table v-loading="loading" :data="tableData" style="width: 100%; height: calc(100vh - 220px)" border
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
:header-cell-style="{ background: 'rgb(250 250 250)', color: '#383838', height: '50px' }">
|
||||||
|
<el-table-column type="selection" width="50" align="center"></el-table-column>
|
||||||
|
<el-table-column prop="code" label="项目编号" width="100"></el-table-column>
|
||||||
|
<el-table-column prop="name" label="项目名称" width="180"></el-table-column>
|
||||||
|
<el-table-column prop="description" label="项目描述" min-width="100"></el-table-column>
|
||||||
|
<el-table-column prop="modifier" label="创建人" width="120"></el-table-column>
|
||||||
|
<el-table-column prop="updatedAt" label="创建时间" width="200">
|
||||||
|
<template #default="scope">
|
||||||
|
{{ dateFormat(scope.row.updatedAt) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column fixed="right" label="操作" width="200">
|
||||||
|
<template #default="scope">
|
||||||
|
<span
|
||||||
|
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
|
||||||
|
|
||||||
|
<img src="@/assets/MenuIcon/lbcz_xg.png" alt="" title="修改"
|
||||||
|
@click="editClick(scope.row)" style="cursor: pointer; ">
|
||||||
|
<!-- <img src="@/assets/MenuIcon/lbcz_zyw.png" alt="" title="业务范围" @click="businessclick(scope.row)"
|
||||||
|
style="cursor: pointer;">
|
||||||
|
<img src="@/assets/MenuIcon/u343.png" alt="" title="组织范围" @click="organizeclick(scope.row)"
|
||||||
|
style="cursor: pointer; ">
|
||||||
|
<img src="@/assets/MenuIcon/lbcz_qx.png" alt="" title="权限分配" @click="assignment(scope.row)"
|
||||||
|
style="cursor: pointer; ">
|
||||||
|
-->
|
||||||
|
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除"
|
||||||
|
@click="delAloneClick(scope.row)" style="cursor: pointer; ">
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<el-dialog v-model="dialogVisible" :close-on-click-modal="false"
|
||||||
|
:modal="false" draggable :before-close="handleClose" :title="title"
|
||||||
|
append-to-body width="620px" height="600px">
|
||||||
|
<el-form ref="infoForm" :model="info" :rules="rules" label-width="90px">
|
||||||
|
<el-form-item label="项目编号:">
|
||||||
|
<el-input v-model="info.code" style="width: 100%" placeholder="自动生成项目编号"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="项目名称:" prop="name">
|
||||||
|
<el-input v-model="info.name" style="width: 100%" placeholder="输入项目名称" ></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="角色描述:">
|
||||||
|
<el-input type="textarea" v-model="info.description" :rows="6" style="width: 100%" placeholder="请输入项目描述"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<span class="dialog-footer"
|
||||||
|
style="display: flex;display: -webkit-flex; justify-content: flex-end;-webkit-justify-content: flex-end;">
|
||||||
|
<el-button @click="handleClose">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="confirmClick(infoForm)">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-form>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.invalidcatalogue-box {
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-tree-node__content) {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 500;
|
||||||
|
width: 100%;
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-footer {
|
||||||
|
display: block;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.conductproject-bg-box {
|
||||||
|
padding: 20px;
|
||||||
|
width: 100%;
|
||||||
|
height: calc(100vh - 130px);
|
||||||
|
overflow: auto;
|
||||||
|
background-color: rgba(255, 255, 255, 1);
|
||||||
|
border: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line {
|
||||||
|
height: 1px;
|
||||||
|
background: rgba(240, 241, 242, 1);
|
||||||
|
margin-top: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuspan {
|
||||||
|
display: inline-block;
|
||||||
|
width: 120px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: "微软雅黑";
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
color: #787878;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
|
.el-dialog {
|
||||||
|
padding: 0 !important;
|
||||||
|
border-radius: 10px !important;
|
||||||
|
border: 1px solid #363636 !important;
|
||||||
|
}
|
||||||
|
.el-dialog .el-dialog__header{
|
||||||
|
display: flex;
|
||||||
|
display: -webkit-flex;
|
||||||
|
justify-content: flex-start;-webkit-justify-content: flex-start;
|
||||||
|
align-items: center;-webkit-align-items: center;
|
||||||
|
padding: 10px 20px;
|
||||||
|
background-color: #f1f3f8 !important;
|
||||||
|
font-family: 'Arial Negreta', 'Arial Normal', 'Arial', sans-serif;
|
||||||
|
font-weight: 700;
|
||||||
|
font-style: normal;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #1B1B1B;
|
||||||
|
text-align: left;
|
||||||
|
border-radius: 10px 10px 0 0;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
.el-dialog .el-dialog__close{
|
||||||
|
font-size: 22px;
|
||||||
|
color: rgb(80, 80, 80);
|
||||||
|
}
|
||||||
|
.el-dialog .el-dialog__headerbtn{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.el-dialog .el-dialog__body{
|
||||||
|
padding: 20px 40px !important;
|
||||||
|
}
|
||||||
|
.el-dialog .el-input{
|
||||||
|
--el-input-inner-height: 40px
|
||||||
|
}
|
||||||
|
.el-dialog .el-button{
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -145,7 +145,7 @@ function initChart() {
|
|||||||
yAxisIndex: 1,
|
yAxisIndex: 1,
|
||||||
data: [ 70,75, 80, 85, 90],
|
data: [ 70,75, 80, 85, 90],
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: '#409EFF',
|
color: '#266fff',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@ -73,7 +73,7 @@ function initChart() {
|
|||||||
borderRadius: 1,
|
borderRadius: 1,
|
||||||
color: function (params: any) {
|
color: function (params: any) {
|
||||||
//自定义颜色
|
//自定义颜色
|
||||||
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
|
const colorList = ['#266fff', '#67C23A', '#E6A23C', '#F56C6C'];
|
||||||
return colorList[params.dataIndex];
|
return colorList[params.dataIndex];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -84,7 +84,7 @@ function initChart() {
|
|||||||
borderRadius: 6,
|
borderRadius: 6,
|
||||||
color: function (params: any) {
|
color: function (params: any) {
|
||||||
//自定义颜色
|
//自定义颜色
|
||||||
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
|
const colorList = ['#266fff', '#67C23A', '#E6A23C', '#F56C6C'];
|
||||||
return colorList[params.dataIndex];
|
return colorList[params.dataIndex];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -183,13 +183,13 @@ watchEffect(() => {
|
|||||||
a {
|
a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 4px 10px;
|
padding: 4px 10px;
|
||||||
color: #409eff;
|
color: #266fff;
|
||||||
border: 1px solid #409eff;
|
border: 1px solid #266fff;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background: #ecf5ff;
|
background: #ecf5ff;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: #409eff;
|
background: #266fff;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -216,7 +216,7 @@ watchEffect(() => {
|
|||||||
|
|
||||||
&__desc {
|
&__desc {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
color: #409eff;
|
color: #266fff;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -578,7 +578,7 @@ const vMove = {
|
|||||||
:deep(.el-tree-node.is-current > .el-tree-node__content) {
|
:deep(.el-tree-node.is-current > .el-tree-node__content) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
background-color: #409eff !important;
|
background-color: #266fff !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -589,7 +589,7 @@ const vMove = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-tree-node__content:hover) {
|
:deep(.el-tree-node__content:hover) {
|
||||||
background-color: #409eff19;
|
background-color: #266fff19;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-tree-node {
|
.custom-tree-node {
|
||||||
|
|||||||
@ -652,7 +652,7 @@ const total = ref()
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background-color: #409eff !important;
|
background-color: #266fff !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -663,7 +663,7 @@ const total = ref()
|
|||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-tree-node__content:hover) {
|
:deep(.el-tree-node__content:hover) {
|
||||||
background-color: #409eff19;
|
background-color: #266fff19;
|
||||||
}
|
}
|
||||||
|
|
||||||
.faulttemplate-box {
|
.faulttemplate-box {
|
||||||
|
|||||||
@ -542,7 +542,7 @@ const vMove = {
|
|||||||
:deep(.el-tree-node.is-current>.el-tree-node__content) {
|
:deep(.el-tree-node.is-current>.el-tree-node__content) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
background-color: #409eff !important;
|
background-color: #266fff !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -279,7 +279,7 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
.title{
|
.title{
|
||||||
height: 30px;
|
height: 30px;
|
||||||
border-left: 4px solid #409eff;
|
border-left: 4px solid #266fff;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
/* pa */
|
/* pa */
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,7 +32,7 @@ function toggleClick() {
|
|||||||
.hamburger {
|
.hamburger {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
fill: #409eff;
|
fill: #266fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hamburger.is-active {
|
.hamburger.is-active {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-color-picker
|
<el-color-picker
|
||||||
:predefine="[
|
:predefine="[
|
||||||
'#409EFF',
|
'#266fff',
|
||||||
'#1890ff',
|
'#1890ff',
|
||||||
'#304156',
|
'#304156',
|
||||||
'#212121',
|
'#212121',
|
||||||
|
|||||||
@ -56,4 +56,3 @@
|
|||||||
display: table-cell !important;
|
display: table-cell !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,13 @@ svg{
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: max-content;
|
height: max-content;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
.el-dialog__body {
|
.el-dialog__body {
|
||||||
padding: 20px !important;
|
padding: 20px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-dialog__body {
|
||||||
|
padding: 20px !important;
|
||||||
|
}
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
:export {
|
:export {
|
||||||
menuText: #409eff;
|
menuText: #266fff;
|
||||||
menuActiveText: #409eff;
|
menuActiveText: #266fff;
|
||||||
subMenuActiveText: #409eff;
|
subMenuActiveText: #266fff;
|
||||||
menuBg: #ffffff;
|
menuBg: #ffffff;
|
||||||
menuHover: #409eff;
|
menuHover: #266fff;
|
||||||
subMenuBg: #ffffff;
|
subMenuBg: #ffffff;
|
||||||
subMenuHover: #409eff;
|
subMenuHover: #266fff;
|
||||||
sideBarWidth: 210px;
|
sideBarWidth: 210px;
|
||||||
}
|
}
|
||||||
/*# sourceMappingURL=variables.module.css.map */
|
/*# sourceMappingURL=variables.module.css.map */
|
||||||
@ -1,13 +1,13 @@
|
|||||||
// sidebar
|
// sidebar
|
||||||
$menuText: #505050;
|
$menuText: #505050;
|
||||||
$menuActiveText: #409eff;
|
$menuActiveText: #266fff;
|
||||||
$subMenuActiveText: #409eff;
|
$subMenuActiveText: #266fff;
|
||||||
|
|
||||||
$menuBg: #ffffff;
|
$menuBg: #ffffff;
|
||||||
$menuHover: #409eff;
|
$menuHover: #266fff;
|
||||||
|
|
||||||
$subMenuBg: #ffffff;
|
$subMenuBg: #ffffff;
|
||||||
$subMenuHover: #409eff;
|
$subMenuHover: #266fff;
|
||||||
|
|
||||||
$sideBarWidth: 210px;
|
$sideBarWidth: 210px;
|
||||||
|
|
||||||
|
|||||||
@ -1161,7 +1161,7 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex;display: -webkit-flex;align-items: center; justify-content: space-between;-webkit-align-items: center; -webkit-justify-content: space-between; width: 65px; margin-top: 20px;">
|
<div style="display: flex;display: -webkit-flex;align-items: center; justify-content: space-between;-webkit-align-items: center; -webkit-justify-content: space-between; width: 65px; margin-top: 20px;">
|
||||||
<div style="width: 5px;height: 15px;background-color: #409EFF;"></div>
|
<div style="width: 5px;height: 15px;background-color: #266fff;"></div>
|
||||||
<div style="color:#333333;font-size: 16px;font-weight: 700;">表达式</div>
|
<div style="color:#333333;font-size: 16px;font-weight: 700;">表达式</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 20px;">表达式字段</div>
|
<div style="margin-top: 20px;">表达式字段</div>
|
||||||
@ -1267,7 +1267,7 @@ onMounted(() => {
|
|||||||
z-index: 100;
|
z-index: 100;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
color: #409EFF;
|
color: #266fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fieldInput {
|
.fieldInput {
|
||||||
|
|||||||
@ -145,7 +145,7 @@ function initChart() {
|
|||||||
yAxisIndex: 1,
|
yAxisIndex: 1,
|
||||||
data: [ 70,75, 80, 85, 90],
|
data: [ 70,75, 80, 85, 90],
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: '#409EFF',
|
color: '#266fff',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@ -73,7 +73,7 @@ function initChart() {
|
|||||||
borderRadius: 1,
|
borderRadius: 1,
|
||||||
color: function (params: any) {
|
color: function (params: any) {
|
||||||
//自定义颜色
|
//自定义颜色
|
||||||
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
|
const colorList = ['#266fff', '#67C23A', '#E6A23C', '#F56C6C'];
|
||||||
return colorList[params.dataIndex];
|
return colorList[params.dataIndex];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -84,7 +84,7 @@ function initChart() {
|
|||||||
borderRadius: 6,
|
borderRadius: 6,
|
||||||
color: function (params: any) {
|
color: function (params: any) {
|
||||||
//自定义颜色
|
//自定义颜色
|
||||||
const colorList = ['#409EFF', '#67C23A', '#E6A23C', '#F56C6C'];
|
const colorList = ['#266fff', '#67C23A', '#E6A23C', '#F56C6C'];
|
||||||
return colorList[params.dataIndex];
|
return colorList[params.dataIndex];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -183,13 +183,13 @@ watchEffect(() => {
|
|||||||
a {
|
a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 4px 10px;
|
padding: 4px 10px;
|
||||||
color: #409eff;
|
color: #266fff;
|
||||||
border: 1px solid #409eff;
|
border: 1px solid #266fff;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background: #ecf5ff;
|
background: #ecf5ff;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: #409eff;
|
background: #266fff;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -216,7 +216,7 @@ watchEffect(() => {
|
|||||||
|
|
||||||
&__desc {
|
&__desc {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
color: #409eff;
|
color: #266fff;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -578,7 +578,7 @@ const vMove = {
|
|||||||
:deep(.el-tree-node.is-current > .el-tree-node__content) {
|
:deep(.el-tree-node.is-current > .el-tree-node__content) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
background-color: #409eff !important;
|
background-color: #266fff !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -589,7 +589,7 @@ const vMove = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-tree-node__content:hover) {
|
:deep(.el-tree-node__content:hover) {
|
||||||
background-color: #409eff19;
|
background-color: #266fff19;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-tree-node {
|
.custom-tree-node {
|
||||||
|
|||||||
@ -652,7 +652,7 @@ const total = ref()
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background-color: #409eff !important;
|
background-color: #266fff !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -663,7 +663,7 @@ const total = ref()
|
|||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-tree-node__content:hover) {
|
:deep(.el-tree-node__content:hover) {
|
||||||
background-color: #409eff19;
|
background-color: #266fff19;
|
||||||
}
|
}
|
||||||
|
|
||||||
.faulttemplate-box {
|
.faulttemplate-box {
|
||||||
|
|||||||
@ -542,7 +542,7 @@ const vMove = {
|
|||||||
:deep(.el-tree-node.is-current>.el-tree-node__content) {
|
:deep(.el-tree-node.is-current>.el-tree-node__content) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
background-color: #409eff !important;
|
background-color: #266fff !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -279,7 +279,7 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
.title{
|
.title{
|
||||||
height: 30px;
|
height: 30px;
|
||||||
border-left: 4px solid #409eff;
|
border-left: 4px solid #266fff;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
/* pa */
|
/* pa */
|
||||||
}
|
}
|
||||||
|
|||||||
@ -177,8 +177,8 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
|||||||
"code").eq("systemcode", sysMenu.getSystemcode()));
|
"code").eq("systemcode", sysMenu.getSystemcode()));
|
||||||
SysMenu parentMenu = sysMenuMapper.selectById(parentId);
|
SysMenu parentMenu = sysMenuMapper.selectById(parentId);
|
||||||
// 最大编号转换成int类型
|
// 最大编号转换成int类型
|
||||||
String maxCode = maxList.size() > 0 ? maxList.get(0).toString() : "0";
|
String maxCode = maxList.size() > 0 && maxList.get(0) != null ? maxList.get(0).toString() : "0";
|
||||||
int max = ObjectUtil.isEmpty(maxList) ? 0 :
|
int max = ObjectUtil.isEmpty(maxCode) || "0".equals(maxCode) ? 0 :
|
||||||
Integer.parseInt(maxCode);
|
Integer.parseInt(maxCode);
|
||||||
DecimalFormat df;
|
DecimalFormat df;
|
||||||
if ("0".equals(sysMenu.getParentid())) {
|
if ("0".equals(sysMenu.getParentid())) {
|
||||||
|
|||||||
8
src/.idea/.gitignore
vendored
Normal file
8
src/.idea/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
6
src/.idea/misc.xml
Normal file
6
src/.idea/misc.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="11.0.6" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
8
src/.idea/modules.xml
Normal file
8
src/.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/src.iml" filepath="$PROJECT_DIR$/.idea/src.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
9
src/.idea/src.iml
Normal file
9
src/.idea/src.iml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
6
src/.idea/vcs.xml
Normal file
6
src/.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Loading…
Reference in New Issue
Block a user