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
5695065b
Commit
5695065b
authored
Jul 15, 2024
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into router
parents
b85c6796
ca2518f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
24 deletions
+30
-24
.env.development
.env.development
+5
-5
text.ts
src/utils/psdParser/text.ts
+2
-2
ElementTemplateData.vue
src/views/Editor/Toolbar/ElementTemplateData.vue
+4
-1
colour.vue
src/views/TemplateCenter/colour.vue
+19
-16
No files found.
.env.development
View file @
5695065b
VUE_APP_API_URL = 'http://192.168.5.46/api/common/post'
#
VUE_APP_API_URL = 'http://192.168.5.46/api/common/post'
VUE_APP_UPLOADURLAPI_URL = 'http://192.168.5.46:8120'
#
VUE_APP_UPLOADURLAPI_URL = 'http://192.168.5.46:8120'
VUE_APP_VIITTOFILE_URL = 'http://192.168.5.46:8130'
VUE_APP_VIITTOFILE_URL = 'http://192.168.5.46:8130'
VUE_APP_NOTIFICATION_URL = 'http://localhost:8081'
VUE_APP_NOTIFICATION_URL = 'http://localhost:8081'
VUE_APP_DOWNLOAD_URL = 'http://192.168.5.46'
VUE_APP_DOWNLOAD_URL = 'http://192.168.5.46'
VUE_APP_SHARE_URL = 'http://127.0.0.1:8080'
VUE_APP_SHARE_URL = 'http://127.0.0.1:8080'
VUE_APP_PDF_URL = 'http://127.0.0.1:5164'
VUE_APP_PDF_URL = 'http://127.0.0.1:5164'
# VUE_APP_API_URL = 'https://reborn.oytour.com/api/common/post'
VUE_APP_API_URL = 'https://reborn.oytour.com/api/common/post'
# VUE_APP_UPLOADURLAPI_URL = 'https://upload.oytour.com'
VUE_APP_UPLOADURLAPI_URL = 'https://upload.oytour.com'
# VUE_APP_SHARE_URL = 'http://vitto.com'
VUE_APP_SHARE_URL = 'http://vitto.com'
\ No newline at end of file
\ No newline at end of file
src/utils/psdParser/text.ts
View file @
5695065b
...
@@ -92,7 +92,7 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
...
@@ -92,7 +92,7 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
let
content
=
''
let
content
=
''
valuesStr
.
forEach
((
x
:
any
,
si
:
number
)
=>
{
valuesStr
.
forEach
((
x
:
any
,
si
:
number
)
=>
{
if
(
x
!=
''
)
if
(
x
!=
''
)
content
+=
`<p style="
${
styleArray
[
si
]}
"><span style="
${
styleArray
[
si
]}
">
${
HtmlUtil
.
htmlEncodeByRegExp
(
x
)}
</span></p>`
content
+=
`<p style="
${
styleArray
[
si
]}
"><span style="
${
styleArray
[
si
]}
">
${
HtmlUtil
.
htmlEncodeByRegExp
(
x
)
.
replaceAll
(
" "
,
" "
)
}
</span></p>`
})
})
const
isVertical
=
item
.
layer
.
adjustments
.
typeTool
.
obj
.
textData
.
Ornt
.
value
!=
'Hrzn'
const
isVertical
=
item
.
layer
.
adjustments
.
typeTool
.
obj
.
textData
.
Ornt
.
value
!=
'Hrzn'
...
@@ -139,7 +139,7 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
...
@@ -139,7 +139,7 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
defaultFontName
:
fontName
&&
fontName
.
length
>
0
?
fontName
[
0
]:
''
,
defaultFontName
:
fontName
&&
fontName
.
length
>
0
?
fontName
[
0
]:
''
,
defaultColor
:
color
,
defaultColor
:
color
,
fill
:
background
,
fill
:
background
,
lineHeight
:
leading
<
1
?
1
:
leading
,
lineHeight
:
leading
<
1
?
1
:
Number
(
leading
.
toFixed
(
1
))
,
wordSpace
:
tracking
,
wordSpace
:
tracking
,
vertical
:
isVertical
,
vertical
:
isVertical
,
contentStr
:
value
,
contentStr
:
value
,
...
...
src/views/Editor/Toolbar/ElementTemplateData.vue
View file @
5695065b
<
template
>
<
template
>
<div
class=
"
q-mt-xs bg-white q-pa-xs
rounded ElementTemplateData"
>
<div
class=
"
bg-white
rounded ElementTemplateData"
>
<div
class=
"column text-mdall"
>
<div
class=
"column text-mdall"
>
<div
class=
"column"
>
<div
class=
"column"
>
<template
v-if=
"CoverImg&&!isCoverImg"
>
<template
v-if=
"CoverImg&&!isCoverImg"
>
...
@@ -501,6 +501,9 @@
...
@@ -501,6 +501,9 @@
})
})
return
return
}
}
let
color
=
datas
.
addColor
.
Name
.
slice
(
0
,
1
)
let
colorList
=
ColorList
.
value
.
filter
(
x
=>
{
return
x
.
Name
.
toLowerCase
().
includes
(
color
.
toLowerCase
())})
if
(
colorList
.
length
>
0
&&!
datas
.
addColor
.
Code
)
datas
.
addColor
.
Code
=
colorList
[
0
].
ID
if
(
datas
.
addColor
.
Content
.
indexOf
(
'#'
)
==-
1
){
if
(
datas
.
addColor
.
Content
.
indexOf
(
'#'
)
==-
1
){
ElMessage
({
ElMessage
({
showClose
:
true
,
showClose
:
true
,
...
...
src/views/TemplateCenter/colour.vue
View file @
5695065b
...
@@ -365,22 +365,25 @@
...
@@ -365,22 +365,25 @@
message
:
'请完善颜色名称'
,
message
:
'请完善颜色名称'
,
type
:
'warning'
,
type
:
'warning'
,
})
})
if
(
!
datas
.
params
.
Content
){
let
color
=
datas
.
params
.
Name
.
slice
(
0
,
1
)
ElMessage
({
let
colorList
=
ColorList
.
value
.
filter
(
x
=>
{
return
x
.
Name
.
toLowerCase
().
includes
(
color
.
toLowerCase
())})
showClose
:
true
,
if
(
colorList
.
length
>
0
&&!
datas
.
params
.
Code
)
datas
.
addColor
.
Code
=
colorList
[
0
].
ID
message
:
'请完善颜色的16进制'
,
if
(
!
datas
.
params
.
Content
){
type
:
'warning'
,
ElMessage
({
})
showClose
:
true
,
return
message
:
'请完善颜色的16进制'
,
}
type
:
'warning'
,
if
(
datas
.
params
.
Content
.
indexOf
(
'#'
)
==-
1
){
})
ElMessage
({
return
showClose
:
true
,
}
message
:
"色号需要在最前面加 # 号"
,
if
(
datas
.
params
.
Content
.
indexOf
(
'#'
)
==-
1
){
type
:
'warning'
,
ElMessage
({
})
showClose
:
true
,
return
message
:
"色号需要在最前面加 # 号"
,
}
type
:
'warning'
,
})
return
}
datas
.
requestLoading
=
true
datas
.
requestLoading
=
true
if
(
datas
.
type
==
2
)
datas
.
params
.
Code
=
''
if
(
datas
.
type
==
2
)
datas
.
params
.
Code
=
''
const
result
=
await
ConfigService
.
SetTemplateConfigData
(
datas
.
params
)
const
result
=
await
ConfigService
.
SetTemplateConfigData
(
datas
.
params
)
...
...
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