Commit b43798f4 authored by zhengke's avatar zhengke

修改

parent 0c42955f
......@@ -9,7 +9,7 @@
<div class="Auth_outside">
<div flex="dir:left main:center cross:center" class="inside">
<img v-if="addMsg.imgUrl!=''" class="authPic" :src="getIconLink(addMsg.imgUrl)" alt="">
<img v-else class="authPic" :src="domainManager().ImageUrl+'/Static/auth-default.png'" alt="" />
<img v-else class="authPic" :src="getIconLink(addMsg.imgUrl)" alt="" />
</div>
</div>
<div class="Auth_right">
......@@ -30,8 +30,8 @@
</div>
</el-form-item>
<el-form-item label="热区">
<choiceArea :multiple="true" :max="2"
:pic-url="addMsg.imgUrl==''?domainManager().ImageUrl+'/Static/auth-default.png':getIconLink(addMsg.imgUrl)"
<choiceArea ref="choiceArea" :multiple="true" :max="2"
:pic-url="getIconLink(addMsg.imgUrl)"
mode='auth' :hotspot-array="addMsg.hotspot" width="650px" height="700px" @confirm="selectHotspot"
:is-link="false">
<el-button size="mini">划分热区</el-button>
......@@ -67,7 +67,7 @@
},
addMsg: {
isOpen: 0, //是否开启
imgUrl: '', //图片
imgUrl: this.domainManager().ImageUrl+'/Static/auth-default.png', //图片
hotspot: [] //热区
},
};
......@@ -95,12 +95,13 @@
},
//选择图片
SelectId(msg) {
this.addMsg.imgUrl = msg.url;
this.addMsg.imgUrl = this.getIconLink(msg.url);
this.choicImg = false;
},
// 热区选择(edit)
selectHotspot(list) {
this.addMsg.hotspot = list;
this.$refs.choiceArea.clearAll();
},
},
mounted() {}
......
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