|
@@ -5,17 +5,24 @@
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item label="腕表介绍图名称">
|
|
|
- <a-input placeholder="请输入轮播图名称" v-model="queryParam.name"></a-input>
|
|
|
+ <a-form-item label="轮播名称">
|
|
|
+ <a-input placeholder="请输入轮播页名称" v-model="queryParam.name"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :xl="10" :lg="11" :md="12" :sm="24">
|
|
|
- <a-form-item label="创建时间">
|
|
|
- <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" class="query-group-cust" v-model="queryParam.createTime_begin"></j-date>
|
|
|
- <span class="query-group-split-cust"></span>
|
|
|
- <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" class="query-group-cust" v-model="queryParam.createTime_end"></j-date>
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="所属系列">
|
|
|
+ <j-dict-select-tag placeholder="请选择所属系列" v-model="queryParam.seriesId" dictCode="aa_commodity_fl,name,id"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <template v-if="toggleSearchStatus">
|
|
|
+ <a-col :xl="10" :lg="11" :md="12" :sm="24">
|
|
|
+ <a-form-item label="创建时间">
|
|
|
+ <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" class="query-group-cust" v-model="queryParam.createTime_begin"></j-date>
|
|
|
+ <span class="query-group-split-cust"></span>
|
|
|
+ <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" class="query-group-cust" v-model="queryParam.createTime_end"></j-date>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </template>
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
@@ -34,12 +41,12 @@
|
|
|
<!-- 操作按钮区域 -->
|
|
|
<div class="table-operator">
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
|
- <a-button type="primary" icon="download" @click="handleExportXls('腕表介绍图管理')">导出</a-button>
|
|
|
+<!-- <a-button type="primary" icon="download" @click="handleExportXls('轮播图管理')">导出</a-button>-->
|
|
|
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
|
|
|
<!-- <a-button type="primary" icon="import">导入</a-button>-->
|
|
|
<!-- </a-upload>-->
|
|
|
<!-- 高级查询区域 -->
|
|
|
- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
|
|
|
+<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
<a-menu slot="overlay">
|
|
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
|
@@ -72,6 +79,12 @@
|
|
|
<template slot="htmlSlot" slot-scope="text">
|
|
|
<div v-html="text"></div>
|
|
|
</template>
|
|
|
+ <template slot="enableSlot" slot-scope="text">
|
|
|
+ <div v-html=""></div>
|
|
|
+ <a-tag :color="text === '已启用'?'blue':'red'">
|
|
|
+ {{text}}
|
|
|
+ </a-tag>
|
|
|
+ </template>
|
|
|
<template slot="imgSlot" slot-scope="text">
|
|
|
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
|
|
|
<img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
|
|
@@ -90,6 +103,7 @@
|
|
|
</template>
|
|
|
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
+ <a @click="handleEnable(record)" :style="{color:record.enable==='0'?'':'red'}">{{record.enable==='0'?'启用':'禁用'}}</a>
|
|
|
<a @click="handleEdit(record)">编辑</a>
|
|
|
|
|
|
<a-divider type="vertical" />
|
|
@@ -121,6 +135,9 @@
|
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import AaSlideshowModal from './modules/AaSlideshowModal'
|
|
|
+ import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
|
|
|
+ import { getAction, postAction, putAction } from '@/api/manage'
|
|
|
+
|
|
|
|
|
|
export default {
|
|
|
name: 'AaSlideshowList',
|
|
@@ -130,7 +147,7 @@
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
- description: '腕表介绍管理管理页面',
|
|
|
+ description: '轮播图管理管理页面',
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{
|
|
@@ -144,31 +161,72 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- title:'腕表介绍名称',
|
|
|
+ title:'轮播图名称',
|
|
|
align:"center",
|
|
|
+ sorter: true,
|
|
|
dataIndex: 'name'
|
|
|
},
|
|
|
{
|
|
|
- title:'腕表介绍图',
|
|
|
+ title:'轮播资源',
|
|
|
align:"center",
|
|
|
dataIndex: 'cover',
|
|
|
- scopedSlots: {customRender: 'imgSlot'}
|
|
|
+ scopedSlots: {customRender: 'fileSlot'}
|
|
|
},
|
|
|
{
|
|
|
- title:'链接',
|
|
|
+ title:'所属系列',
|
|
|
align:"center",
|
|
|
- dataIndex: 'link'
|
|
|
+ sorter: true,
|
|
|
+ dataIndex: 'seriesId_dictText'
|
|
|
},
|
|
|
{
|
|
|
- title:'权重',
|
|
|
+ title:'是否启用',
|
|
|
align:"center",
|
|
|
- dataIndex: 'sort'
|
|
|
+ sorter: true,
|
|
|
+ dataIndex: 'enable_dictText',
|
|
|
+ scopedSlots: {customRender: 'enableSlot'}
|
|
|
},
|
|
|
{
|
|
|
- title:'创建时间',
|
|
|
+ title:'排序',
|
|
|
align:"center",
|
|
|
- dataIndex: 'createTime'
|
|
|
+ sorter: true,
|
|
|
+ dataIndex: 'sort',
|
|
|
+ width:60,
|
|
|
},
|
|
|
+ // {
|
|
|
+ // title:'轮播图名称英语',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'nameEnglish'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'轮播图名称德语',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'nameGerman'
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ title:'描述',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'description'
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // title:'描述英语',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'descriptionEnglish'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'描述德语',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'descriptionGerman'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'修改时间',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'updateTime'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'创建时间',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'createTime'
|
|
|
+ // },
|
|
|
{
|
|
|
title: '操作',
|
|
|
dataIndex: 'action',
|
|
@@ -181,6 +239,7 @@
|
|
|
url: {
|
|
|
list: "/aa/aaSlideshow/list",
|
|
|
delete: "/aa/aaSlideshow/delete",
|
|
|
+ update: "/aa/aaSlideshow/edit",
|
|
|
deleteBatch: "/aa/aaSlideshow/deleteBatch",
|
|
|
exportXlsUrl: "/aa/aaSlideshow/exportXls",
|
|
|
importExcelUrl: "aa/aaSlideshow/importExcel",
|
|
@@ -203,12 +262,32 @@
|
|
|
},
|
|
|
getSuperFieldList(){
|
|
|
let fieldList=[];
|
|
|
- fieldList.push({type:'string',value:'name',text:'腕表介绍名称',dictCode:''})
|
|
|
- fieldList.push({type:'string',value:'cover',text:'腕表介绍图',dictCode:''})
|
|
|
- fieldList.push({type:'string',value:'link',text:'链接',dictCode:''})
|
|
|
- fieldList.push({type:'int',value:'sort',text:'权重',dictCode:''})
|
|
|
- fieldList.push({type:'datetime',value:'createTime',text:'创建时间'})
|
|
|
+ fieldList.push({type:'string',value:'name',text:'轮播图名称',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'cover',text:'轮播资源',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'seriesId',text:'所属系列',dictCode:"aa_commodity_fl,name,id"})
|
|
|
+ fieldList.push({type:'int',value:'sort',text:'排序',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'nameEnglish',text:'轮播图名称英语',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'nameGerman',text:'轮播图名称德语',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'description',text:'描述',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'descriptionEnglish',text:'描述英语',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'descriptionGerman',text:'描述德语',dictCode:''})
|
|
|
+ // fieldList.push({type:'datetime',value:'updateTime',text:'修改时间'})
|
|
|
+ // fieldList.push({type:'datetime',value:'createTime',text:'创建时间'})
|
|
|
this.superFieldList = fieldList
|
|
|
+ },
|
|
|
+ handleEnable(record){
|
|
|
+ this.loading = true
|
|
|
+ let param = { id: record['id'], enable: record['enable'] === '0' ? '1' : '0' }
|
|
|
+ postAction(this.url.update, param).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ this.$message.success(param.enable === '1' ? '启用成功!' : '禁用成功!')
|
|
|
+ } else {
|
|
|
+ this.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ this.loading = false
|
|
|
+ this.searchQuery();
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|