Parcourir la source

联动数据组件优化

luoaoxuan il y a 1 an
Parent
commit
f2eb59f5dc

+ 5 - 1
src/business/platform/form/formbuilder/right-aside/components/data-template-linkdata.vue

@@ -13,7 +13,11 @@
         @close="closeDialog"
         @close="closeDialog"
     >
     >
         <el-table ref="elTable" :data="formData" border stripe>
         <el-table ref="elTable" :data="formData" border stripe>
-            <el-table-column label="返回结果字段" prop="label" />
+            <el-table-column label="返回结果字段" prop="label">
+                <template slot-scope="{row}">
+                    <span>{{ row.label===row.name?row.label:`${row.label}(${row.name})` }}</span>
+                </template>
+            </el-table-column>
             <el-table-column label="绑定显示的属性" prop="field">
             <el-table-column label="绑定显示的属性" prop="field">
                 <template slot-scope="scope">
                 <template slot-scope="scope">
                     <el-select v-model="scope.row.field" clearable @clear="scope.row.showRule=''">
                     <el-select v-model="scope.row.field" clearable @clear="scope.row.showRule=''">