Commit d1feb16f by chenwq

弹窗改版

1 parent 6fdf6d7d
Showing 44 changed files with 121 additions and 147 deletions
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
line-height: 36px; line-height: 36px;
} }
#app { #app {
padding: 0px 20px 20px 40px; // padding: 0px 20px 20px 40px;
// overflow-y: auto; // overflow-y: auto;
margin-right: 20px; margin-right: 20px;
height: 100%; height: 100%;
......
...@@ -193,13 +193,6 @@ html { ...@@ -193,13 +193,6 @@ html {
padding: 0 16px !important; padding: 0 16px !important;
} }
.marketing .table-btns .el-button {
padding: 0 0 0 5px;
margin-left: 5px;
border-left: 1px solid #dcdfe6;
border-radius: 0;
}
.marketing .table-btns .el-button:first-child { .marketing .table-btns .el-button:first-child {
padding: 0; padding: 0;
border: 0; border: 0;
......
...@@ -80,28 +80,28 @@ ...@@ -80,28 +80,28 @@
<!-- 地图 --> <!-- 地图 -->
<div v-else-if="item.type === 'map'" class="flex"> <div v-else-if="item.type === 'map'" class="flex">
<Province ref="provinceForm" :subdistrict="subdistrict" :isDisabled="item.isDisabled" @selectProvince="e => handleSelectProvince(e, item)" @selectCity="e => handleSelectCity(e, item)"></Province> <Province ref="provinceForm" :subdistrict="subdistrict" :isDisabled="item.isDisabled" @selectProvince="e => handleSelectProvince(e, item)" @selectCity="e => handleSelectCity(e, item)"></Province>
<el-input class="input-width" v-model="formObj[item.name]" placeholder="请选择商户地址" :disabled="item.isDisabled"></el-input> <el-input style="flex: 1;" v-model="formObj[item.name]" placeholder="请选择商户地址" :disabled="item.isDisabled"></el-input>
<el-button class="m-l-10" v-show="!item.isDisabled" @click="handleSelectMap(item)" type="primary">选择地址</el-button> <el-button class="m-l-10" v-show="!item.isDisabled" @click="handleSelectMap(item)" type="primary">选择地址</el-button>
</div> </div>
</el-form-item> </el-form-item>
</template> </template>
<slot name="footer"></slot> <slot name="footer"></slot>
</el-form> </el-form>
<el-dialog v-if="isImgVisible" title="查看" :visible.sync="isImgVisible" :close-on-click-modal="false"> <GLDialog v-if="isImgVisible" bigTitle="查看" mode="big" :visible.sync="isImgVisible" :close-on-click-modal="false" @onOk="isImgVisible = false" @onCancel="isImgVisible = false">
<div class="dialog-look"> <div class="dialog-look">
<video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls> <video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls>
<source :src="dialogObj.url" type="video/mp4" /> <source :src="dialogObj.url" type="video/mp4" />
</video> </video>
<img v-else class="dialog-img" width="100%" :src="dialogObj.url" alt="" /> <img v-else class="dialog-img" width="100%" :src="dialogObj.url" alt="" />
</div> </div>
</el-dialog> </GLDialog>
<el-dialog :visible.sync="dialogMapVisible" width="60%"> <GLDialog bigTitle="选择地址" mode="big" :visible.sync="dialogMapVisible" @onOk="getAddress" @onCancel="dialogMapVisible = false">
<map-view ref="mapForm" :mapHeight="mapHeight"></map-view> <map-view ref="mapForm" :mapHeight="mapHeight"></map-view>
<span slot="footer" class="dialog-footer"> <!-- <span slot="footer" class="dialog-footer">
<el-button @click="dialogMapVisible = false">取 消</el-button> <el-button @click="">取 消</el-button>
<el-button type="primary" @click="getAddress">确 定</el-button> <el-button type="primary" @click="getAddress">确 定</el-button>
</span> </span> -->
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -277,7 +277,6 @@ export default { ...@@ -277,7 +277,6 @@ export default {
this.targetItem = targetItem this.targetItem = targetItem
this.dialogMapVisible = true this.dialogMapVisible = true
this.$nextTick(() => { this.$nextTick(() => {
console.log(this.$refs.mapForm)
if (this.formObj[targetItem.attrObj.fullAddress] && !this.$refs.mapForm.address) { if (this.formObj[targetItem.attrObj.fullAddress] && !this.$refs.mapForm.address) {
this.$refs.mapForm.address = this.formObj[targetItem.attrObj.fullAddress] this.$refs.mapForm.address = this.formObj[targetItem.attrObj.fullAddress]
this.$refs.mapForm.addMarker([this.formObj[targetItem.attrObj.lng], this.formObj[targetItem.attrObj.lat]]) this.$refs.mapForm.addMarker([this.formObj[targetItem.attrObj.lng], this.formObj[targetItem.attrObj.lat]])
......
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" :btnOkLabel="productList.length ? '确定' : '创建商品'" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" :noClose="false" :noCancel="true" :showClose="true"> <GLDialog class="muti-pro" bigTitle="选择商品" mode="big" :visible.sync="isMutiSelectVisible" :okText="productList.length ? '确定' : '创建商品'" @onOk="handleMutiSelectConfirm" @onCancel="handleMutiSelectClose" :noClose="false" :noCancel="true" :showClose="true">
<div style="max-height:60vh"> <div style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack"> <div class="noproDiv" v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" /> <img src="@/assets/noPro.png" />
...@@ -23,11 +23,10 @@ ...@@ -23,11 +23,10 @@
</GLTable> </GLTable>
</div> </div>
</div> </div>
</glsx-dialog> </GLDialog>
</template> </template>
<script> <script>
import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'selectMutiProForcouponDialog', name: 'selectMutiProForcouponDialog',
data() { data() {
...@@ -80,10 +79,6 @@ export default { ...@@ -80,10 +79,6 @@ export default {
} }
}, },
components: {
glsxDialog
},
mounted() { mounted() {
this.userInfo = this.$globalState.session this.userInfo = this.$globalState.session
this.getList({}, true) this.getList({}, true)
......
<!-- 选择商品 - 单选 --> <!-- 选择商品 - 单选 -->
<template> <template>
<glsx-dialog class="single-pro" title="选择商品" :btnOkLabel="productList.length ? '确定' : '创建商品'" :isVisible.sync="isSingleSelectVisible" width="900px" @confirmDialog="handleSingleSelectConfirm" @closeDialog="handleSingleSelectClose" :showClose="true"> <GLDialog class="single-pro" bigTitle="选择商品" mode="big" :okText="productList.length ? '确定' : '创建商品'" :visible.sync="isSingleSelectVisible" @onOk="handleSingleSelectConfirm" @onCancel="handleSingleSelectClose">
<div style="max-height:60vh"> <div style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack"> <div class="noproDiv" v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" /> <img src="@/assets/noPro.png" />
<p class="noproP">系统暂无已创建的商品</p> <p class="noproP">系统暂无已创建的商品</p>
</div> </div>
<el-radio-group v-model="infoId" v-if="productList.length"> <el-radio-group v-model="infoId" v-if="productList.length" class="pro-group">
<el-radio :class="['pro-box', item.id == infoId ? 'active' : '']" v-for="item in productList" :key="item.id" :label="item.id"> <el-radio :class="['pro-box', item.id == infoId ? 'active' : '']" v-for="item in productList" :key="item.id" :label="item.id">
<img v-show="item.id == infoId" class="icon-check" src="@/assets/icon-check.png" /> <img v-show="item.id == infoId" class="icon-check" src="@/assets/icon-check.png" />
<img class="goods-img" :src="item.goodsImage" /> <img class="goods-img" :src="item.goodsImage" />
...@@ -20,12 +20,11 @@ ...@@ -20,12 +20,11 @@
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
</glsx-dialog> </GLDialog>
</template> </template>
<script> <script>
// import { getGoodsList } from '@/api/modules/common' // import { getGoodsList } from '@/api/modules/common'
import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'selectSingleProDialog', name: 'selectSingleProDialog',
data() { data() {
...@@ -49,10 +48,6 @@ export default { ...@@ -49,10 +48,6 @@ export default {
} }
}, },
components: {
glsxDialog
},
computed: {}, computed: {},
mounted() { mounted() {
...@@ -132,11 +127,18 @@ export default { ...@@ -132,11 +127,18 @@ export default {
} }
</script> </script>
<style> <style>
.single-pro .pro-group {
margin-left: 50px;
}
.single-pro .pro-box { .single-pro .pro-box {
width: 202px; width: 202px;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
border-radius: 6px; border-radius: 6px;
margin: 0 10px 10px 0; /* margin: 0 10px 10px 0; */
margin: 0 40px 20px 0;
}
.single-pro .pro-box:nth-child(4n) {
margin: 0 20px 20px 0;
} }
.single-pro .pro-box.active { .single-pro .pro-box.active {
box-shadow: 0px 6px 20px 0px rgba(122, 122, 122, 0.2); box-shadow: 0px 6px 20px 0px rgba(122, 122, 122, 0.2);
......
<!-- 编辑分类 --> <!-- 编辑分类 -->
<template> <template>
<div class="edit-classify marketing p-t-20 edit-box"> <div class="edit-classify marketing edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
......
<!-- 分类管理 --> <!-- 分类管理 -->
<template> <template>
<div class="marketing p-t-20"> <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>
......
<!-- 编辑代金券 --> <!-- 编辑代金券 -->
<template> <template>
<div class="edit-share marketing p-t-20 edit-box"> <div class="edit-share marketing edit-box">
<div class="container edit-container" style="position: relative" v-loading="loading"> <div class="container edit-container" style="position: relative" v-loading="loading">
<div class="right_show"> <div class="right_show">
<div class="card-top"></div> <div class="card-top"></div>
...@@ -605,7 +605,7 @@ export default { ...@@ -605,7 +605,7 @@ export default {
this.$messageBox.confirm('是否删除该商品?', '删除', { this.$messageBox.confirm('是否删除该商品?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
// type: 'error', type: 'warning',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
var idx = this.editForm.goodsRefList.findIndex(item => item.id == obj.scope.id) var idx = this.editForm.goodsRefList.findIndex(item => item.id == obj.scope.id)
......
<!-- 编辑折扣券 --> <!-- 编辑折扣券 -->
<template> <template>
<div class="edit-share marketing p-t-20 edit-box"> <div class="edit-share marketing edit-box">
<div class="container edit-container" style="position: relative" v-loading="loading"> <div class="container edit-container" style="position: relative" v-loading="loading">
<!-- <div class="right_show"> <!-- <div class="right_show">
<div class="card-top"></div> <div class="card-top"></div>
......
<!-- 编辑兑换券 --> <!-- 编辑兑换券 -->
<template> <template>
<div class="edit-share marketing p-t-20 edit-box"> <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; min-height: 700px;" v-loading="loading">
<div class="right_show"> <div class="right_show">
<div class="card-top"></div> <div class="card-top"></div>
......
...@@ -620,7 +620,7 @@ export default { ...@@ -620,7 +620,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.live-room { .live-room {
.topMsg { .topMsg {
margin: 20px 0px 0; // margin: 20px 0px 0;
padding: 0 20px; padding: 0 20px;
background-color: #fff; background-color: #fff;
height: 56px; height: 56px;
......
<!-- 优惠券列表 --> <!-- 优惠券列表 -->
<template> <template>
<div class="marketing pro-group p-t-10"> <div class="marketing pro-group">
<div class="m-b-10"> <div class="m-b-10">
<GLButton :size="size" type="default" class="el-icon-plus default-blue-btn color-transparent" @click="addService()" fn="新建服务券" display="disabled" mode="el-button">新建服务券</GLButton> <GLButton :size="size" type="default" class="el-icon-plus default-blue-btn color-transparent" @click="addService()" fn="新建服务券" display="disabled" mode="el-button">新建服务券</GLButton>
<GLButton :size="size" type="default" class="el-icon-plus default-blue-btn color-transparent" @click="addCashCoupon()" fn="新建代金券" display="disabled" mode="el-button">新建代金券</GLButton> <GLButton :size="size" type="default" class="el-icon-plus default-blue-btn color-transparent" @click="addCashCoupon()" fn="新建代金券" display="disabled" mode="el-button">新建代金券</GLButton>
......
...@@ -43,14 +43,16 @@ ...@@ -43,14 +43,16 @@
<el-button type="primary" :size="size" @click="goback">返回</el-button> <el-button type="primary" :size="size" @click="goback">返回</el-button>
</div> </div>
<!-- 作废 --> <!-- 作废 -->
<glsx-dialog title="作废确认" :isVisible.sync="isCancelVisible" @confirmDialog="handleCancelConfirm" @closeDialog="handleCancelClose"> <GLDialog title="作废确认" mode="small" :visible.sync="isCancelVisible" @onOk="handleCancelConfirm" @onCancel="handleCancelClose">
<div class="small-content">
<p>请先和客户沟通在确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷</p> <p>请先和客户沟通在确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷</p>
<el-form ref="cancelRef" label-width="100px" :rules="cancelRules" :model="cancelForm"> <el-form ref="cancelRef" label-width="80px" :rules="cancelRules" :model="cancelForm">
<el-form-item label="作废原因" prop="cancelReason" class="m-t-20"> <el-form-item label="作废原因" prop="cancelReason" class="m-t-20">
<el-input :size="size" type="textarea" v-model.trim="cancelForm.cancelReason" placeholder="请输入作废原因" maxlength="50" rows="3" show-word-limit></el-input> <el-input style="width: 410px;" :size="size" type="textarea" v-model.trim="cancelForm.cancelReason" placeholder="请输入作废原因" maxlength="50" rows="3" show-word-limit></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</glsx-dialog> </div>
</GLDialog>
</div> </div>
</template> </template>
......
<template> <template>
<div class="marketing record-list p-t-10"> <div class="marketing record-list">
<div class="m-b-10"> <div class="m-b-10">
<el-button :size="size" type="default" class="default-blue-btn color-transparent" @click="openDialog">核销优惠券</el-button> <el-button :size="size" type="default" class="default-blue-btn color-transparent" @click="openDialog">核销优惠券</el-button>
</div> </div>
...@@ -26,30 +26,27 @@ ...@@ -26,30 +26,27 @@
<span class="cursor-pointer" @click="orderCodeHandleDetail(scope.scope)" v-else>{{ scope.scope.orderCode }}</span> <span class="cursor-pointer" @click="orderCodeHandleDetail(scope.scope)" v-else>{{ scope.scope.orderCode }}</span>
</span> </span>
</GLTable> </GLTable>
<glsx-dialog title="优惠券核销(请确保用户到店后核销,避免引起不必要问题)" :hasScroll="false" width="580px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm"> <GLDialog mode="small" :visible.sync="isDialogVisible" @onCancel="handleClose" @onOk="handleConfirm">
<div class="content-body"> <div slot="title">优惠券核销(请确保用户到店后核销,避免引起不必要问题)</div>
<div class="small-content">
<el-form :rules="rules" ref="ruleForm" :model="ruleForm" label-width="80px"> <el-form :rules="rules" ref="ruleForm" :model="ruleForm" label-width="80px">
<el-form-item size="small" label="核销码" prop="verficationCode" style="width: 380px"> <el-form-item size="small" label="核销码" prop="verficationCode" style="width: 380px">
<el-input size="small" v-model.trim="ruleForm.verficationCode" maxlength="50" placeholder="请输入核销码"></el-input> <el-input size="small" v-model.trim="ruleForm.verficationCode" maxlength="50" placeholder="请输入核销码"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</glsx-dialog> </GLDialog>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import glsxDialog from '@/components/glsx-dialog'
// import { getRecordListApi, getVerificationCode, verificationExportApi } from '@/api/modules/record' // import { getRecordListApi, getVerificationCode, verificationExportApi } from '@/api/modules/record'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { dateFormat } from '@/utils/index.js' import { dateFormat } from '@/utils/index.js'
import { exportFn } from '@/common/constant' import { exportFn } from '@/common/constant'
export default { export default {
name: 'recordList', name: 'recordList',
components: {
glsxDialog
},
data() { data() {
return { return {
ruleForm: { ruleForm: {
......
...@@ -42,13 +42,14 @@ ...@@ -42,13 +42,14 @@
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<!-- 优惠券核销 --> <!-- 优惠券核销 -->
<glsx-dialog title="优惠券核销(请确保用户到店后核销,避免引起不必要问题)" :isVisible.sync="writeOffVisible" @confirmDialog="handleDownConfirm" @closeDialog="handleDownClose"> <GLDialog mode="small" :visible.sync="writeOffVisible" @onOk="handleDownConfirm" @onCancel="handleDownClose">
<el-form ref="writeOffRef" label-width="100px" :rules="writeOffRules" :model="writeOffForm"> <div slot="title">优惠券核销(请确保用户到店后核销,避免引起不必要问题)</div>
<el-form class="small-content" ref="writeOffRef" label-width="100px" :rules="writeOffRules" :model="writeOffForm">
<el-form-item label="核销码" prop="verficationCode"> <el-form-item label="核销码" prop="verficationCode">
<el-input :size="size" v-model="writeOffForm.verficationCode" placeholder="请输入核销码" style="width:300px;" maxlength="32"></el-input> <el-input :size="size" v-model="writeOffForm.verficationCode" placeholder="请输入核销码" style="width:300px;" maxlength="32"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</glsx-dialog> </GLDialog>
</div> </div>
</template> </template>
......
...@@ -63,10 +63,10 @@ ...@@ -63,10 +63,10 @@
</div> </div>
</div> </div>
</div> </div>
<glsx-dialog :title="'选择成员'" :width="'1142px'" :isVisible="membersVisible" @confirmDialog="handleConfirm" @closeDialog="membersVisible = !membersVisible"> <GLDialog bigTitle="选择成员" mode="big" :visible.sync="membersVisible" @onOk="handleConfirm" @onCancel="membersVisible = !membersVisible">
<!-- <SelectMembers islord="false" :selectData="selectData" ref="membersForm"></SelectMembers> --> <!-- <SelectMembers islord="false" :selectData="selectData" ref="membersForm"></SelectMembers> -->
<SelectMember ref="membersForm" v-if="membersVisible" :selectData="selectData"></SelectMember> <SelectMember ref="membersForm" v-if="membersVisible" :selectData="selectData"></SelectMember>
</glsx-dialog> </GLDialog>
</div> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel">取消</el-button> <el-button @click="handleCancel">取消</el-button>
......
<!-- 商品管理-集团 --> <!-- 商品管理-集团 -->
<template> <template>
<div class="marketing pro-group p-t-20"> <div class="marketing pro-group">
<div class="m-b-20 friend-title"> <div class="m-b-20 friend-title">
<GLButton :size="size" type="primary" fn="编辑朋友圈" @click="handleEdit(1)">发布朋友圈</GLButton> <GLButton :size="size" type="primary" fn="编辑朋友圈" @click="handleEdit(1)">发布朋友圈</GLButton>
<span>管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。</span> <span>管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。</span>
......
<!-- 编辑礼包 --> <!-- 编辑礼包 -->
<template> <template>
<div class="edit-gift marketing p-t-20 edit-box"> <div class="edit-gift marketing edit-box">
<div v-if="routeInfo.addOrEdit != 'add'" class="container approval-container"> <div v-if="routeInfo.addOrEdit != 'add'" class="container approval-container">
<p class="edit-title">审批信息</p> <p class="edit-title">审批信息</p>
<div class="approval-info"> <div class="approval-info">
......
<!-- 礼包详情 --> <!-- 礼包详情 -->
<template> <template>
<div class="edit-gift marketing p-t-20 edit-box"> <div class="edit-gift marketing edit-box">
<div class="container approval-container"> <div class="container approval-container">
<p class="edit-title">审批信息</p> <p class="edit-title">审批信息</p>
<div class="approval-info"> <div class="approval-info">
......
...@@ -41,21 +41,22 @@ ...@@ -41,21 +41,22 @@
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<glsx-dialog title="作废确认" :isVisible.sync="isCancelVisible" @confirmDialog="handleCancelConfirm" @closeDialog="handleCancelClose"> <GLDialog title="作废确认" mode="small" :visible.sync="isCancelVisible" @onOk="handleCancelConfirm" @onCancel="handleCancelClose">
<div class="small-content">
<p>请先和客户沟通再确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷</p> <p>请先和客户沟通再确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷</p>
<el-form ref="cancelRef" label-width="100px" :rules="cancelRules" :model="cancelForm"> <el-form ref="cancelRef" label-width="80px" :rules="cancelRules" :model="cancelForm">
<el-form-item label="作废原因" prop="cancelReason" class="m-t-20"> <el-form-item label="作废原因" prop="cancelReason" class="m-t-20">
<el-input :size="size" type="textarea" v-model="cancelForm.cancelReason" placeholder="请输入作废原因" maxlength="50" rows="3" show-word-limit></el-input> <el-input style="width: 410px;" :size="size" type="textarea" v-model="cancelForm.cancelReason" placeholder="请输入作废原因" maxlength="50" rows="3" show-word-limit></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</glsx-dialog> </div>
</GLDialog>
</div> </div>
</template> </template>
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import glsxDialog from '@/components/glsx-dialog'
import { aToExport } from '@/common/constant' import { aToExport } from '@/common/constant'
export default { export default {
name: 'giftList', name: 'giftList',
...@@ -333,9 +334,6 @@ export default { ...@@ -333,9 +334,6 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' } pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }
} }
}, },
components: {
glsxDialog
},
mounted() { mounted() {
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
...@@ -491,7 +489,7 @@ export default { ...@@ -491,7 +489,7 @@ export default {
this.$refs.receivedGiftListRef.data.length ? (this.$refs.receivedGiftListRef.tableHeightValues = '') : this.$refs.receivedGiftListRef.setTableHeightFun() this.$refs.receivedGiftListRef.data.length ? (this.$refs.receivedGiftListRef.tableHeightValues = '') : this.$refs.receivedGiftListRef.setTableHeightFun()
} }
}, },
setGiftTableFinishFun() {}, setGiftTableFinishFun() { },
handleSearch() { handleSearch() {
this.$refs.receivedGiftListRef.refreshTable() this.$refs.receivedGiftListRef.refreshTable()
}, },
......
<!-- 选择礼包弹窗 --> <!-- 选择礼包弹窗 -->
<template> <template>
<glsx-dialog class="muti-gift" title="选择礼包内容" :isVisible.sync="isSelectGiftVisible" width="70%" @confirmDialog="handleGiftConfirm" @closeDialog="handleGiftClose" v-loading="loading"> <GLDialog class="muti-gift" bigTitle="选择礼包内容" mode="big" :visible.sync="isSelectGiftVisible" @onOk="handleGiftConfirm" @onCancel="handleGiftClose" v-loading="loading">
<!-- <div class="nogiftDiv" v-show="!giftList.length && fnCallBack"> <!-- <div class="nogiftDiv" v-show="!giftList.length && fnCallBack">
<img src="@/assets/noPro.png" /> <img src="@/assets/noPro.png" />
<p class="nogiftP">系统暂无已创建的礼包</p> <p class="nogiftP">系统暂无已创建的礼包</p>
...@@ -79,12 +79,11 @@ ...@@ -79,12 +79,11 @@
</div> </div>
</div> </div>
</div> </div>
</glsx-dialog> </GLDialog>
</template> </template>
<script> <script>
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'selectGiftDialog', name: 'selectGiftDialog',
data() { data() {
...@@ -130,7 +129,8 @@ export default { ...@@ -130,7 +129,8 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '名称', label: '名称',
prop: 'couponName' prop: 'couponName',
width: 180
}, },
{ {
label: '预估成本/元', label: '预估成本/元',
...@@ -196,10 +196,6 @@ export default { ...@@ -196,10 +196,6 @@ export default {
} }
}, },
components: {
glsxDialog
},
mounted() { mounted() {
this.userInfo = this.$globalState.session this.userInfo = this.$globalState.session
this.getList({}, true, true) this.getList({}, true, true)
...@@ -230,7 +226,7 @@ export default { ...@@ -230,7 +226,7 @@ export default {
this.$refs[this.activeName + 'Ref'].tableTotal = res.total this.$refs[this.activeName + 'Ref'].tableTotal = res.total
this.recoverySelected() this.recoverySelected()
this.recoveryTotal() this.recoveryTotal()
this.$refs[this.activeName + 'Ref'].tableHeightValues = '50vh' this.$refs[this.activeName + 'Ref'].tableHeightValues = '42vh'
}) })
.finally(() => { .finally(() => {
this.loading = false this.loading = false
...@@ -437,7 +433,7 @@ export default { ...@@ -437,7 +433,7 @@ export default {
border-bottom: 1px solid #f1f1f1; border-bottom: 1px solid #f1f1f1;
} }
.list-gifts { .list-gifts {
height: 61vh; height: 52vh;
overflow-y: scroll; overflow-y: scroll;
} }
.gift-box { .gift-box {
......
<!-- 选择员工弹窗 --> <!-- 选择员工弹窗 -->
<template> <template>
<glsx-dialog class="muti-pro" title="选择员工" :isVisible.sync="isMutiSelectVisible" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" v-loading="loading"> <GLDialog class="muti-pro" bigTitle="选择员工" mode="big" :visible.sync="isMutiSelectVisible" @onOk="handleMutiSelectConfirm" @onCancel="handleMutiSelectClose" v-loading="loading">
<div class="noproDiv" v-show="!staffList.length && fnCallBack"> <div class="noproDiv" v-show="!staffList.length && fnCallBack">
<img src="@/assets/noPro.png" /> <img src="@/assets/noPro.png" />
<p class="noproP">系统暂无已创建的员工</p> <p class="noproP">系统暂无已创建的员工</p>
...@@ -9,12 +9,11 @@ ...@@ -9,12 +9,11 @@
<slot name="search"></slot> <slot name="search"></slot>
<GLTable v-loading="loading" ref="mutiProRef" :tableData="staffList" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" @refreshTable="getList"></GLTable> <GLTable v-loading="loading" ref="mutiProRef" :tableData="staffList" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" @refreshTable="getList"></GLTable>
</div> </div>
</glsx-dialog> </GLDialog>
</template> </template>
<script> <script>
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'selectStaffDialog', name: 'selectStaffDialog',
data() { data() {
...@@ -22,7 +21,7 @@ export default { ...@@ -22,7 +21,7 @@ export default {
// 表格组件 // 表格组件
userInfo: {}, userInfo: {},
staffList: [], staffList: [],
selectList:[], selectList: [],
fnCallBack: false, fnCallBack: false,
url: url, url: url,
loading: true, loading: true,
...@@ -59,7 +58,7 @@ export default { ...@@ -59,7 +58,7 @@ export default {
}, },
searchForm: { searchForm: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
selectedStaffList: { selectedStaffList: {
type: Array, type: Array,
...@@ -67,10 +66,6 @@ export default { ...@@ -67,10 +66,6 @@ export default {
} }
}, },
components: {
glsxDialog
},
mounted() { mounted() {
this.userInfo = this.$globalState.session this.userInfo = this.$globalState.session
this.selectList = JSON.parse(JSON.stringify(this.selectedStaffList)) this.selectList = JSON.parse(JSON.stringify(this.selectedStaffList))
...@@ -96,7 +91,7 @@ export default { ...@@ -96,7 +91,7 @@ export default {
this.loading = false this.loading = false
this.fnCallBack = true this.fnCallBack = true
this.$refs.mutiProRef.tableTotal = res.count this.$refs.mutiProRef.tableTotal = res.count
this.$nextTick(()=>{ this.$nextTick(() => {
this.recoverySelected() this.recoverySelected()
}) })
this.$refs.mutiProRef.tableHeightValues = '50vh' this.$refs.mutiProRef.tableHeightValues = '50vh'
...@@ -106,15 +101,15 @@ export default { ...@@ -106,15 +101,15 @@ export default {
if (this.selectedStaffList && this.selectedStaffList.length) { if (this.selectedStaffList && this.selectedStaffList.length) {
this.selectedStaffList.forEach(row => { this.selectedStaffList.forEach(row => {
row.userOneId = row.staffUUID row.userOneId = row.staffUUID
this.$nextTick(()=>{ this.$nextTick(() => {
let idx = this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].data.findIndex(item=>item.userOneId==row.staffUUID) let idx = this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].data.findIndex(item => item.userOneId == row.staffUUID)
if(idx>-1){ if (idx > -1) {
try{ try {
this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].data[idx],true) this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].data[idx], true)
let id = this.selectList.findIndex(item=>item.staffUUID==row.staffUUID) let id = this.selectList.findIndex(item => item.staffUUID == row.staffUUID)
if(id>-1) this.selectList.splice(id, 1) if (id > -1) this.selectList.splice(id, 1)
}catch(err){ } catch (err) {
console.log(err) console.log(err)
} }
} }
...@@ -123,7 +118,7 @@ export default { ...@@ -123,7 +118,7 @@ export default {
} }
}, },
handleMutiSelectConfirm() { handleMutiSelectConfirm() {
var selectedData = [...this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName],...this.selectList] var selectedData = [...this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName], ...this.selectList]
this.$emit('handleMutiSelectConfirm', selectedData) this.$emit('handleMutiSelectConfirm', selectedData)
}, },
handleMutiSelectClose() { handleMutiSelectClose() {
......
<!-- 首页设置 --> <!-- 首页设置 -->
<template> <template>
<div class="home-set marketing p-t-20 edit-box"> <div class="home-set marketing edit-box">
<div class="container edit-container flex"> <div class="container edit-container flex">
<div class="home-set-form flex-grow"> <div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index"> <div v-for="(item, index) in externalFormList" :key="index">
......
<!-- 编辑新车 --> <!-- 编辑新车 -->
<template> <template>
<div class="edit-car marketing p-t-20 edit-box"> <div class="edit-car marketing edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <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 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">
......
<!-- 新车管理 --> <!-- 新车管理 -->
<template> <template>
<div class="marketing p-t-20"> <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>
......
<!-- 评论详情 --> <!-- 评论详情 -->
<template> <template>
<div class="comment-detail marketing p-t-20 edit-box"> <div class="comment-detail marketing edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<div class="comment-container"> <div class="comment-container">
......
<!-- 评价管理--> <!-- 评价管理-->
<template> <template>
<div class="marketing p-t-20"> <div class="marketing">
<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>
......
<!-- 订单管理 --> <!-- 订单管理 -->
<template> <template>
<div class="marketing p-t-20 order-manage"> <div class="marketing order-manage">
<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>
......
<!-- 订单详情 --> <!-- 订单详情 -->
<template> <template>
<div class="order-detail marketing p-t-20 edit-box"> <div class="order-detail marketing edit-box">
<div class="container m-b-20"> <div class="container m-b-20">
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px" :inline="true">
......
<!-- 分享弹窗 --> <!-- 分享弹窗 -->
<template> <template>
<glsx-dialog title="分享" width="806px" :noCancel="true" btnOkLabel="关闭" :isVisible="isShareVisible" @closeDialog="handleShareClose" @confirmDialog="handleShareClose"> <GLDialog title="分享" mode="mid" okText="关闭" :visible.sync="isShareVisible" @onCancel="handleShareClose" @onOk="handleShareClose">
<div class="share-dialog"> <div class="share-dialog">
<div class="flex"> <div class="flex">
<div class="flex box poster"> <div class="flex box poster">
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<!-- <p>小程序码不带参数</p> --> <!-- <p>小程序码不带参数</p> -->
<el-button :size="size" type="primary" @click="handleSaveImg(shareForm.posterUrl)">保存图片</el-button> <el-button :size="size" type="primary" @click="handleSaveImg(shareForm.posterUrl)">保存图片</el-button>
</div> </div>
<img :src="shareForm.posterUrl" /> <img style="width: 170px; height: 280px;" :src="shareForm.posterUrl" />
</div> </div>
<div class="flex box poster"> <div class="flex box poster">
<div> <div>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<!-- <p>小程序码不带参数</p> --> <!-- <p>小程序码不带参数</p> -->
<el-button :size="size" type="primary" @click="handleSaveImg(shareForm.qrCodeUrl)">保存图片</el-button> <el-button :size="size" type="primary" @click="handleSaveImg(shareForm.qrCodeUrl)">保存图片</el-button>
</div> </div>
<img style="width: 180px; height: 180px" :src="shareForm.qrCodeUrl" /> <img style="width: 120px; height: 120px" :src="shareForm.qrCodeUrl" />
</div> </div>
</div> </div>
<div class="box page-route"> <div class="box page-route">
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</div> </div>
</div> </div>
</div> </div>
</glsx-dialog> </GLDialog>
</template> </template>
<script> <script>
...@@ -48,11 +48,11 @@ export default { ...@@ -48,11 +48,11 @@ export default {
}, },
shareForm: { shareForm: {
type: Object, type: Object,
default: () => {} default: () => { }
} }
}, },
mounted() {}, mounted() { },
methods: { methods: {
handleSaveImg(url) { handleSaveImg(url) {
...@@ -88,6 +88,9 @@ export default { ...@@ -88,6 +88,9 @@ export default {
border-radius: 6px; border-radius: 6px;
padding: 30px; padding: 30px;
} }
.share-dialog .poster {
width: 43%;
}
.share-dialog .poster img { .share-dialog .poster img {
width: 180px; width: 180px;
height: 297px; height: 297px;
......
<!-- 编辑商品 --> <!-- 编辑商品 -->
<template> <template>
<div class="edit-pro marketing p-t-20 edit-box"> <div class="edit-pro marketing edit-box">
<el-tabs v-if="routeInfo.addOrEdit != '1'" v-model="activeName" @tab-click="handleTabClick"> <el-tabs v-if="routeInfo.addOrEdit != '1'" v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane> <el-tab-pane label="基本信息" name="basicInfo"></el-tab-pane>
<el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane> <el-tab-pane label="评价信息" name="afterOrder"></el-tab-pane>
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</div> </div>
<template slot="association"> <template slot="association">
<el-button type="default" :disabled="specificationDetailList.length" @click="dialogTableVisible = true" v-if="routeInfo.addOrEdit !== 3">+选择</el-button> <el-button type="default" :disabled="specificationDetailList.length" @click="dialogTableVisible = true" v-if="routeInfo.addOrEdit !== 3">+选择</el-button>
<glsx-dialog title="选择优惠券" :isVisible.sync="dialogTableVisible" width="50%" @confirmDialog="associationConfirm" @closeDialog="associationCancel"> <GLDialog bigTitle="选择优惠券" mode="big" :visible.sync="dialogTableVisible" @onOk="associationConfirm" @onCancel="associationCancel">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<el-button type="primary" @click="associationConfirm">确定</el-button> <el-button type="primary" @click="associationConfirm">确定</el-button>
<el-button type="default" @click="associationCancel">取消</el-button> <el-button type="default" @click="associationCancel">取消</el-button>
</div> --> </div> -->
</glsx-dialog> </GLDialog>
<div class="association-X" v-if="editForm.relatedCouponId"> <div class="association-X" v-if="editForm.relatedCouponId">
<div class="associationRow"> <div class="associationRow">
<span class="associationLists">名称</span> <span class="associationLists">名称</span>
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
<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 />
</el-dialog> </el-dialog>
<glsx-dialog title="规格" :isVisible.sync="isSpescVisible" width="70%" @confirmDialog="handleSpescConfirm" @closeDialog="handleSpescClose"> <GLDialog title="规格" mode="mid" :visible.sync="isSpescVisible" @onOk="handleSpescConfirm" @onCancel="handleSpescClose">
<el-form label-width="120px" :model="spescEditForm" :rules="spescRules" ref="spescRef"> <el-form label-width="120px" :model="spescEditForm" :rules="spescRules" ref="spescRef">
<el-form-item label="规格名:" prop="specificationName"> <el-form-item label="规格名:" prop="specificationName">
<el-input class="w-320" :size="size" maxlength="30" v-model="spescEditForm.specificationName" placeholder="请输入规格名"></el-input> <el-input class="w-320" :size="size" maxlength="30" v-model="spescEditForm.specificationName" placeholder="请输入规格名"></el-input>
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button> <el-button v-else class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</glsx-dialog> </GLDialog>
<relate-store-dialog v-if="relateStoreVisible" ref="relateStore" :relateStoreVisible="relateStoreVisible" :storeApi="storeApi" :storeSearchForm="storeSearchForm" :storeSelected="selectedList" :hasPage="true" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose"> <relate-store-dialog v-if="relateStoreVisible" ref="relateStore" :relateStoreVisible="relateStoreVisible" :storeApi="storeApi" :storeSearchForm="storeSearchForm" :storeSelected="selectedList" :hasPage="true" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose">
<el-row slot> <el-row slot>
<el-form :model="storeSearchForm" ref="relate" :inline="true" label-width="90px"> <el-form :model="storeSearchForm" ref="relate" :inline="true" label-width="90px">
......
<!-- 商品管理-集团 --> <!-- 商品管理-集团 -->
<template> <template>
<div class="marketing pro-group p-t-20"> <div class="marketing pro-group">
<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>
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<!-- 下架 --> <!-- 下架 -->
<glsx-dialog title="下架" :isVisible.sync="isDownVisible" @confirmDialog="handleDownConfirm" @closeDialog="handleDownClose"> <GLDialog title="下架" mode="small" :visible.sync="isDownVisible" @onOk="handleDownConfirm" @onCancel="handleDownClose">
<el-form ref="downRef" label-width="100px" :rules="downRules" :model="downForm"> <el-form class="small-content" ref="downRef" label-width="100px" :rules="downRules" :model="downForm">
<el-form-item label="下架备注" prop="offReason"> <el-form-item label="下架备注" prop="offReason">
<el-input :size="size" v-model="downForm.offReason" placeholder="请输入下架备注" maxlength="30"></el-input> <el-input :size="size" v-model="downForm.offReason" placeholder="请输入下架备注" maxlength="30"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</glsx-dialog> </GLDialog>
<!-- 分享 --> <!-- 分享 -->
<share-dialog :isShareVisible="isShareVisible" :shareForm="shareForm" @handleShareClose="handleShareClose"></share-dialog> <share-dialog :isShareVisible="isShareVisible" :shareForm="shareForm" @handleShareClose="handleShareClose"></share-dialog>
</div> </div>
......
<!-- 商品管理-门店 --> <!-- 商品管理-门店 -->
<template> <template>
<div class="marketing pro-group p-t-20"> <div class="marketing pro-group">
<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>
......
<!-- 秒杀活动 - 众筹模式 --> <!-- 秒杀活动 - 众筹模式 -->
<template> <template>
<div class="marketing p-t-20"> <div class="marketing">
<div class="m-b-20"> <div class="m-b-20">
<GLButton :size="size" class="default-blue-btn el-icon-plus" type="default" @click="handleEdit('add')" fn="新增众筹" mode="el-button">新建众筹</GLButton> <GLButton :size="size" class="default-blue-btn el-icon-plus" type="default" @click="handleEdit('add')" fn="新增众筹" mode="el-button">新建众筹</GLButton>
<el-button :size="size" type="default" class="default-blue-btn" @click="handleJump">订单管理</el-button> <el-button :size="size" type="default" class="default-blue-btn" @click="handleJump">订单管理</el-button>
......
<!-- 编辑代金券 --> <!-- 编辑代金券 -->
<template> <template>
<div class="edit-share marketing p-t-20 edit-box edit-activity"> <div class="edit-share marketing edit-box edit-activity">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}秒杀活动</p> <p class="edit-title">{{ title }}秒杀活动</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
......
<!-- 众筹活动 --> <!-- 众筹活动 -->
<template> <template>
<div class="edit-share marketing p-t-20 edit-box edit-activity" v-loading="loading"> <div class="edit-share marketing edit-box edit-activity" v-loading="loading">
<div class="container edit-container"> <div class="container edit-container">
<!-- 基本信息 --> <!-- 基本信息 -->
<p class="edit-title">基本信息</p> <p class="edit-title">基本信息</p>
...@@ -926,6 +926,7 @@ export default { ...@@ -926,6 +926,7 @@ export default {
this.$messageBox.confirm('是否删除该表单设置?', '删除', { this.$messageBox.confirm('是否删除该表单设置?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
this.formDescribeList.splice(idx, 1) this.formDescribeList.splice(idx, 1)
......
<!-- 秒杀活动 --> <!-- 秒杀活动 -->
<template> <template>
<div class="marketing p-t-20"> <div class="marketing">
<div class="m-b-20"> <div class="m-b-20">
<GLButton :size="size" type="primary" class="el-icon-plus" @click="addActivity()" fn="新增秒杀活动" mode="el-button">新增秒杀活动</GLButton> <GLButton :size="size" type="primary" class="el-icon-plus" @click="addActivity()" fn="新增秒杀活动" mode="el-button">新增秒杀活动</GLButton>
</div> </div>
......
<template> <template>
<div class="square-main"> <div class="square-main">
<el-dialog title="选择活动" :visible.sync="dialogVisible" width="1088px" :before-close="handleClose"> <GLDialog bigTitle="选择活动" mode="big" :visible.sync="dialogVisible" width="1088px" :before-close="handleClose">
<div class="sop-activity-model model-panel"> <div class="sop-activity-model model-panel">
<div class="model-panel-tab"> <div class="model-panel-tab">
<label>活动类型:</label> <label>活动类型:</label>
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<el-button size="small" type="primary" @click="handleOpen" <el-button size="small" type="primary" @click="handleOpen"
v-show="modelList.length == 0 && activeName == 5 && activityMenu">立即添加</el-button> v-show="modelList.length == 0 && activeName == 5 && activityMenu">立即添加</el-button>
</span> </span>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -319,6 +319,7 @@ export default { ...@@ -319,6 +319,7 @@ export default {
} }
.model-item-empty { .model-item-empty {
height: 32vh;
>img { >img {
display: block; display: block;
margin: 50px auto 0px; margin: 50px auto 0px;
...@@ -340,7 +341,8 @@ export default { ...@@ -340,7 +341,8 @@ export default {
// display: grid; // display: grid;
// grid-template-columns: repeat(4, 25%); // grid-template-columns: repeat(4, 25%);
// grid-row-gap: 10px; // grid-row-gap: 10px;
max-height: 38vh; // max-height: 38vh;
height: 38vh;
overflow: auto; overflow: auto;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
......
<!-- 素材弹窗 --> <!-- 素材弹窗 -->
<template> <template>
<glsx-dialog title="选择素材" :isVisible.sync="isMaterialVisible" width="1088px" @confirmDialog="handleMaterialConfirm" @closeDialog="handleMaterialClose" class="relateStore"> <GLDialog bigTitle="选择素材" mode="big" :visible.sync="isMaterialVisible" @onOk="handleMaterialConfirm" @onCancel="handleMaterialClose" class="relateStore">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer"> <span slot="footer">
<el-button :size="size" type="default" @click="handleReset">重置</el-button> <el-button :size="size" type="default" @click="handleReset">重置</el-button>
...@@ -54,11 +54,10 @@ ...@@ -54,11 +54,10 @@
</div> </div>
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" :page-sizes="[12, 24, 36, 48]" :page-size="pageSize" :total="tableTotal" layout="total, sizes, prev, pager, next, jumper"></el-pagination> <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" :page-sizes="[12, 24, 36, 48]" :page-size="pageSize" :total="tableTotal" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div> </div>
</glsx-dialog> </GLDialog>
</template> </template>
<script> <script>
import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'materialModel', name: 'materialModel',
data() { data() {
...@@ -125,10 +124,6 @@ export default { ...@@ -125,10 +124,6 @@ export default {
} }
}, },
components: {
glsxDialog
},
created() { created() {
this.getBaseData() this.getBaseData()
}, },
......
<!-- 朋友圈模板弹窗 --> <!-- 朋友圈模板弹窗 -->
<template> <template>
<glsx-dialog title="选择朋友圈模板" :isVisible.sync="isNicknameVisible" width="1088px" @confirmDialog="handleNicknameConfirm" @closeDialog="handleNicknameClose" class="relateStore"> <GLDialog bigTitle="选择朋友圈模板" mode="big" :visible.sync="isNicknameVisible" @onOk="handleNicknameConfirm" @onCancel="handleNicknameClose" class="relateStore">
<div class="model-panel pyq-model" v-loading="loading"> <div class="model-panel pyq-model" v-loading="loading">
<div class="model-panel-tab"> <div class="model-panel-tab">
<label>模板类型:</label> <label>模板类型:</label>
...@@ -38,11 +38,10 @@ ...@@ -38,11 +38,10 @@
</div> </div>
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" :page-sizes="[10, 20, 30, 40]" :page-size="pageSize" :total="tableTotal" layout="total, sizes, prev, pager, next, jumper"></el-pagination> <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" :page-sizes="[10, 20, 30, 40]" :page-size="pageSize" :total="tableTotal" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div> </div>
</glsx-dialog> </GLDialog>
</template> </template>
<script> <script>
import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'nicknameModel', name: 'nicknameModel',
data() { data() {
...@@ -67,10 +66,6 @@ export default { ...@@ -67,10 +66,6 @@ export default {
} }
}, },
components: {
glsxDialog
},
mounted() { mounted() {
this.getModelList() this.getModelList()
}, },
......
<!-- 带货管理 --> <!-- 带货管理 -->
<template> <template>
<div class="marketing take-good p-t-20"> <div class="marketing take-good">
<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>
......
<!-- 带货详情 --> <!-- 带货详情 -->
<!-- 商品编辑 - 带货 --> <!-- 商品编辑 - 带货 -->
<template> <template>
<div class="edit-product-dh marketing p-t-20 edit-box"> <div class="edit-product-dh marketing edit-box">
<div class="container"> <div class="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;">
......
<!-- 编辑专区 --> <!-- 编辑专区 -->
<template> <template>
<div class="edit-zone marketing p-t-20 edit-box"> <div class="edit-zone marketing edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}</p> <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 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">
......
<!-- 专区管理 --> <!-- 专区管理 -->
<template> <template>
<div class="marketing p-t-20"> <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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!