提交和删除按钮提示

This commit is contained in:
gyj
2024-02-26 16:01:24 +08:00
parent b453630387
commit 90dd2066b2
14 changed files with 1549 additions and 61 deletions
+43 -21
View File
@@ -153,17 +153,27 @@
batchNumber:"",
caseFlowId:this.defalutVal.caseFlowId
}
caseAppSubmit(onsubmitVal).then(res => {
uni.showToast({
title: '提交成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url:'/pages/handlecase/index'
})
//this.$emit("getList");
})
uni.showModal({
title: '提示',
content: '您确定要提交案件',
success: function (res) {
if (res.confirm) {
// console.log('用户点击确定');
caseAppSubmit(onsubmitVal).then(res => {
uni.showToast({
title: '提交成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url:'/pages/handlecase/index'
})
})
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
},
// 修改
modify() {
@@ -178,16 +188,28 @@
batchNumber:"",
caseFlowId:this.defalutVal.caseFlowId
}
caseDelete(objValue).then(res =>{
uni.showToast({
title: '删除成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url:'/pages/handlecase/index'
})
})
uni.showModal({
title: '提示',
content: '您确定要删除案件',
success: function (res) {
if (res.confirm) {
// console.log('用户点击确定');
caseDelete(objValue).then(res =>{
uni.showToast({
title: '删除成功',
icon: 'none',
duration: 1000
})
uni.navigateTo({
url:'/pages/handlecase/index'
})
})
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
},
},
created() {
@@ -385,7 +385,7 @@
uni.navigateBack({
delta: 1
})
}
},
},
onLoad(data) {
this.ids = data.id