|
@@ -599,9 +599,7 @@ const removeContractTreeNode = async () => {
|
|
|
if (!error && code === 200) {
|
|
|
window?.$message?.success('删除成功')
|
|
|
window?.location?.reload() //刷新页面
|
|
|
- } else {
|
|
|
- window.$message.error(msg)
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
//锁定节点
|
|
|
const handleLockNode = async ()=>{
|
|
@@ -613,9 +611,7 @@ const handleLockNode = async ()=>{
|
|
|
if (!error && code === 200) {
|
|
|
window?.$message?.success(msg)
|
|
|
window?.location?.reload() //刷新页面
|
|
|
- } else {
|
|
|
- window.$message.error(msg)
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
//表格数据
|
|
|
const tableLoading = ref(false)
|
|
@@ -687,8 +683,6 @@ const treeModalSave = async () => {
|
|
|
window?.$message?.success('新增成功')
|
|
|
treeModalShow.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
- } else {
|
|
|
- window.$message.error(msg)
|
|
|
}
|
|
|
} else if (menuType.value === 'edit') {
|
|
|
const { error, code, msg } = await updateForm({
|
|
@@ -701,9 +695,7 @@ const treeModalSave = async () => {
|
|
|
window?.$message?.success('修改成功')
|
|
|
treeModalShow.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
- } else {
|
|
|
- window.$message.error(msg)
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -802,9 +794,7 @@ const supplementsModalSave = async () => {
|
|
|
window?.$message?.success('新增成功')
|
|
|
supplementsModalShow.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
- } else {
|
|
|
- window.$message.error(msg)
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -860,9 +850,7 @@ const sortModalSave = async () => {
|
|
|
window?.$message?.success('保存成功')
|
|
|
sortModalShow.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
- } else {
|
|
|
- window.$message.error(msg)
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
//下载范例模板
|