Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
strategy-ui
Project
Project
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
ui
strategy-ui
Commits
09919a7a
Commit
09919a7a
authored
Jan 06, 2020
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化滚动条及删除问题
parent
45c18b01
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
132 additions
and
18 deletions
+132
-18
detailstrategy.vue
src/pages/detailstrategy.vue
+27
-3
sourcematerial.vue
src/pages/sourcematerial.vue
+27
-3
strategymange.vue
src/pages/strategymange.vue
+78
-12
No files found.
src/pages/detailstrategy.vue
View file @
09919a7a
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<div
class=
"imgdiv"
>
<div
class=
"imgdiv"
>
<p
class=
"imglist"
>
<p
class=
"imglist"
>
<img
src=
"../../static/bianji.png"
@
click=
"editinput(item)"
title=
"编辑"
>
<img
src=
"../../static/bianji.png"
@
click=
"editinput(item)"
title=
"编辑"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delateitem(item)"
style=
"margin-left:20px"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delateitem(item
,index
)"
style=
"margin-left:20px"
>
<img
src=
"../../static/dingding.png"
alt=
"钉钉"
@
click=
"ding(item)"
style=
"margin-left:20px"
>
<img
src=
"../../static/dingding.png"
alt=
"钉钉"
@
click=
"ding(item)"
style=
"margin-left:20px"
>
</p>
</p>
<p
v-show=
"item.showselect"
>
<p
v-show=
"item.showselect"
>
...
@@ -181,7 +181,12 @@ export default {
...
@@ -181,7 +181,12 @@ export default {
orderNo
:
this
.
contentarr
.
length
+
1
orderNo
:
this
.
contentarr
.
length
+
1
})
})
},
},
delateitem
(
item
)
{
delateitem
(
item
,
index
)
{
if
(
item
.
content
===
''
)
{
this
.
contentarr
.
splice
(
index
,
1
)
this
.
contentarr
=
[...
this
.
contentarr
]
return
false
}
this
.
delateUid
=
item
.
uid
this
.
delateUid
=
item
.
uid
this
.
delatelefthostmodal
=
true
this
.
delatelefthostmodal
=
true
},
},
...
@@ -210,7 +215,8 @@ export default {
...
@@ -210,7 +215,8 @@ export default {
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
background
:
url("../../static/bg.jpg")
no-repeat
center
0
/
cover
;
background
:
url("../../static/bg.jpg")
no-repeat
center
0
/
cover
;
font-family
:
"Microsoft Yahei"
font-family
:
"Microsoft Yahei"
;
overflow
:
hidden
;
}
}
.detailstrategy_title
{
.detailstrategy_title
{
height
:
40px
;
height
:
40px
;
...
@@ -234,6 +240,24 @@ export default {
...
@@ -234,6 +240,24 @@ export default {
float
:
left
;
float
:
left
;
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
.detailstrategy_content_warp
::-webkit-scrollbar
{
width
:
3px
;
height
:
3px
;
}
.detailstrategy_content_warp
::-webkit-scrollbar-track
{
background
:
rgba
(
239
,
239
,
239
,
0.1
);
border-radius
:
2px
;
}
.detailstrategy_content_warp
::-webkit-scrollbar-thumb
{
background
:
rgba
(
136
,
136
,
136
,
0.4
);
border-radius
:
10px
;
}
.detailstrategy_content_warp
::-webkit-scrollbar-thumb:hover
{
background
:
rgba
(
136
,
136
,
136
,
0.4
);
}
.detailstrategy_content_warp
::-webkit-scrollbar-corner
{
background
:
#179a16
;
}
.detailstrategy_content_warp
{
.detailstrategy_content_warp
{
width
:
85%
;
width
:
85%
;
margin
:
0
11%
;
margin
:
0
11%
;
...
...
src/pages/sourcematerial.vue
View file @
09919a7a
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<div
class=
"imgdiv"
>
<div
class=
"imgdiv"
>
<p
class=
"imglist"
>
<p
class=
"imglist"
>
<img
src=
"../../static/bianji.png"
@
click=
"editinput(item)"
title=
"编辑"
>
<img
src=
"../../static/bianji.png"
@
click=
"editinput(item)"
title=
"编辑"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delateitem(item)"
style=
"margin-left:20px"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delateitem(item
,index
)"
style=
"margin-left:20px"
>
<img
src=
"../../static/dingding.png"
alt=
"钉钉"
@
click=
"ding(item)"
style=
"margin-left:20px"
>
<img
src=
"../../static/dingding.png"
alt=
"钉钉"
@
click=
"ding(item)"
style=
"margin-left:20px"
>
</p>
</p>
<p
v-show=
"item.showselect"
>
<p
v-show=
"item.showselect"
>
...
@@ -141,7 +141,12 @@ export default {
...
@@ -141,7 +141,12 @@ export default {
content
:
''
content
:
''
})
})
},
},
delateitem
(
item
)
{
delateitem
(
item
,
index
)
{
if
(
item
.
content
===
''
)
{
this
.
contentarr
.
splice
(
index
,
1
)
this
.
contentarr
=
[...
this
.
contentarr
]
return
false
}
this
.
delatelefthostmodal
=
true
this
.
delatelefthostmodal
=
true
this
.
delateuid
=
item
.
uid
this
.
delateuid
=
item
.
uid
},
},
...
@@ -229,7 +234,8 @@ export default {
...
@@ -229,7 +234,8 @@ export default {
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
background
:
url("../../static/bg.jpg")
no-repeat
center
0
/
cover
;
background
:
url("../../static/bg.jpg")
no-repeat
center
0
/
cover
;
font-family
:
"Microsoft Yahei"
font-family
:
"Microsoft Yahei"
;
overflow
:
hidden
;
}
}
.sourcematerial_title
{
.sourcematerial_title
{
height
:
40px
;
height
:
40px
;
...
@@ -253,6 +259,24 @@ export default {
...
@@ -253,6 +259,24 @@ export default {
float
:
left
;
float
:
left
;
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
.detailstrategy_content_warp
::-webkit-scrollbar
{
width
:
3px
;
height
:
3px
;
}
.detailstrategy_content_warp
::-webkit-scrollbar-track
{
background
:
rgba
(
239
,
239
,
239
,
0.1
);
border-radius
:
2px
;
}
.detailstrategy_content_warp
::-webkit-scrollbar-thumb
{
background
:
rgba
(
136
,
136
,
136
,
0.1
);
border-radius
:
10px
;
}
.detailstrategy_content_warp
::-webkit-scrollbar-thumb:hover
{
background
:
rgba
(
136
,
136
,
136
,
0.4
);
}
.detailstrategy_content_warp
::-webkit-scrollbar-corner
{
background
:
#179a16
;
}
.detailstrategy_content_warp
{
.detailstrategy_content_warp
{
width
:
86%
;
width
:
86%
;
margin
:
0
11%
;
margin
:
0
11%
;
...
...
src/pages/strategymange.vue
View file @
09919a7a
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<div
v-show=
"item.showtitle"
>
<div
v-show=
"item.showtitle"
>
<img
src=
"../../static/add.png"
title=
"添加"
@
click=
"oneaddtitle"
>
<img
src=
"../../static/add.png"
title=
"添加"
@
click=
"oneaddtitle"
>
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editimgtitle(item,index)"
>
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editimgtitle(item,index)"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delateedittitle(item)"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delateedittitle(item
, index
)"
>
</div>
</div>
</div>
</div>
<div
class=
"classtitle_title"
>
<div
class=
"classtitle_title"
>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editchliidput(element,index, index1)"
>
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editchliidput(element,index, index1)"
>
</p>
</p>
<p>
<p>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delatechlidListleft(element)"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delatechlidListleft(element
, index, index1
)"
>
</p>
</p>
</div>
</div>
</div>
</div>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<div
v-show=
"item.showtitle"
>
<div
v-show=
"item.showtitle"
>
<img
src=
"../../static/tianjia.png"
title=
"添加"
@
click=
"oneaddtitleright"
>
<img
src=
"../../static/tianjia.png"
title=
"添加"
@
click=
"oneaddtitleright"
>
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editimgtitleright(item,index3)"
>
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editimgtitleright(item,index3)"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delateedittitle
(item
)"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delateedittitle
right(item,index3
)"
>
</div>
</div>
</div>
</div>
<div
class=
"classtitle_title"
>
<div
class=
"classtitle_title"
>
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editchliidput(element)"
>
<img
src=
"../../static/bianji.png"
title=
"编辑"
@
click=
"editchliidput(element)"
>
</p>
</p>
<p>
<p>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delatechlidListright(element)"
>
<img
src=
"../../static/shanchu.png"
title=
"删除"
@
click=
"delatechlidListright(element
, index3, index4
)"
>
</p>
</p>
</div>
</div>
</div>
</div>
...
@@ -375,11 +375,23 @@ export default {
...
@@ -375,11 +375,23 @@ export default {
// this.$refs['input'].focus()
// this.$refs['input'].focus()
this
.
leftarr
=
[...
this
.
leftarr
]
this
.
leftarr
=
[...
this
.
leftarr
]
},
},
delatechlidListleft
(
element
)
{
delatechlidListleft
(
element
,
index
,
ind
)
{
if
(
element
.
title
===
''
)
{
console
.
log
(
this
.
leftarr
[
index
].
keyResultsVOList
[
ind
])
this
.
leftarr
[
index
].
keyResultsVOList
.
splice
(
ind
,
1
);
this
.
leftarr
=
[...
this
.
leftarr
]
return
false
}
this
.
delateleftchildmodal
=
true
this
.
delateleftchildmodal
=
true
this
.
elementuid
=
element
.
uid
this
.
elementuid
=
element
.
uid
},
},
delatechlidListright
(
element
)
{
delatechlidListright
(
element
,
index
,
ind
)
{
if
(
element
.
title
===
''
)
{
console
.
log
(
this
.
rightarr
[
index
].
keyResultsVOList
[
ind
])
this
.
rightarr
[
index
].
keyResultsVOList
.
splice
(
ind
,
1
);
this
.
rightarr
=
[...
this
.
rightarr
]
return
false
}
this
.
delateleftchildmodal
=
true
this
.
delateleftchildmodal
=
true
this
.
elementuid
=
element
.
uid
this
.
elementuid
=
element
.
uid
},
},
...
@@ -514,7 +526,21 @@ export default {
...
@@ -514,7 +526,21 @@ export default {
keyResultsVOList
:
[]
keyResultsVOList
:
[]
})
})
},
},
delateedittitle
(
item
)
{
delateedittitle
(
item
,
index
)
{
if
(
item
.
title
===
''
)
{
this
.
leftarr
.
splice
(
index
,
1
)
this
.
leftarr
=
[...
this
.
leftarr
]
return
false
}
this
.
hostuid
=
item
.
uid
this
.
delatelefthostmodal
=
true
},
delateedittitleright
(
item
,
index
)
{
if
(
item
.
title
===
''
)
{
this
.
rightarr
.
splice
(
index
,
1
)
this
.
rightarr
=
[...
this
.
rightarr
]
return
false
}
this
.
hostuid
=
item
.
uid
this
.
hostuid
=
item
.
uid
this
.
delatelefthostmodal
=
true
this
.
delatelefthostmodal
=
true
},
},
...
@@ -591,7 +617,44 @@ export default {
...
@@ -591,7 +617,44 @@ export default {
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
background
:
url("../../static/bg.jpg")
no-repeat
center
0
/
cover
;
background
:
url("../../static/bg.jpg")
no-repeat
center
0
/
cover
;
font-family
:
"Microsoft Yahei"
font-family
:
"Microsoft Yahei"
;
overflow
:
hidden
;
}
.left
::-webkit-scrollbar
{
width
:
3px
;
height
:
3px
;
}
.left
::-webkit-scrollbar-track
{
background
:
rgba
(
239
,
239
,
239
,
0.1
);
border-radius
:
2px
;
}
.left
::-webkit-scrollbar-thumb
{
background
:
rgba
(
136
,
136
,
136
,
0.1
);
border-radius
:
10px
;
}
.left
::-webkit-scrollbar-thumb:hover
{
background
:
rgba
(
136
,
136
,
136
,
0.4
);
}
.left
::-webkit-scrollbar-corner
{
background
:
#179a16
;
}
.right
::-webkit-scrollbar
{
width
:
3px
;
height
:
3px
;
}
.right
::-webkit-scrollbar-track
{
background
:
rgba
(
239
,
239
,
239
,
0.1
);
border-radius
:
2px
;
}
.right
::-webkit-scrollbar-thumb
{
background
:
rgba
(
136
,
136
,
136
,
0.1
);
border-radius
:
10px
;
}
.right
::-webkit-scrollbar-thumb:hover
{
background
:
rgba
(
136
,
136
,
136
,
0.4
);
}
.right
::-webkit-scrollbar-corner
{
background
:
#179a16
;
}
}
.heart
{
.heart
{
height
:
80px
;
height
:
80px
;
...
@@ -608,9 +671,10 @@ export default {
...
@@ -608,9 +671,10 @@ export default {
}
}
.left
{
.left
{
width
:
35%
;
width
:
35%
;
height
:
100
%
;
height
:
98
%
;
float
:
left
;
float
:
left
;
overflow-y
:
auto
overflow-y
:
auto
;
padding-bottom
:
20px
;
}
}
.leftdiv
{
.leftdiv
{
width
:
100%
;
width
:
100%
;
...
@@ -657,9 +721,11 @@ export default {
...
@@ -657,9 +721,11 @@ export default {
}
}
.right
{
.right
{
width
:
35%
;
width
:
35%
;
height
:
100
%
;
height
:
98
%
;
float
:
left
;
float
:
left
;
overflow-y
:
auto
overflow-y
:
auto
;
padding-bottom
:
20px
;
/* border: 1px solid black */
}
}
.hosttitle
{
.hosttitle
{
width
:
90%
;
width
:
90%
;
...
...
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