|
@@ -350,7 +350,7 @@ export default {
|
|
|
bus.$on("savePlanImg", () => {
|
|
|
// 隐藏选择器
|
|
|
this.scene.selectContainer.clear();
|
|
|
- this.view.saveImageSize(`${this.planContent.name}.png`, "png", this.canvasWidth, this.canvasHeight);
|
|
|
+ this.view.saveImageSize(`${this.planContent.name}.png`, "png", this.canvasWidth, this.canvasHeight, this.view.backgroundColor.value);
|
|
|
});
|
|
|
// 发布图片
|
|
|
bus.$off("issuePlan");
|
|
@@ -783,7 +783,8 @@ export default {
|
|
|
// 重设版本号
|
|
|
if (vals[1].version && vals[1].id && vals[1].graphId) {
|
|
|
this.SETPROJECT(vals[1]);
|
|
|
- this.$message.success(`保存成功${vals[1].version}`);
|
|
|
+ this.$message.success(`保存成功`);
|
|
|
+ // ${vals[1].version}
|
|
|
const { folderId, folderName, buildingId, floorId, floorLocalName, name, floorMap } = this.$route.query;
|
|
|
this.$router.replace({
|
|
|
name: "Editer",
|
|
@@ -868,6 +869,7 @@ export default {
|
|
|
ruleList: this.ruleList, // 实例数据获取规则
|
|
|
pic: `${uuid}.png`, // 图快照
|
|
|
version: this.version, // 版本号
|
|
|
+ viewBackground: this.view.backgroundColor.value, //视图背景色
|
|
|
};
|
|
|
// 区域显示时,上送区域显示的outline点坐标数组
|
|
|
if (outline) {
|
|
@@ -900,7 +902,7 @@ export default {
|
|
|
planerPublish(pa)
|
|
|
.then((res) => {
|
|
|
if (res.result === "success") {
|
|
|
- this.$message.success("发布成功");
|
|
|
+ this.$message.success(`发布成功${res.entityList[0].version}`);
|
|
|
console.log(this.folderId);
|
|
|
this.$router.push({ name: "Home", params: { folderId: this.folderId } });
|
|
|
} else {
|