Commit ee421406 by wuwx

Merge branch 'v2.7.0' into wuwx_dev_v2.7.0

2 parents fa0789b6 656f66dd
......@@ -16,7 +16,7 @@ html {
.marketing .container {
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;
}
......@@ -26,7 +26,7 @@ html {
.live-room .container {
background: #ffffff;
margin: 20px 0;
// margin: 20px 0;
padding: 15px 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
}
......@@ -119,7 +119,9 @@ html {
}
.marketing .edit-container {
margin-bottom: 84px;
// margin-bottom: 84px;
// min-height: calc(100vh - 156px);
margin-bottom: 16px;
}
.marketing .approval-container {
margin-bottom: 10px;
......
......@@ -2,11 +2,11 @@
function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, maxValue, regRule) {
/* eslint-disable */
var reg = {
priceReg: /^\d[\d\.]*$/,
numReg: /^[1-9]\d*$/,
zNumReg: /^\d*$/
}
/* eslint-enable */
priceReg: /^\d[\d\.]*$/,
numReg: /^[1-9]\d*$/,
zNumReg: /^\d*$/
}
/* eslint-enable */
regRule = regRule || 'priceReg'
if (newValue && ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))) {
return oldValue || ''
......@@ -226,4 +226,11 @@ const stateList = [
}
]
export { limitPrice, getExplorer, exportFn, aToExport, downloadIamge, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList }
function setMinHeight(calssName = '.edit-container') {
let height = document.querySelector('.header-wrap').clientHeight + 110 + 'px'
let minHeight = 'calc(100vh - ' + height + ')'
document.querySelector(calssName).style.minHeight = minHeight
console.log(minHeight)
}
export { limitPrice, getExplorer, exportFn, aToExport, downloadIamge, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, setMinHeight }
......@@ -14,6 +14,7 @@ import './public-path'
import '@/components'
// import 'glsx-components/dist/glsx-components.css'
import { start } from '@/setup'
import { setMinHeight } from '@/common/constant'
import VueAMap from 'vue-amap'
Vue.use(VueAMap)
// 初始化vue-amap
......@@ -25,6 +26,7 @@ VueAMap.initAMapApiLoader({
Vue.config.productionTip = false
Vue.prototype.$apis = apis
Vue.prototype.size = 'small'
Vue.prototype.setMinHeight = setMinHeight
start()
export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params)
......
......@@ -20,10 +20,10 @@
</div>
</glsx-combi-form>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<select-muti-pro-dialog ref="classMutiProRef" v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose">
<!-- <template slot="search">
<div class="flex">
......@@ -53,8 +53,6 @@ export default {
1: '新建分类',
2: '编辑分类'
},
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
routeInfo: {
// 1-新建;2-编辑;3-查看
......@@ -126,8 +124,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.query
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
......
......@@ -166,11 +166,10 @@
</glsx-combi-form>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" v-if="showSubmit" @click="handleConfirm">确定</el-button>
<el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button>
<el-button v-if="showSubmit" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<select-muti-pro-forcoupon-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible"
:searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm"
@handleMutiSelectClose="handleMutiSelectClose"></select-muti-pro-forcoupon-dialog>
......@@ -189,8 +188,6 @@ export default {
userDisable: false,
size: 'small',
title: '创建',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
loading: false,
routeInfo: {
......@@ -374,8 +371,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.params
this.getAllGoods()
var id = this.routeInfo.id
......
......@@ -151,11 +151,10 @@
</glsx-combi-form>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" v-if="showSubmit" @click="handleConfirm">确定</el-button>
<el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button>
<el-button v-if="showSubmit" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
</div>
</template>
......@@ -175,8 +174,6 @@ export default {
1: '创建晒单',
2: '编辑晒单'
},
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
loading: false,
// pickerOptions: {
......@@ -318,8 +315,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.params
// this.title = this.titleObj[this.routeInfo.addOrEdit]
this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
......
<!-- 编辑兑换券 -->
<template>
<div class="edit-share marketing edit-box">
<div class="container edit-container" style="position: relative; min-height: 700px;" v-loading="loading">
<div class="container edit-container" style="position: relative;" v-loading="loading">
<div class="right_show">
<div class="card-top"></div>
<div class="slider">
......@@ -101,11 +101,10 @@
<glsx-combi-form class="edit-form-container" ref="merchantRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="merchantRule"></glsx-combi-form>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" v-if="showSubmit" @click="handleConfirm">确定</el-button>
<el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
</div>
</template>
......@@ -125,8 +124,6 @@ export default {
1: '创建晒单',
2: '编辑晒单'
},
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
loading: false,
editStatus: false,
......@@ -251,8 +248,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.params
// this.title = this.titleObj[this.routeInfo.addOrEdit]
this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
......@@ -488,7 +484,7 @@ export default {
.then(() => {
this.cancelJump()
})
.catch(() => {})
.catch(() => { })
} else {
this.cancelJump()
}
......
......@@ -157,13 +157,10 @@
</div>
</div>
</div>
<div class="footer-panel" :style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}">
<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>
<GLFooter>
<el-button @click="goBack" size="medium">取消</el-button>
<el-button type="primary" v-if="showSubmit" @click="submitForm('ruleForm')" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<!-- :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">
<div class="content-body">
......@@ -344,8 +341,6 @@ export default {
this.rules.stock[0].required = !this.$isGroupUp
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
if (this.title == '查看' || this.title == '编辑') {
this.disabledCost = true
this.disabledDescription = true
......@@ -640,7 +635,7 @@ export default {
}
}
.container {
margin: 0 0px 100px;
margin: 0 0px 16px;
position: relative;
/deep/ .el-form-item__content {
......
<template>
<div class>
<div class="container">
<div>
<div class="edit-container">
<!-- 基础信息 -->
<div class="title">
编辑朋友圈
......@@ -219,7 +219,9 @@ export default {
deep: true
}
},
mounted() {},
mounted() {
this.setMinHeight()
},
methods: {
openMembers() {
this.membersVisible = !this.membersVisible
......@@ -419,7 +421,7 @@ export default {
<style lang="scss" scoped>
.container {
margin-bottom: 84px;
margin-bottom: 16px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
// padding: 20px;
......
......@@ -102,10 +102,10 @@
</div>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" @click="handleCancel">取消</el-button>
<el-button type="primary" @click="handleConfirm">提交</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<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>
</div>
......@@ -133,8 +133,6 @@ export default {
add: '新增礼包',
edit: '编辑礼包'
},
footerLeft: '0',
footerWidth: '0',
// 选择员工弹窗
isMutiSelectVisible: false,
searchStaffForm: {},
......@@ -434,8 +432,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.query
if (this.routeInfo.receivedStock) this.routeInfo.receivedStock = +this.routeInfo.receivedStock
this.title = this.titleObj[this.routeInfo.addOrEdit]
......
......@@ -72,10 +72,9 @@
</div>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" @click="handleCancel">返回</el-button>
<!-- <el-button type="default" @click="handleCancel">修改</el-button> -->
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
</GLFooter>
</div>
</template>
......@@ -87,8 +86,6 @@ export default {
return {
size: 'small',
title: '礼包详情',
footerLeft: '0',
footerWidth: '0',
loading: false,
editChildRef: 'editChildRef',
receiveDetailList: [],
......@@ -203,8 +200,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.query
this.loading = true
this.getInfo()
......
......@@ -186,9 +186,9 @@
</div>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
</div>
<GLFooter>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<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">
......@@ -246,8 +246,6 @@ export default {
name: 'homeSet',
data() {
return {
footerLeft: '0',
footerWidth: '0',
size: 'small',
userInfo: {},
// 查看大图
......@@ -501,8 +499,6 @@ export default {
mounted() {
this.userInfo = this.$globalState.session
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getInfo()
this.getConsultant()
// 非集团账号隐藏配置门店
......
......@@ -93,8 +93,8 @@
</div>
</div>
<div class="pageTitle">会员用户</div>
<div class="live-room container p-t-20 ">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="live-room container">
<GLCombiForm class="p-t-20" ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="flex-between m-b-10 m-t-10">
<div class="text-16 color-3 weight-5">会员列表</div>
<div class="export" @click="handleExport">全部导出</div>
......@@ -633,7 +633,6 @@ export default {
background-color: #fff;
height: 190px;
box-sizing: border-box;
margin-top: 20px;
padding: 10px 8px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.1);
.cardBoxWrap {
......
......@@ -272,7 +272,7 @@ export default {
<style lang="scss" scoped>
.marketing {
.container-detail {
padding: 20px 0;
padding-bottom: 20px;
.order-info {
width: 100%;
height: auto;
......
......@@ -367,7 +367,7 @@ export default {
this.$messageBox.confirm('下架后将隐藏且客户不能购买该套餐,已经购买的客户仍继续享有该套餐的服务?', '下架', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
type: 'warning',
// type: 'error',
callback: action => {
if (action == 'confirm') {
......@@ -406,7 +406,7 @@ export default {
this.$messageBox.confirm('是否删除该套餐?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
// type: 'error',
type: 'warning',
callback: action => {
if (action == 'confirm') {
deleteSetMeal({ id: row.id }).then(res => {
......@@ -428,7 +428,7 @@ export default {
<style lang="scss" scoped>
.btnWrap {
margin: 10px 0;
margin-bottom: 20px;
}
/deep/ .el-dialog__header {
......
......@@ -462,7 +462,6 @@ export default {
color: #5850ff !important;
}
.topMsg {
margin: 20px 0px 0;
padding: 0 20px;
background-color: #fff;
height: 56px;
......
<!-- 新车管理 -->
<template>
<div class="marketing">
<div class="m-b-20">
<!-- <GLButton :size="size" type="primary" fn="新增新车" class="el-icon-plus" @click="handleEdit(1)">新增新车</GLButton> -->
</div>
<!-- <div class="m-b-20">
<GLButton :size="size" type="primary" fn="新增新车" class="el-icon-plus" @click="handleEdit(1)">新增新车</GLButton>
</div> -->
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
......
......@@ -26,9 +26,9 @@
</div>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" @click="handleCancel">返回</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">返回</el-button>
</GLFooter>
</div>
</template>
......@@ -39,8 +39,6 @@ export default {
return {
size: 'small',
title: '评论详情',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
routeInfo: {
id: ''
......@@ -51,8 +49,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.query
this.getInfo()
},
......
......@@ -91,7 +91,7 @@ export default {
setTableFinishFun() {
//接收到的数据为空
this.$refs.commentRef.data.length ? (this.$refs.commentRef.tableHeightValues = '') : this.$refs.commentRef.setTableHeightFun()
// this.$refs.commentRef.data.length ? (this.$refs.commentRef.tableHeightValues = '') : this.$refs.commentRef.setTableHeightFun()
},
handleImgLook(imgUrls) {
......
......@@ -282,10 +282,10 @@
</div>
</div>
<comment-detail v-show="['2', '3'].includes(routeInfo.addOrEdit + '') && activeName == 'afterOrder'" :goodsId="routeInfo.id"></comment-detail>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button v-if="routeInfo.addOrEdit == '1' || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')" type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
<GLFooter>
<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="loading">提交</el-button>
</GLFooter>
<el-dialog :visible.sync="isImgVisible">
<img class="dialog-img" width="100%" :src="dialogImageUrl" alt />
</el-dialog>
......@@ -418,8 +418,6 @@ export default {
]
},
size: 'small',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
// tab
activeName: 'basicInfo',
......@@ -933,8 +931,6 @@ export default {
mounted() {
this.userInfo = this.$globalState.session
this.$refs.merchantTableRef[0].tableHeightValues = '400px'
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getBaseDate().then(() => {
this.getOptionsList(0, 'editFormData', false)
})
......
......@@ -76,11 +76,10 @@
<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>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" v-if="apear != 'see'" @click="handleConfirm">确定</el-button>
<el-button v-if="apear != 'see'" @click="handleCancel">取消</el-button>
<el-button v-if="apear == 'see'" @click="handleCancel">返回</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">{{ apear != 'see' ? '取消' : '返回' }}</el-button>
<el-button v-if="apear != 'see'" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog>
</div>
</template>
......@@ -97,8 +96,6 @@ export default {
1: '创建秒杀活动',
2: '编辑秒杀活动'
},
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
pickerOptions: {
disabledDate(v) {
......@@ -274,8 +271,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.params
this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
var id = this.routeInfo.id
......
......@@ -165,11 +165,10 @@
<img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" />
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" v-if="routeInfo.addOrEdit != 'detail'" @click="handleConfirm">确定</el-button>
<el-button v-if="routeInfo.addOrEdit != 'detail'" @click="handleCancel">取消</el-button>
<el-button v-if="routeInfo.addOrEdit == 'detail'" @click="handleCancel">返回</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}</el-button>
<el-button v-if="routeInfo.addOrEdit != 'detail'" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog>
</div>
</template>
......@@ -188,8 +187,6 @@ export default {
}
return {
size: 'small',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
loading: false,
userInfo: {},
......@@ -592,8 +589,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getMerchantInfo()
var id = this.routeInfo.id
......
......@@ -93,10 +93,10 @@
<div v-show="!editForm.eventList.length && submit" class="red-txt">请创建营销事件</div>
</div>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<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-customer v-if="isAppointCustVisible" :dialogVisible="isAppointCustVisible" :parentSelectedCustomerList="customerDataList[2].list" @handleAppointCustClose="handleAppointCustClose" @handleAppointCustConfirm="handleDialogConfirm"></select-customer>
......@@ -114,8 +114,6 @@ export default {
size: 'small',
title: '基本信息',
url: url,
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
editStatus: false,
editDisabled: false,
......@@ -298,8 +296,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight('.sop-base-info')
if (this.routeInfo.addOrEdit == 'edit') {
this.getInfo()
} else if (this.routeInfo.info) {
......
......@@ -96,10 +96,10 @@
</template>
</glsx-combi-form>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel>
<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>
......@@ -117,8 +117,6 @@ export default {
data() {
return {
size: 'small',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
isMaterialVisible: false,
isNicknameVisible: false,
......@@ -454,8 +452,6 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
Object.assign(this.editForm, this.eventObj.info)
this.getStaffTypeList()
this.$nextTick(() => {
......
......@@ -2,7 +2,7 @@
<!-- 商品编辑 - 带货 -->
<template>
<div class="edit-product-dh marketing edit-box">
<div class="container">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<div class="flex" style="margin-top: 20px;">
<div class="main-img-box">
......@@ -50,10 +50,9 @@
</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>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<!-- <el-button type="primary" @click="handleConfirm">确定</el-button> -->
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
<GLFooter>
<el-button @click="handleCancel" size="medium">返回</el-button>
</GLFooter>
</div>
</template>
......@@ -65,8 +64,6 @@ export default {
return {
size: 'small',
title: '查看商品',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
// submitted: false,
isDisabled: false,
......@@ -109,8 +106,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.query
this.isDisabled = true
this.editFormData[0].isDisabled = true
......
<!-- 编辑专区 -->
<template>
<div class="edit-gift marketing p-t-20 edit-box">
<div class="edit-gift marketing edit-box">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
......
......@@ -31,10 +31,14 @@
</el-row>
</relate-store-dialog>
</div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
</div> -->
</div>
</template>
......@@ -49,8 +53,6 @@ export default {
1: '新增专区',
2: '编辑专区'
},
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
routeInfo: {
// 1-新增;2-编辑;3-查看
......@@ -139,8 +141,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.setMinHeight()
this.routeInfo = this.$route.query
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
......@@ -232,7 +233,7 @@ export default {
.then(() => {
this.cancelJump()
})
.catch(() => {})
.catch(() => { })
} else {
this.cancelJump()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!