|
|
@@ -12,53 +12,55 @@ |
|
|
|
style="margin: 0 4px; font-size: 18px; color: #e5e7eb" |
|
|
|
>|</span |
|
|
|
> |
|
|
|
<el-button |
|
|
|
:disabled=" |
|
|
|
item.showParam ? !showFilter(item.showParam, scope.row) : false |
|
|
|
" |
|
|
|
type="text" |
|
|
|
style="margin: 5px 0; padding: 0" |
|
|
|
@click=" |
|
|
|
clickButton({ |
|
|
|
data: scope.row, |
|
|
|
type: item.type |
|
|
|
}) |
|
|
|
" |
|
|
|
> |
|
|
|
<span |
|
|
|
v-if=" |
|
|
|
item.type === 'delete' || |
|
|
|
item.type === 'edit' || |
|
|
|
item.type === 'detail' |
|
|
|
<el-tooltip :disabled="item.showTip?false:true" :content="item.showTip" placement="top"> |
|
|
|
<el-button |
|
|
|
:disabled=" |
|
|
|
item.showParam ? !showFilter(item.showParam, scope.row) : false |
|
|
|
" |
|
|
|
class="iconfont" |
|
|
|
:class=" |
|
|
|
item.type === 'delete' |
|
|
|
? 'icon-delete' + |
|
|
|
(item.showParam |
|
|
|
? !showFilter(item.showParam, scope.row) |
|
|
|
? '' |
|
|
|
: ' delete-color' |
|
|
|
: ' delete-color') |
|
|
|
: item.type === 'edit' |
|
|
|
? 'icon-edit' + |
|
|
|
(item.showParam |
|
|
|
? !showFilter(item.showParam, scope.row) |
|
|
|
? '' |
|
|
|
: ' primary-color' |
|
|
|
: ' primary-color') |
|
|
|
: item.type === 'detail' |
|
|
|
? 'icon-detail' + |
|
|
|
(item.showParam |
|
|
|
? !showFilter(item.showParam, scope.row) |
|
|
|
? '' |
|
|
|
: ' primary-color' |
|
|
|
: ' primary-color') |
|
|
|
: '' |
|
|
|
type="text" |
|
|
|
style="margin: 5px 0; padding: 0" |
|
|
|
@click=" |
|
|
|
clickButton({ |
|
|
|
data: scope.row, |
|
|
|
type: item.type |
|
|
|
}) |
|
|
|
" |
|
|
|
></span> |
|
|
|
<span v-else>{{ item.btnName }}</span> |
|
|
|
</el-button> |
|
|
|
> |
|
|
|
<span |
|
|
|
v-if=" |
|
|
|
item.type === 'delete' || |
|
|
|
item.type === 'edit' || |
|
|
|
item.type === 'detail' |
|
|
|
" |
|
|
|
class="iconfont" |
|
|
|
:class=" |
|
|
|
item.type === 'delete' |
|
|
|
? 'icon-delete' + |
|
|
|
(item.showParam |
|
|
|
? !showFilter(item.showParam, scope.row) |
|
|
|
? '' |
|
|
|
: ' delete-color' |
|
|
|
: ' delete-color') |
|
|
|
: item.type === 'edit' |
|
|
|
? 'icon-edit' + |
|
|
|
(item.showParam |
|
|
|
? !showFilter(item.showParam, scope.row) |
|
|
|
? '' |
|
|
|
: ' primary-color' |
|
|
|
: ' primary-color') |
|
|
|
: item.type === 'detail' |
|
|
|
? 'icon-detail' + |
|
|
|
(item.showParam |
|
|
|
? !showFilter(item.showParam, scope.row) |
|
|
|
? '' |
|
|
|
: ' primary-color' |
|
|
|
: ' primary-color') |
|
|
|
: '' |
|
|
|
" |
|
|
|
></span> |
|
|
|
<span v-else>{{ item.btnName }}</span> |
|
|
|
</el-button> |
|
|
|
</el-tooltip> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|