Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
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
张伯涛
tea-resources-web
Commits
8b6019f2
Commit
8b6019f2
authored
Apr 01, 2024
by
YLKCNK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【管理端】内容管理—新闻资讯,列表中点击状态按钮切换状态,在二次确认时点击取消,状态还是会变更
parent
c266524d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
index.vue
src/views/contentManagement/newsInformation/index.vue
+22
-5
No files found.
src/views/contentManagement/newsInformation/index.vue
View file @
8b6019f2
...
@@ -405,23 +405,40 @@ export default {
...
@@ -405,23 +405,40 @@ export default {
// 修改状态
// 修改状态
handleStatusChange
(
row
)
{
handleStatusChange
(
row
)
{
const
text
=
row
.
flag
===
'1'
?
'启用'
:
'停用'
const
text
=
row
.
flag
===
'1'
?
'启用'
:
'停用'
const
params
=
{
businessId
:
row
.
businessId
,
flag
:
row
.
flag
}
this
.
$confirm
(
'是否确认操作?'
,
'警告'
,
{
this
.
$confirm
(
'是否确认操作?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(
function
()
{
}).
then
(
function
()
{
return
updateStatus
(
params
)
return
updateStatus
(
row
)
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$message
({
this
.
$message
({
message
:
text
+
'成功'
,
message
:
text
+
'成功'
,
type
:
'success'
type
:
'success'
})
})
}).
catch
(
function
()
{
row
.
flag
=
row
.
flag
===
'0'
?
'1'
:
'0'
})
})
},
},
// handleStatusChange(row) {
// const text = row.flag === '1' ? '启用' : '停用'
// const params = {
// businessId: row.businessId,
// flag: row.flag
// }
// this.$confirm('是否确认操作?', '警告', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(function() {
// return updateStatus(params)
// }).then(() => {
// this.$message({
// message: text + '成功',
// type: 'success'
// })
// })
// },
handleExamination
(
data
)
{
handleExamination
(
data
)
{
console
.
log
(
'data'
,
data
)
console
.
log
(
'data'
,
data
)
this
.
$router
.
push
({
this
.
$router
.
push
({
...
...
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