|
@@ -650,10 +650,12 @@ const setTreeMenuDataClick = ({key,node,data}) => {
|
|
|
} else if (key === 'upload') {
|
|
|
document.getElementById('upload-drawing').click()
|
|
|
} else if (key === 'del') {
|
|
|
- if(data['submitCounts']>0){
|
|
|
- delModalClick()
|
|
|
- }else{
|
|
|
+
|
|
|
+ if(data['colorStatus']!==1){
|
|
|
window?.$message?.warning('该节点已存在上报数据,不允许删除')
|
|
|
+
|
|
|
+ }else{
|
|
|
+ delModalClick()
|
|
|
}
|
|
|
|
|
|
} else if (key === 'sort') {
|
|
@@ -1184,6 +1186,8 @@ const reportModalClick = async () => {
|
|
|
const showReportFinish = () => {
|
|
|
showReportModal.value = false
|
|
|
getTableDataAll()
|
|
|
+ window?.location?.reload() //刷新页面
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//表单变量
|
|
@@ -1300,6 +1304,8 @@ const abolishOneSave = async () => {
|
|
|
if (!error && code === 200) {
|
|
|
window.$message?.success('撤回成功')
|
|
|
getTableDataAll()
|
|
|
+ window?.location?.reload() //刷新页面
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|