Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
52d31b50
提交
52d31b50
authored
4月 28, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 表格按照最新fit2cloud-ui样式
上级
be033a5c
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
50 行增加
和
35 行删除
+50
-35
package.json
frontend/package.json
+1
-1
index.vue
frontend/src/components/business/complex-table/index.vue
+18
-13
index.vue
frontend/src/components/business/tree-table/index.vue
+19
-5
index.vue
frontend/src/views/system/datasource/index.vue
+3
-3
index.vue
frontend/src/views/system/dept/index.vue
+2
-3
index.vue
frontend/src/views/system/menu/index.vue
+3
-4
index.vue
frontend/src/views/system/role/index.vue
+2
-3
index.vue
frontend/src/views/system/user/index.vue
+2
-3
没有找到文件。
frontend/package.json
浏览文件 @
52d31b50
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
"element-resize-detector"
:
"^1.2.2"
,
"element-resize-detector"
:
"^1.2.2"
,
"element-ui"
:
"2.13.0"
,
"element-ui"
:
"2.13.0"
,
"file-saver"
:
"^2.0.5"
,
"file-saver"
:
"^2.0.5"
,
"fit2cloud-ui"
:
"^
0.1.12
"
,
"fit2cloud-ui"
:
"^
1.1.1
"
,
"html2canvas"
:
"^1.0.0-rc.7"
,
"html2canvas"
:
"^1.0.0-rc.7"
,
"js-cookie"
:
"2.2.0"
,
"js-cookie"
:
"2.2.0"
,
"jsencrypt"
:
"^3.0.0-rc.1"
,
"jsencrypt"
:
"^3.0.0-rc.1"
,
...
...
frontend/src/components/business/complex-table/index.vue
浏览文件 @
52d31b50
<
template
>
<
template
>
<div
class=
"complex-table"
>
<div
class=
"complex-table"
>
<div
v-if=
"$slots.header || header"
class=
"complex-table__header"
>
<div
v-if=
"$slots.header || header"
class=
"complex-table__header"
>
...
@@ -5,12 +6,16 @@
...
@@ -5,12 +6,16 @@
</div>
</div>
<div
v-if=
"$slots.toolbar || searchConfig"
class=
"complex-table__toolbar"
>
<div
v-if=
"$slots.toolbar || searchConfig"
class=
"complex-table__toolbar"
>
<slot
name=
"toolbar"
>
<div>
<fu-search-bar
v-bind=
"searchConfig"
@
exec=
"search"
>
<slot
name=
"toolbar"
/>
<slot
name=
"buttons"
/>
</div>
<fu-table-column-select
:columns=
"columns"
/>
<fu-search-bar
v-bind=
"searchConfig"
@
exec=
"search"
>
</fu-search-bar>
<template
#
complex
>
</slot>
<slot
name=
"complex"
/>
</
template
>
<slot
name=
"buttons"
/>
<fu-table-column-select
:columns=
"columns"
/>
</fu-search-bar>
</div>
</div>
<div
class=
"complex-table__body"
>
<div
class=
"complex-table__body"
>
...
@@ -41,13 +46,9 @@ export default {
...
@@ -41,13 +46,9 @@ export default {
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
// eslint-disable-next-line vue/require-default-prop
localKey
:
String
,
// 如果需要记住选择的列,则这里添加一个唯一的Key
localKey
:
String
,
// 如果需要记住选择的列,则这里添加一个唯一的Key
// eslint-disable-next-line vue/require-default-prop
header
:
String
,
header
:
String
,
// eslint-disable-next-line vue/require-default-prop
searchConfig
:
Object
,
searchConfig
:
Object
,
// eslint-disable-next-line vue/require-default-prop
paginationConfig
:
Object
paginationConfig
:
Object
},
},
data
()
{
data
()
{
...
@@ -72,12 +73,16 @@ export default {
...
@@ -72,12 +73,16 @@ export default {
.complex-table
{
.complex-table
{
.complex-table__header
{
.complex-table__header
{
@include
flex-row
(
flex-start
,
center
);
@include
flex-row
(
flex-start
,
center
);
height
:
60px
;
line-
height
:
60px
;
font-size
:
20
px
;
font-size
:
18
px
;
}
}
.complex-table__toolbar
{
.complex-table__toolbar
{
@include
flex-row
(
flex-end
,
center
);
@include
flex-row
(
space-between
,
center
);
.fu-search-bar
{
width
:
auto
;
}
}
}
.complex-table__pagination
{
.complex-table__pagination
{
...
...
frontend/src/components/business/tree-table/index.vue
浏览文件 @
52d31b50
...
@@ -5,12 +5,22 @@
...
@@ -5,12 +5,22 @@
</div>
</div>
<div
v-if=
"$slots.toolbar || searchConfig"
class=
"complex-table__toolbar"
>
<div
v-if=
"$slots.toolbar || searchConfig"
class=
"complex-table__toolbar"
>
<slot
name=
"toolbar"
>
<
!--
<
slot
name=
"toolbar"
>
<fu-search-bar
v-bind=
"searchConfig"
@
exec=
"search"
>
<fu-search-bar
v-bind=
"searchConfig"
@
exec=
"search"
>
<slot
name=
"buttons"
/>
<slot
name=
"buttons"
/>
<fu-table-column-select
:columns=
"columns"
/>
<fu-table-column-select
:columns=
"columns"
/>
</fu-search-bar>
</fu-search-bar>
</slot>
</slot>
-->
<div>
<slot
name=
"toolbar"
/>
</div>
<fu-search-bar
v-bind=
"searchConfig"
@
exec=
"search"
>
<template
#
complex
>
<slot
name=
"complex"
/>
</
template
>
<slot
name=
"buttons"
/>
<fu-table-column-select
:columns=
"columns"
/>
</fu-search-bar>
</div>
</div>
<div
class=
"complex-table__body"
>
<div
class=
"complex-table__body"
>
...
@@ -73,12 +83,16 @@ export default {
...
@@ -73,12 +83,16 @@ export default {
.complex-table
{
.complex-table
{
.complex-table__header
{
.complex-table__header
{
@include
flex-row
(
flex-start
,
center
);
@include
flex-row
(
flex-start
,
center
);
height
:
60px
;
line-
height
:
60px
;
font-size
:
20
px
;
font-size
:
18
px
;
}
}
.complex-table__toolbar
{
.complex-table__toolbar
{
@include
flex-row
(
flex-end
,
center
);
@include
flex-row
(
space-between
,
center
);
.fu-search-bar
{
width
:
auto
;
}
}
}
.complex-table__pagination
{
.complex-table__pagination
{
...
...
frontend/src/views/system/datasource/index.vue
浏览文件 @
52d31b50
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
<complex-table
<complex-table
:data=
"data"
:data=
"data"
:columns=
"columns"
:columns=
"columns"
:buttons=
"buttons"
:header=
"header"
:search-config=
"searchConfig"
:search-config=
"searchConfig"
:pagination-config=
"paginationConfig"
:pagination-config=
"paginationConfig"
@
select=
"select"
@
select=
"select"
@
search=
"search"
@
search=
"search"
>
>
<template
#
buttons
>
<template
#
toolbar
>
<fu-table-button
v-permission=
"['datasource:add']"
icon=
"el-icon-circle-plus-outline"
:label=
"$t('datasource.create')"
@
click=
"create"
/>
<fu-table-button
v-permission=
"['datasource:add']"
icon=
"el-icon-circle-plus-outline"
:label=
"$t('datasource.create')"
@
click=
"create"
/>
</
template
>
</
template
>
...
...
frontend/src/views/system/dept/index.vue
浏览文件 @
52d31b50
...
@@ -18,12 +18,11 @@
...
@@ -18,12 +18,11 @@
> -->
> -->
<tree-table
<tree-table
:columns=
"columns"
:columns=
"columns"
:buttons=
"buttons"
:header=
"header"
:search-config=
"searchConfig"
:search-config=
"searchConfig"
@
search=
"search"
@
search=
"search"
>
>
<template
#
buttons
>
<template
#
toolbar
>
<fu-table-button
v-permission=
"['dept:add']"
icon=
"el-icon-circle-plus-outline"
:label=
"$t('organization.create')"
@
click=
"create"
/>
<fu-table-button
v-permission=
"['dept:add']"
icon=
"el-icon-circle-plus-outline"
:label=
"$t('organization.create')"
@
click=
"create"
/>
</
template
>
</
template
>
<el-table
<el-table
...
...
frontend/src/views/system/menu/index.vue
浏览文件 @
52d31b50
...
@@ -2,12 +2,11 @@
...
@@ -2,12 +2,11 @@
<layout-content
v-loading=
"$store.getters.loadingMap[$store.getters.currentPath]"
>
<layout-content
v-loading=
"$store.getters.loadingMap[$store.getters.currentPath]"
>
<tree-table
<tree-table
:columns=
"columns"
:columns=
"columns"
:buttons=
"buttons"
:header=
"header"
:search-config=
"searchConfig"
:search-config=
"searchConfig"
@
search=
"initTableData"
@
search=
"initTableData"
>
>
<template
v-permission=
"['menu:add']"
#
buttons
>
<template
#
toolbar
>
<fu-table-button
v-permission=
"['menu:add']"
icon=
"el-icon-circle-plus-outline"
:label=
"$t('menu.create')"
@
click=
"create"
/>
<fu-table-button
v-permission=
"['menu:add']"
icon=
"el-icon-circle-plus-outline"
:label=
"$t('menu.create')"
@
click=
"create"
/>
</
template
>
</
template
>
...
@@ -173,7 +172,7 @@ export default {
...
@@ -173,7 +172,7 @@ export default {
}
}
],
],
searchConfig
:
{
searchConfig
:
{
useQuickSearch
:
fals
e
,
useQuickSearch
:
tru
e
,
useComplexSearch
:
false
,
useComplexSearch
:
false
,
quickPlaceholder
:
'按姓名搜索'
,
quickPlaceholder
:
'按姓名搜索'
,
components
:
[
components
:
[
...
...
frontend/src/views/system/role/index.vue
浏览文件 @
52d31b50
...
@@ -7,14 +7,13 @@
...
@@ -7,14 +7,13 @@
highlight-current-row
highlight-current-row
:data=
"tableData"
:data=
"tableData"
:columns=
"columns"
:columns=
"columns"
:buttons=
"buttons"
:header=
"header"
:search-config=
"searchConfig"
:search-config=
"searchConfig"
:pagination-config=
"paginationConfig"
:pagination-config=
"paginationConfig"
@
search=
"search"
@
search=
"search"
@
row-click=
"rowClick"
@
row-click=
"rowClick"
>
>
<template
#
buttons
>
<template
#
toolbar
>
<fu-table-button
icon=
"el-icon-circle-plus-outline"
:label=
"$t('role.add')"
@
click=
"create"
/>
<fu-table-button
icon=
"el-icon-circle-plus-outline"
:label=
"$t('role.add')"
@
click=
"create"
/>
</
template
>
</
template
>
...
...
frontend/src/views/system/user/index.vue
浏览文件 @
52d31b50
...
@@ -3,14 +3,13 @@
...
@@ -3,14 +3,13 @@
<complex-table
<complex-table
:data=
"data"
:data=
"data"
:columns=
"columns"
:columns=
"columns"
:buttons=
"buttons"
:header=
"header"
:search-config=
"searchConfig"
:search-config=
"searchConfig"
:pagination-config=
"paginationConfig"
:pagination-config=
"paginationConfig"
@
select=
"select"
@
select=
"select"
@
search=
"search"
@
search=
"search"
>
>
<template
#
buttons
>
<template
#
toolbar
>
<fu-table-button
v-permission=
"['user:add']"
icon=
"el-icon-circle-plus-outline"
:label=
"$t('user.create')"
@
click=
"create"
/>
<fu-table-button
v-permission=
"['user:add']"
icon=
"el-icon-circle-plus-outline"
:label=
"$t('user.create')"
@
click=
"create"
/>
</
template
>
</
template
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论