MTR探测策略表单提交添加拦截提示、服务器管理查看MTR丢包趋势图页面,添加点击点上弹窗中的详情,展示列表
1、MTR探测策略表单提交添加未知的ClientID提示,拦截提交 2、服务器管理查看MTR丢包趋势图页面,添加点击点上弹窗中的详情,展示列表 3、表单详情中input框的内容超出自动换行 4、优化列表操作按钮展示功能以及修改bug
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
<el-table-column v-if="config && config.tableButton && config.tableButton.line" :width="calculateOperationColumnWidth(config.tableButton.line, tableList)" label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<template v-for="item of config.tableButton.line">
|
||||
<template v-if="item && item.more && item.more.length > 0">
|
||||
<template v-if="item && item.more && item.more.length > 0 && checkPermi(item.hasPermi)">
|
||||
<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">
|
||||
@@ -260,10 +260,23 @@
|
||||
|
||||
// 判断按钮是否显示
|
||||
isButtonVisible(buttonConfig, row) {
|
||||
if (buttonConfig.showName) {
|
||||
return buttonConfig.showVal.includes(row[buttonConfig.showName]);
|
||||
if (buttonConfig && buttonConfig.more) {
|
||||
if (!checkPermi(buttonConfig.hasPermi)) {
|
||||
return false;
|
||||
}
|
||||
if (buttonConfig.showName) {
|
||||
return buttonConfig.showVal.includes(row[buttonConfig.showName]);
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
if (!checkPermi([buttonConfig.hasPermi])) {
|
||||
return false;
|
||||
}
|
||||
if (buttonConfig.showName) {
|
||||
return buttonConfig.showVal.includes(row[buttonConfig.showName]);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
// 所有方法都抛出到父组件里去
|
||||
handleClick(result, row) {
|
||||
|
||||
Reference in New Issue
Block a user