Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
topology
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
姜立玮
topology
Commits
60d5c03e
提交
60d5c03e
authored
8月 10, 2020
作者:
若依
提交者:
Gitee
8月 10, 2020
浏览文件
操作
浏览文件
下载
差异文件
!63 重写表格工具栏右侧添加刷新&显隐查询栏
Merge pull request !63 from 平凡/重写表格工具栏右侧添加刷新&显隐查询栏
上级
a7eb07c7
5b04f388
变更
20
展开全部
显示空白字符变更
内嵌
并排
正在显示
20 个修改的文件
包含
166 行增加
和
354 行删除
+166
-354
index-tree.vue.vm
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
+1
-8
index.vue.vm
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
+1
-8
ruoyi.scss
ruoyi-ui/src/assets/styles/ruoyi.scss
+1
-0
index.vue
ruoyi-ui/src/components/TableToolsExt/index.vue
+38
-0
main.js
ruoyi-ui/src/main.js
+3
-0
index.vue
ruoyi-ui/src/views/monitor/job/index.vue
+1
-8
log.vue
ruoyi-ui/src/views/monitor/job/log.vue
+1
-8
index.vue
ruoyi-ui/src/views/monitor/logininfor/index.vue
+1
-8
index.vue
ruoyi-ui/src/views/monitor/online/index.vue
+2
-2
index.vue
ruoyi-ui/src/views/monitor/operlog/index.vue
+1
-8
index.vue
ruoyi-ui/src/views/system/config/index.vue
+1
-8
index.vue
ruoyi-ui/src/views/system/dept/index.vue
+1
-8
data.vue
ruoyi-ui/src/views/system/dict/data.vue
+2
-9
index.vue
ruoyi-ui/src/views/system/dict/index.vue
+1
-8
index.vue
ruoyi-ui/src/views/system/menu/index.vue
+1
-8
index.vue
ruoyi-ui/src/views/system/notice/index.vue
+1
-8
index.vue
ruoyi-ui/src/views/system/post/index.vue
+1
-8
index.vue
ruoyi-ui/src/views/system/role/index.vue
+1
-8
index.vue
ruoyi-ui/src/views/system/user/index.vue
+106
-231
index.vue
ruoyi-ui/src/views/tool/gen/index.vue
+1
-8
没有找到文件。
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
浏览文件 @
60d5c03e
...
...
@@ -66,14 +66,7 @@
v-hasPermi="['${moduleName}:${businessName}:add']"
>新增</el-button>
</el-col>
<div class="top-right-btn">
<el-tooltip class="item" effect="dark" content="刷新" placement="top">
<el-button size="mini" circle icon="el-icon-refresh" @click="handleQuery" />
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="showSearch ? '隐藏搜索' : '显示搜索'" placement="top">
<el-button size="mini" circle icon="el-icon-search" @click="showSearch=!showSearch" />
</el-tooltip>
</div>
<table-tools-ext :showSearch.sync="showSearch" @queryTable="getList"></table-tools-ext>
</el-row>
<el-table
...
...
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
浏览文件 @
60d5c03e
...
...
@@ -95,14 +95,7 @@
v-hasPermi="['${moduleName}:${businessName}:export']"
>导出</el-button>
</el-col>
<div class="top-right-btn">
<el-tooltip class="item" effect="dark" content="刷新" placement="top">
<el-button size="mini" circle icon="el-icon-refresh" @click="handleQuery" />
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="showSearch ? '隐藏搜索' : '显示搜索'" placement="top">
<el-button size="mini" circle icon="el-icon-search" @click="showSearch=!showSearch" />
</el-tooltip>
</div>
<table-tools-ext :showSearch.sync="showSearch" @queryTable="getList"></table-tools-ext>
</el-row>
<el-table v-loading="loading" :data="${businessName}List" @selection-change="handleSelectionChange">
...
...
ruoyi-ui/src/assets/styles/ruoyi.scss
浏览文件 @
60d5c03e
...
...
@@ -222,5 +222,6 @@
}
.top-right-btn
{
position
:
relative
;
float
:
right
;
}
\ No newline at end of file
ruoyi-ui/src/components/TableToolsExt/index.vue
0 → 100644
浏览文件 @
60d5c03e
<!-- @author Shiyn/ huangmx 20200807优化-->
<
template
>
<div
class=
"top-right-btn"
>
<el-row>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"clickSearch()"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"clickFresh()"
/>
</el-tooltip>
</el-row>
</div>
</
template
>
<
script
>
export
default
{
name
:
"TableToolsExt"
,
data
()
{
return
{};
},
props
:
{
showSearch
:
{
type
:
Boolean
,
default
:
true
,
},
},
methods
:
{
//搜索
clickSearch
()
{
this
.
$emit
(
"update:showSearch"
,
!
this
.
showSearch
);
},
//刷新
clickFresh
()
{
this
.
$emit
(
"queryTable"
);
},
},
};
</
script
>
\ No newline at end of file
ruoyi-ui/src/main.js
浏览文件 @
60d5c03e
...
...
@@ -20,6 +20,8 @@ import { getDicts } from "@/api/system/dict/data";
import
{
getConfigKey
}
from
"@/api/system/config"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
selectDictLabel
,
selectDictLabels
,
download
,
handleTree
}
from
"@/utils/ruoyi"
;
import
Pagination
from
"@/components/Pagination"
;
//自定义表格工具扩展
import
TableToolsExt
from
"@/components/TableToolsExt"
// 全局方法挂载
Vue
.
prototype
.
getDicts
=
getDicts
...
...
@@ -46,6 +48,7 @@ Vue.prototype.msgInfo = function (msg) {
// 全局组件挂载
Vue
.
component
(
'Pagination'
,
Pagination
)
Vue
.
component
(
'TableToolsExt'
,
TableToolsExt
)
Vue
.
use
(
permission
)
...
...
ruoyi-ui/src/views/monitor/job/index.vue
浏览文件 @
60d5c03e
...
...
@@ -84,14 +84,7 @@
v-hasPermi=
"['monitor:job:query']"
>
日志
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"jobList"
@
selection-change=
"handleSelectionChange"
>
...
...
ruoyi-ui/src/views/monitor/job/log.vue
浏览文件 @
60d5c03e
...
...
@@ -90,14 +90,7 @@
v-hasPermi=
"['monitor:job:export']"
>
导出
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"jobLogList"
@
selection-change=
"handleSelectionChange"
>
...
...
ruoyi-ui/src/views/monitor/logininfor/index.vue
浏览文件 @
60d5c03e
...
...
@@ -84,14 +84,7 @@
v-hasPermi=
"['system:logininfor:export']"
>
导出
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
...
...
ruoyi-ui/src/views/monitor/online/index.vue
浏览文件 @
60d5c03e
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"登录地址"
prop=
"ipaddr"
>
<el-input
v-model=
"queryParams.ipaddr"
...
...
@@ -23,8 +23,8 @@
<el-button
type=
"cyan"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
</el-form>
<el-table
v-loading=
"loading"
:data=
"list.slice((pageNum-1)*pageSize,pageNum*pageSize)"
...
...
ruoyi-ui/src/views/monitor/operlog/index.vue
浏览文件 @
60d5c03e
...
...
@@ -100,14 +100,7 @@
v-hasPermi=
"['system:config:export']"
>
导出
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
...
...
ruoyi-ui/src/views/system/config/index.vue
浏览文件 @
60d5c03e
...
...
@@ -97,14 +97,7 @@
v-hasPermi=
"['system:config:remove']"
>
清理缓存
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"configList"
@
selection-change=
"handleSelectionChange"
>
...
...
ruoyi-ui/src/views/system/dept/index.vue
浏览文件 @
60d5c03e
...
...
@@ -36,14 +36,7 @@
v-hasPermi=
"['system:dept:add']"
>
新增
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
...
...
ruoyi-ui/src/views/system/dict/data.vue
浏览文件 @
60d5c03e
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
v-show=
"showSearch"
:inline=
"true
"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px
"
>
<el-form-item
label=
"字典名称"
prop=
"dictType"
>
<el-select
v-model=
"queryParams.dictType"
size=
"small"
>
<el-option
...
...
@@ -75,14 +75,7 @@
v-hasPermi=
"['system:dict:export']"
>
导出
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"dataList"
@
selection-change=
"handleSelectionChange"
>
...
...
ruoyi-ui/src/views/system/dict/index.vue
浏览文件 @
60d5c03e
...
...
@@ -103,14 +103,7 @@
v-hasPermi=
"['system:dict:remove']"
>
清理缓存
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"typeList"
@
selection-change=
"handleSelectionChange"
>
...
...
ruoyi-ui/src/views/system/menu/index.vue
浏览文件 @
60d5c03e
...
...
@@ -36,14 +36,7 @@
v-hasPermi=
"['system:menu:add']"
>
新增
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
...
...
ruoyi-ui/src/views/system/notice/index.vue
浏览文件 @
60d5c03e
...
...
@@ -65,14 +65,7 @@
v-hasPermi=
"['system:notice:remove']"
>
删除
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"noticeList"
@
selection-change=
"handleSelectionChange"
>
...
...
ruoyi-ui/src/views/system/post/index.vue
浏览文件 @
60d5c03e
...
...
@@ -74,14 +74,7 @@
v-hasPermi=
"['system:post:export']"
>
导出
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"postList"
@
selection-change=
"handleSelectionChange"
>
...
...
ruoyi-ui/src/views/system/role/index.vue
浏览文件 @
60d5c03e
...
...
@@ -94,14 +94,7 @@
v-hasPermi=
"['system:role:export']"
>
导出
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"roleList"
@
selection-change=
"handleSelectionChange"
>
...
...
ruoyi-ui/src/views/system/user/index.vue
浏览文件 @
60d5c03e
此差异已折叠。
点击以展开。
ruoyi-ui/src/views/tool/gen/index.vue
浏览文件 @
60d5c03e
...
...
@@ -76,14 +76,7 @@
v-hasPermi=
"['tool:gen:remove']"
>
删除
</el-button>
</el-col>
<div
class=
"top-right-btn"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"刷新"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-refresh"
@
click=
"handleQuery"
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"showSearch ? '隐藏搜索' : '显示搜索'"
placement=
"top"
>
<el-button
size=
"mini"
circle
icon=
"el-icon-search"
@
click=
"showSearch=!showSearch"
/>
</el-tooltip>
</div>
<table-tools-ext
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></table-tools-ext>
</el-row>
<el-table
v-loading=
"loading"
:data=
"tableList"
@
selection-change=
"handleSelectionChange"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论