|
@ -76,8 +76,12 @@
|
|
|
<a-popconfirm v-if="hasPerm('sysFileInfo:delete')" placement="topRight" title="确认删除?" @confirm="() => sysFileInfoDelete(record)">
|
|
|
<a>删除</a>
|
|
|
</a-popconfirm>
|
|
|
<a-divider type="vertical" v-if="(hasPerm('sysFileInfo:preview') & record.fileSuffix === 'png' || record.fileSuffix === 'jpeg' || record.fileSuffix === 'jpg'|| record.fileSuffix === 'gif'|| record.fileSuffix === 'tif' || record.fileSuffix === 'bmp' ) & hasPerm('sysFileInfo:delete')"/>
|
|
|
<a v-if="(hasPerm('sysFileInfo:preview') & record.fileSuffix === 'png' || record.fileSuffix === 'jpeg'|| record.fileSuffix === 'jpg'|| record.fileSuffix === 'gif'|| record.fileSuffix === 'tif' || record.fileSuffix === 'bmp' )" @click="$refs.previewForm.preview(record)">预览</a>
|
|
|
<a-divider type="vertical" v-if="(hasPerm('sysFileInfo:preview') & record.fileSuffix === 'png' || record.fileSuffix === 'PNG' || record.fileSuffix === 'jpeg' || record.fileSuffix === 'JPEG'
|
|
|
|| record.fileSuffix === 'jpg' || record.fileSuffix === 'JPG' || record.fileSuffix === 'gif' || record.fileSuffix === 'GIF' ||
|
|
|
record.fileSuffix === 'tif' || record.fileSuffix === 'TIF' || record.fileSuffix === 'bmp' || record.fileSuffix === 'BMP') & hasPerm('sysFileInfo:delete')"/>
|
|
|
<a v-if="(hasPerm('sysFileInfo:preview') & record.fileSuffix === 'png' || record.fileSuffix === 'PNG' || record.fileSuffix === 'jpeg' || record.fileSuffix === 'JPEG'
|
|
|
|| record.fileSuffix === 'jpg' || record.fileSuffix === 'JPG' || record.fileSuffix === 'gif' || record.fileSuffix === 'GIF' ||
|
|
|
record.fileSuffix === 'tif' || record.fileSuffix === 'TIF' || record.fileSuffix === 'bmp' || record.fileSuffix === 'BMP')" @click="$refs.previewForm.preview(record)">预览</a>
|
|
|
</span>
|
|
|
</s-table>
|
|
|
<detail-form ref="detailForm" @ok="handleOk" v-if="hasPerm('sysFileInfo:detail')"/>
|