bug
This commit is contained in:
@@ -348,20 +348,25 @@ export default {
|
||||
id: val.data.id,
|
||||
status: undefined
|
||||
}
|
||||
let opration = ''
|
||||
if (val.type === 'active') {
|
||||
param.status = 2
|
||||
opration = '激活'
|
||||
}
|
||||
if (val.type === 'pause') {
|
||||
param.status = 3
|
||||
opration = '暂停'
|
||||
}
|
||||
if (val.type === 'nullify') {
|
||||
param.status = 9
|
||||
opration = '报废'
|
||||
}
|
||||
if (val.type === 'finish') {
|
||||
param.status = 4
|
||||
opration = '完成'
|
||||
}
|
||||
console.log('22',val)
|
||||
this.$confirm(`确定对${'[工单名称=' + val.data.name + ']'}进行${val.type}操作?`, "提示", {
|
||||
this.$confirm(`确定${opration}${'"工单' + val.data.name + '"'}?`, "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
@@ -369,7 +374,7 @@ export default {
|
||||
.then(() => {
|
||||
statusChange(param).then(({ data }) => {
|
||||
this.$message({
|
||||
message: '操作成功!',
|
||||
message: '操作成功!工单状态稍后将会更新!',
|
||||
type: 'success',
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
|
||||
Reference in New Issue
Block a user