Commit 686fa616 by 李长胜
2 parents 0e7a8561 bde6a7f7
...@@ -195,6 +195,12 @@ html { ...@@ -195,6 +195,12 @@ html {
text-align: center; text-align: center;
} }
.marketing .edit-tips {
line-height: 20px;
font-size: 14px;
color: #999999;
}
.marketing .footer { .marketing .footer {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
...@@ -271,4 +277,16 @@ html { ...@@ -271,4 +277,16 @@ html {
.marketing .table-img .el-table--medium td.el-table__cell { .marketing .table-img .el-table--medium td.el-table__cell {
padding: 2px 0 !important; padding: 2px 0 !important;
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
} }
\ No newline at end of file \ No newline at end of file
<!-- 搜索 --> <!-- 搜索 -->
<template> <template>
<div class="glsx-combi-form"> <div class="glsx-combi-form">
<el-form :ref="formRef" :inline="true" :model="formObj" :label-width="labelWidth" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px': '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'"> <el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
<span class="tips-icon"></span> <span class="tips-icon"></span>
</el-tooltip> </el-tooltip>
{{ item.label ? ':' : '' }} {{ item.label }}
</span>
<span v-else-if="!item.isHide && item.label" slot="label">
<span class="combi-form-label" :style="{ width: item.labelWidth ? (item.labelWidth + labelPaddingRight) + 'px' : '', 'padding-right': isEdit ? '12px' : (labelPaddingRight + 'px') }">{{ item.label }}</span>
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
...@@ -20,28 +23,28 @@ ...@@ -20,28 +23,28 @@
<slot :name="item.suffixSlot" :scope="item"></slot> <slot :name="item.suffixSlot" :scope="item"></slot>
</div> </div>
<!-- 选择-输入框 --> <!-- 选择-输入框 -->
<el-input v-else-if="item.type === 'selectInput'" :placeholder="'请输入' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label" :maxlength="item.maxlength" v-model.trim="searchSelectObj[item.selectName].value" :clearable="item.isClear || false" :style="{ width: item.inputWidth || defaultWidth }" class="input-with-select"> <!-- <el-input v-else-if="item.type === 'selectInput'" :placeholder="'请输入' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label" :maxlength="item.maxlength" v-model.trim="searchSelectObj[item.selectName].value" :clearable="item.isClear || false" :style="{ width: item.inputWidth || defaultWidth }" class="input-with-select">
<el-select v-model="searchSelectObj[item.selectName].attr" :style="{ width: item.selectWidth || labelWidth }" slot="prepend" placeholder="请选择" @change="item.handleSelectChange"> <el-select v-model="searchSelectObj[item.selectName].attr" :style="{ width: item.selectWidth || (labelWidth + 'px') }" slot="prepend" placeholder="请选择" @change="item.handleSelectChange">
<el-option v-for="(subItem, subIndex) in item.selectOption" :key="subIndex" :label="subItem.label" :value="subItem.name"></el-option> <el-option v-for="(subItem, subIndex) in item.selectOption" :key="subIndex" :label="subItem.label" :value="subItem.name"></el-option>
</el-select> </el-select>
</el-input> </el-input> -->
<!-- 选择-时间选择框 --> <!-- 选择-时间选择框 -->
<template v-else-if="item.type === 'selectDatePicker'"> <!-- <template v-else-if="item.type === 'selectDatePicker'">
<el-select v-model="searchSelectObj[item.selectName].attr" :style="{ width: item.selectWidth || labelWidth }" placeholder="请选择" @change="item.handleSelectChange"> <el-select v-model="searchSelectObj[item.selectName].attr" :style="{ width: item.selectWidth || (labelWidth + 'px') }" placeholder="请选择" @change="item.handleSelectChange">
<el-option v-for="(subItem, subIndex) in item.selectOption" :key="subIndex" :label="subItem.label" :value="subItem.name"></el-option> <el-option v-for="(subItem, subIndex) in item.selectOption" :key="subIndex" :label="subItem.label" :value="subItem.name"></el-option>
</el-select> </el-select>
<el-date-picker v-model="searchSelectObj[item.selectName].value" :style="{ width: item.width || defaultWidth }" :type="item.dateType || 'daterange'" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOption[item.pickerOptions]"></el-date-picker> <el-date-picker v-model="searchSelectObj[item.selectName].value" :style="{ width: item.width || defaultWidth }" :type="item.dateType || 'daterange'" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOption[item.pickerOptions]"></el-date-picker>
</template> </template> -->
<!-- 双选择框 --> <!-- 双选择框 -->
<template v-else-if="item.type === 'selectDouble'"> <!-- <template v-else-if="item.type === 'selectDouble'">
<el-select v-model="searchSelectObj[item.selectName].attr" :style="{ width: item.selectWidth || labelWidth }" placeholder="请选择" @change="item.handleSelectChange"> <el-select v-model="searchSelectObj[item.selectName].attr" :style="{ width: item.selectWidth || (labelWidth + 'px') }" placeholder="请选择" @change="item.handleSelectChange">
<el-option v-for="(subItem, subIndex) in item.selectOption" :key="subIndex" :label="subItem.label" :value="subItem.name"></el-option> <el-option v-for="(subItem, subIndex) in item.selectOption" :key="subIndex" :label="subItem.label" :value="subItem.name"></el-option>
</el-select> </el-select>
<el-select v-model="searchSelectObj[item.selectName].value" :style="{ width: item.width || defaultWidth }" :placeholder="'请选择' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label"> <el-select v-model="searchSelectObj[item.selectName].value" :style="{ width: item.width || defaultWidth }" :placeholder="'请选择' + item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).label">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option v-for="subItem in item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).optionList" :key="subItem[item.optionId]" :label="subItem[item.optionLabel]" :value="subItem[item.optionId]"></el-option> <el-option v-for="subItem in item.selectOption.find(k => k.name === searchSelectObj[item.selectName].attr).optionList" :key="subItem[item.optionId]" :label="subItem[item.optionLabel]" :value="subItem[item.optionId]"></el-option>
</el-select> </el-select>
</template> </template> -->
<!-- 选择框 --> <!-- 选择框 -->
<div v-else-if="item.type === 'select'"> <div v-else-if="item.type === 'select'">
<el-select :style="{ width: item.width || defaultWidth }" v-model="formObj[item.name]" :clearable="item.isClear || false" :placeholder="'请选择' + item.label" :filterable="!item.noFilter" :disabled="item.isDisabled" :no-data-text="item.noDataText || '无数据'" :multiple="item.multiple || false" :collapse-tags="item.collapseTags || true" @change="selectAddAttr($event, item)"> <el-select :style="{ width: item.width || defaultWidth }" v-model="formObj[item.name]" :clearable="item.isClear || false" :placeholder="'请选择' + item.label" :filterable="!item.noFilter" :disabled="item.isDisabled" :no-data-text="item.noDataText || '无数据'" :multiple="item.multiple || false" :collapse-tags="item.collapseTags || true" @change="selectAddAttr($event, item)">
...@@ -90,6 +93,7 @@ ...@@ -90,6 +93,7 @@
</span> </span>
</div> </div>
</template> </template>
<slot :name="item.suffixSlot" :scope="item"></slot>
</template> </template>
</el-form-item> </el-form-item>
</template> </template>
...@@ -135,9 +139,18 @@ export default { ...@@ -135,9 +139,18 @@ export default {
type: String, type: String,
default: 'formRef' default: 'formRef'
}, },
isEdit: {
type: Boolean,
default: false
},
labelWidth: { labelWidth: {
type: String, type: Number,
default: '85px' // 默认是四个字符长度
default: 56
},
labelPaddingRight: {
type: Number,
default: 15
}, },
formData: { formData: {
type: Array, type: Array,
...@@ -250,10 +263,18 @@ export default { ...@@ -250,10 +263,18 @@ export default {
/* .glsx-combi-form .el-form-item { /* .glsx-combi-form .el-form-item {
width: 65%; width: 65%;
} */ } */
.glsx-combi-form .no-label.el-form-item--small .el-form-item__content, .glsx-combi-form .no-label.el-form-item--small .el-form-item__content {
.el-form-item--small .el-form-item__label {
width: 100%; width: 100%;
} }
.glsx-combi-form .el-form-item--small.el-form-item {
margin: 0 30px 20px 0;
}
.glsx-combi-form .el-form-item--small .el-form-item__label {
padding: 0;
}
/* .glsx-combi-form .el-form-item--small .el-form-item__content { /* .glsx-combi-form .el-form-item--small .el-form-item__content {
width: calc(100% - 85px); width: calc(100% - 85px);
} */ } */
...@@ -294,7 +315,7 @@ export default { ...@@ -294,7 +315,7 @@ export default {
right: 14px; right: 14px;
margin-right: 4px; margin-right: 4px;
cursor: pointer; cursor: pointer;
border: 1px solid #7f7f7f; border: 1px dotted #7f7f7f;
border-radius: 50%; border-radius: 50%;
} }
.glsx-combi-form .tips-icon::before { .glsx-combi-form .tips-icon::before {
...@@ -309,6 +330,10 @@ export default { ...@@ -309,6 +330,10 @@ export default {
/* .glsx-combi-form .tips { /* .glsx-combi-form .tips {
margin: 0; margin: 0;
} */ } */
.glsx-combi-form .combi-form-label {
display: inline-block;
box-sizing: border-box;
}
/* 图片上传 */ /* 图片上传 */
.glsx-combi-form .photo-top-tips { .glsx-combi-form .photo-top-tips {
/* height: 36px; */ /* height: 36px; */
...@@ -323,7 +348,7 @@ export default { ...@@ -323,7 +348,7 @@ export default {
position: relative; position: relative;
color: #999999; color: #999999;
background-color: #F7F7F7; background-color: #F7F7F7;
border: 1px solid #d9d9d9; border: 1px dotted #d9d9d9;
cursor: pointer; cursor: pointer;
} }
......
<!-- 选择商品弹窗 --> <!-- 选择商品弹窗 -->
<template> <template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose"> <glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose">
<GLTable ref="mutiProRef" :tableData="productList" :hasPage="false" :tableParams="tableParams" @refreshTable="getList"> <GLTable v-loading="loading" ref="mutiProRef" :tableData="productList" :hasPage="false" :noDataImg="url" :tableParams="tableParams" @refreshTable="getList">
<span slot="goodsImage" slot-scope="scope"> <span slot="goodsImage" slot-scope="scope">
<img class="m-t-10 img-60" :src="scope.scope.goodsImage" /> <img class="m-t-10 img-60" :src="scope.scope.goodsImage" />
</span> </span>
</GLTable> </GLTable>
</glsx-dialog> </glsx-dialog>
</template> </template>
<script> <script>
// import { getGoodsList } from '@/api/modules/common' // import { getGoodsList } from '@/api/modules/common'
import url from "@/assets/empty.png"
import glsxDialog from '@/components/glsx-dialog' import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'selectMutiProDialog', name: 'selectMutiProDialog',
...@@ -19,6 +20,8 @@ export default { ...@@ -19,6 +20,8 @@ export default {
// 表格组件 // 表格组件
// getListApi: this.$apis.common.getGoodsListApi, // getListApi: this.$apis.common.getGoodsListApi,
productList: [], productList: [],
url: url,
loading: true,
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, // pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 表格参数 // 表格参数
tableParams: { tableParams: {
...@@ -65,7 +68,7 @@ export default { ...@@ -65,7 +68,7 @@ export default {
glsxDialog glsxDialog
}, },
mounted() { created() {
this.getList(true) this.getList(true)
}, },
...@@ -78,9 +81,10 @@ export default { ...@@ -78,9 +81,10 @@ export default {
pageSize: isMounted ? 10 : this.$refs.mutiProRef.page.pageSize pageSize: isMounted ? 10 : this.$refs.mutiProRef.page.pageSize
} }
var that = this var that = this
this.loading = true
this.$apis.common.getGoodsListApi(params).then(res => { this.$apis.common.getGoodsListApi(params).then(res => {
// console.log(res)
this.productList = res this.productList = res
this.loading = false
// this.$refs.mutiProRef.tableTotal = res.total // this.$refs.mutiProRef.tableTotal = res.total
this.productList.forEach(function(item) { this.productList.forEach(function(item) {
item.saleAmount = item.goodsStatistics.saleAmount item.saleAmount = item.goodsStatistics.saleAmount
...@@ -108,10 +112,11 @@ export default { ...@@ -108,10 +112,11 @@ export default {
} }
}) })
this.recoverySelected() this.recoverySelected()
this.$refs.mutiProRef.tableHeightValues = '50vh'
}) })
}, },
recoverySelected() { recoverySelected() {
if (this.selectedProList.length) { if (this.selectedProList && this.selectedProList.length) {
this.selectedProList.forEach(row => { this.selectedProList.forEach(row => {
this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(row) this.$refs.mutiProRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(row)
}) })
...@@ -119,7 +124,7 @@ export default { ...@@ -119,7 +124,7 @@ export default {
}, },
handleMutiSelectConfirm() { handleMutiSelectConfirm() {
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName] var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
console.log(selectedData) // console.log(selectedData)
this.$emit('handleMutiSelectConfirm', selectedData) this.$emit('handleMutiSelectConfirm', selectedData)
}, },
handleMutiSelectClose() { handleMutiSelectClose() {
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<div class="edit-classify marketing p-t-20 edit-box"> <div class="edit-classify marketing p-t-20 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" labelWidth="140px" 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">
<div slot="selectProBtn" slot-scope="scope" class="select-pro"> <div slot="selectProBtn" slot-scope="scope" class="select-pro">
<el-button type="primary" @click="handleMutiProClose(scope)">{{ editForm.goodsRefList.length ? '更换' : '请选择' }}</el-button> <el-button type="default" @click="handleMutiProClose(scope)">{{ editForm.goodsRefList.length ? '更换商品' : '+选择商品' }}</el-button>
</div> </div>
<div slot="proTable" class="select-pro"> <div slot="proTable" class="select-pro">
<GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList"> <GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList">
...@@ -66,6 +66,7 @@ export default { ...@@ -66,6 +66,7 @@ export default {
searchProForm: {}, searchProForm: {},
selectedProList: [], selectedProList: [],
// getGoodsListApi: this.$apis.common.getGoodsListApi, // getGoodsListApi: this.$apis.common.getGoodsListApi,
isEdit: true,
editForm: { editForm: {
classifyName: '', classifyName: '',
goodsRefList: [], goodsRefList: [],
...@@ -141,7 +142,7 @@ export default { ...@@ -141,7 +142,7 @@ export default {
this.selectedProList = this.$common.utils.deepClone(this.editForm.goodsRefList) this.selectedProList = this.$common.utils.deepClone(this.editForm.goodsRefList)
this.handleMutiSelectClose() this.handleMutiSelectClose()
}, },
handleMutiSelectConfirm(selectedData) { handleMutiSelectConfirm(selectedData = []) {
this.editForm.goodsRefList = selectedData this.editForm.goodsRefList = selectedData
this.handleMutiSelectClose() this.handleMutiSelectClose()
}, },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :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>
<el-button :size="size" type="primary" @click="handleReset">重置</el-button> <el-button :size="size" type="primary" @click="handleReset">重置</el-button>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="classifyRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="classifyRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> <el-button type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
...@@ -29,11 +29,13 @@ ...@@ -29,11 +29,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
export default { export default {
name: 'classifyList', name: 'classifyList',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
searchForm: { searchForm: {
classifyName: '', classifyName: '',
createDate: [] createDate: []
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
</div> </div>
<p class="edit-title">{{ title }}代金券</p> <p class="edit-title">{{ title }}代金券</p>
<glsx-combi-form class="edit-form-container" style="min-height: 570px;" ref="editFormRef" labelWidth="144px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" style="min-height: 570px;" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="useChannelHtml"> <template slot="useChannelHtml">
<el-radio v-model="editForm.useChannel" label="1" :disabled="apear != 'couponAdd'">线上商品</el-radio> <el-radio v-model="editForm.useChannel" label="1" :disabled="apear != 'couponAdd'">线上商品</el-radio>
<el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio> <el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio>
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
</div> </div>
<p class="edit-title">{{ title }}折扣劵</p> <p class="edit-title">{{ title }}折扣劵</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :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 slot="effectiveHtml"> <template slot="effectiveHtml">
<el-form-item prop="effectiveTime" style="margin-top: 12px; display: block"> <el-form-item prop="effectiveTime" style="margin-top: 12px; display: block">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'"> <el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
</div> </div>
<p class="edit-title">{{ title }}兑换券</p> <p class="edit-title">{{ title }}兑换券</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :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 slot="effectiveHtml"> <template slot="effectiveHtml">
<el-form-item prop="effectiveTime" style="margin-top: 12px;display: block;"> <el-form-item prop="effectiveTime" style="margin-top: 12px;display: block;">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'"> <el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="edit-share marketing p-t-20 edit-box"> <div class="edit-share marketing p-t-20 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" ref="editFormRef" labelWidth="140px" :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 slot="effectiveHtml"> <template slot="effectiveHtml">
<el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio> <el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio>
<br /> <br />
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="100px" :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" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="coupon" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="coupon" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)">生效</el-button> <el-button v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)">生效</el-button>
<el-button v-if="scope.scope.status == '2'" type="text" @click="end(scope.scope)">失效</el-button> <el-button v-if="scope.scope.status == '2'" type="text" @click="end(scope.scope)">失效</el-button>
...@@ -35,11 +35,13 @@ ...@@ -35,11 +35,13 @@
</template> </template>
<script> <script>
import url from '@/assets/empty.png'
export default { export default {
name: 'coupon', name: 'coupon',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
// 下架 // 下架
isDownVisible: false, isDownVisible: false,
downForm: { downForm: {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="marketing pro-group p-t-20"> <div class="marketing pro-group p-t-20">
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="100px" :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" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</span> </span>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="receiveList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable> <GLTable ref="receiveList" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
</div> </div>
...@@ -53,11 +53,13 @@ ...@@ -53,11 +53,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
export default { export default {
name: 'receiveDetail', name: 'receiveDetail',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
coupon: { coupon: {
couponName: '', couponName: '',
stock: '', stock: '',
...@@ -226,6 +228,11 @@ export default { ...@@ -226,6 +228,11 @@ export default {
phone: '' phone: ''
} }
this.handleSearch() this.handleSearch()
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.receiveList.data.length ? (this.$refs.receiveList.tableHeightValues = '') : this.$refs.receiveList.setTableHeightFun()
} }
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="marketing pro-group p-t-20"> <div class="marketing pro-group p-t-20">
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="100px" :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" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</span> </span>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="writeOffList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable> <GLTable ref="writeOffList" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<!-- 优惠券核销 --> <!-- 优惠券核销 -->
...@@ -53,12 +53,13 @@ ...@@ -53,12 +53,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
export default { export default {
name: 'writeOffDetail', name: 'writeOffDetail',
data() { data() {
return { return {
size: 'small', size: 'small',
// 下架 url: url,
writeOffVisible: false, writeOffVisible: false,
coupon: { coupon: {
couponName: '', couponName: '',
...@@ -262,6 +263,11 @@ export default { ...@@ -262,6 +263,11 @@ export default {
verificationCode: '' verificationCode: ''
} }
this.handleSearch() this.handleSearch()
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.writeOffList.data.length ? (this.$refs.writeOffList.tableHeightValues = '') : this.$refs.writeOffList.setTableHeightFun()
} }
} }
} }
......
...@@ -22,7 +22,21 @@ ...@@ -22,7 +22,21 @@
class="sale-select" class="sale-select"
v-show="basicForm.userList && basicForm.userList.length != 0" v-show="basicForm.userList && basicForm.userList.length != 0"
> >
<div :key="key" class="el-input-tag input-tag-wrapper"> <div class="el-input-tag input-tag-wrapper">
<el-tag
effect="plain"
type="info"
v-for="(tag, idx) in basicForm.userList"
:key="idx"
closable
:disable-transitions="false"
@close="remove(tag)"
>
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
<!-- <div :key="key" class="el-input-tag input-tag-wrapper">
<el-tag <el-tag
v-for="(tag, idx) in basicForm.userList" v-for="(tag, idx) in basicForm.userList"
:key="idx" :key="idx"
...@@ -32,7 +46,7 @@ ...@@ -32,7 +46,7 @@
@close="remove(tag)" @close="remove(tag)"
>{{ tag.staffName }}</el-tag> >{{ tag.staffName }}</el-tag>
<el-input size="small" style="outline: none; border: none"></el-input> <el-input size="small" style="outline: none; border: none"></el-input>
</div> </div>-->
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="选择客户" prop="selectType"> <el-form-item label="选择客户" prop="selectType">
...@@ -595,7 +609,8 @@ export default { ...@@ -595,7 +609,8 @@ export default {
align-items: center; align-items: center;
} }
.input-tag-wrapper { .input-tag-wrapper {
max-width: 300px; max-height: 68px;
overflow: auto;
position: relative; position: relative;
font-size: 14px; font-size: 14px;
background-color: #fff; background-color: #fff;
...@@ -603,32 +618,28 @@ export default { ...@@ -603,32 +618,28 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
box-sizing: border-box; box-sizing: border-box;
color: #606266; color: #666;
display: inline-block; display: inline-block;
outline: none; outline: none;
padding: 0 10px 0 5px; padding: 5px 5px 0px 5px;
flex-wrap: wrap; flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%; width: 450px;
display: flex; display: flex;
align-items: center; align-items: center;
/deep/ input { margin-top: 6px;
/* input { */ font-size: 14px;
/* background-color: red!important; 调试用的样式 */ i {
outline: none !important; color: #75acff;
border: none !important; margin-right: 3px;
} font-size: 14px;
/deep/ .el-input {
min-width: 150px;
width: auto;
flex: 1;
} }
} }
.el-tag { .el-tag {
margin-right: 4px; margin-right: 4px;
height: 26px; height: 26px;
line-height: 24px; line-height: 24px;
margin-bottom: 5px;
} }
.tag-input { .tag-input {
background: transparent; background: transparent;
......
...@@ -20,13 +20,25 @@ ...@@ -20,13 +20,25 @@
<div class="sale-select" v-show="basicForm.userList"> <div class="sale-select" v-show="basicForm.userList">
<div :key="key" class="el-input-tag input-tag-wrapper"> <div :key="key" class="el-input-tag input-tag-wrapper">
<el-tag <el-tag
effect="plain"
type="info"
v-for="(tag, idx) in basicForm.userList"
:key="idx"
closable
:disable-transitions="false"
@close="remove(tag)"
>
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
<!-- <el-tag
v-for="(tag, idx) in basicForm.userList" v-for="(tag, idx) in basicForm.userList"
:key="idx" :key="idx"
closable closable
:disable-transitions="false" :disable-transitions="false"
@close="remove(tag)" @close="remove(tag)"
>{{ tag.staffName }}</el-tag> >{{ tag.staffName }}</el-tag>
<el-input size="small" style="outline: none; border: none"></el-input> <el-input size="small" style="outline: none; border: none"></el-input>-->
</div> </div>
</div> </div>
<div class="form-tips">群主收到通知后,可选择他管理的客户群并群发该内容。</div> <div class="form-tips">群主收到通知后,可选择他管理的客户群并群发该内容。</div>
...@@ -370,6 +382,8 @@ export default { ...@@ -370,6 +382,8 @@ export default {
} }
.input-tag-wrapper { .input-tag-wrapper {
max-width: 300px; max-width: 300px;
max-height: 68px;
overflow: auto;
position: relative; position: relative;
font-size: 14px; font-size: 14px;
background-color: #fff; background-color: #fff;
...@@ -377,32 +391,28 @@ export default { ...@@ -377,32 +391,28 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
box-sizing: border-box; box-sizing: border-box;
color: #606266; color: #666;
display: inline-block; display: inline-block;
outline: none; outline: none;
padding: 0 10px 0 5px; padding: 5px 5px 0px 5px;
flex-wrap: wrap; flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%; width: 450px;
display: flex; display: flex;
align-items: center; align-items: center;
/deep/ input { margin-top: 6px;
/* input { */ font-size: 14px;
/* background-color: red!important; 调试用的样式 */ i {
outline: none !important; color: #75acff;
border: none !important; margin-right: 3px;
} font-size: 14px;
/deep/ .el-input {
min-width: 150px;
width: auto;
flex: 1;
} }
} }
.el-tag { .el-tag {
margin-right: 4px; margin-right: 4px;
height: 26px; height: 26px;
line-height: 24px; line-height: 24px;
margin-bottom: 5px;
} }
.tag-input { .tag-input {
background: transparent; background: transparent;
......
...@@ -45,14 +45,14 @@ ...@@ -45,14 +45,14 @@
<span>{{form == 'customer' ? statistic.senderStaffCount: statistic.senderStaffCount}}</span> <span>{{form == 'customer' ? statistic.senderStaffCount: statistic.senderStaffCount}}</span>
人 人
</div> </div>
<div>已发送{{form == 'customer' ? '成员': '群主'}}</div> <div class="statistics-text">已发送{{form == 'customer' ? '成员': '群主'}}</div>
</div> </div>
<div class="statistics-li"> <div class="statistics-li">
<div class="statistics-number"> <div class="statistics-number">
<span>{{form == 'customer' ? statistic.senderCustomerCount :statistic.senderGroupCount}}</span> <span>{{form == 'customer' ? statistic.senderCustomerCount :statistic.senderGroupCount}}</span>
人 人
</div> </div>
<div>送达{{form == 'customer' ? '客户': '群聊'}}</div> <div class="statistics-text">送达{{form == 'customer' ? '客户': '群聊'}}</div>
</div> </div>
</div> </div>
<div class="statistics-ul"> <div class="statistics-ul">
...@@ -61,14 +61,14 @@ ...@@ -61,14 +61,14 @@
<span>{{form == 'customer' ?statistic.unSenderStaffCount:statistic.unSenderStaffCount}}</span> <span>{{form == 'customer' ?statistic.unSenderStaffCount:statistic.unSenderStaffCount}}</span>
人 人
</div> </div>
<div>未发送{{form == 'customer' ? '成员': '群主'}}</div> <div class="statistics-text">未发送{{form == 'customer' ? '成员': '群主'}}</div>
</div> </div>
<div class="statistics-li"> <div class="statistics-li">
<div class="statistics-number"> <div class="statistics-number">
<span>{{form == 'customer' ?statistic.unSenderCustomerCount:statistic.unSenderGroupCount}}</span> <span>{{form == 'customer' ?statistic.unSenderCustomerCount:statistic.unSenderGroupCount}}</span>
人 人
</div> </div>
<div>未送达{{form == 'customer' ? '客户': '群聊'}}</div> <div class="statistics-text">未送达{{form == 'customer' ? '客户': '群聊'}}</div>
</div> </div>
</div> </div>
<div v-if="form == 'customer'" class="statistics-ul"> <div v-if="form == 'customer'" class="statistics-ul">
...@@ -208,6 +208,9 @@ export default { ...@@ -208,6 +208,9 @@ export default {
font-size: 26px; font-size: 26px;
} }
} }
.statistics-text {
width: 70px;
}
} }
} }
} }
......
...@@ -6,12 +6,24 @@ ...@@ -6,12 +6,24 @@
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput"> <div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<div class="tag-box"> <div class="tag-box">
<el-tag <el-tag
effect="plain"
type="info"
v-for="(tag, idx) in innerTags" v-for="(tag, idx) in innerTags"
:key="idx" :key="idx"
closable closable
:disable-transitions="false" :disable-transitions="false"
@close="remove(tag)" @close="remove(tag)"
>{{ tag.staffName }}</el-tag> >
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
<!-- <el-tag
v-for="(tag, idx) in innerTags"
:key="idx"
closable
:disable-transitions="false"
@close="remove(tag)"
>{{ tag.staffName }}</el-tag>-->
</div> </div>
<el-input <el-input
...@@ -162,10 +174,15 @@ export default { ...@@ -162,10 +174,15 @@ export default {
} }
} }
.tag-box { .tag-box {
max-height: 66px; max-height: 60px;
overflow: auto; overflow: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
} }
.input-tag-wrapper { .input-tag-wrapper {
// max-height: 68px;
// overflow: auto;
position: relative; position: relative;
font-size: 14px; font-size: 14px;
background-color: #fff; background-color: #fff;
...@@ -173,16 +190,17 @@ export default { ...@@ -173,16 +190,17 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
box-sizing: border-box; box-sizing: border-box;
color: #606266; color: #666;
display: inline-block; display: inline-block;
outline: none; outline: none;
padding: 0 0 0 5px; padding: 5px 5px 0px 5px;
flex-wrap: wrap; flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%; width: 450px;
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 6px;
font-size: 14px;
/deep/ input { /deep/ input {
/* input { */ /* input { */
/* background-color: red!important; 调试用的样式 */ /* background-color: red!important; 调试用的样式 */
...@@ -194,11 +212,17 @@ export default { ...@@ -194,11 +212,17 @@ export default {
width: auto; width: auto;
flex: 1; flex: 1;
} }
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
} }
.el-tag { .el-tag {
margin-right: 4px; margin-right: 4px;
height: 26px; height: 26px;
line-height: 24px; line-height: 24px;
margin-bottom: 5px;
} }
.tag-input { .tag-input {
background: transparent; background: transparent;
...@@ -221,15 +245,4 @@ export default { ...@@ -221,15 +245,4 @@ export default {
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
} }
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
</style> </style>
...@@ -142,7 +142,12 @@ export default { ...@@ -142,7 +142,12 @@ export default {
this.savedRange.insertNode(node) this.savedRange.insertNode(node)
// 更新双向绑定数据 // 更新双向绑定数据
let target = this.$refs.wTextareaContent let target = this.$refs.wTextareaContent
this.updateData(target.innerHTML) // this.updateData(target.innerHTML)
if (navigator.userAgent.indexOf('Firefox') > 0 || navigator.userAgent.indexOf('QQBrowser') > 0) {
this.updateData(target.innerHTML + '&nbsp;')
} else {
this.updateData(target.innerHTML)
}
this.currentText = target.innerText this.currentText = target.innerText
this.$emit('updateText', this.currentText) this.$emit('updateText', this.currentText)
}, },
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<div class="tips-text"> <div class="tips-text">
<img src="../../../assets/guestCustom/tips.png" class="tips-icon" alt /> <img src="../../../assets/guestCustom/tips.png" class="tips-icon" alt />
<span v-if="form == 'customer'">每位客户每天可接收1条群发消息,超过接收上限的客户将无法再收到群发消息。</span> <span v-if="form == 'customer'">每位客户每天可接收1条群发消息,超过接收上限的客户将无法再收到群发消息。</span>
<span v-if="form == 'customerGroup'">每位客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span> <span v-if="form == 'customerGroup'">每个客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span>
</div> </div>
</div> </div>
<ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel> <ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel>
......
...@@ -2,15 +2,10 @@ ...@@ -2,15 +2,10 @@
<div style="margin-top: 26px;"> <div style="margin-top: 26px;">
<BasicInof :form="'customerGroup'" :eventBus="eventBus" :id="$route.params.id"></BasicInof> <BasicInof :form="'customerGroup'" :eventBus="eventBus" :id="$route.params.id"></BasicInof>
<div class="group-detail-container"> <div class="group-detail-container">
<glsx-combi-form <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
ref="showSearch"
labelWidth="90px"
:formObj="searchForm"
:formData="searchFormData"
>
<span slot="footer" class="search-btns"> <span slot="footer" class="search-btns">
<el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleReset">重置</el-button>
</span> </span>
</glsx-combi-form> </glsx-combi-form>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
...@@ -39,7 +34,7 @@ ...@@ -39,7 +34,7 @@
}" }"
> >
<!-- <el-button type="primary" @click="handleNext">确定</el-button> --> <!-- <el-button type="primary" @click="handleNext">确定</el-button> -->
<el-button @click="handleCancel">取消</el-button> <el-button type="primary" @click="handleCancel">取消</el-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -71,7 +66,7 @@ export default { ...@@ -71,7 +66,7 @@ export default {
optionList: [] optionList: []
}, },
{ {
label: '送达状态', label: '消息送达状态',
name: 'status', name: 'status',
type: 'select', type: 'select',
isClear: true, isClear: true,
...@@ -138,7 +133,6 @@ export default { ...@@ -138,7 +133,6 @@ export default {
{ {
label: '操作', label: '操作',
prop: 'optionBtns', prop: 'optionBtns',
width: '140px',
addHtml: 'optionBtns', addHtml: 'optionBtns',
fixed: 'right' fixed: 'right'
} }
......
...@@ -28,9 +28,21 @@ ...@@ -28,9 +28,21 @@
<div class="info-text"> <div class="info-text">
<div class="info-name"> <div class="info-name">
{{ item.staffName }} {{ item.staffName }}
<span <span :class="[item.status == 0 ? 'unsend' : 'send']">
:class="[item.status == 0 ? 'unsend' : 'send']" {{ item.status == 0 ? '未发送' : item.status == 1 ? '已发送' : '发送失败' }}
>{{ item.status == 0 ? '未发送' : item.status == 1 ? '已发送' : '发送失败' }}</span> <el-popover
v-show="item.status != 0 && item.status != 1"
placement="top-start"
title="失败原因:"
width="400"
trigger="hover"
>
<p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p>
<p>2.可能为客户开启消息免打扰,消息发送失败。</p>
<p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p>
<img slot="reference" :src="iconUrl" alt />
</el-popover>
</span>
</div> </div>
<div class="info-num">共{{ item.customerCount ? item.customerCount : 0 }}个客户</div> <div class="info-num">共{{ item.customerCount ? item.customerCount : 0 }}个客户</div>
</div> </div>
...@@ -76,10 +88,21 @@ ...@@ -76,10 +88,21 @@
<div class="info-text"> <div class="info-text">
<div class="info-name"> <div class="info-name">
{{ item.customerName }} {{ item.customerName }}
<div <div class="customer-table" :class="[item.status == 0 ? 'unsend' : 'send']">
class="customer-table" {{ item.status == 0 ? '未送达' : item.status == 1 ? '已送达' : '送达失败' }}
:class="[item.status == 0 ? 'unsend' : 'send']" <el-popover
>{{ item.status == 0 ? '未送达' : item.status == 1 ? '已送达' : '送达失败' }}</div> v-show="item.status != 0 && item.status != 1"
placement="top-start"
title="失败原因:"
width="400"
trigger="hover"
>
<p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p>
<p>2.可能为客户开启消息免打扰,消息发送失败。</p>
<p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p>
<img slot="reference" :src="iconUrl" alt />
</el-popover>
</div>
</div> </div>
</div> </div>
<div class="info-right"> <div class="info-right">
...@@ -101,11 +124,13 @@ ...@@ -101,11 +124,13 @@
> >
<!-- <el-button type="primary" @click="handle <!-- <el-button type="primary" @click="handle
Next">确定</el-button>--> Next">确定</el-button>-->
<el-button @click="handleCancel">取消</el-button> <el-button type="primary" @click="handleCancel">取消</el-button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
const iconUrl =
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAFoTx1HAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADqADAAQAAAABAAAADgAAAAC98Dn6AAAB7klEQVQoFVVSQUhUURQ9981sVFyYRRHuFFq1CGlZC3etnBlMRhMXQwhtCqIQJBA3gSSi1EpkNqkjCjOjm1YWuGojBVO7Fi0K2qQLF6H453bO+/ODLvz37z333PvOu+8BtImCf0K56J8VYKLoC9HRMlnwRxaRgB0kOHDDz5gl/0hZBaaFwGl3H65j577nygV/ITCM71pinRo1GiF4zm8jqzkr5dEtluiTJZ9zx8fYTEBmbP5D/tSY3wnaRUwB0rbdsAH5SYK3sW2l4r1/jnFIsUMElmsNmxdB7JGsUnGUWvQz+XkHXtXqNsxx/KL/Zg+oS5xxi8A2T8SqNe0az3NANyfVJD4N5ripZDTDrc1da8kn/i1QxGya4eq4Kl8aui7hblRLUd/JXCSxxXarBJ9T8fuYFLsztiqTv4NjXUTh2rZteEhiP8OKiiIez3+CFoWubdXtpUDe1XAbmJEfQLxpRxFPRz7T1ccz6BFkl6okRzHFOJ5ccbnkr8l5LF8mrl5Pnv5gJksJjmlD/wclv9121ClxeqthH4TJQh5fLhIMaa7LOrRuIk2la89lfO29ghuU/69IHBatqIZfOhgWv2OXhUIOi/FCnDpoZuYqaCaYpYJ5gvf+m6pInUE9Y5NRhoPCdGl80fscyFK1aqfCZH8B0rPa9foo7e4AAAAASUVORK5CYII='
import Vue from 'vue' import Vue from 'vue'
import BasicInof from './components/basicInfo.vue' import BasicInof from './components/basicInfo.vue'
export default { export default {
...@@ -114,6 +139,7 @@ export default { ...@@ -114,6 +139,7 @@ export default {
}, },
data() { data() {
return { return {
iconUrl,
activeIndex: '', activeIndex: '',
customIndex: '', customIndex: '',
employeelist: [], employeelist: [],
...@@ -209,7 +235,7 @@ export default { ...@@ -209,7 +235,7 @@ export default {
.detail-info { .detail-info {
padding: 0 20px; padding: 0 20px;
.detail-total { .detail-total {
padding: 31px 0 14px; padding: 20px 0 14px;
font-size: 14px; font-size: 14px;
color: #333; color: #333;
line-height: 16px; line-height: 16px;
...@@ -252,6 +278,8 @@ export default { ...@@ -252,6 +278,8 @@ export default {
line-height: 22px; line-height: 22px;
} }
.info-name { .info-name {
display: flex;
align-items: center;
font-size: 16px; font-size: 16px;
color: #333; color: #333;
font-weight: 500; font-weight: 500;
...@@ -263,7 +291,15 @@ export default { ...@@ -263,7 +291,15 @@ export default {
font-size: 14px; font-size: 14px;
} }
.send { .send {
position: relative;
color: #666; color: #666;
span {
img {
position: absolute;
right: -6px;
top: 4px;
}
}
} }
.unsend { .unsend {
padding: 3px 10px; padding: 3px 10px;
...@@ -272,7 +308,13 @@ export default { ...@@ -272,7 +308,13 @@ export default {
border-radius: 2px; border-radius: 2px;
} }
.customer-table { .customer-table {
display: table; display: flex;
&.send {
width: 70px;
}
span {
vertical-align: middle;
}
} }
div { div {
margin-top: 10px; margin-top: 10px;
...@@ -294,6 +336,10 @@ export default { ...@@ -294,6 +336,10 @@ export default {
.el-menu.el-menu--horizontal { .el-menu.el-menu--horizontal {
border-bottom: none; border-bottom: none;
} }
.el-menu-item {
line-height: 56px;
height: 46px;
}
.el-menu--horizontal > .el-menu-item.is-active { .el-menu--horizontal > .el-menu-item.is-active {
border-bottom-color: #5850ff; border-bottom-color: #5850ff;
color: #5850ff; color: #5850ff;
......
...@@ -50,13 +50,13 @@ ...@@ -50,13 +50,13 @@
</div> </div>
<div v-if="activeIndex == 2" class="container"> <div v-if="activeIndex == 2" class="container">
<div class="container-header"> <div class="container-header">
<div class="text">管理员或负责人统一创建内容,群主收到通知后,可选择他管理的客户群并群发。</div>
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
icon="el-icon-plus" icon="el-icon-plus"
@click="btnClick('create', 2)" @click="btnClick('create', 2)"
>新建群发</el-button> >新建群发</el-button>
<div class="text">管理员或负责人统一创建内容,群主收到通知后,可选择他管理的客户群并群发。</div>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable <GLTable
...@@ -124,6 +124,7 @@ export default { ...@@ -124,6 +124,7 @@ export default {
{ {
label: '发送时间', label: '发送时间',
prop: 'sendTime', prop: 'sendTime',
width: 160,
line: 2, line: 2,
formatter: cellValue => { formatter: cellValue => {
if (cellValue.sendTime) { if (cellValue.sendTime) {
...@@ -182,6 +183,7 @@ export default { ...@@ -182,6 +183,7 @@ export default {
{ {
label: '发送时间', label: '发送时间',
prop: 'sendTime', prop: 'sendTime',
width: 150,
line: 2 line: 2
}, },
{ {
...@@ -286,17 +288,25 @@ export default { ...@@ -286,17 +288,25 @@ export default {
.send-assistant { .send-assistant {
// margin-top: 26px; // margin-top: 26px;
.menu-sub { .menu-sub {
margin-bottom: 15px;
.menu-sub-item { .menu-sub-item {
display: inline-block; display: inline-block;
text-align: center; text-align: center;
color: #666; color: #303133;
width: 180px; font-size: 14px;
// width: 180px;
// padding: 0 20px;
margin-right: 40px;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
cursor: pointer; cursor: pointer;
// &:first-child {
// padding-left: 0;
// }
&.active { &.active {
background-color: #fff; // background-color: #fff;
color: #5850ff; color: #5850ff;
border-bottom: 2px solid #5850ff;
} }
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<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">
<p class="edit-title">{{ item.title }}</p> <p class="edit-title">{{ item.title }}</p>
<glsx-combi-form class="edit-form-container p-l-40 m-b-60" ref="editFormRef" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule"> <glsx-combi-form class="edit-form-container m-b-60" ref="editFormRef" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule">
<div slot="merchantQrcode" slot-scope="scope" :style="{ 'margin-left': labelWidth, width: '120px', 'text-align': 'center' }"> <div slot="merchantQrcode" slot-scope="scope" :style="{ 'margin-left': labelWidth, width: '120px', 'text-align': 'center' }">
<p> <p>
<img class="img-120" :src="editForm[scope.scope.name]" /> <img class="img-120" :src="editForm[scope.scope.name]" />
...@@ -207,7 +207,8 @@ export default { ...@@ -207,7 +207,8 @@ export default {
{ confId: '2', confName: '图文介绍' }, { confId: '2', confName: '图文介绍' },
{ confId: '3', confName: '视频介绍' } { confId: '3', confName: '视频介绍' }
], ],
labelWidth: '90px', labelWidth: '144px',
isEdit: true,
externalFormList: [ externalFormList: [
{ {
title: '门店小程序码', title: '门店小程序码',
...@@ -631,10 +632,10 @@ export default { ...@@ -631,10 +632,10 @@ export default {
margin-right: 10px; margin-right: 10px;
} }
.home-set .edit-tips { .home-set .edit-tips {
line-height: 18px; line-height: 20px;
font-size: 13px; font-size: 14px;
color: #666666; color: #999999;
width: 300px; width: 338px;
} }
.home-set .show-pro-box { .home-set .show-pro-box {
padding: 8px 12px; padding: 8px 12px;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="marketing p-t-20"> <div class="marketing p-t-20">
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :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>
<el-button :size="size" type="primary" @click="handleReset">重置</el-button> <el-button :size="size" type="primary" @click="handleReset">重置</el-button>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="commentRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="commentRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.commentStatus == '0'" type="text" @click="handleRevoke(scope.scope)">发布</el-button> <el-button v-if="scope.scope.commentStatus == '0'" type="text" @click="handleRevoke(scope.scope)">发布</el-button>
<el-button v-if="scope.scope.commentStatus == '1'" type="text" @click="handleRevoke(scope.scope)">撤回</el-button> <el-button v-if="scope.scope.commentStatus == '1'" type="text" @click="handleRevoke(scope.scope)">撤回</el-button>
...@@ -27,11 +27,13 @@ ...@@ -27,11 +27,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
export default { export default {
name: 'orderComment', name: 'orderComment',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
searchForm: { searchForm: {
commentStatus: '', commentStatus: '',
createDate: [] createDate: []
......
...@@ -13,7 +13,11 @@ ...@@ -13,7 +13,11 @@
</span> </span>
</div> </div>
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData1">
</glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2">
</glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData3">
<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>
<el-button :size="size" type="primary" @click="handleReset">重置</el-button> <el-button :size="size" type="primary" @click="handleReset">重置</el-button>
...@@ -28,7 +32,7 @@ ...@@ -28,7 +32,7 @@
</el-tabs> </el-tabs>
<!-- 表格区域 - 全部订单/售后订单 - 开始 --> <!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable ref="allOrderRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看订单</el-button> <el-button type="text" @click="handleDetail(scope.scope)">查看订单</el-button>
<el-button v-if="scope.scope.deliveryType == 1 && scope.scope.orderStatus == 14" type="text" @click="handleWriteOff(scope.scope)">订单核销</el-button> <el-button v-if="scope.scope.deliveryType == 1 && scope.scope.orderStatus == 14" type="text" @click="handleWriteOff(scope.scope)">订单核销</el-button>
...@@ -41,15 +45,15 @@ ...@@ -41,15 +45,15 @@
</div> </div>
<!-- 快递信息 --> <!-- 快递信息 -->
<glsx-dialog v-if="isExpressVisible" title="输入快递信息" :isVisible.sync="isExpressVisible" @confirmDialog="handleExpressConfirm" @closeDialog="handleExpressClose"> <glsx-dialog v-if="isExpressVisible" title="输入快递信息" :isVisible.sync="isExpressVisible" @confirmDialog="handleExpressConfirm" @closeDialog="handleExpressClose">
<glsx-combi-form ref="expressRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="expressForm" :formData="expressFormData" :formRules="expressRules"></glsx-combi-form> <glsx-combi-form ref="expressRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="expressForm" :formData="expressFormData" :formRules="expressRules"></glsx-combi-form>
</glsx-dialog> </glsx-dialog>
<!-- 订单核销 --> <!-- 订单核销 -->
<glsx-dialog v-if="isWriteOffVisible" title="订单核销(请确保用户到店后核销,避免引起不必要问题)" :isVisible.sync="isWriteOffVisible" @confirmDialog="handleWriteOffConfirm" @closeDialog="handleWriteOffClose"> <glsx-dialog v-if="isWriteOffVisible" title="订单核销(请确保用户到店后核销,避免引起不必要问题)" :isVisible.sync="isWriteOffVisible" @confirmDialog="handleWriteOffConfirm" @closeDialog="handleWriteOffClose">
<glsx-combi-form ref="writeOffRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="writeOffForm" :formData="writeOffFormData" :formRules="writeOffRules"></glsx-combi-form> <glsx-combi-form ref="writeOffRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="writeOffForm" :formData="writeOffFormData" :formRules="writeOffRules"></glsx-combi-form>
</glsx-dialog> </glsx-dialog>
<!-- 退款审核 --> <!-- 退款审核 -->
<glsx-dialog v-if="isExamineVisible" title="退款审核" width="50%" :isVisible.sync="isExamineVisible" @confirmDialog="handleExamineConfirm" @closeDialog="handleExamineClose"> <glsx-dialog v-if="isExamineVisible" title="退款审核" width="50%" :isVisible.sync="isExamineVisible" @confirmDialog="handleExamineConfirm" @closeDialog="handleExamineClose">
<el-form label-width="140px"> <el-form label-width="144px">
<el-form-item label="售后类型"> <el-form-item label="售后类型">
<span>{{ orderInfo.refundTypeName }}</span> <span>{{ orderInfo.refundTypeName }}</span>
</el-form-item> </el-form-item>
...@@ -72,7 +76,7 @@ ...@@ -72,7 +76,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<template v-if="orderInfo.refundType == 1 && examineForm.isAllowed == '1'"> <template v-if="orderInfo.refundType == 1 && examineForm.isAllowed == '1'">
<glsx-combi-form ref="examineRef" labelWidth="140px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="examineForm" :formData="examineFormData" :formRules="examineRules"></glsx-combi-form> <glsx-combi-form ref="examineRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="examineForm" :formData="examineFormData" :formRules="examineRules"></glsx-combi-form>
</template> </template>
</el-form> </el-form>
</glsx-dialog> </glsx-dialog>
...@@ -104,13 +108,16 @@ ...@@ -104,13 +108,16 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
import { orderManageStatusList, orderSourceList, deliveryTypeList } from '@/common/constant' import { orderManageStatusList, orderSourceList, deliveryTypeList } from '@/common/constant'
export default { export default {
name: 'orderManage', name: 'orderManage',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
activeName: 'allOrder', activeName: 'allOrder',
isEdit: true,
orderCode: '', orderCode: '',
oldVal: { oldVal: {
orderStatuses: [] orderStatuses: []
...@@ -130,7 +137,7 @@ export default { ...@@ -130,7 +137,7 @@ export default {
payPriceTotal: '' payPriceTotal: ''
}, },
// 搜索 // 搜索
searchFormData: [ searchFormData1: [
{ {
label: '订单编号', label: '订单编号',
name: 'orderCode', name: 'orderCode',
...@@ -171,8 +178,11 @@ export default { ...@@ -171,8 +178,11 @@ export default {
{ {
label: '门店', label: '门店',
name: 'merchantName', name: 'merchantName',
type: 'input' type: 'input',
}, labelWidth: 56
}
],
searchFormData2: [
{ {
label: '客户姓名', label: '客户姓名',
name: 'customerName', name: 'customerName',
...@@ -193,7 +203,9 @@ export default { ...@@ -193,7 +203,9 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'orderSourceList' optionsName: 'orderSourceList'
}, }
],
searchFormData3: [
{ {
label: '结算方式', label: '结算方式',
name: 'deliveryType', name: 'deliveryType',
...@@ -367,7 +379,9 @@ export default { ...@@ -367,7 +379,9 @@ export default {
mounted() { mounted() {
this.getCount() this.getCount()
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData1')
this.getOptionsList('searchFormData2')
this.getOptionsList('searchFormData3')
}, },
methods: { methods: {
...@@ -618,6 +632,7 @@ export default { ...@@ -618,6 +632,7 @@ export default {
setTableFinishFun() { setTableFinishFun() {
//接收到的数据为空 //接收到的数据为空
this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun() this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun()
this.getCount()
}, },
handleSearch() { handleSearch() {
...@@ -626,7 +641,6 @@ export default { ...@@ -626,7 +641,6 @@ export default {
handleTabClick() { handleTabClick() {
this.handleSearch() this.handleSearch()
this.getCount()
}, },
handleExport(row) { handleExport(row) {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="edit-share marketing edit-box"> <div class="edit-share 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" labelWidth="140px" 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 slot="selectPro" slot-scope="scope"> <template slot="selectPro" slot-scope="scope">
<el-button type="primary" @click="handleRelateProClose(scope)">{{ editForm.goodsId ? '更换' : '请选择' }}</el-button> <el-button type="primary" @click="handleRelateProClose(scope)">{{ editForm.goodsId ? '更换' : '请选择' }}</el-button>
<div class="m-t-10" v-show="editForm.goodsId"> <div class="m-t-10" v-show="editForm.goodsId">
...@@ -43,6 +43,7 @@ export default { ...@@ -43,6 +43,7 @@ export default {
// 商品选择 // 商品选择
isSingleSelectVisible: false, isSingleSelectVisible: false,
selectedProInfo: {}, selectedProInfo: {},
isEdit: true,
editForm: { editForm: {
videoUrl: '', videoUrl: '',
imgUrls: [], imgUrls: [],
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :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>
<el-button :size="size" type="primary" @click="handleReset">重置</el-button> <el-button :size="size" type="primary" @click="handleReset">重置</el-button>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="shareRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="shareRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.shareStatus == 0" type="text" @click="handleEdit(2, scope.scope)">发布</el-button> <el-button v-if="scope.scope.shareStatus == 0" type="text" @click="handleEdit(2, scope.scope)">发布</el-button>
<el-button v-if="scope.scope.shareStatus == 1" type="text" @click="handleRevoke(scope.scope)">撤回</el-button> <el-button v-if="scope.scope.shareStatus == 1" type="text" @click="handleRevoke(scope.scope)">撤回</el-button>
...@@ -29,11 +29,13 @@ ...@@ -29,11 +29,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
export default { export default {
name: 'orderShare', name: 'orderShare',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
searchForm: { searchForm: {
shareSource: '', shareSource: '',
shareStatus: '', shareStatus: '',
......
...@@ -8,9 +8,10 @@ ...@@ -8,9 +8,10 @@
<div v-for="(item, index) in externalFormList" :key="index"> <div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p> <p class="edit-title">{{ item.title }}</p>
<glsx-combi-form <glsx-combi-form
class="edit-form-container p-l-40 m-b-60" class="edit-form-container m-b-60"
ref="editFormRef" ref="editFormRef"
:labelWidth="labelWidth" :labelWidth="labelWidth"
:isEdit="isEdit"
defaultWidth="320px" defaultWidth="320px"
:isBlock="true" :isBlock="true"
:formRef="item.editChildRef" :formRef="item.editChildRef"
...@@ -20,7 +21,19 @@ ...@@ -20,7 +21,19 @@
@handleImgDelete="handleFormImgDelete" @handleImgDelete="handleFormImgDelete"
> >
<template slot="describeBtn"> <template slot="describeBtn">
<el-button :disabled="isDisabled" type="primary" @click="handleDescribeImgAdd">添加图片</el-button> <el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
</template>
<template slot="goodsImage">
<p class="edit-tips">作为商品列表展示</p>
<p class="edit-tips">建议图片分辨率400*400</p>
</template>
<template slot="goodsDetailImageList">
<p class="edit-tips">作为商品详情页顶部展示</p>
<p class="edit-tips">建议图片分辨率800*800</p>
</template>
<template slot="goodsVideo">
<p class="edit-tips">作为商品详情页顶部展示</p>
<p class="edit-tips">格式建议mp4,大小不超过50M</p>
</template> </template>
<div :style="{ 'margin-left': labelWidth }" slot="descImgs" slot-scope="scope"> <div :style="{ 'margin-left': labelWidth }" slot="descImgs" slot-scope="scope">
<div <div
...@@ -75,9 +88,9 @@ ...@@ -75,9 +88,9 @@
</div> </div>
</div> </div>
<template slot="proSpecsBtn"> <template slot="proSpecsBtn">
<el-button :disabled="isDisabled" type="primary" @click="handleSpecsEdit(1)">添加规格</el-button> <el-button :disabled="isDisabled" type="default" @click="handleSpecsEdit(1)">+添加规格项目</el-button>
</template> </template>
<div slot="proSpecs" style="margin-left: 110px;"> <div slot="proSpecs" :style="{ 'margin-left': labelWidth }">
<div v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex"> <div v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">
<div> <div>
<span>规格名:</span> <span>规格名:</span>
...@@ -109,7 +122,7 @@ ...@@ -109,7 +122,7 @@
</div> </div>
<div slot="specsDetail" class="flex"> <div slot="specsDetail" class="flex">
<span class="spesc-label" :style="{ width: labelWidth }">规格明细:</span> <span class="spesc-label" :style="{ width: labelWidth }">规格明细:</span>
<div style="width: calc(100% - 100px);"> <div :style="{ width: `calc(100% - ${labelWidth} )` }">
<table class="table-spesc"> <table class="table-spesc">
<tbody> <tbody>
<tr> <tr>
...@@ -192,20 +205,20 @@ ...@@ -192,20 +205,20 @@
</div> </div>
</div> </div>
<template slot="retailPrice"> <template slot="retailPrice">
<p>作为商品商城售卖的价格</p> <p class="edit-tips">作为商品商城售卖的价格</p>
</template> </template>
<template slot="originalPrice"> <template slot="originalPrice">
<p>作为商品划线展示的价格</p> <p class="edit-tips">作为商品划线展示的价格</p>
</template> </template>
<template slot="supplyPrice"> <template slot="supplyPrice">
<p>作为货源供给门店的价格</p> <p class="edit-tips">作为货源供给门店的价格</p>
</template> </template>
<div slot="selectMerchant" slot-scope="scope" class="select-merchant"> <div slot="selectMerchant" slot-scope="scope" class="select-merchant">
<el-button <el-button
:disabled="isDisabled" :disabled="isDisabled"
type="primary" type="default"
@click="handleRelateStoreClose(scope)" @click="handleRelateStoreClose(scope)"
>{{ editForm.supplyMerchantList.length ? '更换' : '请选择' }}</el-button> >{{ editForm.supplyMerchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div> </div>
<div <div
slot="merchantTable" slot="merchantTable"
...@@ -474,7 +487,8 @@ export default { ...@@ -474,7 +487,8 @@ export default {
expressFee: '', expressFee: '',
supplyMerchantList: [] supplyMerchantList: []
}, },
labelWidth: '110px', isEdit: true,
labelWidth: '144px',
externalFormList: [ externalFormList: [
{ {
title: '基本信息', title: '基本信息',
...@@ -499,6 +513,7 @@ export default { ...@@ -499,6 +513,7 @@ export default {
type: 'upload', type: 'upload',
limitSize: 10, limitSize: 10,
maxPhotoNum: 1, maxPhotoNum: 1,
suffixSlot: 'goodsImage',
isDisabled: false, isDisabled: false,
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result const imgFile = e.target.result
...@@ -516,6 +531,7 @@ export default { ...@@ -516,6 +531,7 @@ export default {
width: '100%', width: '100%',
limitSize: 20, limitSize: 20,
maxPhotoNum: 10, maxPhotoNum: 10,
suffixSlot: 'goodsDetailImageList',
isDisabled: false, isDisabled: false,
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result const imgFile = e.target.result
...@@ -536,6 +552,7 @@ export default { ...@@ -536,6 +552,7 @@ export default {
name: 'goodsVideo', name: 'goodsVideo',
type: 'upload', type: 'upload',
uploadType: 'video', uploadType: 'video',
suffixSlot: 'goodsVideo',
limitSize: 50, limitSize: 50,
maxPhotoNum: 1, maxPhotoNum: 1,
isDisabled: false, isDisabled: false,
...@@ -584,7 +601,7 @@ export default { ...@@ -584,7 +601,7 @@ export default {
rows: 5, rows: 5,
maxlength: '200', maxlength: '200',
style: { style: {
'margin-left': '110px' 'margin-left': '144px'
} }
}, },
{ {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :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>
<el-button :size="size" type="primary" @click="handleReset">重置</el-button> <el-button :size="size" type="primary" @click="handleReset">重置</el-button>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="goodsImage" class="table-image" slot-scope="scope"> <div slot="goodsImage" class="table-image" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" /> <img class="img-60" :src="scope.scope.goodsImage" />
</div> </div>
...@@ -45,11 +45,13 @@ ...@@ -45,11 +45,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import shareDialog from './components/shareDialog' import shareDialog from './components/shareDialog'
import url from "@/assets/empty.png"
export default { export default {
name: 'productGroup', name: 'productGroup',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
// 下架 // 下架
isDownVisible: false, isDownVisible: false,
downForm: { downForm: {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :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>
<el-button :size="size" type="primary" @click="handleReset">重置</el-button> <el-button :size="size" type="primary" @click="handleReset">重置</el-button>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="proGroupRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="goodsImage" slot-scope="scope"> <template slot="goodsImage" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" /> <img class="img-60" :src="scope.scope.goodsImage" />
</template> </template>
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
import shareDialog from '../productGroup/components/shareDialog' import shareDialog from '../productGroup/components/shareDialog'
import { truncate } from 'fs'; import { truncate } from 'fs';
export default { export default {
...@@ -54,6 +55,7 @@ export default { ...@@ -54,6 +55,7 @@ export default {
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
// 下架 // 下架
isDownVisible: false, isDownVisible: false,
downForm: { downForm: {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="edit-share marketing p-t-20 edit-box"> <div class="edit-share marketing p-t-20 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" ref="editFormRef" labelWidth="140px" :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 slot="activityTimeHtml"> <template slot="activityTimeHtml">
<!-- <el-form-item> --> <!-- <el-form-item> -->
<el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" clearable></el-date-picker> <el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" clearable></el-date-picker>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="100px" :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" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="activity" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="activity" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="activityImg" slot-scope="scope"> <template slot="activityImg" slot-scope="scope">
<img class="img-60" :src="scope.scope.activityImg" /> <img class="img-60" :src="scope.scope.activityImg" />
</template> </template>
...@@ -39,11 +39,13 @@ ...@@ -39,11 +39,13 @@
<script> <script>
import shareDialog from '../productGroup/components/shareDialog' import shareDialog from '../productGroup/components/shareDialog'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
export default { export default {
name: 'activity', name: 'activity',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
downForm: { downForm: {
id: '', id: '',
offReason: '', offReason: '',
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :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>
<el-button :size="size" type="primary" @click="handleReset">重置</el-button> <el-button :size="size" type="primary" @click="handleReset">重置</el-button>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="takeGoodRef" class="table-img" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="takeGoodRef" class="table-img" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="goodsImage" class="table-image" slot-scope="scope"> <div slot="goodsImage" class="table-image" slot-scope="scope">
<img class="img-60" :src="scope.scope.goods.goodsImage" /> <img class="img-60" :src="scope.scope.goods.goodsImage" />
</div> </div>
...@@ -31,11 +31,13 @@ ...@@ -31,11 +31,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
export default { export default {
name: 'takeGood', name: 'takeGood',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
searchForm: { searchForm: {
goodsName: '', goodsName: '',
createDate: [] createDate: []
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="edit-zone marketing p-t-20 edit-box"> <div class="edit-zone marketing p-t-20 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" :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">
<div slot="selectMerchant" slot-scope="scope" class="select-merchant"> <div slot="selectMerchant" slot-scope="scope" class="select-merchant">
<el-button type="default" @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换门店' : '+选择门店' }}</el-button> <el-button type="default" @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div> </div>
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
addOrEdit: 1, addOrEdit: 1,
id: '' id: ''
}, },
labelWidth: '140px', labelWidth: '144px',
editForm: { editForm: {
// 专区类型(1发现频道,2商城专区) // 专区类型(1发现频道,2商城专区)
zoneType: '2', zoneType: '2',
...@@ -70,6 +70,7 @@ export default { ...@@ -70,6 +70,7 @@ export default {
zoneImg: [{ required: true, message: '请选择专区图片', trigger: 'change' }], zoneImg: [{ required: true, message: '请选择专区图片', trigger: 'change' }],
merchantList: [{ required: true, message: '请选择门店', trigger: 'change' }] merchantList: [{ required: true, message: '请选择门店', trigger: 'change' }]
}, },
isEdit: true,
editFormData: [ editFormData: [
{ {
label: '专区名称', label: '专区名称',
...@@ -81,6 +82,9 @@ export default { ...@@ -81,6 +82,9 @@ export default {
label: '专区图片', label: '专区图片',
name: 'zoneImg', name: 'zoneImg',
type: 'upload', type: 'upload',
style: {
'margin-bottom': '10px'
},
limitSize: 10, limitSize: 10,
maxPhotoNum: 1, maxPhotoNum: 1,
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
...@@ -96,7 +100,10 @@ export default { ...@@ -96,7 +100,10 @@ export default {
{ {
label: '门店', label: '门店',
name: 'merchantList', name: 'merchantList',
addHtml: 'selectMerchant' addHtml: 'selectMerchant',
style: {
'margin-bottom': '10px'
}
}, },
{ {
// label: '', // label: '',
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :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>
<el-button :size="size" type="primary" @click="handleReset">重置</el-button> <el-button :size="size" type="primary" @click="handleReset">重置</el-button>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="zoneRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="zoneRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> <el-button type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
...@@ -28,11 +28,13 @@ ...@@ -28,11 +28,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from "@/assets/empty.png"
export default { export default {
name: 'zoneList', name: 'zoneList',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
searchForm: { searchForm: {
zoneName: '', zoneName: '',
createDate: [] createDate: []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!