fix : 复制功能组件替换
This commit is contained in:
@@ -43,22 +43,25 @@
|
||||
</template>
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'name'">
|
||||
<div class="document-copy-block">
|
||||
<span class="document-copy-text">{{scope.row.name ? scope.row.name : '-'}}</span>
|
||||
<i v-if="scope.row.name" class="nz-icon nz-icon-override" style="visibility: hidden" @click="onCopy(scope.row.name)" :title="$t('overall.copyText')"></i>
|
||||
</div>
|
||||
<copy :copyData='scope.row[item.prop]' :showInfo='scope.row[item.prop]'>
|
||||
<template slot="copy-text">
|
||||
{{scope.row[item.prop]?scope.row[item.prop]:'-'}}
|
||||
</template>
|
||||
</copy>
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'brand'">
|
||||
<div class="document-copy-block">
|
||||
<span class="document-copy-text">{{scope.row.brand.name}}</span>
|
||||
<i v-if="scope.row.brand.name" class="nz-icon nz-icon-override" style="visibility: hidden" @click="onCopy(scope.row.brand.name)" :title="$t('overall.copyText')"></i>
|
||||
</div>
|
||||
<copy :copyData='scope.row.brand.name' :showInfo='scope.row.brand.name'>
|
||||
<template slot="copy-text">
|
||||
{{scope.row.brand.name}}
|
||||
</template>
|
||||
</copy>
|
||||
</template>
|
||||
<template v-else-if="item.prop === 'type'">
|
||||
<div class="document-copy-block">
|
||||
<span class="document-copy-text">{{scope.row.type ? scope.row.type.name : '-'}}</span>
|
||||
<i v-if="scope.row.type" class="nz-icon nz-icon-override" style="visibility: hidden" @click="onCopy(scope.row.type.name)" :title="$t('overall.copyText')"></i>
|
||||
</div>
|
||||
<copy :copyData='scope.row.type.name' :showInfo='scope.row[item.prop]'>
|
||||
<template slot="copy-text">
|
||||
{{scope.row.type ? scope.row.type.name : '-'}}
|
||||
</template>
|
||||
</copy>
|
||||
</template>
|
||||
<span v-else-if="item.prop === 'createTime'">{{utcTimeToTimezoneStr(scope.row[item.prop])}}</span>
|
||||
<template v-else-if="item.prop === 'assetNum'">
|
||||
@@ -122,10 +125,11 @@
|
||||
<script>
|
||||
import table from '@/components/common/mixin/table'
|
||||
import deleteButton from '@/components/common/deleteButton'
|
||||
import copy from '@/components/common/copy'
|
||||
export default {
|
||||
name: 'modelTable',
|
||||
mixins: [table],
|
||||
components: { deleteButton },
|
||||
components: { deleteButton, copy },
|
||||
props: {
|
||||
loading: Boolean
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user