|
@@ -131,13 +131,15 @@
|
|
</a-form-model>
|
|
</a-form-model>
|
|
</a-spin>
|
|
</a-spin>
|
|
<div class="btn-cont">
|
|
<div class="btn-cont">
|
|
- <a-button id="product-brand-edit-modal-back" @click="isShow = false" >取消</a-button>
|
|
|
|
|
|
+ <a-button id="product-brand-edit-modal-back" @click="isShow = false" style="margin-right:15px;">取消</a-button>
|
|
<a-button
|
|
<a-button
|
|
- style="margin:0 15px;color: #fff;background-color: #39f;border-color: #39f;"
|
|
|
|
- @click="handleSee">预览</a-button>
|
|
|
|
|
|
+ style="margin-right:15px;color: #fff;background-color: #39f;border-color: #39f;"
|
|
|
|
+ @click="handleSee" v-if="form.contentType !='LINK'">预览</a-button>
|
|
<a-button type="primary" id="product-brand-edit-modal-save" @click="handleSave">确定</a-button>
|
|
<a-button type="primary" id="product-brand-edit-modal-save" @click="handleSave">确定</a-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <!-- 预览 -->
|
|
|
|
+ <promotion-show-modal ref="showModal" :openModal="openShowModal" @close="openShowModal = false"></promotion-show-modal>
|
|
</a-modal>
|
|
</a-modal>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -147,10 +149,11 @@ import moment from 'moment'
|
|
import { VSelect, Upload } from '@/components'
|
|
import { VSelect, Upload } from '@/components'
|
|
import Editor from '@/components/WEeditor'
|
|
import Editor from '@/components/WEeditor'
|
|
import { saveActive, promoTerminalDetail } from '@/api/promoTerminal'
|
|
import { saveActive, promoTerminalDetail } from '@/api/promoTerminal'
|
|
|
|
+import promotionShowModal from './promotionShowModal'
|
|
export default {
|
|
export default {
|
|
name: 'ProductBrandEditModal',
|
|
name: 'ProductBrandEditModal',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
- components: { VSelect, Upload, Editor },
|
|
|
|
|
|
+ components: { VSelect, Upload, Editor ,promotionShowModal},
|
|
props: {
|
|
props: {
|
|
openModal: { // 弹框显示状态
|
|
openModal: { // 弹框显示状态
|
|
type: Boolean,
|
|
type: Boolean,
|
|
@@ -217,7 +220,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
// 预览
|
|
// 预览
|
|
handleSee () {
|
|
handleSee () {
|
|
-
|
|
|
|
|
|
+ this.$refs.showModal.pageInit({type:this.form.contentType,con:this.form.content})
|
|
},
|
|
},
|
|
onChange (e) {
|
|
onChange (e) {
|
|
console.log('radio checked', e.target.value)
|
|
console.log('radio checked', e.target.value)
|