|
@@ -342,47 +342,50 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
})
|
|
|
.then(() => {
|
|
|
- let routeUrl = this.$router.resolve({
|
|
|
- name: "Editer",
|
|
|
- query: {
|
|
|
- graphId: res.graphId,
|
|
|
- id: res.id,
|
|
|
- categoryName: encodeURI(this.categoryName),
|
|
|
- isPub: 0,
|
|
|
- projectId: this.projectId,
|
|
|
- },
|
|
|
- });
|
|
|
- window.open(routeUrl.href, "_blank");
|
|
|
+ const query= {
|
|
|
+ graphId: res.graphId,
|
|
|
+ id: res.id,
|
|
|
+ categoryName: encodeURI(this.categoryName),
|
|
|
+ isPub: 0,
|
|
|
+ projectId: this.projectId,
|
|
|
+ }
|
|
|
+ this.finalToEdit(query)
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
} else {
|
|
|
- let routeUrl = this.$router.resolve({
|
|
|
- name: "Editer",
|
|
|
- query: {
|
|
|
- graphId: data.graphId,
|
|
|
- id: data.id,
|
|
|
- categoryName: encodeURI(this.categoryName),
|
|
|
- isPub: this.isPub,
|
|
|
- projectId: this.projectId,
|
|
|
- },
|
|
|
- });
|
|
|
- window.open(routeUrl.href, "_blank");
|
|
|
+ const query={
|
|
|
+ graphId: data.graphId,
|
|
|
+ id: data.id,
|
|
|
+ categoryName: encodeURI(this.categoryName),
|
|
|
+ isPub: this.isPub,
|
|
|
+ projectId: this.projectId,
|
|
|
+ }
|
|
|
+ this.finalToEdit(query)
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
// 进入草稿
|
|
|
- let routeUrl = this.$router.resolve({
|
|
|
+ const query= {
|
|
|
+ graphId: data.graphId,
|
|
|
+ id: data.id,
|
|
|
+ categoryName: encodeURI(this.categoryName),
|
|
|
+ isPub: this.isPub,
|
|
|
+ projectId: this.projectId,
|
|
|
+ }
|
|
|
+ this.finalToEdit(query)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 点击已发布,最终跳转编辑器
|
|
|
+ */
|
|
|
+ finalToEdit(query) {
|
|
|
+ setTimeout(() => {
|
|
|
+ const routeUrl = this.$router.resolve({
|
|
|
name: "Editer",
|
|
|
- query: {
|
|
|
- graphId: data.graphId,
|
|
|
- id: data.id,
|
|
|
- categoryName: encodeURI(this.categoryName),
|
|
|
- isPub: this.isPub,
|
|
|
- projectId: this.projectId,
|
|
|
- },
|
|
|
+ query,
|
|
|
});
|
|
|
window.open(routeUrl.href, "_blank");
|
|
|
- }
|
|
|
+ }, 500)
|
|
|
},
|
|
|
/////////////////接口
|
|
|
// 查询图形信息
|