|
@@ -2864,7 +2864,7 @@ export default {
|
|
|
this.nodeDetail = Object.assign({}, res.data.data);
|
|
|
const { tableFileType } = this.nodeDetail;
|
|
|
if(tableFileType){
|
|
|
- this.nodeDetail.tableFileType = tableFileType.length>0 ? tableFileType.split(",") : [];
|
|
|
+ this.nodeDetail.tableFileType = tableFileType&&tableFileType.length>0 ? tableFileType.split(",") : [];
|
|
|
}
|
|
|
|
|
|
});
|
|
@@ -2903,7 +2903,7 @@ export default {
|
|
|
this.$refs["nodeDetail"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
|
|
|
- if (type === 2 && nodeType === 53) {
|
|
|
+ if (type === 2 && this.nodeDetail.nodeType === 53) {
|
|
|
if (mixRatioTestIds) {
|
|
|
if (this.editType == 1) {
|
|
|
this.addNode();
|
|
@@ -2934,7 +2934,7 @@ export default {
|
|
|
this.saveNodeLoading = true;
|
|
|
const { tableFileType } = this.nodeDetail;
|
|
|
if(tableFileType){
|
|
|
- this.nodeDetail.tableFileType = tableFileType.length>0 ? tableFileType.join(",") : "";
|
|
|
+ this.nodeDetail.tableFileType = tableFileType&&tableFileType.length>0 ? tableFileType.join(",") : "";
|
|
|
}
|
|
|
|
|
|
update(this.nodeDetail).then(() => {
|
|
@@ -2949,7 +2949,7 @@ export default {
|
|
|
updateNode() {
|
|
|
const { tableFileType } = this.nodeDetail;
|
|
|
if(tableFileType){
|
|
|
- this.nodeDetail.tableFileType = tableFileType.length>0 ? tableFileType.join(",") : "";
|
|
|
+ this.nodeDetail.tableFileType =tableFileType&& tableFileType.length>0 ? tableFileType.join(",") : "";
|
|
|
}
|
|
|
// this.nodeDetail.tableFileType = tableFileType.length>0 ? tableFileType.join(",") : "";
|
|
|
update(this.nodeDetail).then(() => {
|