|
@@ -117,16 +117,53 @@ export default {
|
|
|
this.state = 3
|
|
|
this.record('分片合并完成,等待更新专利说明书')
|
|
|
let params = {
|
|
|
- url: response.data[0],
|
|
|
- type: this.form.type,
|
|
|
- remark: this.form.remark
|
|
|
+ fileGuid: response.data[0],
|
|
|
+ pdfType: this.form.type,
|
|
|
+ remark: this.form.remark
|
|
|
}
|
|
|
await this.$api.batchUploadPatentInstruction(params)
|
|
|
this.record('开始更新专利说明书')
|
|
|
+ this.getConfirm()
|
|
|
this.del()
|
|
|
|
|
|
})
|
|
|
},
|
|
|
+ //弹窗
|
|
|
+ getConfirm() {
|
|
|
+ const h = this.$createElement;
|
|
|
+ this.$msgbox({
|
|
|
+ title: "提示",
|
|
|
+ message: h("p", null, [
|
|
|
+ h("span", null, "任务正在导入,查看任务进度请前往"),
|
|
|
+ h(
|
|
|
+ "span",
|
|
|
+ {
|
|
|
+ class: "MessageBoxClass",
|
|
|
+ on: {
|
|
|
+ click: () => {
|
|
|
+ this.toTaskList();
|
|
|
+ // 通过close关闭消息弹窗,this.$confirm就是this.$confirm.close(false),其他同理
|
|
|
+ this.$msgbox.close(false);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ "任务清单"
|
|
|
+ ),
|
|
|
+ ]),
|
|
|
+ type: "warning",
|
|
|
+ showConfirmButton: false,
|
|
|
+ }).then((action) => {});
|
|
|
+ },
|
|
|
+ //跳转到任务清单
|
|
|
+ toTaskList() {
|
|
|
+ // 传专题库id是查到当前专题库的导入任务,不传是查看所有导入任务
|
|
|
+ this.$router.push({
|
|
|
+ path: "/taskList",
|
|
|
+ // query:{
|
|
|
+ // importToId:this.form.importToId
|
|
|
+ // }
|
|
|
+ });
|
|
|
+ },
|
|
|
record(status, ) {
|
|
|
this.recordMessage = status
|
|
|
this.currentIndex += 1
|