This commit is contained in:
helloDy
2023-11-16 13:57:21 +08:00
parent 4ce62c14ee
commit 3667b98da9
6 changed files with 26 additions and 19 deletions

View File

@@ -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: () => {