This commit is contained in:
2025-11-21 09:35:57 +08:00
parent 4755bed457
commit 2aff7f1ff7
3 changed files with 43 additions and 35 deletions

View File

@@ -19,8 +19,8 @@ const service = axios.create({
// baseURL: 'https://submission.tmrjournals.com/', //正式 记得切换 // baseURL: 'https://submission.tmrjournals.com/', //正式 记得切换
// baseURL: 'http://www.tougao.com/', //测试本地 记得切换 // baseURL: 'http://www.tougao.com/', //测试本地 记得切换
// baseURL: 'http://192.168.110.110/tougao/public/index.php/', // baseURL: 'http://192.168.110.110/tougao/public/index.php/',
// baseURL: '/api', //本地 baseURL: '/api', //本地
baseURL: '/', //正式 // baseURL: '/', //正式
}); });

View File

@@ -422,7 +422,9 @@
<el-table-column label="Status" align="center" width="55" v-if="parseVisible"> <el-table-column label="Status" align="center" width="55" v-if="parseVisible">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-loading" style="font-size: 24px;color: #606266;"></i><i class="el-icon-success" style="font-size: 24px;color: #2ac95c;"></i> <i class="el-icon-loading" style="font-size: 24px;color: #606266;" v-if="scope.row.is_deal==2"></i>
<i class="el-icon-success" style="font-size: 24px;color: #2ac95c;" v-if="scope.row.is_deal==1"></i>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -564,11 +566,16 @@ export default {
var progress = 0; var progress = 0;
// await axios this.$api
// .get('获取进度条接口地址') .post(
// .then(async (res) => { 'api/Preaccept/getReferState',{ article_id: this.$route.query.id})
.then(async (res) => {
if(res.status==1){
progress = Number(res.data.processed_total);
this.Tempredable=res.data.refer;
}
//percent是后端返回的进度 //percent是后端返回的进度
progress = Number(this.progressPercent+1);
if (progress == this.Tempredable.length) { if (progress == this.Tempredable.length) {
this.isUpload = false; this.isUpload = false;
@@ -578,7 +585,7 @@ export default {
this.$forceUpdate(); this.$forceUpdate();
} }
// }); });
return progress; return progress;
}, },
@@ -671,49 +678,50 @@ export default {
showHelp() { showHelp() {
this.helpVisible = true; this.helpVisible = true;
}, },
handleparse() { // handleparse() {
// this.linVisible = false; // // this.linVisible = false;
// setTimeout(() => { // // setTimeout(() => {
this.getParseData(); // this.getParseData();
// }, 1000); // // }, 1000);
}, // },
// 获取解析数据 // 获取解析数据
getParseData() { getParseData() {
this.parseVisible = true;
this.isUpload=true
},
// 导入文本域
handleparse() {
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
text: 'Loading...', text: 'Loading...',
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}); });
setTimeout(() => {loading.close()
this.parseVisible = true;
this.isUpload=true
}, 2000);
},
// 导入文本域
importText() {
this.linVisible = false;
this.importIoading = true;
//console.log(this.form.referFile,'referFile') //console.log(this.form.referFile,'referFile')
this.$api this.$api
.post('api/Preaccept/addRefersByExcel', { .post('api/Preaccept/addRefersByExcelNew', {
article_id: this.$route.query.id, article_id: this.$route.query.id,
referFile: this.form.referFile referFile: this.form.referFile
}) })
.then((res) => { .then((res) => {
loading.close()
if (res.code == 0) { if (res.code == 0) {
this.$message.success('Import succeeded');
this.linVisible = false;
this.Tempredable = []; this.getParseData();
this.importIoading = false; }else{ loading.close()
// 有可以可用的文献数据,刷新当前页面 this.$message.error(res.msg);
// location.reload() // 刷新本页面
this.getRefData();
} }
}) })
.catch((err) => { .catch((err) => {
loading.close()
console.log(err); console.log(err);
}); });
}, },

View File

@@ -76,8 +76,8 @@ module.exports = {
// target: 'http://192.168.110.110/tougao/public/index.php/', // target: 'http://192.168.110.110/tougao/public/index.php/',
// target: 'http://api.tmrjournals.com/public/index.php/',//正式 // target: 'http://api.tmrjournals.com/public/index.php/',//正式
// target: 'http://zmzm.tougao.dev.com/',//晓玲 // target: 'http://zmzm.tougao.dev.com/',//晓玲
target: 'https://submission.tmrjournals.com/',//正式 // target: 'https://submission.tmrjournals.com/',//正式
// target: 'http://tougaotest.tmrjournals.com/public/index.php/',//测试环境 target: 'http://tougaotest.tmrjournals.com/public/index.php/',//测试环境
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/api': '' '^/api': ''