修改高级配置,完善导出导入模版

This commit is contained in:
龙运模
2024-07-18 20:06:53 +08:00
parent 21aa90990b
commit cedea73ca8
10 changed files with 146 additions and 12 deletions
+5 -5
View File
@@ -50,17 +50,17 @@ export default {
groupName: "账号设置",
list: [
{
icon: "sc-icon-Account",
icon: "sc-icon-MachineRoom",
title: "机房配置",
component: "account"
},
{
icon: "sc-icon-Cost",
icon: "sc-icon-CostAllocation",
title: "费用配置",
component: "password"
},
{
icon: "sc-icon-Secure",
icon: "sc-icon-AgentMaintenance",
title: "维保代理商维护",
component: "pushSettings"
},
@@ -70,8 +70,8 @@ export default {
groupName: "数据管理",
list: [
{
icon: "sc-icon-UserLog",
title: "数据源邮件账号设置",
icon: "sc-icon-DataSource",
title: "数据源邮件设置",
component: "logs"
}
]
@@ -1,5 +1,19 @@
<template>
<view>机房</view>
<el-container>
<el-main class="nopadding">
<div class="searchMain">
<scSearch ref="scSearch" :searchList="searchList" @fetchSelectData="getSelectData"></scSearch>
<div class="searchItem searchBtn">
<el-button :size="size" type="primary" @click="save">保存配置</el-button>
<!-- <scExport :size="size" @exportData="exportData" @updateShow="exportChangeShow" :show="exportShow" type="8"></scExport>-->
</div>
</div>
<scTable ref="table" :apiObj="list.apiObj" :column="list.column" stripe :size="size" highlightCurrentRow>
<sc-table-column label="序号" align="center" type="index"></sc-table-column>
</scTable>
</el-main>
</el-container>
</template>
<script>
@@ -7,14 +21,28 @@ export default {
name: "computerRoom",
data(){
return{
size:'small',
list:{
apiObj: this.$API.setup.room.list,
column:[]
},
params: {},
searchList:[
{name:'机房代码',type:'text',code:'created_at', placeholder:"请输入机房代码",show:true},
{name:'机房城市',type:'text',code:'type', placeholder:"请输入机房城市",show: true},
],
}
},
mounted() {
},
methods:{
getSelectData(){
// let {data,params} = item;
},
save(){
console.log(this.params,700)
}
}
}
</script>
+31 -3
View File
@@ -1,9 +1,9 @@
<template>
<el-container>
<el-container class="mainBox">
<el-header>
<div class="left-panel">
<el-button type="primary" :size="size" icon="el-icon-plus" @click="add">新增角色</el-button>
<el-button type="danger" :size="size" plain icon="el-icon-delete" :disabled="roleCheckList.length==0" @click="batch_del"></el-button>
<!-- <el-button type="danger" :size="size" plain icon="el-icon-delete" :disabled="roleCheckList.length==0" @click="batch_del"></el-button>-->
<!-- <el-button type="primary" :size="size" plain :disabled="roleCheckList.length!=1" @click="permission">权限设置</el-button>-->
</div>
<div class="right-panel">
@@ -17,7 +17,17 @@
<el-input placeholder="输入关键字进行过滤" :size="size" v-model="groupFilterText" clearable></el-input>
</el-header>
<el-main class="treeMain nopadding">
<el-tree ref="group" class="menu" node-key="id" show-checkbox :data="group" :default-checked-keys="roleCheckList" :current-node-key="role_id" :highlight-current="true" :expand-on-click-node="false" :filter-node-method="groupFilterNode" @check-change="groupChange" @node-click="groupClick"></el-tree>
<el-tree ref="group" class="menu" node-key="id" :data="group" :default-checked-keys="roleCheckList" :current-node-key="role_id" :highlight-current="true" :expand-on-click-node="false" :filter-node-method="groupFilterNode" @check-change="groupChange" @node-click="groupClick">
<template #default="{ node, data }">
<span class="custom-tree-node">
<span>{{ node.label }}</span>
<span class="btnBox">
<el-icon class="btn" @click="table_edit(data)"><sc-icon-Edit/></el-icon>
<el-icon class="btn" @click="table_del(data)"><sc-icon-Delete/></el-icon>
</span>
</span>
</template>
</el-tree>
</el-main>
</el-container>
</el-aside>
@@ -444,4 +454,22 @@
right: 0;
z-index: 10;
}
.custom-tree-node{
width: 100%;
display: flex;
justify-content: space-between;
.btnBox{
display: none;
margin-right: 10px;
.btn{
margin: 0 5px;
}
}
}
.is-current .custom-tree-node .btnBox{
display: block;
}
.custom-tree-node:hover .btnBox{
display: block;
}
</style>