feat 一键蹲货功能
Some checks failed
Build image / build (push) Failing after 21s

This commit is contained in:
timerzz 2024-10-30 17:37:47 +08:00
parent 681e0b4875
commit 33cc546886
2 changed files with 8 additions and 2 deletions

View File

@ -1,8 +1,9 @@
<template> <template>
<a-collapse-panel :key="`${provider.providerId}`" > <a-collapse-panel :key="`${provider.providerId}`" >
<template #extra> <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> <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 v-if="provider.skuID">抓取<a-switch :checked="!provider.exclude" @click="onClickExclude"/></div>
</div> </div>
</template> </template>
@ -44,7 +45,7 @@ import {GetProviderHistory, UpdateProviderArticle} from "@/api/articles.js";
import {message} from "ant-design-vue"; import {message} from "ant-design-vue";
import {computed, ref, watch} from "vue"; import {computed, ref, watch} from "vue";
import VChart from "vue-echarts"; import VChart from "vue-echarts";
import {OneClickWatch} from "@/componse/one-click-watch.js";
const props = defineProps({ const props = defineProps({
provider: { provider: {

View File

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