Commit 656f66dd by 前端

Merge branch 'chenwq_dev_v2.7.0' into 'v2.7.0'

Chenwq dev v2.7.0

See merge request !273
2 parents 0fbed5cb 2455353c
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button> <el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="sloading">提交</el-button> <el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter> </GLFooter>
<select-muti-pro-dialog ref="classMutiProRef" v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose"> <select-muti-pro-dialog ref="classMutiProRef" v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose">
<!-- <template slot="search"> <!-- <template slot="search">
......
...@@ -166,11 +166,10 @@ ...@@ -166,11 +166,10 @@
</glsx-combi-form> </glsx-combi-form>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<el-button type="primary" v-if="showSubmit" @click="handleConfirm">确定</el-button> <el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button>
<el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button> <el-button v-if="showSubmit" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
<el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button> </GLFooter>
</div>
<select-muti-pro-forcoupon-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" <select-muti-pro-forcoupon-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible"
:searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" :searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm"
@handleMutiSelectClose="handleMutiSelectClose"></select-muti-pro-forcoupon-dialog> @handleMutiSelectClose="handleMutiSelectClose"></select-muti-pro-forcoupon-dialog>
...@@ -189,8 +188,6 @@ export default { ...@@ -189,8 +188,6 @@ export default {
userDisable: false, userDisable: false,
size: 'small', size: 'small',
title: '创建', title: '创建',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
loading: false, loading: false,
routeInfo: { routeInfo: {
...@@ -374,8 +371,7 @@ export default { ...@@ -374,8 +371,7 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.setMinHeight()
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params this.routeInfo = this.$route.params
this.getAllGoods() this.getAllGoods()
var id = this.routeInfo.id var id = this.routeInfo.id
......
...@@ -151,11 +151,10 @@ ...@@ -151,11 +151,10 @@
</glsx-combi-form> </glsx-combi-form>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<el-button type="primary" v-if="showSubmit" @click="handleConfirm">确定</el-button> <el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button>
<el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button> <el-button v-if="showSubmit" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
<el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button> </GLFooter>
</div>
</div> </div>
</template> </template>
...@@ -175,8 +174,6 @@ export default { ...@@ -175,8 +174,6 @@ export default {
1: '创建晒单', 1: '创建晒单',
2: '编辑晒单' 2: '编辑晒单'
}, },
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
loading: false, loading: false,
// pickerOptions: { // pickerOptions: {
...@@ -318,8 +315,7 @@ export default { ...@@ -318,8 +315,7 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.setMinHeight()
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params this.routeInfo = this.$route.params
// this.title = this.titleObj[this.routeInfo.addOrEdit] // this.title = this.titleObj[this.routeInfo.addOrEdit]
this.routeInfo.addOrEdit != 1 ? this.getInfo() : '' this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button> <el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="sloading">提交</el-button> <el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter> </GLFooter>
</div> </div>
</template> </template>
......
...@@ -157,13 +157,10 @@ ...@@ -157,13 +157,10 @@
</div> </div>
</div> </div>
</div> </div>
<div class="footer-panel" :style="{ <GLFooter>
left: footerLeft + 'px', <el-button @click="goBack" size="medium">取消</el-button>
width: footerWidth + 'px' <el-button type="primary" v-if="showSubmit" @click="submitForm('ruleForm')" size="medium" :loading="loading">提交</el-button>
}"> </GLFooter>
<el-button type="primary" @click="submitForm('ruleForm')" size="medium" :loading="sloading" v-if="showSubmit">确定</el-button>
<el-button type="default" @click="goBack" size="medium">取消</el-button>
</div>
<!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" --> <!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" -->
<glsx-dialog title="" top="30vh" :hasScroll="false" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm"> <glsx-dialog title="" top="30vh" :hasScroll="false" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="content-body"> <div class="content-body">
...@@ -344,8 +341,6 @@ export default { ...@@ -344,8 +341,6 @@ export default {
this.rules.stock[0].required = !this.$isGroupUp this.rules.stock[0].required = !this.$isGroupUp
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
if (this.title == '查看' || this.title == '编辑') { if (this.title == '查看' || this.title == '编辑') {
this.disabledCost = true this.disabledCost = true
this.disabledDescription = true this.disabledDescription = true
...@@ -640,7 +635,7 @@ export default { ...@@ -640,7 +635,7 @@ export default {
} }
} }
.container { .container {
margin: 0 0px 100px; margin: 0 0px 16px;
position: relative; position: relative;
/deep/ .el-form-item__content { /deep/ .el-form-item__content {
......
<template> <template>
<div class> <div class>
<div class="container"> <div class="container">
<div> <div class="edit-container">
<!-- 基础信息 --> <!-- 基础信息 -->
<div class="title"> <div class="title">
编辑朋友圈 编辑朋友圈
...@@ -219,7 +219,9 @@ export default { ...@@ -219,7 +219,9 @@ export default {
deep: true deep: true
} }
}, },
mounted() {}, mounted() {
this.setMinHeight()
},
methods: { methods: {
openMembers() { openMembers() {
this.membersVisible = !this.membersVisible this.membersVisible = !this.membersVisible
...@@ -419,7 +421,7 @@ export default { ...@@ -419,7 +421,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.container { .container {
margin-bottom: 84px; margin-bottom: 16px;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
// padding: 20px; // padding: 20px;
......
...@@ -102,10 +102,10 @@ ...@@ -102,10 +102,10 @@
</div> </div>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<el-button type="default" @click="handleCancel">取消</el-button> <el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="primary" @click="handleConfirm">提交</el-button> <el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</div> </GLFooter>
<select-gift-dialog v-if="isSelectGiftVisible" :isSelectGiftVisible="isSelectGiftVisible" :selectedGiftList="selectedGiftList" @handleGiftConfirm="handleGiftConfirm" @handleGiftClose="handleGiftClose"></select-gift-dialog> <select-gift-dialog v-if="isSelectGiftVisible" :isSelectGiftVisible="isSelectGiftVisible" :selectedGiftList="selectedGiftList" @handleGiftConfirm="handleGiftConfirm" @handleGiftClose="handleGiftClose"></select-gift-dialog>
<select-staff-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchStaffForm" :selectedStaffList="selectedStaffList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose"></select-staff-dialog> <select-staff-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchStaffForm" :selectedStaffList="selectedStaffList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose"></select-staff-dialog>
</div> </div>
...@@ -133,8 +133,6 @@ export default { ...@@ -133,8 +133,6 @@ export default {
add: '新增礼包', add: '新增礼包',
edit: '编辑礼包' edit: '编辑礼包'
}, },
footerLeft: '0',
footerWidth: '0',
// 选择员工弹窗 // 选择员工弹窗
isMutiSelectVisible: false, isMutiSelectVisible: false,
searchStaffForm: {}, searchStaffForm: {},
...@@ -434,8 +432,7 @@ export default { ...@@ -434,8 +432,7 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.setMinHeight()
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
if (this.routeInfo.receivedStock) this.routeInfo.receivedStock = +this.routeInfo.receivedStock if (this.routeInfo.receivedStock) this.routeInfo.receivedStock = +this.routeInfo.receivedStock
this.title = this.titleObj[this.routeInfo.addOrEdit] this.title = this.titleObj[this.routeInfo.addOrEdit]
......
...@@ -72,10 +72,9 @@ ...@@ -72,10 +72,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<el-button type="default" @click="handleCancel">返回</el-button> <el-button @click="handleCancel" size="medium">取消</el-button>
<!-- <el-button type="default" @click="handleCancel">修改</el-button> --> </GLFooter>
</div>
</div> </div>
</template> </template>
...@@ -87,8 +86,6 @@ export default { ...@@ -87,8 +86,6 @@ export default {
return { return {
size: 'small', size: 'small',
title: '礼包详情', title: '礼包详情',
footerLeft: '0',
footerWidth: '0',
loading: false, loading: false,
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
receiveDetailList: [], receiveDetailList: [],
...@@ -203,8 +200,7 @@ export default { ...@@ -203,8 +200,7 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.setMinHeight()
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.loading = true this.loading = true
this.getInfo() this.getInfo()
......
...@@ -185,9 +185,9 @@ ...@@ -185,9 +185,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<el-button type="primary" @click="handleConfirm">确定</el-button> <el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</div> </GLFooter>
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose"></select-single-pro-dialog> <select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose"></select-single-pro-dialog>
<!-- 在线客服 --> <!-- 在线客服 -->
<glsx-dialog class="server-dialog" title="在线客服" width="712px" :noBtnOk="true" :isVisible.sync="isConsultantVisible" @confirmDialog="handleConsultantConfirm" @closeDialog="handleConsultantClose"> <glsx-dialog class="server-dialog" title="在线客服" width="712px" :noBtnOk="true" :isVisible.sync="isConsultantVisible" @confirmDialog="handleConsultantConfirm" @closeDialog="handleConsultantClose">
...@@ -245,8 +245,6 @@ export default { ...@@ -245,8 +245,6 @@ export default {
name: 'homeSet', name: 'homeSet',
data() { data() {
return { return {
footerLeft: '0',
footerWidth: '0',
size: 'small', size: 'small',
userInfo: {}, userInfo: {},
// 查看大图 // 查看大图
...@@ -500,8 +498,6 @@ export default { ...@@ -500,8 +498,6 @@ export default {
mounted() { mounted() {
this.userInfo = this.$globalState.session this.userInfo = this.$globalState.session
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getInfo() this.getInfo()
this.getConsultant() this.getConsultant()
// 非集团账号隐藏配置门店 // 非集团账号隐藏配置门店
......
<!-- 新车管理 --> <!-- 新车管理 -->
<template> <template>
<div class="marketing"> <div class="marketing">
<div class="m-b-20"> <!-- <div class="m-b-20">
<!-- <GLButton :size="size" type="primary" fn="新增新车" class="el-icon-plus" @click="handleEdit(1)">新增新车</GLButton> --> <GLButton :size="size" type="primary" fn="新增新车" class="el-icon-plus" @click="handleEdit(1)">新增新车</GLButton>
</div> </div> -->
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<el-button type="default" @click="handleCancel">返回</el-button> <el-button @click="handleCancel" size="medium">返回</el-button>
</div> </GLFooter>
</div> </div>
</template> </template>
...@@ -39,8 +39,6 @@ export default { ...@@ -39,8 +39,6 @@ export default {
return { return {
size: 'small', size: 'small',
title: '评论详情', title: '评论详情',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
routeInfo: { routeInfo: {
id: '' id: ''
...@@ -51,8 +49,7 @@ export default { ...@@ -51,8 +49,7 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.setMinHeight()
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.getInfo() this.getInfo()
}, },
......
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
<comment-detail v-show="['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail> <comment-detail v-show="['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<GLFooter> <GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button> <el-button @click="handleCancel" size="medium">取消</el-button>
<el-button v-if="routeInfo.addOrEdit == '1' || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm" size="medium" :loading="sloading">提交</el-button> <el-button v-if="routeInfo.addOrEdit == '1' || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter> </GLFooter>
<el-dialog :visible.sync="isImgVisible"> <el-dialog :visible.sync="isImgVisible">
<img class="dialog-img" width="100%" :src="dialogImageUrl" alt /> <img class="dialog-img" width="100%" :src="dialogImageUrl" alt />
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button> <el-button @click="handleCancel" size="medium">取消</el-button>
<el-button v-if="routeInfo.addOrEdit == '1' || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm" size="medium" :loading="sloading">提交</el-button> <el-button v-if="routeInfo.addOrEdit == '1' || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter> </GLFooter>
</div> </div>
</template> </template>
......
...@@ -76,11 +76,10 @@ ...@@ -76,11 +76,10 @@
<p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p> <p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p>
<p v-show="editForm.limitPurchaseNumber" class="wechat-limit-num one-line-ellipsis">{{ editForm.limitPurchaseNumber }}</p> <p v-show="editForm.limitPurchaseNumber" class="wechat-limit-num one-line-ellipsis">{{ editForm.limitPurchaseNumber }}</p>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<el-button type="primary" v-if="apear != 'see'" @click="handleConfirm">确定</el-button> <el-button @click="handleCancel" size="medium">{{ apear != 'see' ? '取消' : '返回' }}</el-button>
<el-button v-if="apear != 'see'" @click="handleCancel">取消</el-button> <el-button v-if="apear != 'see'" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
<el-button v-if="apear == 'see'" @click="handleCancel">返回</el-button> </GLFooter>
</div>
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog> <select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog>
</div> </div>
</template> </template>
...@@ -97,8 +96,6 @@ export default { ...@@ -97,8 +96,6 @@ export default {
1: '创建秒杀活动', 1: '创建秒杀活动',
2: '编辑秒杀活动' 2: '编辑秒杀活动'
}, },
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
pickerOptions: { pickerOptions: {
disabledDate(v) { disabledDate(v) {
...@@ -274,8 +271,7 @@ export default { ...@@ -274,8 +271,7 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.setMinHeight()
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params this.routeInfo = this.$route.params
this.routeInfo.addOrEdit != 1 ? this.getInfo() : '' this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
var id = this.routeInfo.id var id = this.routeInfo.id
......
...@@ -165,11 +165,10 @@ ...@@ -165,11 +165,10 @@
<img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" /> <img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" />
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<el-button type="primary" v-if="routeInfo.addOrEdit != 'detail'" @click="handleConfirm">确定</el-button> <el-button @click="handleCancel" size="medium">{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}</el-button>
<el-button v-if="routeInfo.addOrEdit != 'detail'" @click="handleCancel">取消</el-button> <el-button v-if="routeInfo.addOrEdit != 'detail'" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
<el-button v-if="routeInfo.addOrEdit == 'detail'" @click="handleCancel">返回</el-button> </GLFooter>
</div>
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog> <select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog>
</div> </div>
</template> </template>
...@@ -188,8 +187,6 @@ export default { ...@@ -188,8 +187,6 @@ export default {
} }
return { return {
size: 'small', size: 'small',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
loading: false, loading: false,
userInfo: {}, userInfo: {},
...@@ -592,8 +589,7 @@ export default { ...@@ -592,8 +589,7 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.setMinHeight()
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getMerchantInfo() this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getMerchantInfo()
var id = this.routeInfo.id var id = this.routeInfo.id
......
...@@ -93,10 +93,10 @@ ...@@ -93,10 +93,10 @@
<div v-show="!editForm.eventList.length && submit" class="red-txt">请创建营销事件</div> <div v-show="!editForm.eventList.length && submit" class="red-txt">请创建营销事件</div>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<el-button type="primary" @click="handleConfirm">确定</el-button> <el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="default" @click="handleCancel">取消</el-button> <el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</div> </GLFooter>
<select-Crowd v-if="isCrowdCustVisible" :dialogVisible="isCrowdCustVisible" :selectedCrowdList="JSON.parse(JSON.stringify(customerDataList[0].list))" @handleCrowdCustClose="handleCrowdCustClose" @handleCrowdCustConfirm="handleDialogConfirm"></select-Crowd> <select-Crowd v-if="isCrowdCustVisible" :dialogVisible="isCrowdCustVisible" :selectedCrowdList="JSON.parse(JSON.stringify(customerDataList[0].list))" @handleCrowdCustClose="handleCrowdCustClose" @handleCrowdCustConfirm="handleDialogConfirm"></select-Crowd>
<select-tag ref="selectTagForm" @tagSelected="handleDialogConfirm" :dialogVisible="isTagVisible"></select-tag> <select-tag ref="selectTagForm" @tagSelected="handleDialogConfirm" :dialogVisible="isTagVisible"></select-tag>
<select-customer v-if="isAppointCustVisible" :dialogVisible="isAppointCustVisible" :parentSelectedCustomerList="customerDataList[2].list" @handleAppointCustClose="handleAppointCustClose" @handleAppointCustConfirm="handleDialogConfirm"></select-customer> <select-customer v-if="isAppointCustVisible" :dialogVisible="isAppointCustVisible" :parentSelectedCustomerList="customerDataList[2].list" @handleAppointCustClose="handleAppointCustClose" @handleAppointCustConfirm="handleDialogConfirm"></select-customer>
...@@ -114,8 +114,6 @@ export default { ...@@ -114,8 +114,6 @@ export default {
size: 'small', size: 'small',
title: '基本信息', title: '基本信息',
url: url, url: url,
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
editStatus: false, editStatus: false,
editDisabled: false, editDisabled: false,
...@@ -298,8 +296,7 @@ export default { ...@@ -298,8 +296,7 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.setMinHeight('.sop-base-info')
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
if (this.routeInfo.addOrEdit == 'edit') { if (this.routeInfo.addOrEdit == 'edit') {
this.getInfo() this.getInfo()
} else if (this.routeInfo.info) { } else if (this.routeInfo.info) {
......
...@@ -96,10 +96,10 @@ ...@@ -96,10 +96,10 @@
</template> </template>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<el-button type="primary" @click="handleConfirm">确定</el-button> <el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="default" @click="handleCancel">取消</el-button> <el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</div> </GLFooter>
<ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel> <ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel>
<material-model v-if="isMaterialVisible" :isMaterialVisible.sync="isMaterialVisible" @handleMaterialConfirm="handleMaterialConfirm" @handleMaterialClose="handleMaterialClose"></material-model> <material-model v-if="isMaterialVisible" :isMaterialVisible.sync="isMaterialVisible" @handleMaterialConfirm="handleMaterialConfirm" @handleMaterialClose="handleMaterialClose"></material-model>
<nickname-model v-if="isNicknameVisible" :isNicknameVisible.sync="isNicknameVisible" @handleNicknameConfirm="handleNicknameConfirm" @handleNicknameClose="handleNicknameClose"></nickname-model> <nickname-model v-if="isNicknameVisible" :isNicknameVisible.sync="isNicknameVisible" @handleNicknameConfirm="handleNicknameConfirm" @handleNicknameClose="handleNicknameClose"></nickname-model>
...@@ -117,8 +117,6 @@ export default { ...@@ -117,8 +117,6 @@ export default {
data() { data() {
return { return {
size: 'small', size: 'small',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
isMaterialVisible: false, isMaterialVisible: false,
isNicknameVisible: false, isNicknameVisible: false,
...@@ -454,8 +452,6 @@ export default { ...@@ -454,8 +452,6 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
Object.assign(this.editForm, this.eventObj.info) Object.assign(this.editForm, this.eventObj.info)
this.getStaffTypeList() this.getStaffTypeList()
this.$nextTick(() => { this.$nextTick(() => {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- 商品编辑 - 带货 --> <!-- 商品编辑 - 带货 -->
<template> <template>
<div class="edit-product-dh marketing edit-box"> <div class="edit-product-dh marketing edit-box">
<div class="container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;"> <div class="flex" style="margin-top: 20px;">
<div class="main-img-box"> <div class="main-img-box">
...@@ -50,10 +50,9 @@ ...@@ -50,10 +50,9 @@
</div> </div>
<glsx-combi-form v-if="!specificationDetailList.length" class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form> <glsx-combi-form v-if="!specificationDetailList.length" class="edit-form-container" ref="editFormRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <GLFooter>
<!-- <el-button type="primary" @click="handleConfirm">确定</el-button> --> <el-button @click="handleCancel" size="medium">返回</el-button>
<el-button type="default" @click="handleCancel">取消</el-button> </GLFooter>
</div>
</div> </div>
</template> </template>
...@@ -65,8 +64,6 @@ export default { ...@@ -65,8 +64,6 @@ export default {
return { return {
size: 'small', size: 'small',
title: '查看商品', title: '查看商品',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
// submitted: false, // submitted: false,
isDisabled: false, isDisabled: false,
...@@ -109,8 +106,7 @@ export default { ...@@ -109,8 +106,7 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.setMinHeight()
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.isDisabled = true this.isDisabled = true
this.editFormData[0].isDisabled = true this.editFormData[0].isDisabled = true
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button> <el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="sloading">提交</el-button> <el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter> </GLFooter>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button> <el-button type="primary" @click="handleConfirm">确定</el-button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!