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
8ba47927
Commit
8ba47927
authored
Aug 02, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复第三方资料选项
parent
c7bf1a0c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
20 deletions
+46
-20
common.css
src/assets/styles/common.css
+1
-1
SpiderResource.vue
src/views/Editor/CanvasTool/SpiderResource.vue
+44
-18
HistoricalVersion.vue
src/views/SellTemplate/components/HistoricalVersion.vue
+1
-1
No files found.
src/assets/styles/common.css
View file @
8ba47927
...
...
@@ -680,7 +680,7 @@ page {
.pointer
{
cursor
:
pointer
;
}
.wrap
{
.
text
wrap
{
white-space
:
wrap
;
}
.md-menu
.el-menu-item
,
...
...
src/views/Editor/CanvasTool/SpiderResource.vue
View file @
8ba47927
...
...
@@ -11,7 +11,7 @@
</div>
</div>
<div
class=
"q-mt-lg row wrap"
style=
"margin-left: -10px;"
v-if=
"loading || (data && data.length>0)"
v-loading=
"loading"
>
<div
class=
"spider-item"
v-for=
"x in data"
@
click=
"
currentPoi=x
"
>
<div
class=
"spider-item"
v-for=
"x in data"
@
click=
"
getImgas(x)
"
>
<img
:src=
"x.PicPath"
v-if=
"x.PicPath"
/>
<div
class=
"subtitle"
:title=
"x.Name"
>
{{ x.Name }}
</div>
<div
class=
"imgcount row items-center"
>
...
...
@@ -38,22 +38,24 @@
<el-button
type=
"primary"
@
click=
"currentPoi=null"
link
><el-icon><ArrowLeft
/></el-icon>
返回
</el-button>
<div
class=
"q-ml-lg text-small"
>
【{{ currentPoi.Name }}】相关图片
</div>
</div>
<div
class=
"q-mt-lg row wrap"
style=
"margin-left: -10px;height: 440px;overflow-y: auto;"
>
<div
class=
"spider-item"
v-for=
"x in currentPoi.ImgArray"
>
<img
:src=
"x"
/>
<div
class=
"img-box"
>
<el-image
style=
"width: 100%; height: 100%"
:src=
"x"
:zoom-rate=
"1.2"
:max-scale=
"7"
:min-scale=
"0.2"
:preview-src-list=
"[x]"
fit=
"cover"
/>
</div>
<div
class=
"imgcount"
style=
"padding:0px;"
>
<el-checkbox
label=
""
:checked=
"chooseUrl==x"
@
click
.
stop=
"changeChooseUrlHandler(x)"
></el-checkbox>
<div
class=
"q-mt-lg"
style=
"margin-left: -10px;height: 440px;overflow-y: auto;"
>
<div
class=
"row wrap"
>
<div
class=
"spider-item"
v-for=
"(x,index) in imagsList"
:key=
"index"
>
<img
:src=
"x.url"
/>
<div
class=
"img-box"
>
<el-image
style=
"width: 100%; height: 100%"
:src=
"x.url"
:zoom-rate=
"1.2"
:max-scale=
"7"
:min-scale=
"0.2"
:preview-src-list=
"[x.url]"
fit=
"cover"
/>
</div>
<div
class=
"imgcount"
style=
"padding:0px;"
>
<el-checkbox
label=
""
v-model=
"x.isCheckbox"
@
click
.
stop=
"changeChooseUrlHandler(x.url,index)"
></el-checkbox>
</div>
</div>
</div>
</div>
...
...
@@ -74,6 +76,7 @@ const keyValue = ref('')
const
loading
=
ref
(
false
)
const
data
=
ref
<
any
[]
>
()
const
currentPoi
=
ref
<
any
>
()
const
imagsList
=
ref
([]
as
Array
<
any
>
)
const
chooseUrl
=
ref
(
''
)
const
queryParameters
=
ref
<
{
pageIndex
:
number
,
...
...
@@ -109,6 +112,7 @@ const checkPoiCoverImg = (array:any[])=>{
x
.
ImgArray
=
x
.
ImgArray
??
[]
x
.
ImgArray
.
splice
(
0
,
0
,
x
.
PicPath
)
}
})
return
array
}
...
...
@@ -121,9 +125,31 @@ const changeKeyValueHandler = ()=>{
}
}
const
changeChooseUrlHandler
=
(
url
:
string
)
=>
{
const
getImgas
=
(
x
:
any
)
=>
{
imagsList
.
value
=
[]
currentPoi
.
value
=
x
for
(
let
i
=
0
;
i
<
x
.
ImgArray
.
length
;
i
++
){
let
obj
=
{
isCheckbox
:
false
,
url
:
x
.
ImgArray
[
i
]
}
imagsList
.
value
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
obj
)))
}
}
const
changeChooseUrlHandler
=
(
url
:
string
,
index
:
number
)
=>
{
for
(
let
i
=
0
;
i
<
imagsList
.
value
.
length
;
i
++
){
if
(
index
==
i
&&
imagsList
.
value
[
i
].
isCheckbox
){
}
else
{
imagsList
.
value
[
i
].
isCheckbox
=
false
}
}
chooseUrl
.
value
=
chooseUrl
.
value
==
url
?
''
:
url
emit
(
'change'
,
chooseUrl
.
value
)
}
SearchHandler
()
...
...
src/views/SellTemplate/components/HistoricalVersion.vue
View file @
8ba47927
...
...
@@ -39,7 +39,7 @@
<span
class=
"text-bold"
>
{{item.UpdateTime.substr(0,11)}}
</span>
<span
class=
"q-pl-md q-pt-sm"
>
{{item.UpdateTime.substr(11,19)}}
</span>
</td>
<td
class=
"HistoricalVersion-title text-light wrap text-5B5D62"
>
<td
class=
"HistoricalVersion-title text-light
text
wrap text-5B5D62"
>
<span>
{{item.CreateByName}}
</span>
</td>
<td
class=
"text-light text-5B5D62"
><span>
{{item.FileSize}}KB
</span></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