Compare commits

...

2 Commits

Author SHA1 Message Date
33cc546886 feat 一键蹲货功能
Some checks failed
Build image / build (push) Failing after 21s
2024-10-30 17:37:47 +08:00
681e0b4875 fix 修复图片展示太大的问题 2024-10-30 17:16:43 +08:00
4 changed files with 16 additions and 6 deletions

View File

@ -1,8 +1,9 @@
<template>
<a-collapse-panel :key="`${provider.providerId}`" >
<template #extra>
<div class="flex space-x-4">
<div class="flex space-x-4 items-center">
<div>更新时间{{dayjs(provider.updatedAt).format('YYYY-MM-DD HH:mm:ss')}}</div>
<a-button v-if="provider.providerId==='us-coach-outlet'" type="primary" @click="OneClickWatch(provider.pid, provider.pid)">一键蹲货</a-button>
<div v-if="provider.skuID">抓取<a-switch :checked="!provider.exclude" @click="onClickExclude"/></div>
</div>
</template>
@ -44,7 +45,7 @@ import {GetProviderHistory, UpdateProviderArticle} from "@/api/articles.js";
import {message} from "ant-design-vue";
import {computed, ref, watch} from "vue";
import VChart from "vue-echarts";
import {OneClickWatch} from "@/componse/one-click-watch.js";
const props = defineProps({
provider: {

View File

@ -3,4 +3,9 @@ html,body,#app {
width: 100%;
padding: 0;
margin: 0;
}
::-webkit-scrollbar {
width: 0;
background: transparent;
}

View File

@ -1,7 +1,9 @@
<template>
<div class="overflow-overlay h-full m-4 bg-white rounded-2 shadow-lg p-8 flex flex-col justify-between space-y-4">
<div class="border-solid border-2 border-gray-100 rounded-lg p-4 flex space-x-8">
<a-image :src="data.image" :width="100"></a-image>
<div class="border-solid border-2 border-gray-100 rounded-lg p-4 flex space-x-8 items-center">
<div class="w-100px">
<a-image :src="data.image" ></a-image>
</div>
<div class="flex justify-between w-full pr-16">
<div class="p-4 flex flex-col justify-between">
<div class="text-xl font-bold">名称{{data.name}}</div>

View File

@ -12,7 +12,9 @@
<a-table :dataSource="data.list" :columns="columns" :pagination="false" :scroll="{y:1000}" @change="tableChange" rowKey="id">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :width="75" :src="record.image"/>
<div class="w-75px h-75px">
<a-image :src="record.image"/>
</div>
</template>
<template v-else-if="column.key === 'name'">
<router-link target="_blank" :to="{ path: '/article/detail', query: {id: record.id} }">
@ -47,7 +49,7 @@
</template>
<script setup>
import {computed, h, onMounted, reactive, ref, watch} from "vue";
import {computed, h, onMounted, reactive, ref} from "vue";
import {LoadingOutlined} from "@ant-design/icons-vue";
import {message} from "ant-design-vue";
import {ListArticles, UpdateArticle} from "@/api/articles.js";