[update] 树形弹框
This commit is contained in:
@@ -52,16 +52,16 @@
|
|||||||
<!--底部父子关联操作和确认取消按钮-->
|
<!--底部父子关联操作和确认取消按钮-->
|
||||||
<template slot="footer" v-if="treeOpera && checkable">
|
<template slot="footer" v-if="treeOpera && checkable">
|
||||||
<div class="drawer-bootom-button">
|
<div class="drawer-bootom-button">
|
||||||
<!-- <a-dropdown style="float: left" :trigger="['click']" placement="topCenter">-->
|
<a-dropdown style="float: left" :trigger="['click']" placement="topCenter">
|
||||||
<!-- <a-menu slot="overlay">-->
|
<a-menu slot="overlay">
|
||||||
<!-- <a-menu-item key="1" @click="switchCheckStrictly(1)">{{ $t('parentChildConnection') }}</a-menu-item>-->
|
<a-menu-item key="1" @click="switchCheckStrictly(2)">{{ $t('parentChildConnection') }}</a-menu-item>
|
||||||
<!-- <a-menu-item key="2" @click="switchCheckStrictly(2)">{{ $t('cancelConnection') }}</a-menu-item>-->
|
<a-menu-item key="2" @click="switchCheckStrictly(1)">{{ $t('cancelConnection') }}</a-menu-item>
|
||||||
<!-- </a-menu>-->
|
</a-menu>
|
||||||
<!-- <a-button>-->
|
<a-button>
|
||||||
<!-- {{ treeOperationText }} <a-icon type="up" />-->
|
{{ treeOperationText }} <a-icon type="up" />
|
||||||
<!-- </a-button>-->
|
</a-button>
|
||||||
<!-- </a-dropdown>-->
|
</a-dropdown>
|
||||||
<a-button style="float: left" @click="switchCheckStrictly(parentChildRelate ? 1 : 2)">{{ treeOperationText }}</a-button>
|
<!-- <a-button style="float: left" @click="switchCheckStrictly(parentChildRelate ? 1 : 2)">{{ treeOperationText }}</a-button>-->
|
||||||
<a-button @click="handleCancel" type="primary" style="margin-right: 0.8rem">{{ $t('close') }}</a-button>
|
<a-button @click="handleCancel" type="primary" style="margin-right: 0.8rem">{{ $t('close') }}</a-button>
|
||||||
<a-button @click="handleOk" type="primary" >{{ $t('confirm') }}</a-button>
|
<a-button @click="handleOk" type="primary" >{{ $t('confirm') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -122,7 +122,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
treeOperationText () {
|
treeOperationText () {
|
||||||
return this.parentChildRelate ? this.$t('cancelConnection') : this.$t('parentChildConnection')
|
return this.parentChildRelate ? this.$t('parentChildConnection') : this.$t('cancelConnection')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
Reference in New Issue
Block a user