Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 032c3dfe
authored
Nov 10, 2020
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加时间限制和修改样式
1 parent
5b3ccb43
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
59 additions
and
17 deletions
src/components/search-form/index.vue
src/styles/reset.scss
src/views/dictionaryManage/dictionaryData/index.vue
src/views/dictionaryManage/index.vue
src/views/role/index.vue
src/views/workLog/index.vue
src/components/search-form/index.vue
View file @
032c3df
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
:picker-options=
"item.pickerOptions ||
{}"
>
>
</el-date-picker>
</el-date-picker>
</
template
>
</
template
>
...
@@ -83,7 +84,8 @@ export default {
...
@@ -83,7 +84,8 @@ export default {
padding
:
20px
20px
0
;
padding
:
20px
20px
0
;
.el-form-item
{
.el-form-item
{
float
:
left
;
display
:
inline-block
;
//
float
:
left
;
width
:
50%
;
width
:
50%
;
max-width
:
420px
;
max-width
:
420px
;
margin-right
:
18px
;
margin-right
:
18px
;
...
...
src/styles/reset.scss
View file @
032c3df
.el-tree--highlight-current
.el-tree-node.is-current
>
.el-tree-node__content
{
.el-tree--highlight-current
.el-tree-node.is-current
>
.el-tree-node__content
{
background-color
:
#409EFF
;
background-color
:
#409EFF
;
color
:
#ffffff
;
color
:
#ffffff
;
}
.el-radio-group
{
line-height
:
32px
;
vertical-align
:
text-top
;
}
.el-select
{
width
:
100%
;
}
}
\ No newline at end of file
\ No newline at end of file
src/views/dictionaryManage/dictionaryData/index.vue
View file @
032c3df
...
@@ -116,6 +116,15 @@ export default {
...
@@ -116,6 +116,15 @@ export default {
value
:
2
value
:
2
}
}
]
]
},
{
type
:
'daterange'
,
prop
:
'daterange'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
();
}
}
}
}
],
],
tableParams
:
{
tableParams
:
{
...
@@ -176,7 +185,7 @@ export default {
...
@@ -176,7 +185,7 @@ export default {
{
label
:
'字典类型:'
,
prop
:
'dictType'
,
type
:
'input'
,
readonly
:
true
},
{
label
:
'字典类型:'
,
prop
:
'dictType'
,
type
:
'input'
,
readonly
:
true
},
{
label
:
'字典标签:'
,
prop
:
'dictLabel'
,
type
:
'input'
,
maxlength
:
20
},
{
label
:
'字典标签:'
,
prop
:
'dictLabel'
,
type
:
'input'
,
maxlength
:
20
},
{
label
:
'字典键值:'
,
prop
:
'dictValue'
,
type
:
'input'
,
maxlength
:
50
},
{
label
:
'字典键值:'
,
prop
:
'dictValue'
,
type
:
'input'
,
maxlength
:
50
},
{
label
:
'字典
顺
序:'
,
prop
:
'dictSort'
,
type
:
'input'
},
{
label
:
'字典
排
序:'
,
prop
:
'dictSort'
,
type
:
'input'
},
{
label
:
'状态'
,
prop
:
'enableStatus'
,
type
:
'switch'
},
{
label
:
'状态'
,
prop
:
'enableStatus'
,
type
:
'switch'
},
{
label
:
'备注'
,
prop
:
'remark'
,
type
:
'input'
,
inputText
:
'textarea'
,
maxlength
:
200
,
showWordLimit
:
true
}
{
label
:
'备注'
,
prop
:
'remark'
,
type
:
'input'
,
inputText
:
'textarea'
,
maxlength
:
200
,
showWordLimit
:
true
}
],
],
...
@@ -184,7 +193,7 @@ export default {
...
@@ -184,7 +193,7 @@ export default {
dictType
:
[{
required
:
true
}],
dictType
:
[{
required
:
true
}],
dictLabel
:
[{
required
:
true
,
message
:
'请输入字典标签'
,
trigger
:
'blur'
}],
dictLabel
:
[{
required
:
true
,
message
:
'请输入字典标签'
,
trigger
:
'blur'
}],
dictValue
:
[{
required
:
true
,
message
:
'请输入字典键值'
,
trigger
:
'blur'
}],
dictValue
:
[{
required
:
true
,
message
:
'请输入字典键值'
,
trigger
:
'blur'
}],
dictSort
:
[{
required
:
true
,
message
:
'请输入字典
顺
序'
,
trigger
:
'blur'
},
dictSort
:
[{
required
:
true
,
message
:
'请输入字典
排
序'
,
trigger
:
'blur'
},
{
validator
:
this
.
$Common
.
checkRegExpNumber
,
trigger
:
'blur'
}],
{
validator
:
this
.
$Common
.
checkRegExpNumber
,
trigger
:
'blur'
}],
enableStatus
:
[{
required
:
true
}]
enableStatus
:
[{
required
:
true
}]
}
}
...
@@ -204,6 +213,13 @@ export default {
...
@@ -204,6 +213,13 @@ export default {
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchForm
.
type
=
this
.
$route
.
params
.
row
.
dictType
this
.
searchForm
.
type
=
this
.
$route
.
params
.
row
.
dictType
if
(
this
.
searchForm
.
daterange
)
{
this
.
searchForm
.
sDate
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchForm
.
eDate
=
this
.
searchForm
.
daterange
[
1
]
delete
this
.
searchForm
.
daterange
}
else
{
if
(
this
.
searchForm
.
sDate
)
delete
this
.
searchForm
.
sDate
&&
delete
this
.
searchForm
.
eDate
}
resolve
()
resolve
()
})
})
},
},
...
...
src/views/dictionaryManage/index.vue
View file @
032c3df
...
@@ -116,7 +116,12 @@ export default {
...
@@ -116,7 +116,12 @@ export default {
},
},
{
{
type
:
'daterange'
,
type
:
'daterange'
,
prop
:
'daterange'
prop
:
'daterange'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
();
}
}
}
}
],
],
tableParams
:
{
tableParams
:
{
...
...
src/views/role/index.vue
View file @
032c3df
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
</span>
</span>
</basic-table>
</basic-table>
<basic-dialog
<basic-dialog
class=
"role"
:title=
"roleDialogTitle"
:title=
"roleDialogTitle"
:isVisible=
"roleVisible"
:isVisible=
"roleVisible"
@
confirmDialog=
"handleConfirm"
@
confirmDialog=
"handleConfirm"
...
@@ -101,17 +102,16 @@
...
@@ -101,17 +102,16 @@
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</div>
<div
slot=
"menu-list"
>
<el-tree
<el-tree
slot=
"menu-list"
:data=
"treedata"
:data=
"treedata"
show-checkbox
show-checkbox
default-expand-all
default-expand-all
node-key=
"id"
node-key=
"id"
ref=
"tree"
ref=
"tree"
highlight-current
highlight-current
>
>
</el-tree>
</el-tree>
</div>
</rule-form>
</rule-form>
</slot>
</slot>
</basic-dialog>
</basic-dialog>
...
@@ -347,4 +347,9 @@ export default {
...
@@ -347,4 +347,9 @@ export default {
}
}
}
}
}
}
</
script
>
\ No newline at end of file
\ No newline at end of file
</
script
>
<
style
lang=
"scss"
>
.role
.el-tree
{
margin-top
:
7px
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/workLog/index.vue
View file @
032c3df
...
@@ -54,7 +54,12 @@ export default {
...
@@ -54,7 +54,12 @@ export default {
worklogFormList
:
[
worklogFormList
:
[
{
{
type
:
'daterange'
,
type
:
'daterange'
,
prop
:
'daterange'
prop
:
'daterange'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
();
}
}
}
}
],
],
tableParams
:
{
tableParams
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment