This commit is contained in:
@fawn-nine
2023-06-27 17:04:55 +08:00
parent 20c809387d
commit fbfbd8b6f6

View File

@@ -13,7 +13,7 @@
<div style="margin: 30px 0 0 0;"> <div style="margin: 30px 0 0 0;">
<el-button type="primary" @click="pushProduce(detailMes)" style="width: 220px;"> <el-button type="primary" @click="pushProduce(detailMes)" style="width: 220px;">
<i class="el-icon-finished"></i> <i class="el-icon-finished"></i>
Push Online Push To Produce
</el-button> </el-button>
</div> </div>
</div> </div>
@@ -284,8 +284,9 @@
return { return {
baseUrl: this.Common.baseUrl, baseUrl: this.Common.baseUrl,
mediaUrl: this.Common.mediaUrl, mediaUrl: this.Common.mediaUrl,
// p_article_id: this.$route.query.id, article_id: this.$route.query.id, // 文章id
p_article_id: 426, p_article_id: null,
//p_article_id: 426,
idform: {}, idform: {},
imageUrl: '', imageUrl: '',
contentStyleObj: { contentStyleObj: {
@@ -665,37 +666,41 @@
this.getWorldPdf(); this.getWorldPdf();
}, },
methods: { methods: {
allLoad() { // allLoad() {
let excelList = [ // let excelList = [
'https://submission.tmrjournals.com/public/manuscirpt/20220831/c7d75d49bf25cf56906d56d07e00a31e.docx', // 'https://submission.tmrjournals.com/public/manuscirpt/20220831/c7d75d49bf25cf56906d56d07e00a31e.docx',
'https://submission.tmrjournals.com/public/manuscirpt/20220925/d1106d60fbfa04e900e98aacb5fdf71a.docx' // 'https://submission.tmrjournals.com/public/manuscirpt/20220925/d1106d60fbfa04e900e98aacb5fdf71a.docx'
] // ]
for (let i = 0; i < excelList.length; i++) { // for (let i = 0; i < excelList.length; i++) {
if (i == 0) { // if (i == 0) {
const a_b = document.createElement('a'); // const a_b = document.createElement('a');
a_b.href = excelList[i]; // a_b.href = excelList[i];
a_b.download = '1world.docx'; // a_b.download = '1world.docx';
console.log(a_b) // console.log(a_b)
a_b.click() // a_b.click()
setTimeout(() => { // setTimeout(() => {
a_b.remove(); // a_b.remove();
}, 1000); // }, 1000);
} // }
if (i == 1) { // if (i == 1) {
setTimeout(() => { // setTimeout(() => {
const c_d = document.createElement('a'); // const c_d = document.createElement('a');
c_d.href = excelList[i]; // c_d.href = excelList[i];
c_d.download = '2world.docx'; // c_d.download = '2world.docx';
console.log(c_d) // console.log(c_d)
c_d.click() // c_d.click()
setTimeout(() => { // setTimeout(() => {
c_d.remove(); // c_d.remove();
}, 1000); // }, 1000);
}, 2000); // }, 2000);
} // }
} // }
}, // },
// 获取p_article_id的值
getParticle_id(){
},
getData() { getData() {
this.idform.p_article_id = this.p_article_id; this.idform.p_article_id = this.p_article_id;
@@ -2185,6 +2190,7 @@
} }
.bor_style_onli { .bor_style_onli {
height: 700px; overflow-y: scroll;
border: 2px solid #0066991a; border: 2px solid #0066991a;
background-color: #fff; background-color: #fff;
border-radius: 5px; border-radius: 5px;