diff --git a/dist.zip b/dist.zip index ed1503a..9de55fd 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/public/js/global-math.js b/public/js/global-math.js index 9aa76a9..11bdf72 100644 --- a/public/js/global-math.js +++ b/public/js/global-math.js @@ -27,7 +27,7 @@ window.MathJax = window.MathJax || { // **定义全局渲染方法** window.renderMathJax = function (tinymceId) { if (window.MathJax && typeof window.MathJax.typesetPromise === "function") { - console.log("正在渲染 MathJax 公式..."); + // console.log("正在渲染 MathJax 公式..."); // 如果提供了 TinyMCE 编辑器 ID if (tinymceId) { diff --git a/src/components/common/langs/en.js b/src/components/common/langs/en.js index 14fd34c..52a514c 100644 --- a/src/components/common/langs/en.js +++ b/src/components/common/langs/en.js @@ -451,9 +451,18 @@ const en = { "icon_placeholder": "Please enter the author's avatar URL", "remove_author": "Remove Author", "add_author": "Add Author" - } - + }, + AIArticleStatusEn: { + 1: 'WeChat AI content generated', + 2: 'WeChat AI content not generated', + 3: 'Draft not created', + 4: 'Draft created but not published', + 10: 'WeChat article published successfully', + 11: 'WeChat article publishing in progress', + fail: 'WeChat article publishing failed', + unknown: 'Unknown status' + } } diff --git a/src/components/common/langs/zh.js b/src/components/common/langs/zh.js index 4d9a42d..0a1b91f 100644 --- a/src/components/common/langs/zh.js +++ b/src/components/common/langs/zh.js @@ -444,6 +444,16 @@ const zh = { "icon_placeholder": "请输入作者头像地址", "remove_author": "删除作者", "add_author": "添加作者" + }, + AIArticleStatus: { + 1: '公微 AI 内容已生成', + 2: '公微 AI 内容未生成', + 3: '尚未生成草稿', + 4: '草稿已生成,尚未发布', + 10: '公微文章已成功发布', + 11: '公微文章正在发布中', + fail: '公微文章发布失败', + unknown: '状态未知' } } diff --git a/src/components/page/GenerateCharts copy.vue b/src/components/page/GenerateCharts copy.vue index a1f5059..f9d2fdc 100644 --- a/src/components/page/GenerateCharts copy.vue +++ b/src/components/page/GenerateCharts copy.vue @@ -1137,7 +1137,7 @@ export default { } }, updateChange(content, type) { - console.log('content at line 1154:', content); + // console.log('content at line 1154:', content); // console.log('content at line 976:', content); var str = this.$commonJS.transformHtmlString(content); if (type == 'imgNote') { @@ -1153,7 +1153,7 @@ export default { this.currentId = null; this.clearButton(); var data = this.Main_List.find((item) => item.am_id == dataId); - console.log('data at line 667:', data); + // console.log('data at line 667:', data); if (data.type == 1) { var extension = data.image.url.split('.').pop().toLowerCase(); if (extension == 'tif') { diff --git a/src/components/page/GenerateCharts.vue b/src/components/page/GenerateCharts.vue index 9c876cd..ce9cdc9 100644 --- a/src/components/page/GenerateCharts.vue +++ b/src/components/page/GenerateCharts.vue @@ -200,9 +200,10 @@ > + + item.am_id == dataId); - console.log('data at line 667:', data); + // console.log('data at line 667:', data); if (data.type == 1) { var extension = data.image.url.split('.').pop().toLowerCase(); if (extension == 'tif') { @@ -1674,8 +1675,8 @@ export default { async savePic() { this.picStyle.picUrl; - var str = this.picStyle.note?await this.$commonJS.decodeHtml(this.picStyle.note):''; - var titleStr = this.picStyle.title?await this.$commonJS.decodeHtml(this.picStyle.title):""; + var str = this.picStyle1.note ? await this.$commonJS.decodeHtml(this.picStyle1.note) : ''; + var titleStr = this.picStyle1.title ? await this.$commonJS.decodeHtml(this.picStyle1.title) : ''; if (this.picStyle.visiTitle == 'Edit Figure') { this.$api .post(this.urlList.editImage, { @@ -1760,25 +1761,26 @@ export default { } }; var cleanedTableList = content.table ? content.table : []; - console.log('content at line 998:', content); + console.log('content at line 998:', this.lineStyle); cleanedTableList = cleanTableData(content.table); - var strTitle = this.lineStyle.title; - strTitle = await this.$commonJS.decodeHtml(strTitle); + var strTitle = this.lineStyle1.title? this.lineStyle1.title : ''; - var strNote = this.lineStyle.note; + var strNote = this.lineStyle1.note? this.lineStyle1.note : ''; if (strNote != '') { strNote = await this.$commonJS.decodeHtml(strNote); } - + if (strTitle != '') { + strTitle = await this.$commonJS.decodeHtml(strTitle); + } + const loading = this.$loading({ + lock: true, + text: 'Loading...', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); if (content && cleanedTableList && cleanedTableList.length > 0) { if (this.lineStyle.visiTitle == 'Edit Table') { - const loading = this.$loading({ - lock: true, - text: 'Loading...', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }); this.$api .post(this.urlList.editTable, { amt_id: this.lineStyle.amt_id, @@ -1811,14 +1813,15 @@ export default { article_id: this.articleId, table_data: JSON.stringify(cleanedTableList), html_data: content.html_data, - note: this.lineStyle.note, - title: this.lineStyle.title + note: strNote, + title: strTitle }) .then((res) => { if (res.code == 0) { this.$message.success('Successfully Add Table!'); this.threeVisible = false; this.getDate(); + loading.close(); this.$refs.commonWordHtmlTypeSetting.refresh('table'); } else { this.$message.error(res.msg); diff --git a/src/components/page/articleListEditor_C.vue b/src/components/page/articleListEditor_C.vue index 9170f23..3e61a1c 100644 --- a/src/components/page/articleListEditor_C.vue +++ b/src/components/page/articleListEditor_C.vue @@ -56,8 +56,8 @@ {{ item.npp }}. {{ item.title }} - -

Html

+ + Html + + {{ getStatusText(item.ai_wechat_status) }} + @@ -125,21 +134,20 @@ Close - + + - -