|
@@ -2241,9 +2241,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async saveLinkTab () {//保存按钮
|
|
|
- if (this.$refs.tree.getCheckedNodes().length > 0) {
|
|
|
+ let checkNodes = this.$refs.tree.getCheckedNodes();
|
|
|
+ if (checkNodes.length > 0) {
|
|
|
+ let node = checkNodes[checkNodes.length - 1];
|
|
|
+ if(node.fileType != 3){
|
|
|
+ this.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: "请先上传Excel表"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
const { data: res } = await saveLinkTab({
|
|
|
- exceTabId: this.$refs.tree.getCheckedNodes()[this.$refs.tree.getCheckedNodes().length - 1].id,
|
|
|
+ exceTabId: node.id,
|
|
|
tabId: this.GLExcelFrom.id,
|
|
|
})
|
|
|
console.log(res);
|
|
@@ -2257,7 +2266,7 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- type: 'success',
|
|
|
+ type: 'warning',
|
|
|
message: '请先设置清表',
|
|
|
})
|
|
|
}
|