|
@@ -525,6 +525,7 @@ export default {
|
|
|
columnSorting: true, //添加排序
|
|
|
sortIndicator: true, //添加排序
|
|
|
renderAllRows: true,
|
|
|
+ // observeChanges: false, //启用observeChanges插件
|
|
|
// colWidths: 200,
|
|
|
autoColumnSize: true,
|
|
|
language: "zh-CN",
|
|
@@ -584,7 +585,7 @@ export default {
|
|
|
},
|
|
|
// 更新
|
|
|
handleUpdataTable(changeData, source) {
|
|
|
- if (!this.onlyRead) {
|
|
|
+ if (!this.onlyRead && source != 'ObserveChanges.change') {
|
|
|
if (changeData) {
|
|
|
let trimmedArr = this.trimmedRows();
|
|
|
let param = handsonUtils.getParam(changeData, source, this.hot, trimmedArr);
|
|
@@ -903,13 +904,17 @@ export default {
|
|
|
},
|
|
|
//选择型号修改
|
|
|
firmChange(data) {
|
|
|
- tools.setDataForKey(this.tableData[this.row], "DPManufacturerID", data.venderId)
|
|
|
- tools.setDataForKey(this.tableData[this.row], "LedgerParam.EquipManufactor.Brand", data.brand)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "DPManufacturerID", data.venderId)//生产商ID
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "DPBrandID", data.brandId)//品牌ID
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "DPSpecificationID", data.specificationId)//型号ID
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "LedgerParam.EquipManufactor.Brand", data.brandName)
|
|
|
tools.setDataForKey(this.tableData[this.row], "LedgerParam.EquipManufactor.Specification", data.name)
|
|
|
this.handleUpdataTable(
|
|
|
[
|
|
|
[this.row, "DPManufacturerID", null, data.venderId],
|
|
|
- [this.row, "LedgerParam.EquipManufactor.Brand", null, data.brand],
|
|
|
+ [this.row, "DPBrandID", null, data.brandId],
|
|
|
+ [this.row, "DPSpecificationID", null, data.specificationId],
|
|
|
+ [this.row, "LedgerParam.EquipManufactor.Brand", null, data.brandName],
|
|
|
[this.row, "LedgerParam.EquipManufactor.Specification", null, data.name]
|
|
|
],
|
|
|
"edit"
|