|
|
|
@ -1,10 +1,10 @@
|
|
|
|
|
<template>
|
|
|
|
|
<a-modal :centered="true" :footer="null" :mask="mask" :title="title" :destroyOnClose="destroyOnClose"
|
|
|
|
|
:closable="showCancel"
|
|
|
|
|
:visible="show_modal" :dialogClass="(className!==''?className:'')+ ' dialog-style'" :maskClosable="false"
|
|
|
|
|
:visible="show_modal" :dialogClass="(className!==''?className:'')+ 'dialog-style'" :maskClosable="false"
|
|
|
|
|
:width="width !== ''?width:'30%'" @cancel.stop="optionClick($event,'cancel')" :zIndex="modalZIndex"
|
|
|
|
|
:bodyStyle="{maxHeight:'calc(95vh - 33px)',overflow:'auto'}"
|
|
|
|
|
:class="{'party-dialog-style':isPartyCenter}"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<a-icon slot="closeIcon" type="close-circle" style="color: #999999;font-size: 1rem" title="关闭"/>
|
|
|
|
|
<a-icon v-if="showOK" type="check-circle" class="ok-style" title="确定" @click.stop="optionClick($event,'ok')"/>
|
|
|
|
@ -79,32 +79,20 @@
|
|
|
|
|
callback: null,
|
|
|
|
|
width: this.modalWidth,
|
|
|
|
|
className: this.modalClassName,
|
|
|
|
|
modalZIndex: this.zIndex,
|
|
|
|
|
isPartyCenter: false,
|
|
|
|
|
modalZIndex: this.zIndex
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
$route: {
|
|
|
|
|
handler(val, oldval){
|
|
|
|
|
if (val.path === '/partyCenter/party') {
|
|
|
|
|
this.isPartyCenter = true
|
|
|
|
|
} else {
|
|
|
|
|
this.isPartyCenter = false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
childDom: function () {
|
|
|
|
|
return this.dom_url === "" ? null : () => import(`@/${this.dom_url}`);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getHref()
|
|
|
|
|
if (this.addChildType === 'event') {
|
|
|
|
|
this.$bus.on(EventConfig.MODAL_SHOW, this.showModal);
|
|
|
|
|
this.$bus.on(EventConfig.MODAL_CLOSE, this.closeModal);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy(){
|
|
|
|
|
if (this.addChildType === 'event') {
|
|
|
|
@ -113,14 +101,6 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getHref(){
|
|
|
|
|
this.href = window.location.hash
|
|
|
|
|
if (this.href === '#/partyCenter/party') {
|
|
|
|
|
this.isPartyCenter = true
|
|
|
|
|
} else {
|
|
|
|
|
this.isPartyCenter = false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
showModal: function (arys) {
|
|
|
|
|
this.title = arys[0].title;
|
|
|
|
|
this.dom_url = arys[0].dom_url;
|
|
|
|
@ -184,13 +164,18 @@
|
|
|
|
|
.ant-modal-content {
|
|
|
|
|
border: 1px solid #31a8fa;
|
|
|
|
|
box-shadow: 0 4px 12px rgba(49, 168, 250, 0.5);
|
|
|
|
|
/*background: #01123E;*/
|
|
|
|
|
}
|
|
|
|
|
.party-ant-modal-content {
|
|
|
|
|
border: 1px solid #FBED05;
|
|
|
|
|
box-shadow: 0 4px 12px rgba(49, 168, 250, 0.5);
|
|
|
|
|
background: #01123E;
|
|
|
|
|
}
|
|
|
|
|
.ant-modal-header {
|
|
|
|
|
padding: 36px 24px !important;
|
|
|
|
|
background: #01123E;
|
|
|
|
|
/*background: #01123E;*/
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-bottom: 1px solid #1067B0;
|
|
|
|
|
/*border-bottom: 1px solid #1067B0;*/
|
|
|
|
|
.ant-modal-title {
|
|
|
|
|
line-height: 2rem !important;
|
|
|
|
|
font-size: 1.6rem !important;
|
|
|
|
@ -202,11 +187,11 @@
|
|
|
|
|
width: 2rem !important;
|
|
|
|
|
line-height: 2rem !important;
|
|
|
|
|
.anticon {
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
font-size: 2.5rem !important;
|
|
|
|
|
position: absolute !important;
|
|
|
|
|
top: 13px !important;
|
|
|
|
|
right: 20px !important;
|
|
|
|
|
/*color: #fff !important;*/
|
|
|
|
|
/*font-size: 2.5rem !important;*/
|
|
|
|
|
/*position: absolute !important;*/
|
|
|
|
|
/*top: 13px !important;*/
|
|
|
|
|
/*right: 20px !important;*/
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.ok-style {
|
|
|
|
@ -218,21 +203,4 @@
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.party-dialog-style {
|
|
|
|
|
/deep/ .dialog-style {
|
|
|
|
|
.ant-modal-content {
|
|
|
|
|
border: 1px solid #FFFE00 !important;
|
|
|
|
|
box-shadow: 0 4px 12px rgba(178, 34, 34, 0.5) !important;
|
|
|
|
|
background: #961E03 !important;
|
|
|
|
|
.ant-modal-header {
|
|
|
|
|
background: #961E03 !important;
|
|
|
|
|
border-bottom: 1px solid #FFFE00 !important;
|
|
|
|
|
}
|
|
|
|
|
.info-content-style {
|
|
|
|
|
background: none !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|