|
@@ -167,8 +167,9 @@
|
|
|
let trFragment = document.createDocumentFragment();
|
|
|
trFragment.appendChild(trDom);
|
|
|
$(".tbody").append(trFragment)
|
|
|
- if(viewState === 'v'){
|
|
|
- costTypeJSON = costTypeNoSubJSON
|
|
|
+ costTypeJSON = costTypeNoSubJSON;
|
|
|
+ if(viewState != 'v'){
|
|
|
+ costTypeJSON = costTypeJSON
|
|
|
}
|
|
|
costTypeJSON.forEach(obj => {
|
|
|
obj.treeName = 'CommonCostDetailDO[' + i + ']$costType';
|