Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhanglw
sensorConsult
Commits
fad1579b
Commit
fad1579b
authored
Jul 20, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资讯
parent
187ca533
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
246 additions
and
499 deletions
+246
-499
common.js
src/api/common.js
+30
-0
view.vue
src/views/backstage/contentMgt/homePage/view.vue
+0
-1
add.vue
src/views/backstage/contentMgt/informationTabulate/add.vue
+85
-85
index.vue
src/views/backstage/contentMgt/informationTabulate/index.vue
+5
-3
view.vue
src/views/backstage/contentMgt/informationTabulate/view.vue
+126
-410
No files found.
src/api/common.js
View file @
fad1579b
...
@@ -359,6 +359,36 @@ export const HttpReq = {
...
@@ -359,6 +359,36 @@ export const HttpReq = {
return
res
return
res
})
})
},
},
// 内容管理-修改资讯
updateNewsPage
:
function
(
data
)
{
return
request
({
url
:
'
/api/bsw/newsPage/updateNewsPage
'
,
method
:
'
put
'
,
data
:
data
}).
then
((
res
)
=>
{
return
res
})
},
// 内容管理-新增资讯
addNewsPage
:
function
(
data
)
{
return
request
({
url
:
'
/api/bsw/newsPage/addNewsPage
'
,
method
:
'
post
'
,
data
:
data
}).
then
((
res
)
=>
{
return
res
})
},
// 内容管理-删除资讯
newsBatchDelete
:
function
(
data
)
{
return
request
({
url
:
'
/api/bsw/newsPage/batchDelete
'
,
method
:
'
delete
'
,
data
:
data
}).
then
((
res
)
=>
{
return
res
})
},
xxx
:
null
xxx
:
null
}
}
}
}
...
...
src/views/backstage/contentMgt/homePage/view.vue
View file @
fad1579b
...
@@ -203,7 +203,6 @@
...
@@ -203,7 +203,6 @@
<label
class=
"el-upload-list__item-status-label"
><i
class=
"el-icon-upload-success el-icon-check"
/></label>
<label
class=
"el-upload-list__item-status-label"
><i
class=
"el-icon-upload-success el-icon-check"
/></label>
<span
class=
"el-upload-list__item-actions"
>
<span
class=
"el-upload-list__item-actions"
>
<span
class=
"el-upload-list__item-preview"
@
click=
"dialogImgUrl=item;dialogImgVisible=true"
><i
class=
"el-icon-zoom-in"
/></span>
<span
class=
"el-upload-list__item-preview"
@
click=
"dialogImgUrl=item;dialogImgVisible=true"
><i
class=
"el-icon-zoom-in"
/></span>
<span
class=
"el-upload-list__item-delete"
@
click=
"handleRemoveImg(item)"
><i
class=
"el-icon-delete"
/></span>
</span>
</span>
</li>
</li>
</ul>
</ul>
...
...
src/views/backstage/contentMgt/informationTabulate/add.vue
View file @
fad1579b
This diff is collapsed.
Click to expand it.
src/views/backstage/contentMgt/informationTabulate/index.vue
View file @
fad1579b
...
@@ -47,15 +47,17 @@
...
@@ -47,15 +47,17 @@
<el-pagination
:total=
"total"
:current-page=
"page"
:page-size=
"pageSize"
style=
"margin-top: 8px;"
layout=
"total, prev, pager, next, sizes"
@
size-change=
"sizeChange"
@
current-change=
"pageChange"
/>
<el-pagination
:total=
"total"
:current-page=
"page"
:page-size=
"pageSize"
style=
"margin-top: 8px;"
layout=
"total, prev, pager, next, sizes"
@
size-change=
"sizeChange"
@
current-change=
"pageChange"
/>
</div>
</div>
<add-page
ref=
"addPage"
/>
<add-page
ref=
"addPage"
/>
<view-page
ref=
"viewPage"
/>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
HttpReq
}
from
'
@/api/common
'
import
{
HttpReq
}
from
'
@/api/common
'
import
DateRangePicker
from
'
@/components/DateRangePicker
'
import
DateRangePicker
from
'
@/components/DateRangePicker
'
import
addPage
from
'
./add
'
import
addPage
from
'
./add
'
import
viewPage
from
'
./view
'
export
default
{
export
default
{
components
:
{
DateRangePicker
,
addPage
},
components
:
{
DateRangePicker
,
addPage
,
viewPage
},
dicts
:
[
'
issue_status
'
,
'
information_type
'
],
dicts
:
[
'
issue_status
'
,
'
information_type
'
],
data
()
{
data
()
{
return
{
return
{
...
@@ -121,10 +123,10 @@ export default {
...
@@ -121,10 +123,10 @@ export default {
this
.
$refs
.
addPage
.
loadData
(
item
.
newsPageId
)
this
.
$refs
.
addPage
.
loadData
(
item
.
newsPageId
)
},
},
toView
(
item
)
{
toView
(
item
)
{
// this.$refs.viewPage.loadData(item.home
PageId)
this
.
$refs
.
viewPage
.
loadData
(
item
.
news
PageId
)
},
},
toDelete
(
item
)
{
toDelete
(
item
)
{
HttpReq
.
backstageApi
.
hp
BatchDelete
({
HttpReq
.
backstageApi
.
news
BatchDelete
({
ids
:
[
item
.
newsPageId
]
ids
:
[
item
.
newsPageId
]
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
this
.
$notify
({
this
.
$notify
({
...
...
src/views/backstage/contentMgt/informationTabulate/view.vue
View file @
fad1579b
This diff is collapsed.
Click to expand it.
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