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
3a65d394
Commit
3a65d394
authored
Feb 26, 2024
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.2.0' of
http://gitlab.oytour.com/viitto/pptist
into 1.2.0
parents
56571cf2
9b1785dc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
497 additions
and
66 deletions
+497
-66
App.vue
src/App.vue
+5
-4
ConfigService.ts
src/services/ConfigService.ts
+7
-21
FolderService.ts
src/services/FolderService.ts
+15
-0
Workspace.vue
src/views/SellTemplate/Workspace.vue
+2
-0
HistoricalVersion.vue
src/views/SellTemplate/components/HistoricalVersion.vue
+1
-1
StarTarget.vue
src/views/SellTemplate/components/StarTarget.vue
+455
-0
TreeFile.vue
src/views/SellTemplate/components/TreeFile.vue
+0
-8
journeyAdsList.vue
src/views/SellTemplate/components/journeyAdsList.vue
+12
-32
No files found.
src/App.vue
View file @
3a65d394
...
@@ -93,7 +93,7 @@ const userLoginHandler = async ()=>{
...
@@ -93,7 +93,7 @@ const userLoginHandler = async ()=>{
if
(
param
.
ViewSlideshow
)
{
if
(
param
.
ViewSlideshow
)
{
searchData
.
value
.
ViewSlideshow
=
param
.
ViewSlideshow
searchData
.
value
.
ViewSlideshow
=
param
.
ViewSlideshow
try
{
try
{
await
sellHistoryTripTemplate
(
param
.
sellId
)
await
sellHistoryTripTemplate
(
param
.
sellId
,
param
.
LogId
)
}
catch
(
error
)
{}
}
catch
(
error
)
{}
}
}
if
(
!
ConfigId
&&!
model
&&
(
param
.
SalesTripId
&&
param
.
SalesTripId
==
''
))
ElMessageBox
.
confirm
(
if
(
!
ConfigId
&&!
model
&&
(
param
.
SalesTripId
&&
param
.
SalesTripId
==
''
))
ElMessageBox
.
confirm
(
...
@@ -115,16 +115,17 @@ onMounted(async () => {
...
@@ -115,16 +115,17 @@ onMounted(async () => {
})
})
// 销售历史版本模版数据
// 销售历史版本模版数据
const
sellHistoryTripTemplate
=
async
(
sellId
:
any
)
=>
{
const
sellHistoryTripTemplate
=
async
(
sellId
:
any
,
LogId
:
any
)
=>
{
const
loadingObj
=
ElLoading
.
service
({
const
loadingObj
=
ElLoading
.
service
({
text
:
'正在渲染数据'
,
text
:
'正在渲染数据'
,
lock
:
true
lock
:
true
})
})
try
{
try
{
let
queryMsg
=
{
let
queryMsg
=
{
Id
:
sellId
LogId
:
LogId
,
FileId
:
sellId
,
}
}
let
dataRes
=
await
ConfigService
.
sellGetTemplateDetails
(
queryMsg
);
let
dataRes
=
await
ConfigService
.
GetHistoryInfo
(
queryMsg
);
if
(
dataRes
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
if
(
dataRes
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
loadingObj
.
close
()
loadingObj
.
close
()
loading
.
value
=
false
loading
.
value
=
false
...
...
src/services/ConfigService.ts
View file @
3a65d394
...
@@ -5,27 +5,6 @@ import Api,{ HttpResponse, Result } from './../utils/request';
...
@@ -5,27 +5,6 @@ import Api,{ HttpResponse, Result } from './../utils/request';
*/
*/
class
ConfigService
{
class
ConfigService
{
/**
* 我的回收站
*/
static
async
GetTripOtherRecycleBinPage
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_GetTripOtherRecycleBinPage"
,
params
)
}
/**
* 共享给我的文件
*/
static
async
GetShareMyFile
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_GetShareMyFile"
,
params
)
}
/**
* 获取我的收藏
*/
static
async
GetTripCollectListPage
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_GetTripCollectListPage"
,
params
)
}
/**
/**
* 获取行程广告最近版本
* 获取行程广告最近版本
*/
*/
...
@@ -40,6 +19,13 @@ class ConfigService{
...
@@ -40,6 +19,13 @@ class ConfigService{
return
Api
.
Post
(
"triptemplate_SetTripBrowse"
,
params
)
return
Api
.
Post
(
"triptemplate_SetTripBrowse"
,
params
)
}
}
/**
* 历史版本详情
*/
static
async
GetHistoryInfo
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_GetHistoryInfo"
,
params
)
}
/**
/**
* 历史版本另存、替换
* 历史版本另存、替换
*/
*/
...
...
src/services/FolderService.ts
View file @
3a65d394
...
@@ -2,6 +2,21 @@ import Api,{ HttpResponse, Result } from './../utils/request';
...
@@ -2,6 +2,21 @@ import Api,{ HttpResponse, Result } from './../utils/request';
class
FolderService
{
class
FolderService
{
/**
* 我的回收站
*/
static
async
GetTripOtherRecycleBinPage
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_GetTripOtherRecycleBinPage"
,
params
)
}
/**
* 获取我的收藏
*/
static
async
GetTripCollectListPage
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_GetTripCollectListPage"
,
params
)
}
/**
/**
* 复制文件夹、文件到指定目录
* 复制文件夹、文件到指定目录
*/
*/
...
...
src/views/SellTemplate/Workspace.vue
View file @
3a65d394
...
@@ -77,6 +77,7 @@
...
@@ -77,6 +77,7 @@
</div>
</div>
<div
class=
"col"
>
<div
class=
"col"
>
<BrowsingHistory
:current-menu=
"currentMenu"
v-if=
"currentMenu==0"
></BrowsingHistory>
<BrowsingHistory
:current-menu=
"currentMenu"
v-if=
"currentMenu==0"
></BrowsingHistory>
<StarTarget
:current-menu=
"currentMenu"
v-if=
"currentMenu==1"
></StarTarget>
<journeyAds
:position=
"position"
:current-menu=
"currentMenu"
v-if=
"currentMenu==3||currentMenu==4"
@
destroy-position=
"()=>position=null"
></journeyAds>
<journeyAds
:position=
"position"
:current-menu=
"currentMenu"
v-if=
"currentMenu==3||currentMenu==4"
@
destroy-position=
"()=>position=null"
></journeyAds>
<ShareList
:position=
"position"
v-if=
"currentMenu==2"
@
destroy-position=
"()=>position=null"
></ShareList>
<ShareList
:position=
"position"
v-if=
"currentMenu==2"
@
destroy-position=
"()=>position=null"
></ShareList>
</div>
</div>
...
@@ -90,6 +91,7 @@ import { storeToRefs } from 'pinia';
...
@@ -90,6 +91,7 @@ import { storeToRefs } from 'pinia';
import
{
ref
,
reactive
,
provide
,
inject
}
from
'vue'
;
import
{
ref
,
reactive
,
provide
,
inject
}
from
'vue'
;
import
SearchDocument
from
'./components/SearchDocument.vue'
import
SearchDocument
from
'./components/SearchDocument.vue'
import
BrowsingHistory
from
'./components/BrowsingHistory.vue'
import
BrowsingHistory
from
'./components/BrowsingHistory.vue'
import
StarTarget
from
'./components/StarTarget.vue'
import
ShareList
from
'./Share.vue'
;
import
ShareList
from
'./Share.vue'
;
import
journeyAds
from
'./components/journeyAds.vue'
import
journeyAds
from
'./components/journeyAds.vue'
import
{
Plus
,
ArrowDown
,
Clock
,
Star
,
Share
,
Picture
,
Management
,
Delete
,
RefreshRight
,
Refresh
,
Loading
}
from
'@element-plus/icons-vue'
;
import
{
Plus
,
ArrowDown
,
Clock
,
Star
,
Share
,
Picture
,
Management
,
Delete
,
RefreshRight
,
Refresh
,
Loading
}
from
'@element-plus/icons-vue'
;
...
...
src/views/SellTemplate/components/HistoricalVersion.vue
View file @
3a65d394
...
@@ -144,7 +144,7 @@ import CopyFile from "./CopyFile.vue";
...
@@ -144,7 +144,7 @@ import CopyFile from "./CopyFile.vue";
isCopyTo
.
value
=
true
isCopyTo
.
value
=
true
}
else
{
}
else
{
let
param
=
query
()
let
param
=
query
()
const
url
=
`
${
process
.
env
.
VUE_APP_SHARE_URL
}
/?uid=
${
param
.
uid
}
&sellId=
${
row
.
FileId
}
&ViewSlideshow=1`
const
url
=
`
${
process
.
env
.
VUE_APP_SHARE_URL
}
/?uid=
${
param
.
uid
}
&sellId=
${
row
.
FileId
}
&
LogId=
${
row
.
LogId
}
&
ViewSlideshow=1`
window
.
open
(
url
);
window
.
open
(
url
);
}
}
}
}
...
...
src/views/SellTemplate/components/StarTarget.vue
0 → 100644
View file @
3a65d394
This diff is collapsed.
Click to expand it.
src/views/SellTemplate/components/TreeFile.vue
View file @
3a65d394
...
@@ -140,13 +140,6 @@ import FolderService from "@/services/FolderService";
...
@@ -140,13 +140,6 @@ import FolderService from "@/services/FolderService";
// 树目前的选中状态对象,包含 checkedNodes、checkedKeys、halfCheckedNodes、halfCheckedKeys 四个属性
// 树目前的选中状态对象,包含 checkedNodes、checkedKeys、halfCheckedNodes、halfCheckedKeys 四个属性
if
(
checkObj
.
checkedKeys
.
length
!=
0
)
{
if
(
checkObj
.
checkedKeys
.
length
!=
0
)
{
datas
.
FolderObj
=
data
datas
.
FolderObj
=
data
// if (checkObj.checkedKeys.length == 2) {
// datas.FolderId = data.FileId
// treeRef.value.setCheckedKeys([data.FileId]);
// }else{
// datas.FolderId = data.FileId
// treeRef.value.setCheckedKeys([data.FileId]);
// }
}
}
}
}
const
filterNode
=
(
value
:
string
,
data
:
Tree
)
=>
{
const
filterNode
=
(
value
:
string
,
data
:
Tree
)
=>
{
...
@@ -226,7 +219,6 @@ import FolderService from "@/services/FolderService";
...
@@ -226,7 +219,6 @@ import FolderService from "@/services/FolderService";
const
recursive
=
(
arrs
:
Array
,
disabled
:
any
)
=>
{
const
recursive
=
(
arrs
:
Array
,
disabled
:
any
)
=>
{
console
.
log
(
props
.
setFileList
[
0
],
'====='
)
let
isDisableds
:
Boolean
let
isDisableds
:
Boolean
if
(
arrs
.
length
>
0
)
arrs
.
forEach
(
x
=>
{
if
(
arrs
.
length
>
0
)
arrs
.
forEach
(
x
=>
{
isDisableds
=
(
props
.
selectedDatas
.
indexOf
(
x
.
FileId
)
!=-
1
&&!
props
.
details
)
||
props
.
details
.
FileId
==
x
.
FileId
||
disabled
?
true
:
false
isDisableds
=
(
props
.
selectedDatas
.
indexOf
(
x
.
FileId
)
!=-
1
&&!
props
.
details
)
||
props
.
details
.
FileId
==
x
.
FileId
||
disabled
?
true
:
false
...
...
src/views/SellTemplate/components/journeyAdsList.vue
View file @
3a65d394
...
@@ -178,6 +178,10 @@ import CopyFile from "./CopyFile.vue";
...
@@ -178,6 +178,10 @@ import CopyFile from "./CopyFile.vue";
type
:
Object
,
type
:
Object
,
required
:{}
required
:{}
},
},
setFileList
:{
type
:
Array
,
required
:[]
},
selectedDatas
:{
selectedDatas
:{
type
:
Array
,
type
:
Array
,
required
:[]
required
:[]
...
@@ -279,25 +283,10 @@ import CopyFile from "./CopyFile.vue";
...
@@ -279,25 +283,10 @@ import CopyFile from "./CopyFile.vue";
}
}
// 移动到文件夹
// 移动到文件夹
const
MoveFile
=
(
item
:
any
)
=>
{
const
MoveFile
=
(
item
:
any
)
=>
{
if
(
item
)
journeyAdsDetails
.
value
=
item
journeyAdsDetails
.
value
=
item
else
{
datas
.
setFileList
=
[]
for
(
let
i
=
0
;
i
<
dataList
.
value
.
length
;
i
++
){
for
(
let
j
=
0
;
j
<
datas
.
selectedDatas
.
length
;
j
++
){
if
(
dataList
.
value
[
i
].
FileId
==
datas
.
selectedDatas
[
j
]){
datas
.
setFileList
.
push
(
{
FileId
:
dataList
.
value
[
i
].
FileId
,
FileType
:
dataList
.
value
[
i
].
FileType
,
ParentFileId
:
dataList
.
value
[
i
].
ParentFileId
}
)
}
}
}
}
isTreeFile
.
value
=
true
isTreeFile
.
value
=
true
}
}
// 历史版本
// 历史版本
const
history
=
(
row
:
any
)
=>
{
const
history
=
(
row
:
any
)
=>
{
journeyAdsDetails
.
value
=
row
;
journeyAdsDetails
.
value
=
row
;
...
@@ -413,12 +402,13 @@ import CopyFile from "./CopyFile.vue";
...
@@ -413,12 +402,13 @@ import CopyFile from "./CopyFile.vue";
emit
(
'UpdateData'
,
obj
)
emit
(
'UpdateData'
,
obj
)
};
};
const
getSelectBox
=
()
=>
{
const
getSelectBox
=
()
=>
{
isIndeterminate
.
value
=
false
;
let
checkedCount
=
datas
.
selectedDatas
.
length
;
let
checkedCount
=
datas
.
selectedDatas
.
length
;
let
datasList
=
dataList
.
value
.
length
;
let
datasList
=
dataList
.
value
.
length
;
if
(
checkedCount
>
0
&&
datasList
==
checkedCount
)
{
if
(
checkedCount
>
0
&&
datasList
==
checkedCount
)
{
datas
.
selectAll
=
true
datas
.
selectAll
=
true
};
};
if
(
checkedCount
>
0
&&
(
datasList
>
checkedCount
||
datasList
<
checkedCount
))
{
if
(
checkedCount
>
0
&&
(
datasList
>
checkedCount
||
datasList
<
checkedCount
))
{
datas
.
selectAll
=
""
datas
.
selectAll
=
""
isIndeterminate
.
value
=
true
;
isIndeterminate
.
value
=
true
;
}
}
...
@@ -574,27 +564,17 @@ import CopyFile from "./CopyFile.vue";
...
@@ -574,27 +564,17 @@ import CopyFile from "./CopyFile.vue";
shareFileType
.
value
=
item
.
FileType
shareFileType
.
value
=
item
.
FileType
shareId
.
value
=
item
.
FileId
shareId
.
value
=
item
.
FileId
}
}
watch
(()
=>
props
.
list
,
(
n
,
o
)
=>
{
watch
(()
=>
props
.
list
,
(
n
,
o
)
=>
{
if
(
props
.
list
)
{
if
(
props
.
list
)
{
nextTick
(()
=>
{
nextTick
(()
=>
{
dataList
.
value
=
props
.
list
dataList
.
value
=
props
.
list
for
(
let
index
=
0
;
index
<
dataList
.
value
.
length
;
index
++
)
{
datas
.
selectAll
=
false
const
element
=
dataList
.
value
[
index
];
isIndeterminate
.
value
=
false
if
(
datas
.
selectAll
)
{
datas
.
selectedDatas
=
[]
element
.
singleChoice
=
true
;
datas
.
selectedDatas
.
push
(
element
.
FileId
);
}
else
if
(
datas
.
selectedDatas
.
length
>
0
&&
datas
.
selectedDatas
.
indexOf
(
element
.
FileId
)
!=
-
1
)
element
.
singleChoice
=
true
;
}
})
})
}
}
})
})
watch
(()
=>
props
.
selectedDatas
,
(
n
,
o
)
=>
{
datas
.
selectedDatas
=
props
.
selectedDatas
getSelectBox
()
})
watch
(()
=>
props
.
navigations
,
(
n
,
o
)
=>
{
watch
(()
=>
props
.
navigations
,
(
n
,
o
)
=>
{
Navigations
.
value
=
n
Navigations
.
value
=
n
...
...
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