|
@@ -210,7 +210,7 @@
|
|
|
</hc-new-dialog>
|
|
|
|
|
|
<!-- 新增子节点 -->
|
|
|
- <hc-new-dialog v-model="addNodeModal" :loading="addNodeLoading" loading-text="新增节点中,请耐心等待..." title="新增子节点" widths="720px">
|
|
|
+ <hc-new-dialog v-model="addNodeModal" :loading="addNodeLoading" loading-text="新增节点中,请耐心等待..." title="新增子节点" widths="720px" is-table>
|
|
|
<el-alert :closable="false" title="双击节点,可编辑节点名称,编辑完成后,请按回车或输入框消失后,再点提交" type="warning" />
|
|
|
<HcTreeNode
|
|
|
v-if="addTreeNodeType === '1'" :node-id="addTreeNodeId" :old-id="addTreeNodeOldId" :contract-id="contractId"
|
|
@@ -599,7 +599,7 @@ const concealedChange = async () => {
|
|
|
if (!error && code === 200) {
|
|
|
window?.$message?.success(msg)
|
|
|
} else {
|
|
|
- window?.$message?.warning(msg)
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
} else {
|
|
|
window?.$message?.warning('请先在左侧选择节点')
|
|
@@ -739,7 +739,7 @@ const editNodeClick = async () => {
|
|
|
//发起请求
|
|
|
editNodeLoading.value = true
|
|
|
const { primaryKeyId, title, partitionCode } = formEditNodeModel.value
|
|
|
- const { error, code } = await wbsApi.wbsTreeUpdateNode({
|
|
|
+ const { error, code, msg } = await wbsApi.wbsTreeUpdateNode({
|
|
|
nodeName: title || '',
|
|
|
pKeyId: primaryKeyId || '',
|
|
|
partitionCode: partitionCode || '',
|
|
@@ -752,6 +752,8 @@ const editNodeClick = async () => {
|
|
|
treeItemInfo.value['partitionCode'] = partitionCode || ''
|
|
|
editNodeModal.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
+ } else {
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -972,7 +974,7 @@ const copyContractTreeNode = async (type, form, table, classify) => {
|
|
|
copyNodeModal.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
} else {
|
|
|
- window.$message.error(msg)
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
} else {
|
|
|
const { error, code, msg } = await wbsApi.copyContractTreeNode({
|
|
@@ -991,7 +993,7 @@ const copyContractTreeNode = async (type, form, table, classify) => {
|
|
|
copyNodeModal.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
} else {
|
|
|
- window.$message.error(msg)
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1011,7 +1013,7 @@ const copyContractNodeSubmitBusinessData = async (form, table, classify) => {
|
|
|
copyNodeModal.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
} else {
|
|
|
- window.$message.error(msg)
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1079,7 +1081,7 @@ const addNodeClick = async () => {
|
|
|
addNodeModal.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
} else {
|
|
|
- window.$message.error(msg)
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1099,7 +1101,7 @@ const addNodeClickCur = async ()=>{
|
|
|
addNodeModalCus.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
} else {
|
|
|
- window.$message.error(msg)
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
}
|
|
|
//删除节点
|
|
@@ -1123,7 +1125,7 @@ const removeContractTreeNode = async () => {
|
|
|
window?.$message?.success('删除成功')
|
|
|
window?.location?.reload() //刷新页面
|
|
|
} else {
|
|
|
- window.$message.error(msg)
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1170,7 +1172,7 @@ const sortNodeClick = async () => {
|
|
|
sortNodeModal.value = false
|
|
|
window?.location?.reload() //刷新页面
|
|
|
} else {
|
|
|
- window.$message.error(msg)
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1346,7 +1348,7 @@ const deltableexcel = async (row) => {
|
|
|
searchNodeAllTableApi(treeItemInfo.value['primaryKeyId'])
|
|
|
|
|
|
} else {
|
|
|
- window?.$message?.warning(msg)
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -1358,7 +1360,7 @@ const deltableexcel = async (row) => {
|
|
|
searchNodeAllTableApi(treeItemInfo.value['primaryKeyId'])
|
|
|
// window?.location?.reload() //刷新页面
|
|
|
} else {
|
|
|
- window?.$message?.warning(msg)
|
|
|
+ window?.$message?.error(msg || '操作失败')
|
|
|
}
|
|
|
}
|
|
|
} else {
|