服务器管理添加流量图形展示功能、权限控制试调测
1、服务器管理添加流量图形展示功能 2、agent更新模块表单修改更新方式为可编辑 3、权限控制试调测 4、优化并修改bug
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
<el-row :gutter="10" style="margin: 0 0 8px 0;">
|
||||
<template v-if="config && config.tableButton && config.tableButton.top">
|
||||
<el-col :span="1.5" v-for="item of config.tableButton.top">
|
||||
<el-button :type="item.type" plain size="mini" :icon="item.icon" @click="handleClick(item,{})" :hasPermi="[item.hasPermi]">{{item.content}}</el-button>
|
||||
<!-- <el-button :type="item.type" plain size="mini" :icon="item.icon" @click="handleClick(item,{})" :hasPermi="[item.hasPermi]">{{item.content}}</el-button>-->
|
||||
<el-button :type="item.type" plain size="mini" :icon="item.icon" @click="handleClick(item,{})" v-if="checkPermi([item.hasPermi])">{{item.content}}</el-button>
|
||||
</el-col>
|
||||
</template>
|
||||
<right-toolbar v-if="!(config && config.colTopHiddenIcon)" :modelIdent="this.modelIdent" :showSearch.sync="showSearch" @queryTable="renderList" @columnsChange="columnsChange" :columns="columns"></right-toolbar>
|
||||
@@ -76,13 +77,17 @@
|
||||
<el-dropdown size="mini" trigger="click" @command="(command) => handleClick({fnCode: command}, scope.row)">
|
||||
<el-button size="mini" type="text" icon="el-icon-d-arrow-right"><span style="margin-left: -5px;">{{item && item.title ? item.title : '更多'}}</span></el-button>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item v-for="dropBut of item.more" :command="dropBut.fnCode" :icon="dropBut.icon" :hasPermi="[dropBut.hasPermi]">{{dropBut.content}}</el-dropdown-item>
|
||||
<!-- <el-dropdown-item v-for="dropBut of item.more" :command="dropBut.fnCode" :icon="dropBut.icon" :hasPermi="[dropBut.hasPermi]">{{dropBut.content}}</el-dropdown-item>-->
|
||||
<el-dropdown-item v-for="dropBut of item.more" :command="dropBut.fnCode" :icon="dropBut.icon" v-if="checkPermi([dropBut.hasPermi])">{{dropBut.content}}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</template>
|
||||
<template v-else>
|
||||
<!-- <el-tooltip v-if="item && item.content" :content="item.content" placement="top">-->
|
||||
<el-button v-if="item && item.content" size="mini" link :type="item.type" :icon="item.icon" v-show="item && item.showName ? item.showVal.includes(scope.row[item.showName]) : true" @click="handleClick(item, scope.row)" :hasPermi="[item.hasPermi]">{{item.content}}</el-button>
|
||||
<template v-if="item && item.content">
|
||||
<el-button size="mini" link :type="item.type" :icon="item.icon" v-show="item && item.showName ? item.showVal.includes(scope.row[item.showName]) : true" @click="handleClick(item, scope.row)" v-if="checkPermi([item.hasPermi])">{{item.content}}</el-button>
|
||||
</template>
|
||||
<!-- <el-button v-if="item && item.content" size="mini" link :type="item.type" :icon="item.icon" v-show="item && item.showName ? item.showVal.includes(scope.row[item.showName]) : true" @click="handleClick(item, scope.row)" :hasPermi="[item.hasPermi]">{{item.content}}</el-button>-->
|
||||
<!-- </el-tooltip>-->
|
||||
</template>
|
||||
</template>
|
||||
@@ -106,7 +111,8 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
export default {
|
||||
import { checkPermi } from "@/utils/permission";
|
||||
export default {
|
||||
name: 'table-list',
|
||||
props: {
|
||||
modelIdent: {
|
||||
@@ -157,6 +163,16 @@
|
||||
handler(val) {
|
||||
this.$emit('value-change', val)
|
||||
}
|
||||
},
|
||||
queryParams: {
|
||||
handler(val) {
|
||||
// 重置后,重新渲染组件,起到排序图标重置功能
|
||||
if (val && val.resetVal) {
|
||||
this.tableKey++;
|
||||
}
|
||||
},
|
||||
deep: true,
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -165,6 +181,7 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
checkPermi,
|
||||
// 1. 格式化单元格内容:将\n替换为<br>,支持HTML渲染
|
||||
formatCellContent(content) {
|
||||
if (!content) return '';
|
||||
|
||||
Reference in New Issue
Block a user