Browse Source

修改加载状态

duy 7 months ago
parent
commit
c96d17ffb1
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/views/tentative/detect/commission.vue

+ 4 - 3
src/views/tentative/detect/commission.vue

@@ -67,7 +67,7 @@
                 </template>
                 <template #action="{ row }">
                     <hc-tooltip keys="tentative_material_commission_edit">
-                        <el-link v-if="row.status === 1" type="primary" @click="rowEdit(row)">修改</el-link>
+                        <el-link v-if="row.status === 1" type="primary" @click="rowEdit(row)" v-loading="rowLoad">修改</el-link>
                         <el-link v-else type="success" @click="rowView(row)">查看</el-link>
                     </hc-tooltip>
                     <hc-tooltip keys="tentative_material_commission_fill">
@@ -387,6 +387,7 @@ const delegateHtmlRender = (form) => {
 
 //修改
 const editHtmlId = ref('')
+const rowLoad=ref(false)
 const rowEdit = async(row) => {
 
     editHtmlId.value = row.id
@@ -394,12 +395,12 @@ const rowEdit = async(row) => {
     delegateContractId.value = contractId
     if (!isNullES(contractId)) {
         // delegateContractChange()
-   
+        rowLoad.value = true
         delegateHtmlLoading.value = true
        
         await getDelegateExcelHtml()
         await getDelegateDataInfo('',row.id)
-   
+        rowLoad.value = false
         delegateHtmlLoading.value = false
         delegateModal.value = true
     }