Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
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
viitto
pptist
Commits
e0bc7abb
Commit
e0bc7abb
authored
Feb 27, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化列表高亮
parent
62b1e764
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
27 deletions
+13
-27
journeyAdsList.vue
src/views/SellTemplate/components/journeyAdsList.vue
+8
-23
journeyAds.vue
src/views/SellTemplate/journeyAds.vue
+5
-4
No files found.
src/views/SellTemplate/components/journeyAdsList.vue
View file @
e0bc7abb
...
@@ -35,12 +35,12 @@
...
@@ -35,12 +35,12 @@
</div>
</div>
<div
class=
"temp-tr col q-ml-md file-name"
:class=
"
{'cusor-pointer':scope.row.FileType==0}">
<div
class=
"temp-tr col q-ml-md file-name"
:class=
"
{'cusor-pointer':scope.row.FileType==0}">
<el-tooltip
v-if=
"!scope.row.editTitle"
effect=
"dark"
:content=
"scope.row.FileName"
>
<el-tooltip
v-if=
"!scope.row.editTitle"
effect=
"dark"
:content=
"scope.row.FileName"
>
<
!--
<div
@
click
.
stop=
"scope.row.FileType?OffEdit():editDelete(scope.row,2)
"
>
<
template
v-if=
"scope.row.Highlight
"
>
{{
scope
.
row
.
FileName
?
scope
.
row
.
FileName
:
'-'
}}
<span
class=
'text-waring'
@
click
.
stop=
"scope.row.FileType?OffEdit():editDelete(scope.row,2)"
>
{{
scope
.
row
.
FileName
}}
</span>
</
div>
--
>
</
template
>
<div
truncated
<div
v-else
class=
"file-name"
v-html=
"queryObj.FileName!=''?(scope.row.FileName.replaceAll(queryObj.FileName,`<span class='text-waring'>${queryObj.FileName}</span>`)):scope.row.FileName"
v-html=
"scope.row.FileName.replaceAll(lastKeyword,`
<span
class=
'text-waring'
>
${lastKeyword}
</span>
`)"
@
click
.
stop=
"scope.row.FileType?OffEdit():editDelete(scope.row,2)"
></div>
@click.stop="scope.row.FileType?OffEdit():editDelete(scope.row,2)">
</div>
</el-tooltip>
</el-tooltip>
<el-input
<el-input
class=
"journeyAds-Input"
class=
"journeyAds-Input"
...
@@ -243,7 +243,6 @@ import CopyFile from "./CopyFile.vue";
...
@@ -243,7 +243,6 @@ import CopyFile from "./CopyFile.vue";
const
editObj
=
reactive
({});
const
editObj
=
reactive
({});
const
filterFileNameStatus
=
ref
(
false
)
const
filterFileNameStatus
=
ref
(
false
)
const
showItemId
=
ref
(
0
)
const
showItemId
=
ref
(
0
)
const
lastKeyword
=
ref
(
''
)
if
(
props
.
currentMenu
==
0
){
if
(
props
.
currentMenu
==
0
){
datas
.
Title
=
'最近浏览'
datas
.
Title
=
'最近浏览'
datas
.
emptyTitle
=
'没有最近浏览文档'
datas
.
emptyTitle
=
'没有最近浏览文档'
...
@@ -584,20 +583,7 @@ import CopyFile from "./CopyFile.vue";
...
@@ -584,20 +583,7 @@ import CopyFile from "./CopyFile.vue";
folderObj
.
value
.
name
=
name
;
folderObj
.
value
.
name
=
name
;
folderObj
.
value
.
type
=
queryObj
.
FileType
;
folderObj
.
value
.
type
=
queryObj
.
FileType
;
};
};
const
checkPositionHandler
=
(
n
:
any
)
=>
{
if
(
n
){
if
(
n
.
Position
&&
n
.
Position
.
length
>
0
){
Navigations
.
value
=
n
.
Position
queryObj
.
FileId
=
n
.
Position
[
n
.
Position
.
length
-
1
].
FileId
queryObj
.
FileType
=
0
}
else
{
Navigations
.
value
=
[]
queryObj
.
FileId
=
0
queryObj
.
FileType
=
n
.
FileType
}
emit
(
'destroy-position'
)
}
}
const
setFileShareHandler
=
(
item
:
any
)
=>
{
const
setFileShareHandler
=
(
item
:
any
)
=>
{
shareFileType
.
value
=
item
.
FileType
shareFileType
.
value
=
item
.
FileType
shareId
.
value
=
item
.
FileId
shareId
.
value
=
item
.
FileId
...
@@ -605,11 +591,10 @@ import CopyFile from "./CopyFile.vue";
...
@@ -605,11 +591,10 @@ import CopyFile from "./CopyFile.vue";
watch
(()
=>
props
.
list
,
(
n
,
o
)
=>
{
watch
(()
=>
props
.
list
,
(
n
,
o
)
=>
{
if
(
props
.
list
)
{
if
(
props
.
list
)
{
lastKeyword
.
value
=
queryObj
.
value
.
FileName
nextTick
(()
=>
{
nextTick
(()
=>
{
dataList
.
value
=
props
.
list
dataList
.
value
=
props
.
list
})
})
}
else
lastKeyword
.
value
=
''
}
})
})
watch
(()
=>
props
.
navigations
,
(
n
,
o
)
=>
{
watch
(()
=>
props
.
navigations
,
(
n
,
o
)
=>
{
...
...
src/views/SellTemplate/journeyAds.vue
View file @
e0bc7abb
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<el-dropdown-item
<el-dropdown-item
@
click=
"(searchData.TemplateType = 2), sellAdd(3)"
@
click=
"(searchData.TemplateType = 2), sellAdd(3)"
v-if=
"currentMenu == 4"
v-if=
"currentMenu == 4"
>
建广告图
</el-dropdown-item
>
新
建广告图
</el-dropdown-item
>
>
</el-dropdown-menu>
</el-dropdown-menu>
</
template
>
</
template
>
...
@@ -73,8 +73,7 @@
...
@@ -73,8 +73,7 @@
<div
ref=
"SellTemplateRef"
class=
"col full-width q-ml-md journeyAdsScrollbar"
>
<div
ref=
"SellTemplateRef"
class=
"col full-width q-ml-md journeyAdsScrollbar"
>
<el-scrollbar
@
scroll=
"scrollingHandler"
style=
"height: 100%;"
>
<el-scrollbar
@
scroll=
"scrollingHandler"
style=
"height: 100%;"
>
<journeyAdsList
<journeyAdsList
:current-menu=
"currentMenu"
:current-menu=
"currentMenu"
:position=
"position"
:set-file-list=
"datas.setFileList"
:set-file-list=
"datas.setFileList"
:list=
"dataList"
:list=
"dataList"
:msg=
"queryObj"
:msg=
"queryObj"
...
@@ -250,12 +249,15 @@ const querySearchHandler = async () => {
...
@@ -250,12 +249,15 @@ const querySearchHandler = async () => {
x
.
singleChoice
=
false
;
x
.
singleChoice
=
false
;
x
.
Id
=
''
x
.
Id
=
''
x
.
showSelect
=
false
x
.
showSelect
=
false
x
.
Highlight
=
false
if
(
props
.
position
&&
x
.
FileId
==
props
.
position
.
FileId
&&
x
.
FileType
==
props
.
position
.
FileType
)
x
.
Highlight
=
true
});
});
};
};
arrList
(
pageRes
.
data
.
data
.
pageData
);
arrList
(
pageRes
.
data
.
data
.
pageData
);
datas
.
selectedDatas
=
Array
.
from
(
new
Set
(
datas
.
selectedDatas
))
datas
.
selectedDatas
=
Array
.
from
(
new
Set
(
datas
.
selectedDatas
))
dataList
.
value
=
dataList
.
value
.
concat
(
pageRes
.
data
.
data
.
pageData
);
dataList
.
value
=
dataList
.
value
.
concat
(
pageRes
.
data
.
data
.
pageData
);
queryObj
.
pageCount
=
pageRes
.
data
.
data
.
pageCount
;
queryObj
.
pageCount
=
pageRes
.
data
.
data
.
pageCount
;
if
(
props
.
position
)
emit
(
'destroy-position'
)
}
}
loading
.
value
=
false
;
loading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
...
@@ -310,7 +312,6 @@ const checkPositionHandler = (n:any)=>{
...
@@ -310,7 +312,6 @@ const checkPositionHandler = (n:any)=>{
queryObj
.
FileId
=
0
queryObj
.
FileId
=
0
queryObj
.
FileType
=
n
.
FileType
queryObj
.
FileType
=
n
.
FileType
}
}
emit
(
'destroy-position'
)
}
}
}
}
...
...
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