This commit is contained in:
Vinjor 2025-09-22 16:21:31 +08:00
parent 905872c099
commit 6beb39873b
3 changed files with 28 additions and 2 deletions

View File

@ -5,13 +5,13 @@ VUE_APP_TITLE = 成事达管理平台
ENV = 'development' 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 VUE_CLI_BABEL_TRANSPILE_MODULES = true
# websocket # 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/' VUE_APP_PREVIEW = 'https://www.cdtrucktralier.com/admin-preview/'

View File

@ -6,6 +6,7 @@
<el-button type="success" @click="saveTmp"> </el-button> <el-button type="success" @click="saveTmp"> </el-button>
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button type="warning" @click="checkContent">相似度检测</el-button> <el-button type="warning" @click="checkContent">相似度检测</el-button>
<el-button @click="preview">文章预览</el-button>
<el-button @click="toggleSideBar">{{ showKeywords ? '关闭' : '打开' }}关键词推荐</el-button> <el-button @click="toggleSideBar">{{ showKeywords ? '关闭' : '打开' }}关键词推荐</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -215,6 +216,7 @@
<el-button type="success" @click="saveTmp"> </el-button> <el-button type="success" @click="saveTmp"> </el-button>
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button type="warning" @click="checkContent">相似度检测</el-button> <el-button type="warning" @click="checkContent">相似度检测</el-button>
<el-button @click="preview">文章预览</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -393,6 +395,17 @@ export default {
toggleSideBar() { toggleSideBar() {
this.showKeywords = !this.showKeywords 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) { handleCommand(command, row) {
switch (command) { switch (command) {

View File

@ -6,6 +6,7 @@
<el-button type="success" @click="saveTmp"> </el-button> <el-button type="success" @click="saveTmp"> </el-button>
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button type="warning" @click="checkContent">相似度检测</el-button> <el-button type="warning" @click="checkContent">相似度检测</el-button>
<el-button @click="preview">产品预览</el-button>
<el-button @click="toggleSideBar">{{ showKeywords ? '关闭' : '打开' }}关键词推荐</el-button> <el-button @click="toggleSideBar">{{ showKeywords ? '关闭' : '打开' }}关键词推荐</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -201,6 +202,7 @@
<el-button type="success" @click="saveTmp"> </el-button> <el-button type="success" @click="saveTmp"> </el-button>
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
<el-button type="warning" @click="checkContent">相似度检测</el-button> <el-button type="warning" @click="checkContent">相似度检测</el-button>
<el-button @click="preview">产品预览</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -372,6 +374,17 @@ export default {
toggleSideBar() { toggleSideBar() {
this.showKeywords = !this.showKeywords 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) { handleCommand(command, row) {
switch (command) { switch (command) {