Sfoglia il codice sorgente

fix(feeRelatedInfoTable): 费用管理详情需要查看关联业务详情

liujt 6 mesi fa
parent
commit
5e0d552d66

+ 18 - 2
src/views/financialManage/components/feeRelatedInfoTable.vue

@@ -91,13 +91,13 @@
         </template>
         <template
           v-slot:linkName="{ row, $index }"
-          v-if="dialogType !== 'view'"
         >
-          <el-form-item :prop="'datasource.' + $index + '.linkName'">
+          <el-form-item v-if="dialogType !== 'view'" :prop="'datasource.' + $index + '.linkName'">
             <div
               style="display: flex; align-items: center; gap: 8px; width: 100%"
             >
               <el-input
+                
                 v-model="row.linkName"
                 @click.native="(val) => handleSelectData(val, row, $index)"
                 clearable
@@ -115,6 +115,22 @@
               </el-button>
             </div>
           </el-form-item>
+          <div
+            v-else
+            style="display: flex; align-items: center; gap: 8px; width: 100%"
+          >
+            <div style="flex: 1">{{ row.linkName }}</div>
+            <el-button
+              v-if="row.linkId"
+              size="mini"
+              type="text"
+              icon="el-icon-view"
+              @click="handleViewDetail(row)"
+              style="padding: 0"
+            >
+              详情
+            </el-button>
+          </div>
         </template>
         <template v-slot:amount="{ row, $index }" v-if="dialogType !== 'view'">
           <el-form-item