NEZ-1965 feat : 列表页面内容复制功能
This commit is contained in:
@@ -35,13 +35,22 @@
|
||||
</template>
|
||||
<template slot-scope="scope" :column="item">
|
||||
<span v-if="item.prop === 'dc'">{{scope.row[item.prop]?scope.row[item.prop].name:'-'}}</span>
|
||||
<span v-else-if="item.prop === 'CIDR'">
|
||||
<template>{{ scope.row.addr }}/{{scope.row.mask}}</template>
|
||||
</span>
|
||||
<template v-else-if="item.prop === 'CIDR'">
|
||||
<div style="cursor:text" class="document-copy-block">
|
||||
<span class="document-copy-text">{{ scope.row.addr }}/{{scope.row.mask}}</span>
|
||||
<i class="nz-icon nz-icon-override" style="cursor: pointer;visibility: hidden" @click="onCopy(scope.row.addr + '/' + scope.row.mask)"></i>
|
||||
</div>
|
||||
</template>
|
||||
<span v-else-if="item.prop === 'type'">
|
||||
<template v-if="scope.row.type === 4">IPV4</template>
|
||||
<template v-else-if="scope.row.type === 6">IPV6</template>
|
||||
</span>
|
||||
<template v-else-if="item.prop === 'name'">
|
||||
<div style="cursor:text" class="document-copy-block">
|
||||
<span class="document-copy-text">{{scope.row.name ? scope.row.name : '-'}}</span>
|
||||
<i class="nz-icon nz-icon-override" style="cursor: pointer;visibility: hidden" @click="onCopy(scope.row.name)"></i>
|
||||
</div>
|
||||
</template>
|
||||
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user