|
@@ -19,8 +19,14 @@
|
|
|
</el-popover>
|
|
|
<div class="OpenEdit">
|
|
|
<i class="el-icon-back el-icon-back-two"></i>
|
|
|
- <p>此处可以快速切换图纸</p>
|
|
|
- <el-button size="medium" round class="edit-btn" v-show="isCopy=='true'" @click="opEditStatus">启动编辑</el-button>
|
|
|
+ <p v-bind:class="[isCopy!='true' ? 'iscopyTrue' : '']">此处可以快速切换图纸</p>
|
|
|
+ <el-button
|
|
|
+ size="medium"
|
|
|
+ round
|
|
|
+ class="edit-btn"
|
|
|
+ v-show="isCopy=='true'"
|
|
|
+ @click="opEditStatus"
|
|
|
+ >启动编辑</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="top-right">
|
|
@@ -175,7 +181,7 @@ import { SGraphLayoutType, SOrderSetType } from "@saga-web/graph/lib";
|
|
|
import { queryFullFloor } from "@/api/editer";
|
|
|
import systym from "./codeMapSystem.js";
|
|
|
import { MessageBox } from "element-ui";
|
|
|
-import { mapState, mapActions } from "vuex";
|
|
|
+import { mapState, mapMutations } from "vuex";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -276,6 +282,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ ...mapMutations(["SETISCOPY"]),
|
|
|
getFullFloor() {
|
|
|
queryFullFloor({ projectId: this.urlMsg.projectId }).then(res => {
|
|
|
this.treeData = res.Data;
|
|
@@ -495,8 +502,22 @@ export default {
|
|
|
bus.$emit("changeRedo");
|
|
|
},
|
|
|
//打开编辑状态
|
|
|
- opEditStatus(){
|
|
|
-
|
|
|
+ opEditStatus() {
|
|
|
+ this.SETISCOPY(false);
|
|
|
+ bus.$emit("changeCopystatus", false);
|
|
|
+ const query = `categoryId=${this.urlMsg.categoryId}&projectId=${
|
|
|
+ this.urlMsg.projectId
|
|
|
+ }&BuildingID=${this.urlMsg.BuildingID}&FloorID=${
|
|
|
+ this.urlMsg.FloorID
|
|
|
+ }&FloorName=${this.urlMsg.FloorName}&fmapID=${this.urlMsg.fmapID}&seq=${
|
|
|
+ this.urlMsg.seq
|
|
|
+ }&token=${this.urlMsg.token}&isCopy=${false}`;
|
|
|
+ this.urlMsg;
|
|
|
+ const url =
|
|
|
+ window.location.origin +
|
|
|
+ "/wandaEditer/editer?" +
|
|
|
+ encodeURIComponent(query);
|
|
|
+ window.open(url, "_self");
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -532,8 +553,8 @@ export default {
|
|
|
: (this.scale * 100).toFixed(0);
|
|
|
return scalePercent + "%";
|
|
|
},
|
|
|
- ...mapState({
|
|
|
- isCopy:'isCopy'
|
|
|
+ ...mapState({
|
|
|
+ isCopy: "isCopy"
|
|
|
})
|
|
|
},
|
|
|
async mounted() {
|
|
@@ -697,6 +718,9 @@ li {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.iscopyTrue {
|
|
|
+ margin-right: 200px;
|
|
|
+}
|
|
|
|
|
|
/deep/ .ant-dropdown-menu-item {
|
|
|
display: flex;
|