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
ddc65ce2
Commit
ddc65ce2
authored
Aug 14, 2024
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索 erp 第三方
parent
1420e96c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
SourceDetail.vue
src/views/components/source/SourceDetail.vue
+9
-0
SourceList.vue
src/views/components/source/SourceList.vue
+7
-0
No files found.
src/views/components/source/SourceDetail.vue
View file @
ddc65ce2
...
@@ -92,6 +92,15 @@ const props = defineProps({
...
@@ -92,6 +92,15 @@ const props = defineProps({
})
})
const
data
=
ref
<
any
>
(
props
.
itemInfo
)
const
data
=
ref
<
any
>
(
props
.
itemInfo
)
if
(
data
.
value
.
ImgArray
){
for
(
let
i
=
0
;
i
<
data
.
value
.
ImgArray
.
length
;
i
++
)
{
const
x
=
data
.
value
.
ImgArray
[
i
];
if
(
x
.
includes
(
'?'
))
{
data
.
value
.
ImgArray
[
i
]
=
x
.
split
(
'?'
)[
0
]
}
}
}
console
.
log
(
data
.
value
.
ImgArray
)
const
platforms
=
ref
<
{
id
:
number
,
name
:
string
}[]
>
([
const
platforms
=
ref
<
{
id
:
number
,
name
:
string
}[]
>
([
{
id
:
2
,
name
:
"ERP"
},
{
id
:
2
,
name
:
"ERP"
},
{
id
:
1
,
name
:
"第三方"
}
{
id
:
1
,
name
:
"第三方"
}
...
...
src/views/components/source/SourceList.vue
View file @
ddc65ce2
...
@@ -76,11 +76,14 @@
...
@@ -76,11 +76,14 @@
import
{
computed
,
reactive
,
ref
}
from
"vue"
import
{
computed
,
reactive
,
ref
}
from
"vue"
import
{
ApiResult
}
from
"@/configs/axios"
;
import
{
ApiResult
}
from
"@/configs/axios"
;
import
SpiderService
from
"@/services/SpiderService"
;
import
SpiderService
from
"@/services/SpiderService"
;
import
{
useUserStore
}
from
"@/store"
;
const
emit
=
defineEmits
<
{
const
emit
=
defineEmits
<
{
(
event
:
'close'
):
void
,
(
event
:
'close'
):
void
,
(
event
:
'change'
,
payload
:
any
):
void
(
event
:
'change'
,
payload
:
any
):
void
}
>
()
}
>
()
const
userStore
=
useUserStore
()
const
{
userInfo
}
=
userStore
const
loading
=
ref
(
false
)
const
loading
=
ref
(
false
)
const
data
=
ref
<
any
[]
>
()
const
data
=
ref
<
any
[]
>
()
const
total
=
ref
(
0
)
const
total
=
ref
(
0
)
...
@@ -101,6 +104,10 @@ const allTypes = ref<{ id: number, name: string }[]>([
...
@@ -101,6 +104,10 @@ const allTypes = ref<{ id: number, name: string }[]>([
{
id
:
2
,
name
:
"餐厅"
},
{
id
:
2
,
name
:
"餐厅"
},
{
id
:
3
,
name
:
"景点"
}
{
id
:
3
,
name
:
"景点"
}
])
])
if
(
!
userInfo
.
isp
){
platforms
.
value
.
splice
(
0
,
1
)
searchParmeters
.
platform
=
1
}
const
currentPlatform
=
computed
(()
=>
{
const
currentPlatform
=
computed
(()
=>
{
return
getTypeName
(
searchParmeters
.
platform
,
0
)
return
getTypeName
(
searchParmeters
.
platform
,
0
)
})
})
...
...
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