表格换行+领域ai分析+投稿按钮变成submit
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -812,7 +812,7 @@
|
||||
|
||||
<div style="text-align: center; margin: 40px 0 0 0">
|
||||
<el-button type="warning" @click="onStagingSave(4)" class="pro_stage">Save as draft </el-button>
|
||||
<el-button type="primary" @click="onSubmit(1)" class="pro_ceed">Save and Submit</el-button>
|
||||
<el-button type="primary" @click="onSubmit(1)" class="pro_ceed">Confirm Submit </el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -853,7 +853,32 @@
|
||||
<el-input v-model="MessForm.company" placeholder="Please enter"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="Field :" prop="field">
|
||||
<el-input v-model="MessForm.field" placeholder="Please enter" type="textarea" autosize> </el-input>
|
||||
<div class="automatic-parsing-box">
|
||||
<el-input
|
||||
style="border: none"
|
||||
class="automaticParsing"
|
||||
v-model="MessForm.field"
|
||||
placeholder="Please enter"
|
||||
autosize
|
||||
type="textarea"
|
||||
rows="5"
|
||||
>
|
||||
</el-input>
|
||||
|
||||
<span
|
||||
class="automaticParsing-btn"
|
||||
v-if="MessForm.field"
|
||||
|
||||
@click="handleAiFiled"
|
||||
>
|
||||
<i
|
||||
v-if="aiLoading"
|
||||
class="el-icon-loading"
|
||||
style="margin-right: 4px"
|
||||
></i>
|
||||
<span>{{ aiLoading ? 'Analyzing...' : 'AI Analysis' }}</span>
|
||||
</span>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="Introduction :">
|
||||
<el-input v-model="MessForm.introduction" placeholder="Please enter" type="textarea" autosize> </el-input>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user