提交
This commit is contained in:
1 parent
4f24d3b687
commit
1ff73b9a74
202 files changed
+11989
-10045
No files matched your search
@@ -273,7 +273,7 @@
|
||||
>
|
||||
<div class="route-config-body">
|
||||
<!-- 左侧:工艺库 -->
|
||||
<div class="route-config-left">
|
||||
<div class="route-config-left" v-loading="processLibraryLoading">
|
||||
<div class="route-config-left-header">
|
||||
<h3>工艺库</h3>
|
||||
<el-input
|
||||
@@ -318,7 +318,7 @@
|
||||
</el-collapse-item>
|
||||
</el-collapse>
|
||||
<el-empty
|
||||
v-if="filteredProcessLibrary.length === 0"
|
||||
v-if="filteredProcessLibrary.length === 0 && !processLibraryLoading"
|
||||
description="暂无工艺数据"
|
||||
:image-size="48"
|
||||
/>
|
||||
@@ -1403,6 +1403,7 @@
|
||||
|
||||
// 工艺库数据
|
||||
const processLibrary = ref<Record<string, any>[]>([])
|
||||
const processLibraryLoading = ref(false)
|
||||
const expandedCategories = ref<string[]>([])
|
||||
const chineseOrdinals = [
|
||||
'一',
|
||||
@@ -1829,6 +1830,7 @@
|
||||
})
|
||||
|
||||
async function loadConfigReferenceData() {
|
||||
processLibraryLoading.value = true
|
||||
try {
|
||||
const [processes, categories, sops, outputTypes, equipments] = await Promise.all([
|
||||
fetchAllProcesses(),
|
||||
@@ -1871,6 +1873,13 @@
|
||||
// 展开所有分类
|
||||
expandedCategories.value = Object.keys(catMap)
|
||||
processLibrary.value = Object.values(catMap)
|
||||
} catch {
|
||||
processLibrary.value = []
|
||||
expandedCategories.value = []
|
||||
} finally {
|
||||
processLibraryLoading.value = false
|
||||
}
|
||||
try {
|
||||
await Promise.all([
|
||||
searchItemUnitOptions(''),
|
||||
searchReagentOptions(''),
|
||||
|
||||
Reference in new issue
Block a user