|
@@ -91,13 +91,13 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template
|
|
<template
|
|
|
v-slot:linkName="{ row, $index }"
|
|
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
|
|
<div
|
|
|
style="display: flex; align-items: center; gap: 8px; width: 100%"
|
|
style="display: flex; align-items: center; gap: 8px; width: 100%"
|
|
|
>
|
|
>
|
|
|
<el-input
|
|
<el-input
|
|
|
|
|
+
|
|
|
v-model="row.linkName"
|
|
v-model="row.linkName"
|
|
|
@click.native="(val) => handleSelectData(val, row, $index)"
|
|
@click.native="(val) => handleSelectData(val, row, $index)"
|
|
|
clearable
|
|
clearable
|
|
@@ -115,6 +115,22 @@
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</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>
|
|
|
<template v-slot:amount="{ row, $index }" v-if="dialogType !== 'view'">
|
|
<template v-slot:amount="{ row, $index }" v-if="dialogType !== 'view'">
|
|
|
<el-form-item
|
|
<el-form-item
|