Commit a24fa86d authored by 黄媛媛's avatar 黄媛媛
parents 7d6e3933 139a4e68
...@@ -146,11 +146,21 @@ ...@@ -146,11 +146,21 @@
</el-row> </el-row>
</el-form-item> </el-form-item>
<el-form-item label="热区链接" v-if="isLink"> <el-form-item label="热区链接" v-if="isLink">
<el-input size="small" style="width: 100%;" :disabled="true" v-model="hotspotList[index].link.PageName"> <template v-if="chooseType=='rubik'">
<template slot="append"> <el-input size="small" style="width: 100%;" :disabled="true"
<el-button @click="isShowLink=true">选择链接</el-button> v-model="hotspotList[index].link[0].PageName">
</template> <template slot="append">
</el-input> <el-button @click="isShowLink=true">选择链接</el-button>
</template>
</el-input>
</template>
<template v-else>
<el-input size="small" style="width: 100%;" :disabled="true" v-model="hotspotList[index].link.PageName">
<template slot="append">
<el-button @click="isShowLink=true">选择链接</el-button>
</template>
</el-input>
</template>
</el-form-item> </el-form-item>
<el-form-item label="热区属性" v-if="mode == 'auth'"> <el-form-item label="热区属性" v-if="mode == 'auth'">
<el-radio-group v-model="hotspotList[index].open_type"> <el-radio-group v-model="hotspotList[index].open_type">
...@@ -253,6 +263,9 @@ ...@@ -253,6 +263,9 @@
return parseFloat(this.height) - this.hotspotList[this.index].top; return parseFloat(this.height) - this.hotspotList[this.index].top;
}, },
}, },
mounted() {
console.log("hotspotArray", this.hotspotArray);
},
methods: { methods: {
click(e) { click(e) {
this.is_mousedown = false; this.is_mousedown = false;
...@@ -309,6 +322,11 @@ ...@@ -309,6 +322,11 @@
hotspot.top = position.y; hotspot.top = position.y;
hotspot.defaultX = position.x; hotspot.defaultX = position.x;
hotspot.defaultY = position.y; hotspot.defaultY = position.y;
if (this.chooseType == "rubik") {
hotspot.link = [{
PageName: ""
}];
}
this.hotspotList.push(hotspot); this.hotspotList.push(hotspot);
this.index = this.hotspotList.length - 1; this.index = this.hotspotList.length - 1;
this.zIndex = 102; this.zIndex = 102;
...@@ -378,11 +396,11 @@ ...@@ -378,11 +396,11 @@
var obj = this.$refs.chooseMenu.getChooseMenu(); var obj = this.$refs.chooseMenu.getChooseMenu();
if (this.index > -1 && this.hotspotList.length > 0) { if (this.index > -1 && this.hotspotList.length > 0) {
if (this.chooseType == "rubik") { if (this.chooseType == "rubik") {
this.hotspotList[this.index].link = [];
this.hotspotList[this.index].link.push(obj) this.hotspotList[this.index].link.push(obj)
} else { } else {
this.hotspotList[this.index].link = obj this.hotspotList[this.index].link = obj
} }
} }
this.isShowLink = false; this.isShowLink = false;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment