Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform-ui
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
2
Merge Requests
2
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
周健威
rs-cloud-platform-ui
Commits
16096425
Commit
16096425
authored
Dec 08, 2020
by
obt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
星空动态完成代码更新
parent
cf0c03e4
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
291 additions
and
81 deletions
+291
-81
index.js
src/api/website/newsCategory/index.js
+2
-1
index.vue
src/views/webSiteManagement/newsCategory/index.vue
+3
-2
index.vue
...s/webSiteManagement/newsCategory/nebulaDynamics/index.vue
+241
-63
index.vue
...iews/webSiteManagement/newsCategory/newsCreator/index.vue
+45
-15
No files found.
src/api/website/newsCategory/index.js
View file @
16096425
/*
/*
* @Author: Jenkins
* @Author: Jenkins
* @Date: 2020-12-02 09:18:01
* @Date: 2020-12-02 09:18:01
* @LastEditTime: 2020-12-0
7 16:03:52
* @LastEditTime: 2020-12-0
8 10:57:37
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 星云动态页请求接口
* @Description: 星云动态页请求接口
* @FilePath: \rs-cloud-platform-ui\src\api\wsmanagement\newsCategory\index.js
* @FilePath: \rs-cloud-platform-ui\src\api\wsmanagement\newsCategory\index.js
...
@@ -26,6 +26,7 @@ export function getAllnewsType(){
...
@@ -26,6 +26,7 @@ export function getAllnewsType(){
*/
*/
export
function
getListnewsType
(
obj
){
export
function
getListnewsType
(
obj
){
return
fetch
({
return
fetch
({
// url: '/api/website/newsType/getList',
url
:
'/api/website/newsType/getList'
,
url
:
'/api/website/newsType/getList'
,
method
:
'get'
,
method
:
'get'
,
params
:
obj
params
:
obj
...
...
src/views/webSiteManagement/newsCategory/index.vue
View file @
16096425
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2020-12-01 09:54:12
* @Date: 2020-12-01 09:54:12
* @LastEditTime: 2020-12-0
7 18:31:07
* @LastEditTime: 2020-12-0
8 09:59:45
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
...
@@ -26,7 +26,8 @@ export default {
...
@@ -26,7 +26,8 @@ export default {
data
(){
data
(){
return
{
return
{
componentName
:
'nebulaDynamics'
,
componentName
:
'nebulaDynamics'
,
regions
:[]
regions
:[],
info
:
null
,
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/webSiteManagement/newsCategory/nebulaDynamics/index.vue
View file @
16096425
This diff is collapsed.
Click to expand it.
src/views/webSiteManagement/newsCategory/newsCreator/index.vue
View file @
16096425
<!--
<!--
* @Author: Jenkins
* @Author: Jenkins
* @Date: 2020-12-02 14:49:10
* @Date: 2020-12-02 14:49:10
* @LastEditTime: 2020-12-0
7 21:04:0
6
* @LastEditTime: 2020-12-0
8 14:18:4
6
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 创建新闻
* @Description: 创建新闻
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\newsCreator\index.vue
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\newsCreator\index.vue
...
@@ -101,6 +101,15 @@ export default {
...
@@ -101,6 +101,15 @@ export default {
})
})
}
}
});
});
if
(
this
.
$parent
.
info
!=
null
){
this
.
form
.
id
=
this
.
$parent
.
info
.
id
this
.
form
.
title
=
this
.
$parent
.
info
.
title
this
.
form
.
coverImg
=
this
.
$parent
.
info
.
icon
.
url
this
.
form
.
introduce
=
this
.
$parent
.
info
.
introduce
this
.
form
.
region
=
this
.
$parent
.
info
.
typeId
this
.
form
.
sort
=
this
.
$parent
.
info
.
sort
this
.
form
.
content
=
this
.
$parent
.
info
.
content
}
},
},
methods
:
{
methods
:
{
onContentChange
(
val
)
{
onContentChange
(
val
)
{
...
@@ -126,28 +135,49 @@ export default {
...
@@ -126,28 +135,49 @@ export default {
}
else
if
(
this
.
form
.
content
==
""
){
}
else
if
(
this
.
form
.
content
==
""
){
this
.
$message
.
error
(
'请输入资讯详情!!!'
);
this
.
$message
.
error
(
'请输入资讯详情!!!'
);
}
else
{
}
else
{
// 新增新闻资讯
let
data
,
message
addUpdateNewsInfo
({
if
(
this
.
$parent
.
info
!=
null
){
id
:
Math
.
floor
((
Math
.
random
())
*
100000000
),
data
=
{
id
:
this
.
form
.
id
,
title
:
this
.
form
.
title
,
title
:
this
.
form
.
title
,
detail
:
this
.
form
.
introduce
,
detail
:
this
.
form
.
introduce
,
coverImg
:
this
.
form
.
coverImg
,
coverImg
:
this
.
form
.
coverImg
,
content
:
this
.
form
.
content
,
content
:
this
.
form
.
content
,
newsDate
:
timestamp2Date
((
new
Date
()).
getTime
()),
newsDate
:
timestamp2Date
((
new
Date
()).
getTime
()),
typeId
:
this
.
form
.
region
,
typeId
:
this
.
form
.
region
,
isDel
:
0
,
// 0为未被删除,1为已删除
status
:
0
,
// 默认上传即为下架状态
status
:
0
,
// 默认上传即为下架状态
indexShow
:
1
,
indexShow
:
1
,
typeName
:
(
this
.
types
.
find
(
ele
=>
ele
.
value
==
this
.
form
.
region
)).
label
,
typeName
:
(
this
.
types
.
find
(
ele
=>
ele
.
value
==
this
.
form
.
region
)).
label
,
}).
then
((
res
)
=>
{
}
message
=
"修改成功!!!"
}
else
{
data
=
{
title
:
this
.
form
.
title
,
detail
:
this
.
form
.
introduce
,
coverImg
:
this
.
form
.
coverImg
,
content
:
this
.
form
.
content
,
newsDate
:
timestamp2Date
((
new
Date
()).
getTime
()),
typeId
:
this
.
form
.
region
,
isDel
:
0
,
// 0为未被删除,1为已删除
status
:
2
,
// 默认上传即为下架状态(后端规定1为启用2为禁用)
indexShow
:
1
,
typeName
:
(
this
.
types
.
find
(
ele
=>
ele
.
value
==
this
.
form
.
region
)).
label
,
}
message
=
"创建成功!!!"
}
// 新增新闻资讯
addUpdateNewsInfo
(
data
).
then
((
res
)
=>
{
if
(
res
.
status
==
200
){
if
(
res
.
status
==
200
){
let
_this
=
this
let
_this
=
this
this
.
$message
({
this
.
$message
({
message
:
'创建成功!!!'
,
message
:
message
,
type
:
'success'
,
type
:
'success'
,
duration
:
2000
,
duration
:
2000
,
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
_this
.
componentName
=
"nebulaDynamics"
_this
.
$parent
.
componentName
=
"nebulaDynamics"
_this
.
$parent
.
info
=
null
},
2100
);
},
2100
);
}
}
});
});
...
...
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