Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_manage
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
张伯涛
intel_promotion_manage
Commits
f910a8ef
Commit
f910a8ef
authored
Jun 06, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 测试爬虫
parent
d9d5dba7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
sysContentNewsInformation.js
src/api/contentManagement/sysContentNewsInformation.js
+8
-0
commonField.js
src/utils/commonField.js
+1
-0
index.vue
src/views/contentManagement/newsInformation/index.vue
+17
-1
No files found.
src/api/contentManagement/sysContentNewsInformation.js
View file @
f910a8ef
...
@@ -85,3 +85,11 @@ export function shareShop(data) {
...
@@ -85,3 +85,11 @@ export function shareShop(data) {
data
:
data
data
:
data
})
})
}
}
export
function
crawler
()
{
return
request
({
url
:
'/crawler/start'
,
method
:
'get'
})
}
src/utils/commonField.js
View file @
f910a8ef
...
@@ -15,6 +15,7 @@ const commonField = {
...
@@ -15,6 +15,7 @@ const commonField = {
resetPasClass
:
'resetBtnText'
,
// 文字类型的重置按钮class
resetPasClass
:
'resetBtnText'
,
// 文字类型的重置按钮class
queryName
:
'查询'
,
queryName
:
'查询'
,
resetName
:
'重置'
,
resetName
:
'重置'
,
crawler
:
'爬一下'
,
addName
:
'新增'
,
addName
:
'新增'
,
updateName
:
'修改'
,
updateName
:
'修改'
,
deleteName
:
'删除'
,
deleteName
:
'删除'
,
...
...
src/views/contentManagement/newsInformation/index.vue
View file @
f910a8ef
...
@@ -51,6 +51,12 @@
...
@@ -51,6 +51,12 @@
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"resetQuery"
@
click=
"resetQuery"
>
{{
commonField
.
resetName
}}
</el-button>
>
{{
commonField
.
resetName
}}
</el-button>
<el-button
:class=
"commonField.resetClass"
:icon=
"commonField.resetIcon"
:size=
"commonField.smallSize"
@
click=
"crawlerData"
>
{{
commonField
.
crawler
}}
</el-button>
</el-form-item>
</el-form-item>
<div
style=
"float: right"
>
<div
style=
"float: right"
>
<el-form-item>
<el-form-item>
...
@@ -220,7 +226,7 @@
...
@@ -220,7 +226,7 @@
import
commonField
from
'@/utils/commonField'
import
commonField
from
'@/utils/commonField'
import
{
import
{
delSysContentNewsInformation
,
delSysContentNewsInformation
,
listSysContentNewsInformation
,
updateStatus
,
shareShop
listSysContentNewsInformation
,
updateStatus
,
shareShop
,
crawler
}
from
'@/api/contentManagement/sysContentNewsInformation'
}
from
'@/api/contentManagement/sysContentNewsInformation'
import
{
error
}
from
'autoprefixer/lib/utils'
import
{
error
}
from
'autoprefixer/lib/utils'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
...
@@ -358,6 +364,16 @@ export default {
...
@@ -358,6 +364,16 @@ export default {
this
.
getDeptList
()
this
.
getDeptList
()
},
},
methods
:
{
methods
:
{
// 测试定时爬虫
crawlerData
()
{
crawler
().
then
(
res
=>
{
this
.
$message
({
message
:
'爬取成功'
,
type
:
'success'
})
this
.
resetQuery
()
})
},
/** 修改密码确定操作*/
/** 修改密码确定操作*/
handleShareShopSure
()
{
handleShareShopSure
()
{
this
.
$refs
.
ruleForm
.
validate
(
pass
=>
{
this
.
$refs
.
ruleForm
.
validate
(
pass
=>
{
...
...
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