From c907d4c1f5b79bc3d6a1bfe8e4bb7cf3f2803c41 Mon Sep 17 00:00:00 2001 From: timerzz Date: Thu, 21 Nov 2024 17:21:17 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/provider.js | 4 + .../fetch-article/fetch-article-panel.vue | 9 -- src/componse/tools/call-ats-tool.vue | 112 ++++++++++++++++++ src/routers/index.js | 1 - src/views/layout/Aside.vue | 8 +- src/views/tools/index.vue | 15 +++ 6 files changed, 138 insertions(+), 11 deletions(-) create mode 100644 src/componse/tools/call-ats-tool.vue create mode 100644 src/views/tools/index.vue diff --git a/src/api/provider.js b/src/api/provider.js index ede21d5..62c7bdc 100644 --- a/src/api/provider.js +++ b/src/api/provider.js @@ -50,6 +50,10 @@ export const FetchProviderArticleAts = (providerArticle)=>{ return provider.post(`/${providerArticle.providerId}/ats/fetch/${providerArticle.skuID}`) } +export const GetProviderArticleAts = (providerId, pid)=>{ + return provider.get(`/${providerId}/ats/${pid}`) +} + export const FetchProviderArticleDetail = (providerId, pid)=>{ return provider.post(`/${providerId}/detail/fetch/${pid}`) } \ No newline at end of file diff --git a/src/componse/fetch-article/fetch-article-panel.vue b/src/componse/fetch-article/fetch-article-panel.vue index 7d16c47..52650e9 100644 --- a/src/componse/fetch-article/fetch-article-panel.vue +++ b/src/componse/fetch-article/fetch-article-panel.vue @@ -108,15 +108,6 @@ const onCancel=()=>{ } const confirmLoading = ref(false) - -// const selectedProvider = computed({ -// get(){ -// return providers.value.find(p=>p.providerId === data.providerId) -// }, -// set(value){ -// data.providerId = value.providerId -// } -// }) \ No newline at end of file diff --git a/src/routers/index.js b/src/routers/index.js index c4f3930..f92d5b8 100644 --- a/src/routers/index.js +++ b/src/routers/index.js @@ -1,7 +1,6 @@ import {createRouter, createWebHashHistory} from "vue-router"; import { routes } from 'vue-router/auto-routes'; - const router = createRouter({ history: createWebHashHistory(), routes:[ diff --git a/src/views/layout/Aside.vue b/src/views/layout/Aside.vue index d3cd67f..1c12984 100644 --- a/src/views/layout/Aside.vue +++ b/src/views/layout/Aside.vue @@ -8,7 +8,7 @@ > + + \ No newline at end of file