|
@ -35,8 +35,10 @@ |
|
|
data.energyType.substring(data.energyType.indexOf(searchValue) + searchValue.length) |
|
|
data.energyType.substring(data.energyType.indexOf(searchValue) + searchValue.length) |
|
|
}} |
|
|
}} |
|
|
</span> --> |
|
|
</span> --> |
|
|
<span v-if="data.code">{{ truncatedName(data.energyType + data.code) }}</span> |
|
|
<span v-if="data.code" :title="data.energyType + data.code"> |
|
|
<span v-else>{{ truncatedName(data.energyType) }}</span> |
|
|
{{ truncatedName(data.energyType + data.code) }} |
|
|
|
|
|
</span> |
|
|
|
|
|
<span v-else :title="data.energyType">{{ truncatedName(data.energyType) }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</a-tree> |
|
|
</a-tree> |
|
|
</div> |
|
|
</div> |
|
@ -228,9 +230,11 @@ |
|
|
autoExpandParent.value = false; |
|
|
autoExpandParent.value = false; |
|
|
}; |
|
|
}; |
|
|
const truncatedName = (name) => { |
|
|
const truncatedName = (name) => { |
|
|
|
|
|
if (name) { |
|
|
if (name.length > 8) { |
|
|
if (name.length > 8) { |
|
|
return name.substring(0, 8) + '...'; |
|
|
return name.substring(0, 8) + '...'; |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
return name; |
|
|
return name; |
|
|
}; |
|
|
}; |
|
|
// 被选中的树节点 |
|
|
// 被选中的树节点 |
|
@ -511,12 +515,14 @@ |
|
|
const config = setFactorConfig(orgId.value, treeId.value, tableId.value); |
|
|
const config = setFactorConfig(orgId.value, treeId.value, tableId.value); |
|
|
const selectFactor = () => { |
|
|
const selectFactor = () => { |
|
|
openVisible.value = true; |
|
|
openVisible.value = true; |
|
|
|
|
|
if (treeId.value.length > 0) { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
setFactorRef.value.nsTableRef.params.emissionList = treeId.value; |
|
|
setFactorRef.value.nsTableRef.params.emissionList = treeId.value; |
|
|
setFactorRef.value.nsTableRef.treeElRef.selectedKeys = treeId.value; |
|
|
setFactorRef.value.nsTableRef.treeElRef.selectedKeys = treeId.value; |
|
|
setFactorRef.value.nsTableRef.rowSelection.selectedRowKeys = tableId.value; |
|
|
setFactorRef.value.nsTableRef.rowSelection.selectedRowKeys = tableId.value; |
|
|
setFactorRef.value.nsTableRef.reload(); |
|
|
setFactorRef.value.nsTableRef.reload(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
}; |
|
|
}; |
|
|
const btnClick = () => { |
|
|
const btnClick = () => { |
|
|
let selectRowKeys = setFactorRef.value?.nsTableRef.tableState.selectedRowKeys; |
|
|
let selectRowKeys = setFactorRef.value?.nsTableRef.tableState.selectedRowKeys; |
|
@ -585,6 +591,7 @@ |
|
|
box-shadow: 0px 2px 20px rgb(69 123 234 / 20%); |
|
|
box-shadow: 0px 2px 20px rgb(69 123 234 / 20%); |
|
|
:deep(.ns-table-main) { |
|
|
:deep(.ns-table-main) { |
|
|
border-radius: 8px !important; |
|
|
border-radius: 8px !important; |
|
|
|
|
|
margin-top: unset !important; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
:deep(.ant-table-container) { |
|
|
:deep(.ant-table-container) { |
|
|