Commit 961f73a7 by 前端

commit

1 parent 37ca807a
...@@ -2,7 +2,7 @@ import Vue from 'vue' ...@@ -2,7 +2,7 @@ import Vue from 'vue'
// import { message } from '@/plugins/element.js' // import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import { GLTable, GLButton, GLFooter, GLCombiForm, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLTable, GLButton, GLFooter, GLCombiForm, GLDialog,GLTableButton } from 'glsx-components' //权限按钮 (根据权限动态创建)
import GLEditor from 'glsx-components/src/packages/Editor' //权限按钮 (根据权限动态创建) import GLEditor from 'glsx-components/src/packages/Editor' //权限按钮 (根据权限动态创建)
import GLFull from '@/components/GLFull' import GLFull from '@/components/GLFull'
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
...@@ -12,6 +12,7 @@ Vue.use(GLTable) ...@@ -12,6 +12,7 @@ Vue.use(GLTable)
Vue.use(GLFooter) Vue.use(GLFooter)
Vue.use(GLCombiForm) Vue.use(GLCombiForm)
Vue.use(GLDialog) Vue.use(GLDialog)
Vue.use(GLTableButton)
// Vue.use(GLFull) // Vue.use(GLFull)
// import GLTable from '@/components/glsx-table/index' // import GLTable from '@/components/glsx-table/index'
Vue.component('GLEditor', GLEditor) Vue.component('GLEditor', GLEditor)
......
...@@ -7,10 +7,11 @@ ...@@ -7,10 +7,11 @@
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams"> <GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLButton type="text" @click="handleDetail(scope.scope)" fn="到店咨询客户数据">数据</GLButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
<!-- <GLButton type="text" @click="handleDetail(scope.scope)" fn="到店咨询客户数据">数据</GLButton>
<GLButton type="text" @click="handleEdit(scope.scope)" fn="活码编辑">修改</GLButton> <GLButton type="text" @click="handleEdit(scope.scope)" fn="活码编辑">修改</GLButton>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<GLButton type="text" @click="handleAddPoster(scope.scope)" fn="活码海报">活码海报</GLButton> <GLButton type="text" @click="handleAddPoster(scope.scope)" fn="活码海报">活码海报</GLButton> -->
</div> </div>
<div slot="yesterdayNum" slot-scope="scope"> <div slot="yesterdayNum" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day')" v-if="scope.scope.yesterdayNum">{{ scope.scope.yesterdayNum }}</div> <div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day')" v-if="scope.scope.yesterdayNum">{{ scope.scope.yesterdayNum }}</div>
...@@ -135,6 +136,52 @@ export default { ...@@ -135,6 +136,52 @@ export default {
} }
], ],
tableData: [], tableData: [],
// 表格按钮
tableButtonList: [
{
type: 'GLButton',
name: '数据',
attrs: {
type: 'text',
fn: '到店咨询客户数据'
},
listeners: {
click: this.handleDetail
}
},
{
type: 'GLButton',
name: '活码海报',
attrs: {
type: 'text',
fn: '活码海报'
},
listeners: {
click: this.handleAddPoster
}
},
{
type: 'GLButton',
name: '修改',
attrs: {
type: 'text',
fn: '活码编辑'
},
listeners: {
click: this.handleEdit
}
},
{
type: 'el-button',
name: '删除',
attrs: {
type: 'text'
},
listeners: {
click: this.handleDelete
}
}
],
tableParams: { tableParams: {
listName: 'data', listName: 'data',
tableOption: false, tableOption: false,
...@@ -142,6 +189,7 @@ export default { ...@@ -142,6 +189,7 @@ export default {
{ {
label: '渠道名称', label: '渠道名称',
prop: 'codeRemark', prop: 'codeRemark',
minWidth: 200,
addHtml: 'codeRemark' addHtml: 'codeRemark'
}, },
{ {
...@@ -183,7 +231,7 @@ export default { ...@@ -183,7 +231,7 @@ export default {
{ {
label: '操作', label: '操作',
prop: 'optionBtns', prop: 'optionBtns',
width: '240px', width: '170px',
addHtml: 'optionBtns', addHtml: 'optionBtns',
fixed: 'right' fixed: 'right'
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!