Browse Source

编写结论页面修改

duy 1 year ago
parent
commit
86fa280629

+ 2 - 2
src/views/transfer/components/conclusion/table-opinion.vue

@@ -7,7 +7,7 @@
 </template>
 
 <script setup>
-import { onMounted, ref, watch } from 'vue'
+import { onActivated, onMounted, ref } from 'vue'
 import { getArrValue } from 'js-fast-way'
 import initialgApi from '~api/initial/initial'
 
@@ -33,7 +33,7 @@ const contractId = ref(props.contractId)
 const currentId = ref('')
 
 //渲染完成
-onMounted(async () => {
+onActivated(async () => {
     await getCurrentIdData()
     getTableData()
 })

+ 2 - 2
src/views/transfer/components/conclusion/table-score.vue

@@ -36,7 +36,7 @@
 </template>
 
 <script setup>
-import { onMounted, ref, watch } from 'vue'
+import { onActivated, ref, watch } from 'vue'
 import { getArrValue } from 'js-fast-way'
 import writeApi from '~api/transfer/write-conclusion'
 
@@ -71,7 +71,7 @@ watch(() => [
 })
 
 //渲染完成
-onMounted(() => {
+onActivated(() => {
     getTotalData()
 })
 

+ 2 - 2
src/views/transfer/components/conclusion/table-stats.vue

@@ -39,7 +39,7 @@
 </template>
 
 <script setup>
-import { onMounted, ref } from 'vue'
+import { onActivated, ref } from 'vue'
 import { getArrValue } from 'js-fast-way'
 import initialgApi from '~api/initial/initial'
 
@@ -61,7 +61,7 @@ const totalInspectRatio = ref('')
 const tips = ref('')
 
 //渲染完成
-onMounted(() => {
+onActivated(() => {
     getTableData()
 })