From 6cb7ce5a0fea50cee99314a2ce1387d92c3b83fd Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Fri, 8 Aug 2025 12:12:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=86=E4=BA=AB=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E7=A8=BF=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/all/generationWorkshop.ts | 8 +- .../explore/detail/aiSuggest.vue | 175 ++++++++++++++++++ .../explore/detail/constants.ts | 27 +++ .../explore/detail/index.vue | 153 +++++++++------ .../explore/detail/style.scss | 46 ----- .../explore/list/index.vue | 14 +- .../explore/list/style.scss | 17 +- .../manuscript/detail/index.vue | 5 +- 8 files changed, 322 insertions(+), 123 deletions(-) create mode 100644 src/views/creative-generation-workshop/explore/detail/aiSuggest.vue create mode 100644 src/views/creative-generation-workshop/explore/detail/constants.ts diff --git a/src/api/all/generationWorkshop.ts b/src/api/all/generationWorkshop.ts index e614a6f..ae03fdc 100644 --- a/src/api/all/generationWorkshop.ts +++ b/src/api/all/generationWorkshop.ts @@ -101,15 +101,15 @@ export const getShareWorksDetail = (id: string, shareCode: string) => { }; // 内容稿件-确认(客户) -export const patchShareWorksConfirm = (id: string, params = {}, shareCode: string) => { - return Http.patch(`/v1/share/works/${id}/confirm`, params, { +export const patchShareWorksConfirm = (id: string, shareCode: string) => { + return Http.patch(`/v1/share/works/${id}/confirm`, {}, { headers: { 'share-code': shareCode }, }); }; // 内容稿件-评论(客户) -export const postShareWorksComments = (id: string, params = {}, shareCode: string) => { - return Http.post(`/v1/share/works/${id}/comments`, params, { +export const postShareWorksComments = (id: string, shareCode: string) => { + return Http.post(`/v1/share/works/${id}/comments`, {}, { headers: { 'share-code': shareCode }, }); }; diff --git a/src/views/creative-generation-workshop/explore/detail/aiSuggest.vue b/src/views/creative-generation-workshop/explore/detail/aiSuggest.vue new file mode 100644 index 0000000..bb899cd --- /dev/null +++ b/src/views/creative-generation-workshop/explore/detail/aiSuggest.vue @@ -0,0 +1,175 @@ + + + diff --git a/src/views/creative-generation-workshop/explore/detail/constants.ts b/src/views/creative-generation-workshop/explore/detail/constants.ts new file mode 100644 index 0000000..8273ad4 --- /dev/null +++ b/src/views/creative-generation-workshop/explore/detail/constants.ts @@ -0,0 +1,27 @@ +export const RESULT_LIST = [ + { + label: '合规程度', + value: 'compliance_degree', + class: '!color-#6d4cfe', + }, + { + label: '检验项', + value: 'compliance', + class: '!color-#211F24', + }, + { + label: '高风险', + value: 'high_risk', + class: '!color-#F64B31', + }, + { + label: '中风险', + value: 'medium_risk', + class: '!color-#FFAE00', + }, +]; + +export const ENUM_OPINION = { + wait: 0, // 待确认 + confirm: 1, // 已确认 +}; \ No newline at end of file diff --git a/src/views/creative-generation-workshop/explore/detail/index.vue b/src/views/creative-generation-workshop/explore/detail/index.vue index 09ab964..6e62934 100644 --- a/src/views/creative-generation-workshop/explore/detail/index.vue +++ b/src/views/creative-generation-workshop/explore/detail/index.vue @@ -1,41 +1,23 @@