Merge branch 'master' of gitee.com:willamet/rn-bms-vue
This commit is contained in:
@ -105,7 +105,7 @@ export default {
|
|||||||
input: '',
|
input: '',
|
||||||
ids: [],
|
ids: [],
|
||||||
// 表格数据
|
// 表格数据
|
||||||
tableData: null,
|
tableData: [],
|
||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
// 查询参数
|
// 查询参数
|
||||||
|
@ -238,8 +238,8 @@ export default {
|
|||||||
form: {},
|
form: {},
|
||||||
nodeForm: {},
|
nodeForm: {},
|
||||||
// 表格数据
|
// 表格数据
|
||||||
tableData: null,
|
tableData: [],
|
||||||
nodeData: null,
|
nodeData: [],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -409,7 +409,7 @@ export default {
|
|||||||
this.multiple = !selection.length;
|
this.multiple = !selection.length;
|
||||||
},
|
},
|
||||||
|
|
||||||
// nodeHandleSelectionChange(){},
|
// 节点多选框选中数据
|
||||||
nodeHandleSelectionChange (selection) {
|
nodeHandleSelectionChange (selection) {
|
||||||
this.nodeIds = selection.map((item) => item.id);
|
this.nodeIds = selection.map((item) => item.id);
|
||||||
this.nodeMultiple = !selection.length;
|
this.nodeMultiple = !selection.length;
|
||||||
@ -472,7 +472,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.nodeOpen = true;
|
this.nodeOpen = true;
|
||||||
this.title = "修改设备节点";
|
this.title = "修改设备节点";
|
||||||
this.nodeForm = row;
|
this.nodeForm = Object.assign({}, row);
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm: function () {
|
submitForm: function () {
|
||||||
@ -486,7 +486,7 @@ export default {
|
|||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -497,7 +497,7 @@ export default {
|
|||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -513,7 +513,7 @@ export default {
|
|||||||
this.nodeOpen = false;
|
this.nodeOpen = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -532,7 +532,7 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
this.msgSuccess("删除成功");
|
this.msgSuccess("删除成功");
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
}).catch(res => { })
|
}).catch(res => { })
|
||||||
},
|
},
|
||||||
|
@ -144,7 +144,7 @@ export default {
|
|||||||
name: "ProductList",
|
name: "ProductList",
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
nodeData: null,
|
nodeData: [],
|
||||||
nodeDialog: false,
|
nodeDialog: false,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
ids: [],
|
ids: [],
|
||||||
@ -162,14 +162,6 @@ export default {
|
|||||||
open: false,
|
open: false,
|
||||||
nodeOpen: false,
|
nodeOpen: false,
|
||||||
labelPosition: "right",
|
labelPosition: "right",
|
||||||
options: [
|
|
||||||
{
|
|
||||||
value: "选项1",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "选项2",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
nodeForm: {},
|
nodeForm: {},
|
||||||
@ -177,7 +169,7 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
value: "",
|
value: "",
|
||||||
// 表格数据
|
// 表格数据
|
||||||
tableData: null,
|
tableData: [],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -299,7 +291,7 @@ export default {
|
|||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate (row) {
|
handleUpdate (row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
this.form = row;
|
this.form = Object.assign({}, row);
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改产品";
|
this.title = "修改产品";
|
||||||
},
|
},
|
||||||
@ -308,7 +300,7 @@ export default {
|
|||||||
handleUpdatenode (row) {
|
handleUpdatenode (row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
this.nodeOpen = true;
|
this.nodeOpen = true;
|
||||||
this.nodeForm = row;
|
this.nodeForm = Object.assign({}, row);;
|
||||||
this.title = "修改产品节点";
|
this.title = "修改产品节点";
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
@ -322,7 +314,7 @@ export default {
|
|||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -332,7 +324,7 @@ export default {
|
|||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -347,7 +339,7 @@ export default {
|
|||||||
this.nodeOpen = false;
|
this.nodeOpen = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -367,7 +359,7 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
this.msgSuccess("删除成功");
|
this.msgSuccess("删除成功");
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((res) => { });
|
.catch((res) => { });
|
||||||
@ -389,7 +381,7 @@ export default {
|
|||||||
this.getListnode(row);
|
this.getListnode(row);
|
||||||
this.msgSuccess("删除成功");
|
this.msgSuccess("删除成功");
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((res) => { });
|
.catch((res) => { });
|
||||||
@ -410,7 +402,7 @@ export default {
|
|||||||
this.getListnode(...this.nodeData);
|
this.getListnode(...this.nodeData);
|
||||||
this.msgSuccess("删除成功");
|
this.msgSuccess("删除成功");
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((res) => { });
|
.catch((res) => { });
|
||||||
|
@ -98,7 +98,7 @@ export default {
|
|||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
// 表格数据
|
// 表格数据
|
||||||
tableData: null,
|
tableData: [],
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
rules: {
|
rules: {
|
||||||
@ -200,7 +200,7 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
this.msgSuccess("删除成功");
|
this.msgSuccess("删除成功");
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((res) => { });
|
.catch((res) => { });
|
||||||
@ -218,7 +218,7 @@ export default {
|
|||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -228,7 +228,7 @@ export default {
|
|||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
} else {
|
} else {
|
||||||
this.msgSuccess(res.msg);
|
this.msgError(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ export default {
|
|||||||
open: false,
|
open: false,
|
||||||
areaOpen: false,
|
areaOpen: false,
|
||||||
// 表格数据
|
// 表格数据
|
||||||
tableData: null,
|
tableData: [],
|
||||||
areaData: [], // 大区省份
|
areaData: [], // 大区省份
|
||||||
provinceData: [], // 所有省份
|
provinceData: [], // 所有省份
|
||||||
// 表单参数
|
// 表单参数
|
||||||
@ -135,7 +135,7 @@ export default {
|
|||||||
// 修改大区
|
// 修改大区
|
||||||
editArea (row) {
|
editArea (row) {
|
||||||
this.areaOpen = true;
|
this.areaOpen = true;
|
||||||
this.areaForm = row;
|
this.areaForm = Object.assign({}, row);
|
||||||
this.title = "修改大区";
|
this.title = "修改大区";
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -190,8 +190,6 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch((res) => { });
|
.catch((res) => { });
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user