fix : 修复所属公司及详情loading
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="detail-block">
|
||||
<div class="detail-block" v-loading="loading">
|
||||
<baseTitle title="需求上报"></baseTitle>
|
||||
<el-form :model="formData" ref="summaryForm" :rules="rules">
|
||||
<el-row gutter="50">
|
||||
@@ -251,6 +251,7 @@ const processStore = useProcessStore()
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
const name=ref(router.currentRoute.value.name)
|
||||
const loading = ref(false)
|
||||
const processDiagramViewer = ref(false)
|
||||
const tagsViewStore = useTagsView()
|
||||
const companyOption = ref([])
|
||||
@@ -440,6 +441,7 @@ const getDetailInfo = async () => {
|
||||
})
|
||||
if (res.code === 1000) {
|
||||
formData.value = res.data.formData
|
||||
loading.value=false
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -468,16 +470,17 @@ const init = async () => {
|
||||
})
|
||||
}
|
||||
onMounted(async () => {
|
||||
loading.value=true
|
||||
await init()
|
||||
if (route.query.projectId) {
|
||||
await getDetailInfo()
|
||||
}
|
||||
|
||||
})
|
||||
const staging = async () => {
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.detail-block {
|
||||
overflow: hidden;
|
||||
padding-bottom: 30px;
|
||||
|
||||
Reference in New Issue
Block a user