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
a438ec19
Commit
a438ec19
authored
Mar 01, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化字号 查询 编辑
parent
6f0439ab
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
19 deletions
+34
-19
UploadPicture.vue
src/views/Editor/CanvasTool/UploadPicture.vue
+2
-7
TextStylePanel.vue
...views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue
+12
-6
BrowsingHistory.vue
src/views/SellTemplate/BrowsingHistory.vue
+3
-0
RecycleBin.vue
src/views/SellTemplate/RecycleBin.vue
+3
-0
Share.vue
src/views/SellTemplate/Share.vue
+1
-0
StarTarget.vue
src/views/SellTemplate/StarTarget.vue
+3
-0
SearchDocument.vue
src/views/SellTemplate/components/SearchDocument.vue
+5
-1
journeyAdsList.vue
src/views/SellTemplate/components/journeyAdsList.vue
+2
-5
journeyAds.vue
src/views/SellTemplate/journeyAds.vue
+3
-0
No files found.
src/views/Editor/CanvasTool/UploadPicture.vue
View file @
a438ec19
...
@@ -220,13 +220,6 @@ const setImgs = async () => {
...
@@ -220,13 +220,6 @@ const setImgs = async () => {
close
()
close
()
}
}
if
(
imgType
.
value
==
2
){
if
(
imgType
.
value
==
2
){
let
width
=
handleImageElement
.
value
.
width
let
height
=
handleImageElement
.
value
.
height
let
maxWidth
=
VIEWPORT_SIZE
,
maxHeight
=
VIEWPORT_VER_SIZE
.
Value
,
viewportRatio
=
slidesStore
.
viewportRatio
if
(
viewportRatio
<
1
){
maxWidth
=
VIEWPORT_VER_SIZE
.
Value
maxHeight
=
VIEWPORT_SIZE
.
Value
}
if
(
activeName
.
value
==
'1'
||
activeName
.
value
==
'3'
||
activeName
.
value
==
'4'
){
if
(
activeName
.
value
==
'1'
||
activeName
.
value
==
'3'
||
activeName
.
value
==
'4'
){
let
tempSize
=
downloadInfo
let
tempSize
=
downloadInfo
if
(
activeName
.
value
!=
'4'
)
tempSize
=
await
FileService
.
getImageSizeWithoutDownloading
(
propsDatas
.
value
.
src
)
if
(
activeName
.
value
!=
'4'
)
tempSize
=
await
FileService
.
getImageSizeWithoutDownloading
(
propsDatas
.
value
.
src
)
...
@@ -313,6 +306,8 @@ const handleClick = (tab: TabsPaneContext, event: Event) => {
...
@@ -313,6 +306,8 @@ const handleClick = (tab: TabsPaneContext, event: Event) => {
imageFile
.
value
=
{}
imageFile
.
value
=
{}
}
else
if
(
activeName
.
value
!=
'3'
){
}
else
if
(
activeName
.
value
!=
'3'
){
imgUrl
.
value
=
''
imgUrl
.
value
=
''
}
else
if
(
activeName
.
value
!=
'4'
){
spiderImgUrl
.
value
=
''
}
}
}
}
...
...
src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue
View file @
a438ec19
...
@@ -36,10 +36,10 @@
...
@@ -36,10 +36,10 @@
</span>
</span>
<span
class=
"selectTextInput"
>
<span
class=
"selectTextInput"
>
<el-autocomplete
<el-autocomplete
v-model=
"
richTextAttrs.
fontsize"
v-model=
"fontsize"
:fetch-suggestions=
"(queryString: string, cb: any)=>querySearchFont(queryString,cb,'fontsize')"
:fetch-suggestions=
"(queryString: string, cb: any)=>querySearchFont(queryString,cb,'fontsize')"
class=
"inline-input w-50"
class=
"inline-input w-50"
placeholder=
"
例:14px
"
placeholder=
"
字号
"
@
select=
"handleSelect('fontsize')"
@
select=
"handleSelect('fontsize')"
@
blur=
"handleSelect('fontsize')"
@
blur=
"handleSelect('fontsize')"
@
keyup
.
enter=
"handleSelect('fontsize')"
>
@
keyup
.
enter=
"handleSelect('fontsize')"
>
...
@@ -532,6 +532,7 @@ const lineHeight = ref<number>()
...
@@ -532,6 +532,7 @@ const lineHeight = ref<number>()
const
wordSpace
=
ref
<
number
>
()
const
wordSpace
=
ref
<
number
>
()
const
paragraphSpace
=
ref
<
number
>
()
const
paragraphSpace
=
ref
<
number
>
()
const
fontsize
=
ref
<
string
>
(
'20'
)
const
fontSizeOptions
=
[
const
fontSizeOptions
=
[
'12px'
,
'14px'
,
'16px'
,
'18px'
,
'20px'
,
'22px'
,
'24px'
,
'28px'
,
'32px'
,
'12px'
,
'14px'
,
'16px'
,
'18px'
,
'20px'
,
'22px'
,
'24px'
,
'28px'
,
'32px'
,
'36px'
,
'40px'
,
'44px'
,
'48px'
,
'54px'
,
'60px'
,
'66px'
,
'72px'
,
'76px'
,
'36px'
,
'40px'
,
'44px'
,
'48px'
,
'54px'
,
'60px'
,
'66px'
,
'72px'
,
'76px'
,
...
@@ -539,9 +540,10 @@ const fontSizeOptions = [
...
@@ -539,9 +540,10 @@ const fontSizeOptions = [
]
]
const
fontSizes
=
ref
<
Array
>
([])
const
fontSizes
=
ref
<
Array
>
([])
for
(
let
i
=
0
;
i
<
fontSizeOptions
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
fontSizeOptions
.
length
;
i
++
){
let
value
=
fontSizeOptions
[
i
].
split
(
'px'
)
let
obj
=
{
let
obj
=
{
label
:
fontSizeOptions
[
i
],
label
:
value
[
0
],
value
:
fontSizeOptions
[
i
],
value
:
value
[
0
],
}
}
fontSizes
.
value
.
push
(
obj
)
fontSizes
.
value
.
push
(
obj
)
}
}
...
@@ -581,7 +583,7 @@ interface RestaurantItem {
...
@@ -581,7 +583,7 @@ interface RestaurantItem {
const
handleSelect
=
(
font
:
string
)
=>
{
const
handleSelect
=
(
font
:
string
)
=>
{
let
value
let
value
if
(
font
==
'fontsize'
)
{
if
(
font
==
'fontsize'
)
{
value
=
richTextAttrs
.
value
.
fontsize
value
=
fontsize
.
value
+
'px'
emitRichTextCommand
(
'fontsize'
,
value
as
string
)
emitRichTextCommand
(
'fontsize'
,
value
as
string
)
}
else
if
(
font
==
'lineHeight'
){
}
else
if
(
font
==
'lineHeight'
){
value
=
lineHeight
.
value
value
=
lineHeight
.
value
...
@@ -659,7 +661,11 @@ const emitBatchRichTextCommand = (action: RichTextAction[]) => {
...
@@ -659,7 +661,11 @@ const emitBatchRichTextCommand = (action: RichTextAction[]) => {
const
link
=
ref
(
''
)
const
link
=
ref
(
''
)
const
linkPopoverVisible
=
ref
(
false
)
const
linkPopoverVisible
=
ref
(
false
)
watch
(
richTextAttrs
,
()
=>
linkPopoverVisible
.
value
=
false
)
watch
(
richTextAttrs
,
()
=>
{
linkPopoverVisible
.
value
=
false
let
value
=
richTextAttrs
.
value
.
fontsize
.
split
(
'px'
)
fontsize
.
value
=
value
[
0
]
})
const
openLinkPopover
=
()
=>
{
const
openLinkPopover
=
()
=>
{
link
.
value
=
richTextAttrs
.
value
.
link
link
.
value
=
richTextAttrs
.
value
.
link
...
...
src/views/SellTemplate/BrowsingHistory.vue
View file @
a438ec19
...
@@ -179,6 +179,9 @@
...
@@ -179,6 +179,9 @@
loading
.
value
=
false
;
loading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
}
catch
(
error
)
{
}
catch
(
error
)
{
ElMessage
.
error
({
message
:
'数据加载异常,请刷新页面'
})
loading
.
value
=
false
;
loading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
}
}
...
...
src/views/SellTemplate/RecycleBin.vue
View file @
a438ec19
...
@@ -172,6 +172,9 @@
...
@@ -172,6 +172,9 @@
loading
.
value
=
false
;
loading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
}
catch
(
error
)
{
}
catch
(
error
)
{
ElMessage
.
error
({
message
:
'数据加载异常,请刷新页面'
})
loading
.
value
=
false
;
loading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
}
}
...
...
src/views/SellTemplate/Share.vue
View file @
a438ec19
...
@@ -178,6 +178,7 @@ const editorFileHandler = (item:any)=>{
...
@@ -178,6 +178,7 @@ const editorFileHandler = (item:any)=>{
searchData
.
value
.
sellId
=
item
.
FileId
;
searchData
.
value
.
sellId
=
item
.
FileId
;
searchData
.
value
.
sellTempId
=
item
.
TempId
;
searchData
.
value
.
sellTempId
=
item
.
TempId
;
searchData
.
value
.
TemplateType
=
item
.
FileType
;
searchData
.
value
.
TemplateType
=
item
.
FileType
;
searchData
.
value
.
ParentFileId
=
0
if
(
item
.
IsDownload
==
0
)
searchData
.
value
.
noExportPermission
=
true
if
(
item
.
IsDownload
==
0
)
searchData
.
value
.
noExportPermission
=
true
else
searchData
.
value
.
noExportPermission
=
false
else
searchData
.
value
.
noExportPermission
=
false
if
(
item
.
IsView
==
0
)
searchData
.
value
.
noCopyPermission
=
true
if
(
item
.
IsView
==
0
)
searchData
.
value
.
noCopyPermission
=
true
...
...
src/views/SellTemplate/StarTarget.vue
View file @
a438ec19
...
@@ -240,6 +240,9 @@
...
@@ -240,6 +240,9 @@
loading
.
value
=
false
;
loading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
}
catch
(
error
)
{
}
catch
(
error
)
{
ElMessage
.
error
({
message
:
'数据加载异常,请刷新页面'
})
loading
.
value
=
false
;
loading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
}
}
...
...
src/views/SellTemplate/components/SearchDocument.vue
View file @
a438ec19
...
@@ -72,6 +72,8 @@ const lastKeyword = ref('')
...
@@ -72,6 +72,8 @@ const lastKeyword = ref('')
const
searchData
=
ref
({
}
as
any
);
const
searchData
=
ref
({
}
as
any
);
searchData
.
value
=
inject
(
injectKeyTemplate
);
searchData
.
value
=
inject
(
injectKeyTemplate
);
const
showRightContent
=
ref
(
0
)
const
showRightContent
=
ref
(
0
)
const
loggedder
=
ref
(
''
)
loggedder
.
value
=
userInfo
.
value
.
emName
const
searchHandler
=
()
=>
{
const
searchHandler
=
()
=>
{
if
(
loading
.
value
)
return
if
(
loading
.
value
)
return
...
@@ -121,7 +123,9 @@ const editorFileHandler = (item:any)=>{
...
@@ -121,7 +123,9 @@ const editorFileHandler = (item:any)=>{
searchData
.
value
.
sellId
=
item
.
FileId
;
searchData
.
value
.
sellId
=
item
.
FileId
;
searchData
.
value
.
sellTempId
=
item
.
TempId
;
searchData
.
value
.
sellTempId
=
item
.
TempId
;
searchData
.
value
.
TemplateType
=
item
.
FileType
;
searchData
.
value
.
TemplateType
=
item
.
FileType
;
searchData
.
value
.
ParentFileId
=
item
.
FolderId
if
(
loggedder
.
value
!=
row
.
CreateName
){
searchData
.
value
.
ParentFileId
=
0
}
else
searchData
.
value
.
ParentFileId
=
item
.
FolderId
SalesEditorStore
.
setSalesEditor
(
2
);
SalesEditorStore
.
setSalesEditor
(
2
);
marketStore
.
setMarket
(
false
);
marketStore
.
setMarket
(
false
);
}
}
...
...
src/views/SellTemplate/components/journeyAdsList.vue
View file @
a438ec19
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<span
class=
"row items-center"
>
<span
class=
"row items-center"
>
<span
class=
"q-pr-sm q-pt-xs pointer"
v-if=
"scope.row.FileType&&datas.loggedder==scope.row.CreateName&¤tMenu!=-1"
>
<span
class=
"q-pr-sm q-pt-xs pointer"
v-if=
"scope.row.FileType&&datas.loggedder==scope.row.CreateName&¤tMenu!=-1"
>
<el-tooltip
effect=
"dark"
>
<el-tooltip
effect=
"dark"
v-if=
"scope.row.UpdateStatus"
>
<template
#
content
>
<template
#
content
>
<span
v-if=
"scope.row.UpdateStatus==1||scope.row.UpdateStatus==2"
>
<span
v-if=
"scope.row.UpdateStatus==1||scope.row.UpdateStatus==2"
>
{{
scope
.
row
.
UpdateStatus
==
1
?
'同步中'
:
scope
.
row
.
UpdateStatus
==
2
?
'同步成功'
:
'同步失败'
}}
{{
scope
.
row
.
UpdateStatus
==
1
?
'同步中'
:
scope
.
row
.
UpdateStatus
==
2
?
'同步成功'
:
'同步失败'
}}
...
@@ -246,7 +246,6 @@ import CopyFile from "./CopyFile.vue";
...
@@ -246,7 +246,6 @@ import CopyFile from "./CopyFile.vue";
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708337830000_43.png"
,
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708337830000_43.png"
,
adsImg
:
adsImg
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708250377000_777.png"
,
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708250377000_777.png"
,
folderImg
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708250377000_777.png"
,
});
});
const
SalesEditorStore
=
useSellTemplateStore
();
const
SalesEditorStore
=
useSellTemplateStore
();
const
marketStore
=
useScreenStore
();
const
marketStore
=
useScreenStore
();
...
@@ -623,9 +622,7 @@ import CopyFile from "./CopyFile.vue";
...
@@ -623,9 +622,7 @@ import CopyFile from "./CopyFile.vue";
else
searchData
.
value
.
noExportPermission
=
false
else
searchData
.
value
.
noExportPermission
=
false
if
(
row
.
IsView
==
0
)
searchData
.
value
.
noCopyPermission
=
true
if
(
row
.
IsView
==
0
)
searchData
.
value
.
noCopyPermission
=
true
else
searchData
.
value
.
noCopyPermission
=
false
else
searchData
.
value
.
noCopyPermission
=
false
}
else
{
}
else
searchData
.
value
.
ParentFileId
=
row
.
ParentFileId
;
searchData
.
value
.
ParentFileId
=
row
.
ParentFileId
;
}
SalesEditorStore
.
setSalesEditor
(
2
);
SalesEditorStore
.
setSalesEditor
(
2
);
marketStore
.
setMarket
(
false
);
marketStore
.
setMarket
(
false
);
}
else
{
}
else
{
...
...
src/views/SellTemplate/journeyAds.vue
View file @
a438ec19
...
@@ -259,6 +259,9 @@ const querySearchHandler = async () => {
...
@@ -259,6 +259,9 @@ const querySearchHandler = async () => {
loading
.
value
=
false
;
loading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
}
catch
(
error
)
{
}
catch
(
error
)
{
ElMessage
.
error
({
message
:
'数据加载异常,请刷新页面'
})
loading
.
value
=
false
;
loading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
RefreshLoading
.
value
=
false
;
}
}
...
...
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