Browse Source

deploy

master
Soleilw 1 year ago
parent
commit
fdbcf9742f

dist/assets/index-Cuc7GVU8.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/index.html View File

@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/logo_1.jpg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>菊城人才市场后台管理</title>
<script type="module" crossorigin src="/assets/index-BsnYnB_M.js"></script>
<script type="module" crossorigin src="/assets/index-Cuc7GVU8.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DSahY579.css">
</head>
<body>

+ 5
- 0
src/views/information/article/columns/index.ts View File

@@ -3,6 +3,11 @@ export const cols = <ColType.type[]>[
title: '文章名',
dataIndex: 'title'
},
{
title: '封面图',
dataIndex: 'cover_img',
slots: { customRender: 'image' },
},
{
title: '置顶',
dataIndex: 'stick_top',

+ 4
- 1
src/views/information/article/index.vue View File

@@ -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);

Loading…
Cancel
Save