|
|
@@ -4,6 +4,9 @@ |
|
|
|
<a-c-operation @refresh="clearData"></a-c-operation> |
|
|
|
<a-c-table :data="commomParams.table.data" :columns="commomParams.table.columns" :pagination="commomParams.page" |
|
|
|
@page="getPage" :loading="loading"> |
|
|
|
<template #image="{ record }"> |
|
|
|
<image-container :need="true" :imgObj="{src: imageprefix + record.cover_img,width: '50px',height: '50px', mode: 'fill'}"></image-container> |
|
|
|
</template> |
|
|
|
<template #stick_top="{ record }"> |
|
|
|
<a-tag color="success" v-if="record.stick_top == 1">置顶</a-tag> |
|
|
|
</template> |
|
|
@@ -31,7 +34,7 @@ |
|
|
|
import { useCommon } from '@/hooks/useCommon'; |
|
|
|
import { cols } from '@/views/information/article/columns'; |
|
|
|
import { message } from 'ant-design-vue'; |
|
|
|
let { store, commomParams, showModal, showOtherModal1 } = useCommon(); |
|
|
|
let { store, commomParams, showModal, showOtherModal1,imageprefix } = useCommon(); |
|
|
|
let loading = ref<Boolean>(true); |
|
|
|
onMounted(() => { |
|
|
|
getData(commomParams.value.search); |