diff --git a/src/components/page/PreIngestedEditor.vue b/src/components/page/PreIngestedEditor.vue index 272ff64..9c07386 100644 --- a/src/components/page/PreIngestedEditor.vue +++ b/src/components/page/PreIngestedEditor.vue @@ -1415,47 +1415,6 @@ export default { select_tem() {}, // 6----创建文章 - EstaBlish() { - this.$api - .post('api/Production/checkRefer', { - p_article_id: this.p_article_id - }) - .then((res) => { - if (res.code == 0) { - const loading = this.$loading({ - lock: true, - text: 'Loading...', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }); - this.$api - .post('api/Production/doTypeSettingNew', { - article_id: this.detailMes.article_id - }) - .then((res) => { - if (res.code == 0) { - this.getWorldPdf(); - this.$message.success('Successfully generated manuscript!'); - loading.close(); - } else { - this.$message.error(res.msg); - loading.close(); - } - }) - .catch((err) => { - this.$message.error(err); - loading.close(); - }); - } else { - this.$message.error(res.msg); - return; - } - }) - .catch((err) => { - this.$message.error(err); - }); - }, - // 6----校对文章 htmlContet() { window.open( diff --git a/src/components/page/PreIngestedEditorProduce.vue b/src/components/page/PreIngestedEditorProduce.vue index 397596a..73c5579 100644 --- a/src/components/page/PreIngestedEditorProduce.vue +++ b/src/components/page/PreIngestedEditorProduce.vue @@ -1510,47 +1510,7 @@ export default { // 6----模板选择 select_tem() {}, - // 6----创建文章 - EstaBlish() { - this.$api - .post('api/Production/checkRefer', { - p_article_id: this.p_article_id - }) - .then((res) => { - if (res.code == 0) { - const loading = this.$loading({ - lock: true, - text: 'Loading...', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }); - this.$api - .post('api/Production/doTypeSettingNew', { - article_id: this.detailMes.article_id - }) - .then((res) => { - if (res.code == 0) { - this.getWorldPdf(); - this.$message.success('Successfully generated manuscript!'); - loading.close(); - } else { - this.$message.error(res.msg); - loading.close(); - } - }) - .catch((err) => { - this.$message.error(err); - loading.close(); - }); - } else { - this.$message.error(res.msg); - return; - } - }) - .catch((err) => { - this.$message.error(err); - }); - }, + diff --git a/src/components/page/articleAdd.vue b/src/components/page/articleAdd.vue index 7160ddd..47dcb1d 100644 --- a/src/components/page/articleAdd.vue +++ b/src/components/page/articleAdd.vue @@ -812,7 +812,7 @@
Save as draft - Save and Submit + Confirm Submit
diff --git a/src/components/page/partyRole.vue b/src/components/page/partyRole.vue index c4efc90..cae9309 100644 --- a/src/components/page/partyRole.vue +++ b/src/components/page/partyRole.vue @@ -853,7 +853,32 @@ - +
+ + + + + + {{ aiLoading ? 'Analyzing...' : 'AI Analysis' }} + +
@@ -1183,6 +1208,7 @@ export default { editorList: [], loading: false, userloading: false, + aiLoading: false, authorArticlesList: [], userrole: localStorage.getItem('U_status'), baseUrl: this.Common.baseUrl, @@ -1456,6 +1482,45 @@ export default { this.getAllEditor(); }, methods: { + handleAiFiled() { + if (this.aiLoading) { + return; + } + this.aiLoading = true; + console.log(this.MessForm.field, this.majorValueList); + this.$api + .post('api/Agent/processOneUser', { + user_id: this.MessForm.user_id, + field: this.MessForm.field + }) + .then((res) => { + console.log('🚀 ~ handleAiFiled ~ res:', res); + + if (res.code == 0) { + this.majorValueList = res.data.majors.map((item) => ({ + + selectedValue: Array.isArray(item.shu) + ? item.shu + : typeof item.shu === 'string' + ? item.shu.split(',').map(Number) + : [item.shu] + })); + if(res.data.majors.length==0){ + this.$message.error(res.data.msg); + }else{ + this.$message.success('Research areas have been automatically parsed'); + } + + } + + this.aiLoading = false; + }) + .catch((err) => { + console.error('handleAiFiled error:', err); + + this.aiLoading = false; + }); + }, async getWosList(id) { var that = this; this.authorList = []; @@ -2818,4 +2883,31 @@ export default { .userIndexBox .s_rol > div.rol_mess > font { width: auto; } +.automatic-parsing-box { + position: relative; + padding-bottom: 34px; + border: 1px solid #dcdfe6; + border-radius: 4px; + color: #006699; +} + +.automaticParsing-btn { + position: absolute; + min-width: 100px; + text-align: center; + right: 4px; + bottom: 2px; + cursor: pointer; + color: #fff; + background-color: #409eff; + border-color: #409eff;padding: 6px 10px; + font-size: 14px; + line-height: 14px; + border-radius: 4px;box-sizing: border-box; +} + +::v-deep .automatic-parsing-box .automaticParsing .el-textarea__inner { + border: none !important; +} +