From 6beb39873bf8134b7c72b77bd19133711dbfa491 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Mon, 22 Sep 2025 16:21:31 +0800 Subject: [PATCH] 1 --- dl_vue/.env.development | 4 ++-- dl_vue/src/views/busi/new/newForm.vue | 13 +++++++++++++ dl_vue/src/views/busi/prod/prodForm.vue | 13 +++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/dl_vue/.env.development b/dl_vue/.env.development index 034a9e5..04d843d 100644 --- a/dl_vue/.env.development +++ b/dl_vue/.env.development @@ -5,13 +5,13 @@ VUE_APP_TITLE = 成事达管理平台 ENV = 'development' # 成事达管理平台/生产环境 -VUE_APP_BASE_API = 'https://admin.cdtrucktralier.com' +VUE_APP_BASE_API = 'http://127.0.0.1:8099' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true # websocket -VUE_APP_WEBSOCKET = 'wss://admin.cdtrucktralier.com/ws/asset/' +VUE_APP_WEBSOCKET = 'ws://127.0.0.1:8099/ws/asset/' # 产品、文章预览 VUE_APP_PREVIEW = 'https://www.cdtrucktralier.com/admin-preview/' diff --git a/dl_vue/src/views/busi/new/newForm.vue b/dl_vue/src/views/busi/new/newForm.vue index f6fd7ed..5de2e92 100644 --- a/dl_vue/src/views/busi/new/newForm.vue +++ b/dl_vue/src/views/busi/new/newForm.vue @@ -6,6 +6,7 @@ 暂 存 发 布 相似度检测 + 文章预览 {{ showKeywords ? '关闭' : '打开' }}关键词推荐 @@ -215,6 +216,7 @@ 暂 存 发 布 相似度检测 + 文章预览 @@ -393,6 +395,17 @@ export default { toggleSideBar() { this.showKeywords = !this.showKeywords }, + /** + * 预览文章 + */ + preview(){ + if(!this.form.id){ + this.$modal.msgWarning("请先保存或暂存新闻信息!") + return + } + let url =this.previewPrex+this.form.id+"?private=1BC0FFEC2294283E9BDB89E188FCA574" + window.open(url) + }, // 更多操作触发 handleCommand(command, row) { switch (command) { diff --git a/dl_vue/src/views/busi/prod/prodForm.vue b/dl_vue/src/views/busi/prod/prodForm.vue index be95317..7631af4 100644 --- a/dl_vue/src/views/busi/prod/prodForm.vue +++ b/dl_vue/src/views/busi/prod/prodForm.vue @@ -6,6 +6,7 @@ 暂 存 发 布 相似度检测 + 产品预览 {{ showKeywords ? '关闭' : '打开' }}关键词推荐 @@ -201,6 +202,7 @@ 暂 存 发 布 相似度检测 + 产品预览 @@ -372,6 +374,17 @@ export default { toggleSideBar() { this.showKeywords = !this.showKeywords }, + /** + * 预览产品 + */ + preview(){ + if(!this.form.id){ + this.$modal.msgWarning("请先保存或暂存产品信息!") + return + } + let url =this.previewPrex+this.form.id+"?private=CAC8F0807B8FB7EA72AF3596600F888A" + window.open(url) + }, // 更多操作触发 handleCommand(command, row) { switch (command) {