|
@@ -134,6 +134,8 @@ const assetCategorys = ref([]);
|
|
|
|
|
|
|
|
const secondMenu = ref([]);
|
|
const secondMenu = ref([]);
|
|
|
|
|
|
|
|
|
|
+const isFirst = ref(true);
|
|
|
|
|
+
|
|
|
// 所选资产分类名
|
|
// 所选资产分类名
|
|
|
const assetName = ref('');
|
|
const assetName = ref('');
|
|
|
const allName = ref('');
|
|
const allName = ref('');
|
|
@@ -202,7 +204,9 @@ const changeDetailAsset = key => {
|
|
|
item.children.forEach(child => {
|
|
item.children.forEach(child => {
|
|
|
if (child.id === key) {
|
|
if (child.id === key) {
|
|
|
assetName.value = child.text;
|
|
assetName.value = child.text;
|
|
|
- allName.value = child.text;
|
|
|
|
|
|
|
+ if (!isFirst.value) {
|
|
|
|
|
+ allName.value = child.text;
|
|
|
|
|
+ }
|
|
|
if (child.children && child.children.length) {
|
|
if (child.children && child.children.length) {
|
|
|
listMenu.push(child.children);
|
|
listMenu.push(child.children);
|
|
|
}
|
|
}
|
|
@@ -212,6 +216,7 @@ const changeDetailAsset = key => {
|
|
|
});
|
|
});
|
|
|
list.value = listMenu.flat();
|
|
list.value = listMenu.flat();
|
|
|
emit('getStepInfo', step.value, allName.value);
|
|
emit('getStepInfo', step.value, allName.value);
|
|
|
|
|
+ isFirst.value = false;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 获取明细所选资产
|
|
// 获取明细所选资产
|