Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
92a6c944
Commit
92a6c944
authored
May 28, 2022
by
秦嘉
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
731f07a3
4ec849da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
badDefinition.js
src/api/badDefinition.js
+9
-8
badDefinition.vue
src/views/productionInfo/badDefinition.vue
+4
-4
No files found.
src/api/badDefinition.js
View file @
92a6c944
// 不良定义api
import
request
from
'@/utils/request'
import
business
from
"../../mock/busines
s"
;
import
Qs
from
"q
s"
;
// 分页查询列表
export
function
listBad
(
query
)
{
...
...
@@ -35,14 +35,15 @@ export function deleteLogical(businessId) {
})
}
// 不良定义修改状态
export
function
updateStatus
(
businessId
,
flag
)
{
const
data
=
{
businessId
,
flag
}
export
function
updateStatus
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/nltdisadvantage/update
'
,
url
:
'/nltdisadvantage/update
/'
+
businessId
,
method
:
'put'
,
params
:
data
data
,
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
}
src/views/productionInfo/badDefinition.vue
View file @
92a6c944
...
...
@@ -227,8 +227,7 @@
</template>
<
script
>
import
{
listBad
,
listPost
,
deleteLogical
,
updateStatus
}
from
'@/api/badDefinition'
import
{
changeUserStatus
}
from
"@/api/system/user"
;
import
{
listBad
,
listPost
,
deleteLogical
,
updateStatus
}
from
'@/api/badDefinition'
export
default
{
name
:
'BadDefinition'
,
...
...
@@ -364,13 +363,14 @@ export default {
// 不良定义状态修改
handleStatusChange
(
row
)
{
const
text
=
row
.
flag
===
'1'
?
'启用'
:
'停用'
this
.
$confirm
(
'确认要
"'
+
text
+
'"
"'
+
row
.
rejectCode
+
'"状态吗?'
,
'警告'
,
{
this
.
$confirm
(
'确认要
'
+
text
+
'
"'
+
row
.
rejectCode
+
'"状态吗?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
updateStatus
(
row
.
businessId
,
row
.
flag
)
return
updateStatus
(
row
)
}).
then
(()
=>
{
this
.
getList
()
this
.
$message
({
message
:
text
+
'成功'
,
type
:
'success'
...
...
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