表格换行+领域ai分析+投稿按钮变成submit
This commit is contained in:
@@ -1415,47 +1415,6 @@ export default {
|
|||||||
select_tem() {},
|
select_tem() {},
|
||||||
|
|
||||||
// 6----创建文章
|
// 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----校对文章
|
// 6----校对文章
|
||||||
htmlContet() {
|
htmlContet() {
|
||||||
window.open(
|
window.open(
|
||||||
|
|||||||
@@ -1510,47 +1510,7 @@ export default {
|
|||||||
// 6----模板选择
|
// 6----模板选择
|
||||||
select_tem() {},
|
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">
|
<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="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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -853,7 +853,32 @@
|
|||||||
<el-input v-model="MessForm.company" placeholder="Please enter"></el-input>
|
<el-input v-model="MessForm.company" placeholder="Please enter"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Field :" prop="field">
|
<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>
|
||||||
<el-form-item label="Introduction :">
|
<el-form-item label="Introduction :">
|
||||||
<el-input v-model="MessForm.introduction" placeholder="Please enter" type="textarea" autosize> </el-input>
|
<el-input v-model="MessForm.introduction" placeholder="Please enter" type="textarea" autosize> </el-input>
|
||||||
@@ -1183,6 +1208,7 @@ export default {
|
|||||||
editorList: [],
|
editorList: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
userloading: false,
|
userloading: false,
|
||||||
|
aiLoading: false,
|
||||||
authorArticlesList: [],
|
authorArticlesList: [],
|
||||||
userrole: localStorage.getItem('U_status'),
|
userrole: localStorage.getItem('U_status'),
|
||||||
baseUrl: this.Common.baseUrl,
|
baseUrl: this.Common.baseUrl,
|
||||||
@@ -1456,6 +1482,45 @@ export default {
|
|||||||
this.getAllEditor();
|
this.getAllEditor();
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
async getWosList(id) {
|
||||||
var that = this;
|
var that = this;
|
||||||
this.authorList = [];
|
this.authorList = [];
|
||||||
@@ -2818,4 +2883,31 @@ export default {
|
|||||||
.userIndexBox .s_rol > div.rol_mess > font {
|
.userIndexBox .s_rol > div.rol_mess > font {
|
||||||
width: auto;
|
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>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user