Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
10e1dd88
Commit
10e1dd88
authored
May 15, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门属性设置。
parent
e3f1c251
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
9 deletions
+26
-9
departmentSelect.vue
components/page/departmentSelect.vue
+23
-1
u.vue
pages/test/u.vue
+3
-8
No files found.
components/page/departmentSelect.vue
View file @
10e1dd88
...
@@ -18,7 +18,10 @@ export default {
...
@@ -18,7 +18,10 @@ export default {
created
()
{
created
()
{
this
.
dep
=
this
.
value
|
''
;
this
.
dep
=
this
.
value
|
''
;
this
.
$api
.
get
(
`
${
systemUrl
}
/Department/GetDepartments`
).
then
((
r
)
=>
{
this
.
$api
.
get
(
`
${
systemUrl
}
/Department/GetDepartments`
).
then
((
r
)
=>
{
this
.
list
=
r
.
result
.
items
;
var
items
=
r
.
result
.
items
;
this
.
list
=
r
.
result
.
items
;
if
(
this
.
type
==-
1
){
var
data
=
this
.
$u
.
toTree
(
r
.
result
.
items
,
0
,
u
=>
{
var
data
=
this
.
$u
.
toTree
(
r
.
result
.
items
,
0
,
u
=>
{
u
.
title
=
u
.
name
;
u
.
title
=
u
.
name
;
u
.
value
=
u
.
id
;
u
.
value
=
u
.
id
;
...
@@ -27,6 +30,21 @@ export default {
...
@@ -27,6 +30,21 @@ export default {
u
.
checked
=
false
;
u
.
checked
=
false
;
},
"parent_Id"
)
},
"parent_Id"
)
this
.
data
=
this
.
$u
.
clone
(
data
)
;
this
.
data
=
this
.
$u
.
clone
(
data
)
;
}
else
{
this
.
data
=
items
.
filter
(
u
=>
{
if
(
u
.
property
){
// return true
return
u
.
property
.
split
(
','
).
indexOf
(
this
.
type
)
>-
1
;
}
}).
map
(
u
=>
{
return
{
title
:
u
.
name
,
value
:
u
.
id
}
})
console
.
warn
(
"type"
,
this
.
type
,
this
.
data
)
}
})
})
},
},
props
:
{
props
:
{
...
@@ -39,6 +57,10 @@ export default {
...
@@ -39,6 +57,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
type
:{
type
:
Number
,
default
:
-
1
},
disabled
:
{
disabled
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
...
...
pages/test/u.vue
View file @
10e1dd88
...
@@ -26,16 +26,11 @@
...
@@ -26,16 +26,11 @@
<h2>
时间段展示
</h2>
<!-- 默认为datetime类型,可设置为date型,type="date";默认展示快捷时间段,包括当天、本周、本月,如不需要:showFast="false" -->
<h2>
时间段展示
</h2>
<!-- 默认为datetime类型,可设置为date型,type="date";默认展示快捷时间段,包括当天、本周、本月,如不需要:showFast="false" -->
<DTSearch
v-model=
"testDate1"
@
on-change=
"setTime"
type=
"date"
></DTSearch>
<DTSearch
v-model=
"testDate1"
@
on-change=
"setTime"
type=
"date"
></DTSearch>
<div>
<div>
<i-switch
v-model=
"
s
itch"
/>
<i-switch
v-model=
"
w
itch"
/>
</div>
</div>
<div
style=
"text-align:center"
>
<div
style=
"text-align:center"
>
<User
value=
"46"
/>
<DepartmentSelect
:type=
"3"
/>
<User
value=
"43"
/>
<User
value=
"44"
/>
<User
value=
"115"
/>
<User
value=
"37"
/>
</div>
</div>
<User
value=
"46"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -47,7 +42,7 @@ export default {
...
@@ -47,7 +42,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
user
:
0
,
user
:
0
,
s
witch
:
false
,
witch
:
false
,
parms
:
{
parms
:
{
app
:
'bug'
,
//服务名
app
:
'bug'
,
//服务名
eid
:
'10000'
,
//数据的id
eid
:
'10000'
,
//数据的id
...
...
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