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
c7556497
Commit
c7556497
authored
Dec 08, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 系列查询图片
parent
4fed9afb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
13 deletions
+35
-13
App.vue
src/App.vue
+1
-1
UploadPicture.vue
src/views/Editor/CanvasTool/UploadPicture.vue
+34
-12
No files found.
src/App.vue
View file @
c7556497
...
...
@@ -123,6 +123,6 @@ window.addEventListener('unload', () => {
height
:
100%
;
}
.el-overlay
{
z-index
:
99999
!
important
;
}
</
style
>
\ No newline at end of file
src/views/Editor/CanvasTool/UploadPicture.vue
View file @
c7556497
...
...
@@ -6,15 +6,28 @@
</
template
>
<el-tabs
v-model=
"activeName"
class=
"demo-tabs"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"erp资料库"
name=
"1"
>
<div
class=
"q-mb-md"
>
<el-input
v-model=
"datas.queryMsg.Name"
placeholder=
"输入关键字快速查找"
clearable
class=
"input-with-select"
@
keyup
.
enter=
"SearchHandler()"
>
<
template
#
append
>
<el-button
type=
"primary"
@
click=
"SearchHandler"
>
搜索
</el-button>
</
template
>
</el-input>
</div>
<el-row
class=
"q-mb-md"
>
<el-col
:span=
"6"
>
<el-select
v-model=
"datas.queryMsg.Type"
class=
"m-2"
@
change=
"SearchHandler()"
>
<el-option
v-for=
"item in typeLists"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-col>
<el-col
:span=
"18"
>
<el-input
v-model=
"datas.queryMsg.Name"
placeholder=
"输入关键字快速查找"
clearable
class=
"input-with-select q-pl-lg"
@
keyup
.
enter=
"SearchHandler()"
>
<
template
#
append
>
<el-button
type=
"primary"
@
click=
"SearchHandler"
>
搜索
</el-button>
</
template
>
</el-input>
</el-col>
</el-row>
<div
class=
"row UploadPicture-box"
v-loading=
"datas.loading"
>
<div
v-for=
"(item,index) in datas.imgList"
class=
"UploadPicture-list"
>
<div
class=
"UploadPicture-listBox"
>
...
...
@@ -101,6 +114,12 @@ const upload = ref<UploadInstance>()
const
imgType
=
ref
(
0
)
// 1 插入图片 2替换图片
imgType
.
value
=
inject
(
'imgType'
)
const
propsDatas
=
ref
({
src
:
''
})
const
typeLists
=
ref
([
{
label
:
'不限'
,
value
:
0
},
{
label
:
'酒店'
,
value
:
1
},
{
label
:
'餐厅'
,
value
:
2
},
{
label
:
'景点'
,
value
:
3
},
])
const
datas
=
reactive
({
DataSource
:{},
loading
:
false
,
...
...
@@ -116,9 +135,9 @@ const datas = reactive({
}
})
datas
.
DataSource
=
inject
(
injectKeyDataSource
)
if
(
datas
.
DataSource
.
pageType
==
2
)
datas
.
queryMsg
.
Type
=
1
else
if
(
datas
.
DataSource
.
pageType
==
3
)
datas
.
queryMsg
.
Type
=
3
else
if
(
datas
.
DataSource
.
pageType
==
4
)
datas
.
queryMsg
.
Type
=
2
//
if(datas.DataSource.pageType==2) datas.queryMsg.Type = 1
//
else if(datas.DataSource.pageType==3) datas.queryMsg.Type = 3
//
else if(datas.DataSource.pageType==4) datas.queryMsg.Type = 2
const
mainStore
=
useMainStore
()
const
{
createImageElement
}
=
useCreateElement
()
...
...
@@ -261,6 +280,9 @@ const getImgList = async () =>{
getImgList
()
</
script
>
<
style
lang=
"scss"
scoped
>
.col
#tippy-30
{
z-index
:
99999
!
important
;
}
.upload-box
{
display
:
flex
;
justify-content
:
center
;
...
...
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