|
@@ -117,9 +117,6 @@ $(document).ready(() => {
|
|
headerFont: '12px 微软雅黑',
|
|
headerFont: '12px 微软雅黑',
|
|
font: '12px 微软雅黑',
|
|
font: '12px 微软雅黑',
|
|
readOnly: true,
|
|
readOnly: true,
|
|
- getForeColor: function (sheet, data, row, col, defaultColor) {
|
|
|
|
- return data && data.valid ? defaultColor : '#ddd';
|
|
|
|
- },
|
|
|
|
};
|
|
};
|
|
autoFlashHeight();
|
|
autoFlashHeight();
|
|
const bcontent = $(".bcontent-wrap").length > 0 ? $(".bcontent-wrap").height() : 0;
|
|
const bcontent = $(".bcontent-wrap").length > 0 ? $(".bcontent-wrap").height() : 0;
|
|
@@ -201,7 +198,7 @@ $(document).ready(() => {
|
|
const lid = sp.rela_lid ? sp.rela_lid.split(',') : [];
|
|
const lid = sp.rela_lid ? sp.rela_lid.split(',') : [];
|
|
invalid.push(...lid);
|
|
invalid.push(...lid);
|
|
}
|
|
}
|
|
- this.tree.loadFilter(invalid.join(','), 'access');
|
|
|
|
|
|
+ this.tree.loadFilter(invalid.join(','), 'filter');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
refreshChangeRela(price, samePrice) {
|
|
refreshChangeRela(price, samePrice) {
|
|
@@ -428,12 +425,16 @@ $(document).ready(() => {
|
|
const data = { update: { id: price.id, rela_lid } };
|
|
const data = { update: { id: price.id, rela_lid } };
|
|
postData(window.location.pathname + '/update', data, function (result) {
|
|
postData(window.location.pathname + '/update', data, function (result) {
|
|
revisePrice.loadUpdateData(result);
|
|
revisePrice.loadUpdateData(result);
|
|
|
|
+ revisePrice.refreshTreeRela(price);
|
|
|
|
+ SpreadJsObj.refreshTreeRowVisible(priceBwSheet);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
updateRelaCid: function (price, rela_cid) {
|
|
updateRelaCid: function (price, rela_cid) {
|
|
const data = { update: { id: price.id, rela_cid } };
|
|
const data = { update: { id: price.id, rela_cid } };
|
|
postData(window.location.pathname + '/update', data, function (result) {
|
|
postData(window.location.pathname + '/update', data, function (result) {
|
|
revisePrice.loadUpdateData(result);
|
|
revisePrice.loadUpdateData(result);
|
|
|
|
+ revisePrice.refreshChangeRela(price);
|
|
|
|
+ SpreadJsObj.reLoadSheetData(priceChangeSheet);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
selectionChanged: function () {
|
|
selectionChanged: function () {
|