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
e240a855
Commit
e240a855
authored
Feb 21, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
a6eab7c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
15 deletions
+49
-15
journeyAds.vue
src/views/SellTemplate/components/journeyAds.vue
+49
-15
No files found.
src/views/SellTemplate/components/journeyAds.vue
View file @
e240a855
...
...
@@ -37,6 +37,32 @@
</div>
</div>
<div>
<el-dropdown
v-if=
"datas.selectedDatas.length>0"
trigger=
"click"
class=
"q-px-md"
>
<el-button>
<el-icon><CopyDocument
/></el-icon>
<span
class=
""
>
批量操作
</span>
</el-button>
<
template
#
dropdown
>
<el-dropdown-menu>
<el-dropdown-item
@
click=
"MoveToFolder(1)"
>
移动至
<el-select
class=
"q-pl-md"
v-model=
"datas.batchId"
filterable
placeholder=
"文件夹"
style=
"width: 90px"
size=
"small"
@
change=
"MoveToFolder"
>
<el-option
v-for=
"x in datas.fileList"
:key=
"x.FileId"
:label=
"x.FileName"
:value=
"x.FileId"
:disabled=
"datas.selectedDatas.indexOf(x.FileId)!=-1"
/>
</el-select>
</el-dropdown-item>
</el-dropdown-menu>
</
template
>
</el-dropdown>
<el-dropdown
trigger=
"click"
>
<el-button>
新建
</el-button>
<
template
#
dropdown
>
...
...
@@ -138,7 +164,7 @@
<el-dropdown-item
v-if=
"item.FileType"
icon=
"EditPen"
@
click
.
stop=
"startEditTitle(item)"
>
重命名
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.FileType"
icon=
"Clock"
@
click
.
stop=
"history(item)"
>
历史版本
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.FileType"
icon=
"Position"
@
click
.
stop=
"()=>shareId=item.FileId"
>
分享
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.FileType"
icon=
"Expand"
>
移动至
<el-dropdown-item
icon=
"Expand"
>
移动至
<el-select
class=
"q-pl-md"
v-model=
"item.Id"
...
...
@@ -150,7 +176,8 @@
v-for=
"x in datas.fileList"
:key=
"x.FileId"
:label=
"x.FileName"
:value=
"x.FileId"
/>
:value=
"x.FileId"
:disabled=
"x.FileId==item.FileId"
/>
</el-select>
</el-dropdown-item>
<el-dropdown-item
icon=
"Delete"
@
click=
"editDelete(item,1)"
>
删除
</el-dropdown-item>
...
...
@@ -214,7 +241,7 @@
<
script
setup
lang=
"ts"
>
import
{
ref
,
reactive
,
provide
,
watch
,
inject
,
onMounted
}
from
"vue"
;
import
{
ElLoading
,
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
MoreFilled
,
Edit
,
ArrowLeft
}
from
"@element-plus/icons-vue"
;
import
{
MoreFilled
,
Edit
,
ArrowLeft
,
CopyDocument
}
from
"@element-plus/icons-vue"
;
import
ConfigService
from
"@/services/ConfigService"
;
import
FolderService
from
"@/services/FolderService"
;
import
{
injectKeyTemplate
}
from
"@/types/injectKey"
;
...
...
@@ -244,6 +271,7 @@ const searchData = ref({} as any);
searchData
.
value
=
inject
(
injectKeyTemplate
);
const
deleteLoading
=
ref
<
any
>
(
null
);
const
datas
=
reactive
({
batchId
:
''
,
selectedDatas
:
[]
as
Array
,
selectAll
:
false
as
any
,
journeyAds
:
{
RefreshLoading
:
false
}
as
any
,
...
...
@@ -278,7 +306,15 @@ const SellTemplateRef = ref<any>();
// 移动到文件夹
const
MoveToFolder
=
(
item
:
any
)
=>
{
let
File
=
datas
.
fileList
.
find
(
x
=>
{
return
x
.
FileId
==
item
.
Id
})
ElMessageBox
.
confirm
(
`此操作将
${
item
.
FileName
}
移动到
${
File
.
FileName
}
,是否确定?`
,
"提示"
,
{
let
title
=
''
if
(
item
==
1
)
{
File
=
datas
.
fileList
.
find
(
x
=>
{
return
x
.
FileId
==
datas
.
batchId
})
title
=
`文件
${
datas
.
selectedDatas
.
join
(
','
)}
`
}
else
{
File
=
datas
.
fileList
.
find
(
x
=>
{
return
x
.
FileId
==
item
.
Id
})
title
=
item
.
FileName
}
ElMessageBox
.
confirm
(
`此操作将
${
title
}
移动到
${
File
.
FileName
}
,是否确定?`
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
...
...
@@ -375,19 +411,17 @@ const SetSellTemplate = async (row: any) => {
// 全选按钮
const
clickSelectAll
=
()
=>
{
if
(
datas
.
selectAll
)
{
datas
.
selectedDatas
=
dataList
.
value
.
map
((
x
)
=>
{
return
x
.
FileId
;
});
}
else
{
datas
.
selectedDatas
=
[];
isIndeterminate
.
value
=
false
;
}
setTimeout
(()
=>
{
for
(
let
i
=
0
;
i
<
dataList
.
value
.
length
;
i
++
)
{
if
(
datas
.
selectAll
==
true
)
dataList
.
value
[
i
].
singleChoice
=
true
;
else
dataList
.
value
[
i
].
singleChoice
=
false
;
if
(
datas
.
selectAll
==
true
)
{
datas
.
selectedDatas
.
push
(
dataList
.
value
[
i
].
FileId
)
dataList
.
value
[
i
].
singleChoice
=
true
;
}
else
{
datas
.
selectedDatas
=
[];
isIndeterminate
.
value
=
false
;
dataList
.
value
[
i
].
singleChoice
=
false
;
}
}
},
100
);
};
...
...
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