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
66ead027
Commit
66ead027
authored
Feb 23, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历史版本 另存 替换
parent
f46fc611
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
217 additions
and
416 deletions
+217
-416
App.vue
src/App.vue
+4
-3
ConfigService.ts
src/services/ConfigService.ts
+6
-0
FolderService.ts
src/services/FolderService.ts
+7
-0
BrowsingHistory.vue
src/views/SellTemplate/components/BrowsingHistory.vue
+54
-266
CopyFile.vue
src/views/SellTemplate/components/CopyFile.vue
+109
-59
HistoricalVersion.vue
src/views/SellTemplate/components/HistoricalVersion.vue
+22
-25
journeyAds.vue
src/views/SellTemplate/components/journeyAds.vue
+6
-37
journeyAdsList.vue
src/views/SellTemplate/components/journeyAdsList.vue
+9
-26
No files found.
src/App.vue
View file @
66ead027
...
...
@@ -14,6 +14,7 @@
</template>
<
script
lang=
"ts"
setup
>
import
{
ApiResult
}
from
'@/configs/axios'
;
import
{
onMounted
,
ref
,
provide
}
from
'vue'
import
{
storeToRefs
}
from
'pinia'
import
{
useScreenStore
,
useMainStore
,
useSnapshotStore
,
...
...
@@ -124,7 +125,7 @@ const sellHistoryTripTemplate = async (sellId:any) => {
Id
:
sellId
}
let
dataRes
=
await
ConfigService
.
sellGetTemplateDetails
(
queryMsg
);
if
(
dataRes
.
data
.
resultCode
==
1
)
{
if
(
dataRes
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
loadingObj
.
close
()
loading
.
value
=
false
isFinish
.
value
=
true
...
...
@@ -178,7 +179,7 @@ const sellShareTemplate = async () =>{
}
const
slidesData
=
slides
.
value
let
dataRes
=
await
ConfigService
.
GetTripOtherByCode
(
queryMsg
);
if
(
dataRes
.
data
.
resultCode
==
1
)
{
if
(
dataRes
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
loadingObj
.
close
()
loading
.
value
=
false
isFinish
.
value
=
true
...
...
@@ -231,7 +232,7 @@ const GetTripConfig = async (ConfigId) =>{
ConfigId
:
ConfigId
}
let
datasRes
=
await
ConfigService
.
triptemplateGetTripConfig
(
queryMsg
);
if
(
datasRes
.
data
.
resultCode
==
1
&&
datasRes
.
data
.
data
)
{
if
(
datasRes
.
data
.
resultCode
==
ApiResult
.
SUCCESS
&&
datasRes
.
data
.
data
)
{
let
dataObj
=
datasRes
.
data
.
data
if
(
dataObj
.
TempId
==
0
){
return
window
.
parent
.
postMessage
(
`暂无行程数据`
,
`
${
domainManager
().
notificationUrl
}
`
);
...
...
src/services/ConfigService.ts
View file @
66ead027
...
...
@@ -40,6 +40,12 @@ class ConfigService{
return
Api
.
Post
(
"triptemplate_SetTripBrowse"
,
params
)
}
/**
* 历史版本另存、替换
*/
static
async
UpdateOtherByHistory
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_UpdateOtherByHistory"
,
params
)
}
/**
* 获取行程广告历史版本
*/
...
...
src/services/FolderService.ts
View file @
66ead027
...
...
@@ -2,6 +2,13 @@ import Api,{ HttpResponse, Result } from './../utils/request';
class
FolderService
{
/**
* 复制文件夹、文件到指定目录
*/
static
async
CopyFile
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_CopyFile"
,
params
)
}
/**
* 文件夹树形结构
*/
...
...
src/views/SellTemplate/components/BrowsingHistory.vue
View file @
66ead027
This diff is collapsed.
Click to expand it.
src/views/SellTemplate/components/CopyFile.vue
View file @
66ead027
...
...
@@ -5,12 +5,22 @@
<template
#
header
>
<div
class=
"row overflow-hide"
@
click=
"OffEdit"
>
<div>
<img
v-if=
"details.FileType>0"
class=
"q-px-md"
:src=
"details.FileType==1?datas.pdfImg:datas.adsImg"
style=
"height: 43px;"
/>
<img
v-else
class=
"q-px-md"
src=
"@/assets/img/file.png"
style=
"height: 43px;"
/>
<template
v-if=
"type"
>
<img
v-if=
"fileObj.FileType>0"
class=
"q-px-md"
:src=
"fileObj.FileType==1?datas.pdfImg:datas.adsImg"
style=
"height: 43px;"
/>
<img
v-else
class=
"q-px-md"
src=
"@/assets/img/file.png"
style=
"height: 43px;"
/>
</
template
>
<
template
v-else
>
<img
v-if=
"details.FileType>0"
class=
"q-px-md"
:src=
"details.FileType==1?datas.pdfImg:datas.adsImg"
style=
"height: 43px;"
/>
<img
v-else
class=
"q-px-md"
src=
"@/assets/img/file.png"
style=
"height: 43px;"
/>
</
template
>
</div>
<div
class=
"q-pl-md col"
>
<div
class=
"row flex-center"
>
...
...
@@ -33,7 +43,13 @@
/>
</div>
<div
class=
"text-small text-5B5D62 q-pt-sm"
>
创建者:{{details.CreateName}}
创建者:
<
template
v-if=
"type==1"
>
{{
details
.
CreateByName
}}
</
template
>
<
template
v-else
>
{{
details
.
CreateName
}}
</
template
>
</div>
</div>
</div>
...
...
@@ -61,7 +77,11 @@
<div
@
click=
"OffEdit"
>
<span
class=
"dialog-footer"
>
<el-button
@
click=
"()=>closedhandler()"
>
关闭
</el-button>
<el-button
type=
"primary"
@
click=
"()=>save()"
>
保存复制
</el-button>
<el-button
type=
"primary"
@
click=
"()=>save()"
>
保存
<template
v-if=
"type==1"
>
另存
</
template
>
<
template
v-else-if=
"type==2"
>
替换
</
template
>
<
template
v-else
>
复制
</
template
>
</el-button>
</span>
</div>
</template>
...
...
@@ -74,16 +94,21 @@ import { ref,reactive,watch } from 'vue';
import
{
View
,
Download
,
EditPen
,
Delete
}
from
'@element-plus/icons-vue'
;
import
{
ElMessage
,
ElTree
}
from
'element-plus'
;
import
FolderService
from
"@/services/FolderService"
;
import
ConfigService
from
"@/services/ConfigService"
;
const
props
=
defineProps
({
details
:{
type
:
Object
,
required
:
''
},
fileType
:
{
fileObj
:
{
type
:
Object
,
required
:
{}
},
type
:
{
type
:
Number
,
required
:
1
}
required
:
0
}
,
})
const
emit
=
defineEmits
<
{
(
event
:
'close'
):
void
,
...
...
@@ -134,61 +159,86 @@ import FolderService from "@/services/FolderService";
return
data
.
FileName
.
includes
(
value
)
}
const
save
=
()
=>
{
return
let
title
=
''
let
FileList
=
[]
if
(
!
props
.
details
)
{
title
=
` 12121 `
FileList
=
[]
}
else
{
title
=
props
.
details
.
FileName
FileList
.
push
({
FileId
:
props
.
details
.
FileId
,
FileType
:
props
.
details
.
FileType
})
}
ElMessageBox
.
confirm
(
`此操作将
${
title
}
移动到
${
datas
.
FolderObj
.
FileName
}
,是否确定?`
,
"提示"
,
{
let
title
=
props
.
details
.
FileName
if
(
props
.
type
)
title
=
props
.
type
==
1
?
'另存'
:
'替换'
else
title
=
title
+
'复制'
ElMessageBox
.
confirm
(
`此操作将
${
title
}
到
${
datas
.
FolderObj
.
FileName
?
datas
.
FolderObj
.
FileName
:
'根目录'
}
,是否确定?`
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(
async
()
=>
{
try
{
let
queryMsg
=
{
FileList
:
FileList
,
TargetFolderId
:
datas
.
FolderId
,
};
deleteLoading
.
value
=
ElLoading
.
service
({
lock
:
true
,
text
:
"正在处理"
,
});
let
pageRes
=
await
FolderService
.
UpdateTripOtherFolder
(
queryMsg
);
if
(
pageRes
.
data
.
resultCode
==
1
)
{
ElMessage
({
showClose
:
true
,
message
:
`移动文件成功`
,
type
:
"success"
,
});
emit
(
'close'
)
emit
(
'success'
)
}
else
{
ElMessage
({
showClose
:
true
,
message
:
`移动文件失败`
,
type
:
"warning"
,
});
}
deleteLoading
.
value
.
close
();
deleteLoading
.
value
=
null
;
}
catch
(
error
)
{}
})
.
catch
(()
=>
{});
.
then
(
async
()
=>
{
try
{
if
(
props
.
type
)
SaveOverlay
(
title
)
else
CopyId
()
}
catch
(
error
)
{}
})
.
catch
(()
=>
{});
}
const
SaveOverlay
=
async
(
title
:
String
)
=>
{
let
queryMsg
=
{
LogId
:
props
.
details
.
LogId
,
FileId
:
props
.
details
.
FileId
,
UpdateType
:
props
.
type
,
FolderId
:
datas
.
FolderId
,
};
deleteLoading
.
value
=
ElLoading
.
service
({
lock
:
true
,
text
:
"正在处理"
,
});
let
pageRes
=
await
ConfigService
.
UpdateOtherByHistory
(
queryMsg
);
if
(
pageRes
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
ElMessage
({
showClose
:
true
,
message
:
`
${
title
}
文件
${
props
.
details
.
FileType
?
''
:
'夹'
}
成功`
,
type
:
"success"
,
});
emit
(
'close'
)
emit
(
'success'
)
}
else
{
ElMessage
({
showClose
:
true
,
message
:
`
${
title
}
文件
${
props
.
details
.
FileType
?
''
:
'夹'
}
失败`
,
type
:
"warning"
,
});
}
deleteLoading
.
value
.
close
();
deleteLoading
.
value
=
null
;
}
const
CopyId
=
async
()
=>
{
let
queryMsg
=
{
FileId
:
props
.
details
.
FileId
,
FileType
:
props
.
details
.
FileType
,
FileName
:
props
.
details
.
FileName
,
TargetFolderId
:
datas
.
FolderId
,
};
deleteLoading
.
value
=
ElLoading
.
service
({
lock
:
true
,
text
:
"正在处理"
,
});
let
pageRes
=
await
FolderService
.
CopyFile
(
queryMsg
);
if
(
pageRes
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
ElMessage
({
showClose
:
true
,
message
:
`复制文件
${
props
.
details
.
FileType
?
''
:
'夹'
}
成功`
,
type
:
"success"
,
});
emit
(
'close'
)
emit
(
'success'
)
}
else
{
ElMessage
({
showClose
:
true
,
message
:
`移动文件
${
props
.
details
.
FileType
?
''
:
'夹'
}
失败`
,
type
:
"warning"
,
});
}
deleteLoading
.
value
.
close
();
deleteLoading
.
value
=
null
;
}
const
getFile
=
async
()
=>
{
let
querys
=
{
FileType
:
props
.
f
ileType
FileType
:
props
.
details
.
F
ileType
}
let
pageRes
=
await
FolderService
.
GetMyFolderTree
(
querys
);
if
(
pageRes
.
data
.
resultCode
==
1
)
{
...
...
src/views/SellTemplate/components/HistoricalVersion.vue
View file @
66ead027
...
...
@@ -55,8 +55,8 @@
<el-icon
size=
"16"
color=
"#b1b7cf"
><MoreFilled
/></el-icon>
<template
#
dropdown
>
<el-dropdown-menu
class=
"q-pa-md"
@
click
.
stop=
"OffEdit"
>
<el-dropdown-item
icon=
"
EditPe
n"
@
click
.
stop=
"clickControls(item,1)"
>
另存
</el-dropdown-item>
<el-dropdown-item
icon=
"
Clock
"
@
click
.
stop=
"clickControls(item,2)"
>
替换
</el-dropdown-item>
<el-dropdown-item
icon=
"
Promotio
n"
@
click
.
stop=
"clickControls(item,1)"
>
另存
</el-dropdown-item>
<el-dropdown-item
icon=
"
Switch
"
@
click
.
stop=
"clickControls(item,2)"
>
替换
</el-dropdown-item>
</el-dropdown-menu>
</
template
>
</el-dropdown>
...
...
@@ -82,6 +82,12 @@
</span>
</
template
>
</el-dialog>
<CopyFile
v-if=
"isCopyTo"
:details=
"journeyAdsDetails"
:type=
"datas.type"
:file-obj=
"details"
@
close=
"() => {journeyAdsDetails = '';isCopyTo=false}"
@
success=
"refreshHandler()"
></CopyFile>
</template>
<
script
setup
lang=
"ts"
>
import
{
ApiResult
}
from
'@/configs/axios'
;
...
...
@@ -92,6 +98,7 @@ import { ElMessage } from 'element-plus';
import
ConfigService
from
'@/services/ConfigService'
;
import
{
isPC
,
query
}
from
'@/utils/common'
import
{
injectKeyTemplate
}
from
'@/types/injectKey'
import
CopyFile
from
"./CopyFile.vue"
;
const
props
=
defineProps
({
id
:{
...
...
@@ -107,6 +114,7 @@ import { injectKeyTemplate } from '@/types/injectKey'
(
event
:
'close'
):
void
}
>
()
const
datas
=
reactive
({
type
:
1
,
pdfImg
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708337830000_43.png'
,
adsImg
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708250377000_777.png'
,
})
...
...
@@ -124,36 +132,21 @@ import { injectKeyTemplate } from '@/types/injectKey'
FileId
:
props
.
details
.
FileId
,
UpdateTime
:
''
})
const
journeyAdsDetails
=
ref
(
''
);
const
isCopyTo
=
ref
(
false
);
const
dataList
=
ref
([])
const
clickControls
=
(
row
:
any
,
type
:
any
)
=>
{
if
(
type
){
datas
.
type
=
type
journeyAdsDetails
.
value
=
row
isCopyTo
.
value
=
true
}
else
{
let
param
=
query
()
const
url
=
`
${
process
.
env
.
VUE_APP_SHARE_URL
}
/?uid=
${
param
.
uid
}
&sellId=
${
row
.
FileId
}
&ViewSlideshow=1`
window
.
open
(
url
);
}
}
const
getSort
=
()
=>
{
let
list
=
JSON
.
parse
(
JSON
.
stringify
(
dataList
.
value
))
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
){
for
(
let
j
=
i
;
j
<
list
.
length
;
j
++
){
let
time
time
=
new
Date
(
list
[
j
].
UpdateTime
.
replace
(
/-/
,
'/'
))
-
new
Date
(
list
[
i
].
UpdateTime
.
replace
(
/-/
,
'/'
))
if
(
time
>
0
){
let
listObj
=
list
[
i
];
list
[
i
]
=
list
[
j
];
list
[
j
]
=
listObj
;
}
}
}
datas
.
UpdateTime
=
list
[
0
].
UpdateTime
for
(
let
i
=
0
;
i
<
dataList
.
value
.
length
;
i
++
){
if
(
dataList
.
value
[
i
].
UpdateTime
==
datas
.
UpdateTime
)
dataList
.
value
[
i
].
NewTitle
=
'当前版本'
}
}
const
closedhandler
=
()
=>
{
emit
(
'close'
)
}
...
...
@@ -162,7 +155,7 @@ import { injectKeyTemplate } from '@/types/injectKey'
try
{
if
(
queryObj
.
pageIndex
==
1
)
dataList
.
value
=
[]
let
pageRes
=
await
ConfigService
.
GetFileHistory
(
queryObj
);
if
(
pageRes
.
data
.
resultCode
==
1
)
{
if
(
pageRes
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
let
arrList
=
function
(
list
)
{
list
.
forEach
((
x
)
=>
{
x
.
NewTitle
=
''
...
...
@@ -170,9 +163,8 @@ import { injectKeyTemplate } from '@/types/injectKey'
};
arrList
(
pageRes
.
data
.
data
.
pageData
);
dataList
.
value
=
dataList
.
value
.
concat
(
pageRes
.
data
.
data
.
pageData
);
copyDataList
.
value
=
dataList
.
value
dataList
.
value
[
0
].
NewTitle
=
'当前版本'
queryObj
.
pageCount
=
pageRes
.
data
.
data
.
pageCount
;
getSort
()
}
loading
.
value
=
false
}
catch
(
error
)
{
...
...
@@ -190,6 +182,11 @@ import { injectKeyTemplate } from '@/types/injectKey'
}
}
const
refreshHandler
=
()
=>
{
queryObj
.
pageIndex
=
1
;
querySearchHandler
();
};
querySearchHandler
()
</
script
>
...
...
src/views/SellTemplate/components/journeyAds.vue
View file @
66ead027
...
...
@@ -90,9 +90,9 @@
<span>
最近修改
</span>
<span
class=
"column"
>
<el-icon
class=
"reactive"
style=
"top: 3px"
:class=
"[
datas.Sort==2
?'active':'']"
><CaretTop
/></el-icon>
style=
"top: 3px"
:class=
"[
queryObj.OrderByType==1
?'active':'']"
><CaretTop
/></el-icon>
<el-icon
class=
"reactive"
style=
"top:-3px"
:class=
"[
datas.Sort==1
?'active':'']"
><CaretBottom
/></el-icon>
style=
"top:-3px"
:class=
"[
queryObj.OrderByType==2
?'active':'']"
><CaretBottom
/></el-icon>
</span>
</div>
</th>
...
...
@@ -267,14 +267,12 @@ const Navigations = ref([] as Array<any>);
const
showHistory
=
ref
(
true
);
const
isIndeterminate
=
ref
(
false
);
const
dataList
=
ref
([]
as
Array
<
any
>
);
const
copyDataList
=
ref
([]
as
Array
<
any
>
);
const
NewDataList
=
ref
([]
as
Array
<
any
>
);
const
searchData
=
ref
({}
as
any
);
searchData
.
value
=
inject
(
injectKeyTemplate
);
const
deleteLoading
=
ref
<
any
>
(
null
);
const
removeShareLoading
=
ref
<
any
>
(
null
);
const
datas
=
reactive
({
Sort
:
0
,
selectedDatas
:
[]
as
Array
,
selectAll
:
false
as
any
,
journeyAds
:
{
RefreshLoading
:
false
}
as
any
,
...
...
@@ -304,6 +302,7 @@ const queryObj = reactive({
pageCount
:
0
,
//总页数
FileType
:
TemplateType
,
FileId
:
0
,
OrderByType
:
2
,
//1 升序 2倒序
});
const
editObj
=
reactive
({});
//datas.journeyAds = inject('journeyAds')
...
...
@@ -315,37 +314,9 @@ const CopyTo = (row:any) => {
journeyAdsDetails
.
value
=
row
}
const
clickSort
=
(
type
:
any
)
=>
{
if
(
datas
.
Sort
==
0
)
copyDataList
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
dataList
.
value
))
// 1降序 2升序
if
(
datas
.
Sort
==
2
)
datas
.
Sort
=
0
else
datas
.
Sort
++
getSort
()
}
const
getSort
=
()
=>
{
let
list
=
JSON
.
parse
(
JSON
.
stringify
(
dataList
.
value
))
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
){
for
(
let
j
=
i
;
j
<
list
.
length
;
j
++
){
let
time
if
(
datas
.
Sort
==
1
)
time
=
new
Date
(
list
[
i
].
UpdateTime
.
replace
(
/-/
,
'/'
))
-
new
Date
(
list
[
j
].
UpdateTime
.
replace
(
/-/
,
'/'
))
if
(
datas
.
Sort
==
2
)
time
=
new
Date
(
list
[
j
].
UpdateTime
.
replace
(
/-/
,
'/'
))
-
new
Date
(
list
[
i
].
UpdateTime
.
replace
(
/-/
,
'/'
))
if
(
time
>
0
){
let
listObj
=
list
[
i
];
list
[
i
]
=
list
[
j
];
list
[
j
]
=
listObj
;
}
}
}
dataList
.
value
=
datas
.
Sort
?
list
:
JSON
.
parse
(
JSON
.
stringify
(
copyDataList
.
value
))
for
(
let
i
=
0
;
i
<
dataList
.
value
.
length
;
i
++
)
{
if
(
datas
.
selectAll
)
{
dataList
.
value
[
i
].
singleChoice
=
true
;
datas
.
selectedDatas
.
push
(
dataList
.
value
[
i
].
FileId
);
}
else
if
(
datas
.
selectedDatas
.
length
>
0
&&
datas
.
selectedDatas
.
indexOf
(
dataList
.
value
[
i
].
FileId
)
!=
-
1
)
dataList
.
value
[
i
].
singleChoice
=
true
;
}
if
(
queryObj
.
OrderByType
==
2
)
queryObj
.
OrderByType
=
1
else
queryObj
.
OrderByType
=
2
refreshHandler
()
}
// 导航
...
...
@@ -662,9 +633,7 @@ const querySearchHandler = async () => {
arrList
(
pageRes
.
data
.
data
.
pageData
);
datas
.
selectedDatas
=
Array
.
from
(
new
Set
(
datas
.
selectedDatas
))
dataList
.
value
=
dataList
.
value
.
concat
(
pageRes
.
data
.
data
.
pageData
);
copyDataList
.
value
=
dataList
.
value
queryObj
.
pageCount
=
pageRes
.
data
.
data
.
pageCount
;
getSort
()
}
loading
.
value
=
false
;
datas
.
journeyAds
.
RefreshLoading
=
false
;
...
...
src/views/SellTemplate/components/journeyAdsList.vue
View file @
66ead027
<
template
>
<tr
class=
"text-5B5D62 journeyAdsple-table pointer"
v-for=
"(item,index) in dataList"
>
<td
v-if=
"currentMenu==3||currentMenu==4"
@
click
.
stop=
"OffEdit()"
>
<div
class=
"row items-center hoverShow"
<td
@
click
.
stop=
"OffEdit()"
>
<div
v-if=
"currentMenu==3||currentMenu==4"
class=
"row items-center hoverShow"
:style=
"
{'opacity':item.singleChoice?1:''}">
<el-checkbox
size=
"sm"
class=
"SelectAllBox"
v-model=
"item.singleChoice"
@
click
.
stop=
"singleChoice(item)"
/></div>
...
...
@@ -49,10 +49,10 @@
<el-dropdown-item
icon=
"Position"
@
click
.
stop=
"()=>shareId=item.FileId"
>
分享
</el-dropdown-item>
<el-dropdown-item
v-if=
"item.IsShare"
icon=
"Hide"
@
click
.
stop=
"removeShareHandler(item)"
>
取消分享
</el-dropdown-item>
<el-dropdown-item
v-if=
"currentMenu==3||currentMenu==4"
icon=
"Expand"
@
click
.
stop=
"MoveFile(item)"
>
移动至
</el-dropdown-item>
<el-dropdown-item
@
click
.
stop=
"CollectHandler(item)"
:text-color=
"!item.IsCollect?'#FCC525':'#65676B'"
>
<el-dropdown-item
@
click
.
stop=
"CollectHandler(item)"
>
<!-- :style="
{color:item.IsCollect?'#FCC525':'#65676B'}" --
>
<span
class=
"row items-center"
>
<el-icon
:color=
"item.IsCollect?'#FCC525':'#65676B'"
><Star
/></el-icon>
<el-icon
:color=
"item.IsCollect?'#FCC525':'#65676B'"
size=
"14"
><Star
/></el-icon>
<span>
{{
item
.
IsCollect
?
'取消收藏'
:
'收藏'
}}
</span>
</span>
</el-dropdown-item>
...
...
@@ -134,10 +134,6 @@ import CopyFile from "./CopyFile.vue";
type
:
Object
,
required
:{}
},
sort
:{
type
:
Number
,
required
:
0
},
selectedDatas
:{
type
:
Array
,
required
:[]
...
...
@@ -156,7 +152,6 @@ import CopyFile from "./CopyFile.vue";
type
:
number
;
}
>
({
id
:
-
1
,
name
:
""
,
parentId
:
0
,
number
:
1
});
const
datas
=
reactive
({
selectAll
:
false
as
any
,
journeyAds
:
{
RefreshLoading
:
false
}
as
any
,
fileList
:
[]
as
any
,
setFileList
:
[]
as
any
,
...
...
@@ -180,7 +175,6 @@ import CopyFile from "./CopyFile.vue";
const
isCopyTo
=
ref
(
false
);
const
isTreeFile
=
ref
(
false
)
const
Navigations
=
ref
([]
as
Array
<
any
>
);
const
showHistory
=
ref
(
true
);
const
searchData
=
ref
({}
as
any
);
searchData
.
value
=
inject
(
injectKeyTemplate
);
const
deleteLoading
=
ref
<
any
>
(
null
);
...
...
@@ -199,6 +193,8 @@ import CopyFile from "./CopyFile.vue";
text
:
"正在处理"
,
});
let
dataRes
=
await
FolderService
.
SetFileCollect
(
queryMsg
);
deleteLoading
.
value
.
close
();
deleteLoading
.
value
=
null
;
if
(
dataRes
.
data
.
resultCode
==
1
)
{
ElMessage
({
showClose
:
true
,
...
...
@@ -213,8 +209,6 @@ import CopyFile from "./CopyFile.vue";
type
:
"warning"
,
});
}
deleteLoading
.
value
.
close
();
deleteLoading
.
value
=
null
;
}
catch
(
error
)
{}
}
...
...
@@ -438,9 +432,6 @@ import CopyFile from "./CopyFile.vue";
ParentFileId
:
row
.
ParentFileId
}
);
datas
.
selectAll
=
false
props
.
selectedDatas
=
[]
isIndeterminate
.
value
=
false
emit
(
'refreshHandler'
,
queryObj
.
value
);
}
else
{
folderObj
.
value
.
id
=
row
.
FileId
;
...
...
@@ -488,22 +479,14 @@ import CopyFile from "./CopyFile.vue";
position
:
relative
;
overflow
:
auto
;
}
.journeyAds-container
th
{
background
:
#fff
;
position
:
sticky
;
top
:
0px
;
z-index
:
2
;
}
.journeyAdsple-table
td
>
div
{
display
:
flex
;
}
.journeyAdsple-table
td
,
.journeyAds-container
th
{
.journeyAdsple-table
td
{
border-bottom
:
1px
solid
#f6f6f6
;
}
.journeyAdsple-table
td
:first-child
,
.journeyAdsple-table
td
:nth-child
(
2
),
.journeyAds-container
th
:first-child
{
.journeyAdsple-table
td
:nth-child
(
2
)
{
border
:
0
;
}
.journeyAdsple-table
td
{
...
...
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