Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
XWSQ_20230718
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
wangjinjing
XWSQ_20230718
Commits
a6d50d92
Commit
a6d50d92
authored
Jul 19, 2023
by
夏敏伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文明创建模块
parent
38cd2298
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
20 deletions
+54
-20
public/components/leftview/tree_wmcj.vue
public/components/leftview/tree_wmcj.vue
+54
-20
No files found.
public/components/leftview/tree_wmcj.vue
View file @
a6d50d92
...
...
@@ -19,13 +19,13 @@
<div
class=
"layui-collapse collaps"
lay-filter=
"test3"
lay-accordion=
""
>
<div
class=
"layui-colla-item"
v-for=
"(item, index) in tree_list"
>
<h2
class=
"layui-colla-title"
v-bind:style=
"
{ backgroundColor: item.color }" >
<h2
class=
"layui-colla-title"
v-bind:style=
"
{ backgroundColor: item.color }"
@click="open(item, index, $event)"
>
{{
item
.
name
}}
</h2>
<div
class=
"layui-colla-content"
style=
"height: 217px; margin-left: 0px"
v-bind:title=
"item.name"
>
<div
style=
"width: 100%; height: 225px"
>
<div
class=
"layui-colla-item"
v-for=
"(item2, index) in item.children"
>
<h2
class=
"layui-colla-title"
v-bind:style=
"
{ backgroundColor: item2.color }" @click="item.name=='组织设置'?locate(item):showphotos(item
, index)" >
<h2
class=
"layui-colla-title"
@
click=
"item2.name=='组织设置'?locate(item2):showphotos2(item2.data
, index)"
>
{{
item2
.
name
}}
<img
v-show=
"item.icon"
style=
"height: 20px; width: 20px; margin-top: 10px; float: right;"
v-bind:src=
"item2.icon"
/>
</h2>
...
...
@@ -34,7 +34,20 @@
</div>
</div>
<div
class=
"layui-colla-item"
v-for=
"(item, index) in daylist"
>
<h2
class=
"layui-colla-title"
v-bind:style=
"
{ backgroundColor: item.color }" @click="open(item, index, $event)">
{{
item
.
name
}}
</h2>
<div
class=
"layui-colla-content"
style=
"height: 217px; margin-left: 0px"
v-bind:title=
"item.name"
>
<div
style=
"width: 100%; height: 225px"
>
<div
class=
"layui-colla-item"
v-for=
"(item2, index) in item.children"
@
click=
"showphotos2(item2.children)"
>
<div
class=
"layui-colla-title"
>
{{
item2
.
name
}}
</div>
</div>
</div>
</div>
</div>
</div>
...
...
@@ -61,7 +74,7 @@ module.exports = {
"
name
"
:
'
组织设置
'
,
"
color
"
:
'
#ADD8E6
'
,
"
show
"
:
true
,
event
:
"
showright
"
,
"
event
"
:
"
showright
"
,
"
layers
"
:
[],
"
data
"
:
[]
},
{
...
...
@@ -78,7 +91,7 @@ module.exports = {
"
name
"
:
'
测评参考
'
,
"
color
"
:
'
#ADD8E6
'
,
"
show
"
:
true
,
event
:
"
showmiddle
"
,
"
event
"
:
"
showmiddle
"
,
"
layers
"
:
[],
"
data
"
:
[]
}
...
...
@@ -122,34 +135,49 @@ module.exports = {
props
:
[
"
dataxself
"
],
methods
:
{
locate
:
function
(
item
)
{
if
(
item
.
name
==
'
组织设置
'
){
item
.
name
=
'
兴卫村社区新时代文明实践站
'
;
item2
=
JSON
.
parse
(
JSON
.
stringify
(
item
));
if
(
item2
.
name
==
'
组织设置
'
){
item2
.
name
=
'
兴卫村社区新时代文明实践站
'
;
}
parent
.
vue_left
.
locate
(
item
);
parent
.
vue_left
.
locate
(
item
2
);
},
showright
:
function
(
item
,
n
,
dom
)
{
parent
.
vue_left
.
showright
(
item
);
this
.
open
(
item
,
n
,
dom
);
},
showphotos
:
function
(
item
)
{
debugger
if
(
item
.
event
!=
undefined
){
//展示中间
parent
.
vue_left
.
showwmcs
(
item
);
}
else
{
var
playsrc
=
{
data
:
[]};
array
=
item
.
split
(
"
,
"
);
if
(
item
.
data
&&
item
.
data
.
src
!=
undefined
){
array
=
item
.
data
.
src
.
split
(
"
,
"
);
for
(
var
j
=
0
;
j
<
array
.
length
;
j
++
)
{
playsrc
.
data
.
push
({
src
:
array
[
j
]});
}
}
layer
.
photos
({
photos
:
playsrc
,
anim
:
5
,
});
}
},
showphotos2
:
function
(
items
)
{
var
playsrc
=
{
data
:
[]};
for
(
var
j
=
0
;
j
<
items
.
length
;
j
++
)
{
playsrc
.
data
.
push
({
src
:
items
[
j
].
src
,
alt
:
items
[
j
].
name
});
}
layer
.
photos
({
photos
:
playsrc
,
anim
:
5
,
});
},
play
:
function
(
url
)
{
layui_open_option
=
{
...
...
@@ -213,11 +241,17 @@ module.exports = {
mounted
()
{
that
=
this
;
getByAjax
(
"
./business/queryAreaphotos/18,19,2
0,2
1
"
,
function
(
list
){
getByAjax
(
"
./business/queryAreaphotos/18,19,2
1,49,50,5
1
"
,
function
(
list
){
for
(
var
i
=
0
;
i
<
that
.
tree_list
.
length
;
i
++
)
{
let
tempList
=
list
.
filter
(
items
=>
{
return
items
.
typeid
==
that
.
tree_list
[
i
].
marktype
});
let
tempList
=
list
.
filter
(
items
=>
{
return
items
.
typeid
==
that
.
tree_list
[
0
].
children
[
i
].
marktype
});
console
.
log
(
tempList
);
that
.
tree_list
[
0
].
children
[
i
].
data
=
tempList
;
}
for
(
var
i
=
0
;
i
<
that
.
daylist
[
0
].
children
.
length
;
i
++
)
{
let
tempList
=
list
.
filter
(
items
=>
{
return
items
.
typeid
==
that
.
daylist
[
0
].
children
[
i
].
marktype
});
console
.
log
(
tempList
);
that
.
tree_list
[
i
].
children
=
tempList
;
that
.
daylist
[
0
].
children
[
i
].
children
=
tempList
;
}
});
}
...
...
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