提交和删除按钮提示
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user