|
@@ -115,7 +115,7 @@
|
|
<div v-if="type =='Image'|| type == 'Line'">
|
|
<div v-if="type =='Image'|| type == 'Line'">
|
|
<div class="row">
|
|
<div class="row">
|
|
<div class="row-tit">显示名称</div>
|
|
<div class="row-tit">显示名称</div>
|
|
- <a-button type="link" class="edit-option-btn" @click="OpenEditStatus">{{editStatus[type]}}</a-button>
|
|
|
|
|
|
+ <a-button type="link" class="edit-option-btn" @click="OpenEditStatus">{{isEdit? "取消编辑" : editStatus[type]}}</a-button>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="row">
|
|
<a-input v-model="lengedName" @change="changeLengedName" />
|
|
<a-input v-model="lengedName" @change="changeLengedName" />
|
|
@@ -168,7 +168,7 @@
|
|
type="link"
|
|
type="link"
|
|
class="edit-option-btn"
|
|
class="edit-option-btn"
|
|
@click="OpenEditStatus"
|
|
@click="OpenEditStatus"
|
|
- >{{editStatus[type]}}</a-button>
|
|
|
|
|
|
+ >{{isEdit? "取消编辑" : editStatus[type]}}</a-button>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="row">
|
|
<a-input v-model="lengedName" @change="changeLengedName" />
|
|
<a-input v-model="lengedName" @change="changeLengedName" />
|
|
@@ -192,7 +192,7 @@
|
|
<!-- 石材铺装 -->
|
|
<!-- 石材铺装 -->
|
|
<div class="row">
|
|
<div class="row">
|
|
<div class="row-tit">图例说明</div>
|
|
<div class="row-tit">图例说明</div>
|
|
- <a-button type="link" class="edit-option-btn" @click="OpenEditStatus">编辑区域</a-button>
|
|
|
|
|
|
+ <a-button type="link" class="edit-option-btn" @click="OpenEditStatus">{{isEdit? "取消编辑" : editStatus[type]}}</a-button>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="row">
|
|
<a-textarea
|
|
<a-textarea
|
|
@@ -231,7 +231,7 @@
|
|
type="link"
|
|
type="link"
|
|
class="edit-option-btn"
|
|
class="edit-option-btn"
|
|
@click="OpenEditStatus"
|
|
@click="OpenEditStatus"
|
|
- >{{editStatus[type]}}</a-button>
|
|
|
|
|
|
+ >{{isEdit? "取消编辑" : editStatus[type]}}</a-button>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="row">
|
|
<a-input v-model="lengedName" @change="changeLengedName" />
|
|
<a-input v-model="lengedName" @change="changeLengedName" />
|
|
@@ -312,6 +312,7 @@ import Swatches from "vue-swatches";
|
|
import bus from "@/bus";
|
|
import bus from "@/bus";
|
|
import "vue-swatches/dist/vue-swatches.css";
|
|
import "vue-swatches/dist/vue-swatches.css";
|
|
import { SLineStyle } from "@saga-web/graph/lib";
|
|
import { SLineStyle } from "@saga-web/graph/lib";
|
|
|
|
+import { SItemStatus } from "@saga-web/big";
|
|
import {
|
|
import {
|
|
uploadImg,
|
|
uploadImg,
|
|
queryGlsmsLocation,
|
|
queryGlsmsLocation,
|
|
@@ -416,6 +417,7 @@ export default {
|
|
itemExplain: "", //图例说明 只针对石材铺装
|
|
itemExplain: "", //图例说明 只针对石材铺装
|
|
attrCards: [],
|
|
attrCards: [],
|
|
spinning: false,
|
|
spinning: false,
|
|
|
|
+ isEdit: false,
|
|
getmajorId: "",
|
|
getmajorId: "",
|
|
InfoLocal:[]
|
|
InfoLocal:[]
|
|
};
|
|
};
|
|
@@ -519,6 +521,7 @@ export default {
|
|
},
|
|
},
|
|
//设置缩小item为编辑状态
|
|
//设置缩小item为编辑状态
|
|
OpenEditStatus() {
|
|
OpenEditStatus() {
|
|
|
|
+ this.isEdit = !this.isEdit;
|
|
bus.$emit("OpenEditStatus");
|
|
bus.$emit("OpenEditStatus");
|
|
},
|
|
},
|
|
// 编辑图例说明
|
|
// 编辑图例说明
|
|
@@ -594,6 +597,13 @@ export default {
|
|
newval.itemType == "Line" ||
|
|
newval.itemType == "Line" ||
|
|
newval.itemType == "Image"
|
|
newval.itemType == "Image"
|
|
) {
|
|
) {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ if (Item.status == SItemStatus.Edit) {
|
|
|
|
+ this.isEdit = true;
|
|
|
|
+ } else {
|
|
|
|
+ this.isEdit = false;
|
|
|
|
+ }
|
|
|
|
+ }, 300)
|
|
if (newval.itemType == "Image") {
|
|
if (newval.itemType == "Image") {
|
|
this.imageNum = Item.num;
|
|
this.imageNum = Item.num;
|
|
this.lengedName = Item.name;
|
|
this.lengedName = Item.name;
|
|
@@ -709,6 +719,7 @@ export default {
|
|
width: 26px !important;
|
|
width: 26px !important;
|
|
height: 26px !important;
|
|
height: 26px !important;
|
|
border-radius: 2px !important;
|
|
border-radius: 2px !important;
|
|
|
|
+ border: 1px solid #dcdcdc;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.row-tit {
|
|
.row-tit {
|