Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
7865cd94
Commit
7865cd94
authored
Jun 21, 2020
by
ZhengJie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[代码优化](v2.5): 细节优化
parent
31ed86ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
src/views/system/role/index.vue
+4
-10
src/views/tools/storage/qiniu/index.vue
+1
-1
No files found.
src/views/system/role/index.vue
View file @
7865cd94
...
...
@@ -4,15 +4,8 @@
<div
class=
"head-container"
>
<div
v-if=
"crud.props.searchToggle"
>
<!-- 搜索 -->
<el-input
v-model=
"query.blurry"
size=
"small"
clearable
placeholder=
"输入名称或者描述搜索"
style=
"width: 200px;"
class=
"filter-item"
@
keyup
.
enter
.
native=
"crud.toQuery"
/>
:default-time="['00:00:00','23:59:59']"
type="daterange"
range-separator=":"
size="small"
class="date-item"
value-format="yyyy-MM-dd HH:mm:ss"
start-placeholder="开始日期"
end-placeholder="结束日期"
/>
<el-input
v-model=
"query.blurry"
size=
"small"
clearable
placeholder=
"输入名称或者描述搜索"
style=
"width: 200px;"
class=
"filter-item"
@
keyup
.
enter
.
native=
"crud.toQuery"
/>
<date-range-picker
v-model=
"query.createTime"
class=
"date-item"
/>
<rrOperation
/>
</div>
<crudOperation
:permission=
"permission"
/>
...
...
@@ -135,11 +128,12 @@ import pagination from '@crud/Pagination'
import
Treeselect
from
'@riophae/vue-treeselect'
import
'@riophae/vue-treeselect/dist/vue-treeselect.css'
import
{
LOAD_CHILDREN_OPTIONS
}
from
'@riophae/vue-treeselect'
import
DateRangePicker
from
'@/components/DateRangePicker'
const
defaultForm
=
{
id
:
null
,
name
:
null
,
depts
:
[],
description
:
null
,
dataScope
:
'全部'
,
level
:
3
}
export
default
{
name
:
'Role'
,
components
:
{
Treeselect
,
pagination
,
crudOperation
,
rrOperation
,
udOperation
},
components
:
{
Treeselect
,
pagination
,
crudOperation
,
rrOperation
,
udOperation
,
DateRangePicker
},
cruds
()
{
return
CRUD
({
title
:
'角色'
,
url
:
'api/roles'
,
sort
:
'level,asc'
,
crudMethod
:
{
...
crudRoles
}})
},
...
...
src/views/tools/storage/qiniu/index.vue
View file @
7865cd94
...
...
@@ -7,7 +7,7 @@
<div
v-if=
"crud.props.searchToggle"
>
<!-- 搜索 -->
<el-input
v-model=
"query.key"
clearable
size=
"small"
placeholder=
"输入文件名称搜索"
style=
"width: 200px;"
class=
"filter-item"
@
keyup
.
enter
.
native=
"toQuery"
/>
<date-range-picker
v-model=
"query.c"
class=
"date-item"
/>
<date-range-picker
v-model=
"query.c
reateTime
"
class=
"date-item"
/>
<rrOperation
/>
</div>
<crudOperation
:permission=
"permission"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment