|
@@ -1,18 +1,18 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <a-card size="small" :bordered="false" class="promotion-wrap searchBoxNormal">
|
|
|
|
|
|
+ <a-card size="small" :bordered="false" class="carouselImage-wrap searchBoxNormal">
|
|
<!-- 搜索条件 -->
|
|
<!-- 搜索条件 -->
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
<div ref="tableSearch" class="table-page-search-wrapper">
|
|
- <a-form layout="inline" id="promotion-form" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
|
|
|
+ <a-form layout="inline" id="carouselImage-form" @keyup.enter.native="$refs.table.refresh(true)">
|
|
<a-row :gutter="15">
|
|
<a-row :gutter="15">
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="创建时间">
|
|
<a-form-item label="创建时间">
|
|
- <rangeDate id="promotion-createDate" ref="rangeCreateDate" :value="createDate" @change="dateCreateChange" />
|
|
|
|
|
|
+ <rangeDate id="carouselImage-createDate" ref="rangeCreateDate" :value="createDate" @change="dateCreateChange" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="轮播图名称">
|
|
<a-form-item label="轮播图名称">
|
|
- <a-input id="promotion-promotionName" v-model.trim="queryParam.name" allowClear placeholder="请输入轮播图名称"/>
|
|
|
|
|
|
+ <a-input id="carouselImage-promotionName" v-model.trim="queryParam.name" allowClear placeholder="请输入轮播图名称"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
@@ -20,7 +20,7 @@
|
|
<v-select
|
|
<v-select
|
|
v-model="queryParam.publishState"
|
|
v-model="queryParam.publishState"
|
|
ref="publishState"
|
|
ref="publishState"
|
|
- id="promotion-publishState"
|
|
|
|
|
|
+ id="carouselImage-publishState"
|
|
code="PROMO_STATE"
|
|
code="PROMO_STATE"
|
|
placeholder="请选择轮播图状态"
|
|
placeholder="请选择轮播图状态"
|
|
allowClear></v-select>
|
|
allowClear></v-select>
|
|
@@ -28,8 +28,8 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<span class="table-page-search-submitButtons">
|
|
<span class="table-page-search-submitButtons">
|
|
- <a-button type="primary" :disabled="disabled" id="promotion-refresh" @click="$refs.table.refresh(true)">查询</a-button>
|
|
|
|
- <a-button style="margin-left: 8px" :disabled="disabled" id="promotion-reset" @click="resetSearchForm()">重置</a-button>
|
|
|
|
|
|
+ <a-button type="primary" :disabled="disabled" id="carouselImage-refresh" @click="$refs.table.refresh(true)">查询</a-button>
|
|
|
|
+ <a-button style="margin-left: 8px" :disabled="disabled" id="carouselImage-reset" @click="resetSearchForm()">重置</a-button>
|
|
</span>
|
|
</span>
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
@@ -41,7 +41,7 @@
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<!-- 操作按钮 -->
|
|
<!-- 操作按钮 -->
|
|
<div class="table-operator" v-if="$hasPermissions('B_promotionManagementAdd')">
|
|
<div class="table-operator" v-if="$hasPermissions('B_promotionManagementAdd')">
|
|
- <a-button type="primary" id="promotion-add-btn" @click="openAddModal = true">新增</a-button>
|
|
|
|
|
|
+ <a-button type="primary" id="carouselImage-add-btn" @click="handleAddOrEdit()">新增</a-button>
|
|
</div>
|
|
</div>
|
|
<s-table
|
|
<s-table
|
|
class="sTable fixPagination"
|
|
class="sTable fixPagination"
|
|
@@ -64,7 +64,7 @@
|
|
</template>
|
|
</template>
|
|
<!-- 参与客户 -->
|
|
<!-- 参与客户 -->
|
|
<template slot="joinCustomers" slot-scope="text, record">
|
|
<template slot="joinCustomers" slot-scope="text, record">
|
|
- <span @click="handleCustomers(record)" :id="'promotion-seeDealerInfo-'+record.id" v-if="record.dealerSnList&&record.dealerSnList.length>0">共有<span class="link-bule">{{ record.dealerSnList.length }}</span>个客户</span>
|
|
|
|
|
|
+ <span class="customerBox" @click="handleCustomers(record)" :id="'carouselImage-seeDealerInfo-'+record.id" v-if="record.dealerSnList&&record.dealerSnList.length>0">共有<span class="link-bule">{{ record.dealerSnList.length }}</span>个客户</span>
|
|
<span v-else>共有0个客户</span>
|
|
<span v-else>共有0个客户</span>
|
|
</template>
|
|
</template>
|
|
<!-- 促销描述 -->
|
|
<!-- 促销描述 -->
|
|
@@ -73,20 +73,17 @@
|
|
<template slot="title">
|
|
<template slot="title">
|
|
<span>{{ record.description }}</span>
|
|
<span>{{ record.description }}</span>
|
|
</template>
|
|
</template>
|
|
- <div @click="promotionDesc(record)" :id="'promotion-description-'+record.id" class="link-bule">{{ record.description }}</div>
|
|
|
|
|
|
+ <div @click="promotionDesc(record)" :id="'carouselImage-description-'+record.id" class="link-bule">{{ record.description }}</div>
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
- <div v-else-if="!record.description" class="desc">--</div>
|
|
|
|
- <div v-else @click="promotionDesc(record)" :id="'promotion-description-'+record.id" class="link-bule">{{ record.description }}</div>
|
|
|
|
|
|
+ <div v-else-if="!record.description">--</div>
|
|
|
|
+ <div v-else @click="promotionDesc(record)" :id="'carouselImage-description-'+record.id" class="link-bule">{{ record.description }}</div>
|
|
</template>
|
|
</template>
|
|
<!-- 促销展示 -->
|
|
<!-- 促销展示 -->
|
|
<template slot="salesShow" slot-scope="text, record">
|
|
<template slot="salesShow" slot-scope="text, record">
|
|
- <div @click="handleSaleShow(record)" :id="'promotion-seeImgInfo-'+record.id" v-if="record.contentType!='LINK'&&record.imageSet && record.imageSet.length>0">
|
|
|
|
|
|
+ <div @click="handleCheckImg(record)" :id="'carouselImage-seeImgInfo-'+record.id">
|
|
<img :src="record.imageSet[0]" alt="图片走丢啦" width="60" />
|
|
<img :src="record.imageSet[0]" alt="图片走丢啦" width="60" />
|
|
</div>
|
|
</div>
|
|
- <div v-else-if="record.contentType=='LINK'&&record.imageSet && record.imageSet.length>0">
|
|
|
|
- <img :src="record.imageSet[0]" alt="图片走丢啦" width="60" />
|
|
|
|
- </div>
|
|
|
|
- <span v-else>--</span>
|
|
|
|
|
|
+ <!-- <span v-else>--</span> -->
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<!-- state状态 END已结束 CLOSE已关闭 PUBLISH 已发布 UNPUBLISH 未发布 -->
|
|
<!-- state状态 END已结束 CLOSE已关闭 PUBLISH 已发布 UNPUBLISH 未发布 -->
|
|
@@ -96,49 +93,45 @@
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
class="button-warning"
|
|
class="button-warning"
|
|
- :id="'promotion-edit-btn-'+record.id"
|
|
|
|
- @click="promotionEdit(record)"
|
|
|
|
|
|
+ :id="'carouselImage-edit-btn-'+record.id"
|
|
|
|
+ @click="handleAddOrEdit(record)"
|
|
v-if="(record.publishState=='UNPUBLISH' || record.publishState=='CLOSE') && $hasPermissions('B_promotionManagementEdit')">编辑</a-button>
|
|
v-if="(record.publishState=='UNPUBLISH' || record.publishState=='CLOSE') && $hasPermissions('B_promotionManagementEdit')">编辑</a-button>
|
|
- <a-button
|
|
|
|
- size="small"
|
|
|
|
- type="link"
|
|
|
|
- class="button-warning"
|
|
|
|
- :id="'promotion-modify-btn-'+record.id"
|
|
|
|
- @click="handleRelease(record,'edit')"
|
|
|
|
- v-if="((record.publishState=='PUBLISH'&&record.content!='/pagesB/promoDetail')||(record.publishState=='PUBLISH'&&record.content==='/pagesB/promoDetail'&&record.dealerEditFlag==='0') || record.publishState=='CLOSE')&&$hasPermissions('B_promotionManagementContent')">发布修改</a-button>
|
|
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
class="button-success"
|
|
class="button-success"
|
|
@click="handleSee(record)"
|
|
@click="handleSee(record)"
|
|
v-if="(record.publishState=='PUBLISH' || record.publishState=='END')&&$hasPermissions('B_promotionManagementDetail')"
|
|
v-if="(record.publishState=='PUBLISH' || record.publishState=='END')&&$hasPermissions('B_promotionManagementDetail')"
|
|
- :id="'promotion-seeDetail-btn-'+record.id">查看</a-button>
|
|
|
|
|
|
+ :id="'carouselImage-seeDetail-btn-'+record.id">查看</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
class="button-info"
|
|
class="button-info"
|
|
- @click="handleRelease(record,'add')"
|
|
|
|
|
|
+ @click="handleRelease(record)"
|
|
v-if="record.publishState=='UNPUBLISH'&&$hasPermissions('B_promotionManagementContent')"
|
|
v-if="record.publishState=='UNPUBLISH'&&$hasPermissions('B_promotionManagementContent')"
|
|
- :id="'promotion-release-btn-'+record.id">发布</a-button>
|
|
|
|
|
|
+ :id="'carouselImage-release-btn-'+record.id">发布</a-button>
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ class="button-info"
|
|
|
|
+ @click="handleClose(record)"
|
|
|
|
+ v-if="record.publishState=='UNPUBLISH'&&$hasPermissions('B_promotionManagementContent')"
|
|
|
|
+ :id="'carouselImage-release-btn-'+record.id">关闭</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
class="button-error"
|
|
class="button-error"
|
|
v-if="record.publishState=='UNPUBLISH'&&$hasPermissions('B_promotionManagementDel')"
|
|
v-if="record.publishState=='UNPUBLISH'&&$hasPermissions('B_promotionManagementDel')"
|
|
@click="handleDel(record)"
|
|
@click="handleDel(record)"
|
|
- :id="'promotion-del-btn-'+record.id">删除</a-button>
|
|
|
|
|
|
+ :id="'carouselImage-del-btn-'+record.id">删除</a-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
</a-spin>
|
|
</a-spin>
|
|
- <!-- 参与客户 -->
|
|
|
|
|
|
+ <!-- 参与经销商 -->
|
|
<lookUp-customers-modal ref="lookUpCustomers" :openModal="openCustomerModal" @close="openCustomerModal = false"></lookUp-customers-modal>
|
|
<lookUp-customers-modal ref="lookUpCustomers" :openModal="openCustomerModal" @close="openCustomerModal = false"></lookUp-customers-modal>
|
|
- <!-- 促销描述 -->
|
|
|
|
- <promotion-desc-modal :openModal="openDescModal" :con="descCon" @close="openDescModal = false;descCon=''"></promotion-desc-modal>
|
|
|
|
- <!-- 促销展示 -->
|
|
|
|
- <promotion-show-modal ref="showModal" :openModal="openShowModal" @close="openShowModal = false"></promotion-show-modal>
|
|
|
|
- <!-- 新增 -->
|
|
|
|
- <addModal :openModal="openAddModal" :itemId="itemId" @close="closeAddModal" @ok="$refs.table.refresh()"></addModal>
|
|
|
|
|
|
+ <!-- 封面展示 -->
|
|
|
|
+ <imgShowModal v-drag ref="checkedImg" :openModal="openCheckedImgModal" @close="openCheckedImgModal=false"></imgShowModal>
|
|
<!-- 查看 -->
|
|
<!-- 查看 -->
|
|
<detail-Modal :openModal="openDetailModal" :itemSn="itemId" @close="closeDetailModal" @ok="$refs.table.refresh()" />
|
|
<detail-Modal :openModal="openDetailModal" :itemSn="itemId" @close="closeDetailModal" @ok="$refs.table.refresh()" />
|
|
</a-card>
|
|
</a-card>
|
|
@@ -150,38 +143,32 @@ import { commonMixin } from '@/utils/mixin'
|
|
// 组件
|
|
// 组件
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
-// import lookUpCustomersModal from './lookUpCustomersModal'
|
|
|
|
-// import promotionDescModal from './promotionDescModal'
|
|
|
|
-// import promotionShowModal from './promotionShowModal'
|
|
|
|
-// import addModal from './addModal'
|
|
|
|
-// import detailModal from './detailModal'
|
|
|
|
|
|
+import lookUpCustomersModal from '@/views/easyPassManagement/promotionalActivities/lookUpCustomersModal'
|
|
|
|
+import imgShowModal from '@/views/easyPassManagement/shoppingManagement/imgShowModal'
|
|
|
|
+import detailModal from './detailModal'
|
|
// 接口
|
|
// 接口
|
|
import { promoActiveList, promoActiveDel } from '@/api/promoActive'
|
|
import { promoActiveList, promoActiveDel } from '@/api/promoActive'
|
|
export default {
|
|
export default {
|
|
name: 'PromotionList',
|
|
name: 'PromotionList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
- components: { STable, VSelect, rangeDate },
|
|
|
|
|
|
+ components: { STable, VSelect, rangeDate, lookUpCustomersModal, detailModal, imgShowModal },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
tableHeight: 0, // 表格高度
|
|
tableHeight: 0, // 表格高度
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
- openCustomerModal: false, // 打开参与客户弹窗
|
|
|
|
- openDescModal: false, // 打开促销描述弹窗
|
|
|
|
- openShowModal: false, // 打开促销展示弹窗
|
|
|
|
- openAddModal: false, // 打开新增弹窗
|
|
|
|
|
|
+ openCustomerModal: false, // 打开参与经销商弹窗
|
|
|
|
+ openCheckedImgModal: false, // 查看封面图弹窗
|
|
openDetailModal: false, // 打开详情弹窗
|
|
openDetailModal: false, // 打开详情弹窗
|
|
- createDate: [], // 创建时间
|
|
|
|
- itemId: '', // 当前活动sn
|
|
|
|
- descCon: '', // 描述内容
|
|
|
|
pageType: '', // 发布类型 add 促销发布 edit 发布修改
|
|
pageType: '', // 发布类型 add 促销发布 edit 发布修改
|
|
- dealerSn: [], // 经销商sn
|
|
|
|
|
|
+ itemId: '', // 当前活动sn
|
|
|
|
+ createDate: [], // 创建时间
|
|
// 查询参数
|
|
// 查询参数
|
|
queryParam: {
|
|
queryParam: {
|
|
- beginDate: undefined, // 促销开始时间
|
|
|
|
- endDate: undefined, // 促销结束时间
|
|
|
|
- name: '', // 促销名称
|
|
|
|
- publishState: undefined// 是否发布
|
|
|
|
|
|
+ beginDate: undefined, // 创建开始时间
|
|
|
|
+ endDate: undefined, // 创建结束时间
|
|
|
|
+ name: '', // 轮播图名称
|
|
|
|
+ publishState: undefined// 轮播图状态
|
|
},
|
|
},
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
@@ -205,9 +192,9 @@ export default {
|
|
columns: [// 表头
|
|
columns: [// 表头
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '轮播图名称', dataIndex: 'name', width: '12%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
- { title: '轮播时间', scopedSlots: { customRender: 'promotionTime' }, width: '12%', align: 'center' },
|
|
|
|
- { title: '参与经销商', scopedSlots: { customRender: 'joinCustomers' }, width: '10%', align: 'center' },
|
|
|
|
|
|
+ { title: '轮播图名称', dataIndex: 'name', width: '13%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
|
+ { title: '轮播时间', scopedSlots: { customRender: 'promotionTime' }, width: '13%', align: 'center' },
|
|
|
|
+ { title: '参与经销商', scopedSlots: { customRender: 'joinCustomers' }, width: '8%', align: 'center' },
|
|
{ title: '封面展示', scopedSlots: { customRender: 'salesShow' }, width: '6%', align: 'center' },
|
|
{ title: '封面展示', scopedSlots: { customRender: 'salesShow' }, width: '6%', align: 'center' },
|
|
// { slots: { title: 'arrowFalgTitle' }, scopedSlots: { customRender: 'arrowFalg' }, width: '6%', align: 'center' },
|
|
// { slots: { title: 'arrowFalgTitle' }, scopedSlots: { customRender: 'arrowFalg' }, width: '6%', align: 'center' },
|
|
{ title: '轮播图状态', scopedSlots: { customRender: 'stateVal' }, width: '6%', align: 'center' },
|
|
{ title: '轮播图状态', scopedSlots: { customRender: 'stateVal' }, width: '6%', align: 'center' },
|
|
@@ -216,44 +203,32 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- // 关闭添加促销活动弹窗
|
|
|
|
- closeAddModal () {
|
|
|
|
- this.openAddModal = false; this.itemId = ''
|
|
|
|
- },
|
|
|
|
- // 参与经销商
|
|
|
|
- handleCustomers (row) {
|
|
|
|
- this.openCustomerModal = true
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- this.$refs.lookUpCustomers.pageInit({ dealerSnList: row.dealerSnList ? row.dealerSnList : undefined, promoActiveSn: row.promoActiveSn })
|
|
|
|
- })
|
|
|
|
|
|
+ // 新增 编辑
|
|
|
|
+ handleAddOrEdit (row) {
|
|
|
|
+ // const newType = row ? 'edit' : 'add'
|
|
|
|
+ this.$router.push({ name: 'carouselImageAdd' })
|
|
},
|
|
},
|
|
// 创建时间 change
|
|
// 创建时间 change
|
|
dateCreateChange (date) {
|
|
dateCreateChange (date) {
|
|
this.queryParam.beginDate = date[0]
|
|
this.queryParam.beginDate = date[0]
|
|
this.queryParam.endDate = date[1]
|
|
this.queryParam.endDate = date[1]
|
|
},
|
|
},
|
|
- // 促销展示
|
|
|
|
- handleSaleShow (record) {
|
|
|
|
- this.openShowModal = true
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- this.$refs.showModal.pageInit({ type: record.contentType, con: record.content })
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- // 促销编辑
|
|
|
|
- promotionEdit (item) {
|
|
|
|
- this.itemId = item.promoActiveSn
|
|
|
|
|
|
+ // 参与经销商
|
|
|
|
+ handleCustomers (row) {
|
|
|
|
+ this.openCustomerModal = true
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- this.openAddModal = true
|
|
|
|
|
|
+ this.$refs.lookUpCustomers.pageInit({ dealerSnList: row.dealerSnList ? row.dealerSnList : undefined, promoActiveSn: row.promoActiveSn })
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 促销描述
|
|
|
|
- promotionDesc (row) {
|
|
|
|
- this.descCon = row.description
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- this.openDescModal = true
|
|
|
|
|
|
+ // 封面图片
|
|
|
|
+ handleCheckImg (record) {
|
|
|
|
+ this.openCheckedImgModal = true
|
|
|
|
+ const _this = this
|
|
|
|
+ _this.$nextTick(() => {
|
|
|
|
+ _this.$refs.checkedImg.pageInit(record.imageSet[0])
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 删除促销活动
|
|
|
|
|
|
+ // 删除
|
|
handleDel (row) {
|
|
handleDel (row) {
|
|
const _this = this
|
|
const _this = this
|
|
this.$confirm({
|
|
this.$confirm({
|
|
@@ -274,6 +249,27 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 关闭
|
|
|
|
+ handleClose (row) {
|
|
|
|
+ const _this = this
|
|
|
|
+ this.$confirm({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '确定关闭吗?',
|
|
|
|
+ centered: true,
|
|
|
|
+ onOk () {
|
|
|
|
+ _this.spinning = true
|
|
|
|
+ promoActiveDel({ sn: row.promoActiveSn }).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ _this.$message.success(res.message)
|
|
|
|
+ _this.$refs.table.refresh()
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ } else {
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
this.$refs.rangeCreateDate.resetDate(this.createDate)
|
|
this.$refs.rangeCreateDate.resetDate(this.createDate)
|
|
@@ -283,10 +279,26 @@ export default {
|
|
this.queryParam.publishState = undefined
|
|
this.queryParam.publishState = undefined
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
- // 促销发布
|
|
|
|
- handleRelease (row, type) {
|
|
|
|
- const newType = row.imageSet && row.imageSet.length > 0 ? 'edit' : type
|
|
|
|
- this.$router.push({ name: 'carouselImageAdd', params: { sn: row.promoActiveSn, pageType: newType } })
|
|
|
|
|
|
+ // 发布
|
|
|
|
+ handleRelease (row) {
|
|
|
|
+ const _this = this
|
|
|
|
+ this.$confirm({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '确认要发布吗?',
|
|
|
|
+ centered: true,
|
|
|
|
+ onOk () {
|
|
|
|
+ _this.spinning = true
|
|
|
|
+ promoActiveDel({ sn: row.promoActiveSn }).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ _this.$message.success(res.message)
|
|
|
|
+ _this.$refs.table.refresh()
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ } else {
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 打开详情
|
|
// 打开详情
|
|
handleSee (row) {
|
|
handleSee (row) {
|
|
@@ -340,17 +352,7 @@ export default {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
- .font1{
|
|
|
|
- color:#39f;
|
|
|
|
- }
|
|
|
|
- .desc{
|
|
|
|
- width: 100%;
|
|
|
|
- padding:0 10px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
- display: -webkit-box;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- -webkit-line-clamp: 3;
|
|
|
|
- -webkit-box-orient: vertical;
|
|
|
|
|
|
+ .customerBox{
|
|
|
|
+ cursor:pointer;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|