6 changed files with 850 additions and 189 deletions
@ -0,0 +1,290 @@ |
|||
<template> |
|||
<div> |
|||
|
|||
<div class="div_btn"> |
|||
<span style="margin-right:20px">{{customerName}}</span> |
|||
<el-button type="default" |
|||
size="mini" |
|||
@click="diaCancel">取消返回</el-button> |
|||
<el-button type="primary" |
|||
size="mini" |
|||
@click="addShow">自定义初始化</el-button> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import CDialog from '@c/CDialog' |
|||
import CTable from '@c/CTableNoPage' |
|||
import Edit from './FootbarEdit' |
|||
|
|||
import { mapGetters } from 'vuex' |
|||
import { Loading } from 'element-ui' // 引入Loading服务 |
|||
|
|||
let loading// 加载动画 |
|||
|
|||
export default { |
|||
data () { |
|||
return { |
|||
activeName: 'resi', |
|||
customerId: '', // 客户id,父组件传 |
|||
customerName: '', // 客户名称,父组件传 |
|||
|
|||
// 查询相关 |
|||
tableParamsWork: { |
|||
appType: 'gov', |
|||
}, |
|||
tableParamsResi: { |
|||
appType: 'resi', |
|||
}, |
|||
tableData: [], |
|||
// 列表相关 |
|||
tableUrl: 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfootbar/customerfootbars', |
|||
// tableUrl: '/oper/customize/customerfootbar/customerfootbars', |
|||
|
|||
operations: [ |
|||
{ |
|||
lable: (display) => { |
|||
if (display === 0) { |
|||
return '隐藏' |
|||
} else { |
|||
return '显示' |
|||
} |
|||
}, // 按钮显示名称 |
|||
|
|||
size: 'mini', |
|||
style: 'margin: 0 6px;', |
|||
type: 'text', |
|||
slot: '', |
|||
plain: false, |
|||
methodName: 'changeState', // 回调方法名称 |
|||
isShow: (row) => { |
|||
return true |
|||
} |
|||
}, |
|||
{ |
|||
lable: '修改', // 按钮显示名称 |
|||
size: 'mini', |
|||
style: 'margin: 0 6px;', |
|||
type: 'text', |
|||
slot: '', |
|||
plain: false, |
|||
methodName: 'editShow', // 回调方法名称 |
|||
isShow: (row) => { |
|||
return true |
|||
} |
|||
} |
|||
], |
|||
orderOperations: [ |
|||
|
|||
{ |
|||
style: 'width=100px;height=100px', |
|||
type: 'text', |
|||
icon: "el-icon-top", |
|||
methodName: 'moveUp', // 回调方法名称 |
|||
isShow: (row) => { |
|||
return true |
|||
} |
|||
}, |
|||
], |
|||
|
|||
// 查询栏下拉框数据 |
|||
form: { |
|||
dataUrl: [], // 下拉框/单选框/复选框等获取数据的url |
|||
data: { // 全部下拉框数据 |
|||
fromApp: [ |
|||
{ |
|||
value: 'resi', |
|||
label: '居民端' |
|||
}, |
|||
{ |
|||
value: 'gov', |
|||
label: '工作端' |
|||
} |
|||
] |
|||
|
|||
} |
|||
} |
|||
} |
|||
}, |
|||
components: { |
|||
CDialog, CTable, Edit |
|||
}, |
|||
|
|||
mounted () { |
|||
|
|||
}, |
|||
computed: { |
|||
tableHeight () { |
|||
return this.clientHeight - 60 - 80 - 80 |
|||
}, |
|||
...mapGetters(['clientHeight', 'env']) |
|||
}, |
|||
activated () { |
|||
|
|||
this.$nextTick(() => { |
|||
if (this.activeName === 'gov') { |
|||
this.$refs['table_work'].doLayout() // 解决表格错位 |
|||
} else if (this.activeName === 'resi') { |
|||
this.$refs['table_resi'].doLayout() // 解决表格错位 |
|||
} |
|||
|
|||
|
|||
}) |
|||
}, |
|||
methods: { |
|||
initData (customerId, customerName) { |
|||
this.customerId = customerId |
|||
this.customerName = customerName |
|||
this.tableParamsWork.customerId = customerId |
|||
this.tableParamsResi.customerId = customerId |
|||
this.loadResiTableData() |
|||
}, |
|||
// 刷新 |
|||
refresh () { |
|||
|
|||
if (this.activeName === 'gov') { |
|||
this.loadWorkTableData() // 获取表格数据 |
|||
} else if (this.activeName === 'resi') { |
|||
this.loadResiTableData() // 获取表格数据 |
|||
} |
|||
}, |
|||
tabClick (tab) { |
|||
if (tab.name === 'gov') { |
|||
this.loadWorkTableData() // 获取表格数据 |
|||
} |
|||
if (tab.name === 'resi') { |
|||
this.loadResiTableData() // 获取表格数据 |
|||
} |
|||
}, |
|||
// 加载列表数据 |
|||
loadWorkTableData () { |
|||
this.$nextTick(() => { |
|||
this.$refs['table_work'].loadData() // 获取表格数据 |
|||
}) |
|||
}, |
|||
// 加载列表数据 |
|||
loadResiTableData () { |
|||
this.$nextTick(() => { |
|||
this.$refs['table_resi'].loadData() // 获取表格数据 |
|||
}) |
|||
}, |
|||
// 新增 |
|||
addShow () { |
|||
this.$refs['ref_edit'].init('', 'A', this.activeName) |
|||
}, |
|||
// 编辑 |
|||
editShow (row) { |
|||
this.$refs['ref_edit'].init(row.id, 'U') |
|||
}, |
|||
// 改变状态 |
|||
changeState (row, index) { |
|||
let display = row.display === 0 ? 1 : 0 |
|||
const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfootbar/updatedisplaystatus' |
|||
// const url = '/oper/customize/customerfootbar/updatedisplaystatus' |
|||
const param = { |
|||
id: row.id, |
|||
display: display |
|||
} |
|||
window.app.ajax.post(url, param, |
|||
(data, rspMsg) => { |
|||
this.$message.success('操作成功' + rspMsg) |
|||
this.refresh() |
|||
}, |
|||
(rspMsg, data) => { |
|||
this.$message.error(rspMsg) |
|||
}) |
|||
}, |
|||
// 上移 |
|||
moveUp (row, index) { |
|||
|
|||
if (index > 0) { |
|||
this.tableData = this.$refs.table.getTableData() // 获取表格数据 |
|||
//console.log(this.tableData) |
|||
this.startLoading() |
|||
let resultList = [] |
|||
let one = {} |
|||
for (let i = 0; i < this.tableData.length; i++) { |
|||
let obj = {} |
|||
// eslint-disable-next-line |
|||
// debugger |
|||
if (i === index - 1) { |
|||
one.id = this.tableData[i].id |
|||
one.orderIndex = index |
|||
} else if (i === index) { |
|||
obj.id = this.tableData[i].id |
|||
obj.orderIndex = index - 1 |
|||
resultList.push(obj) |
|||
resultList.push(one) |
|||
} else { |
|||
obj.id = this.tableData[i].id |
|||
obj.orderIndex = i |
|||
resultList.push(obj) |
|||
} |
|||
} |
|||
//console.log(resultList) |
|||
|
|||
// const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfunctiondetail/updatedisplayorder' |
|||
const url = '/oper/customize/customerfunctiondetail/updatedisplayorder' |
|||
window.app.ajax.post(url, resultList, |
|||
(data, rspMsg) => { |
|||
this.endLoading() |
|||
this.loadTableData() |
|||
}, |
|||
(rspMsg, data) => { |
|||
this.endLoading() |
|||
this.$message.error(rspMsg) |
|||
}) |
|||
|
|||
} else { |
|||
this.$message.warning('无法上移') |
|||
|
|||
return false |
|||
} |
|||
}, |
|||
|
|||
// 取消 |
|||
diaCancel () { |
|||
this.$emit('cancleBack') |
|||
}, |
|||
|
|||
editDiaOK () { |
|||
this.refresh() |
|||
}, |
|||
editDiaCancel () { |
|||
|
|||
}, |
|||
|
|||
async renderSelData () { // 渲染下拉框/单选框/复选框等数据 |
|||
|
|||
}, |
|||
|
|||
// 开启加载动画 |
|||
startLoading () { |
|||
loading = Loading.service({ |
|||
lock: true, // 是否锁定 |
|||
text: '正在加载……', // 加载中需要显示的文字 |
|||
background: 'rgba(0,0,0,.7)' // 背景颜色 |
|||
}) |
|||
}, |
|||
// 结束加载动画 |
|||
endLoading () { |
|||
// clearTimeout(timer); |
|||
if (loading) { |
|||
loading.close() |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style> |
|||
.div_btn { |
|||
z-index: 10; |
|||
position: absolute; |
|||
right: 40px; |
|||
top: 35px; |
|||
/* margin: 0 0 20px 0; */ |
|||
} |
|||
</style> |
@ -0,0 +1,366 @@ |
|||
<template> |
|||
|
|||
<div> |
|||
<div> |
|||
<el-button size="mini" |
|||
type="default" |
|||
@click="handelBack">返回</el-button> |
|||
</div> |
|||
|
|||
<el-row class="row" |
|||
:style="{paddingLeft: paddingWidth+'px',paddingRight:paddingWidth+'px'}" |
|||
:gutter="100"> |
|||
<el-col :span="12"> |
|||
<el-card> |
|||
<div slot="header" |
|||
class="clearfix"> |
|||
<span>居民端</span> |
|||
|
|||
</div> |
|||
|
|||
<div class="div_content" |
|||
:style="{height:rowHeight}"> |
|||
<div class="div_image"> |
|||
<el-upload class="item_width_1 avatar-uploader" |
|||
:action="uploadUlr" |
|||
:show-file-list="false" |
|||
:on-success="function (res, file) { return handleImgSuccess(res, file, 'resi')}" |
|||
:before-upload="beforeImgUpload"> |
|||
<img v-if="resiForm.url" |
|||
:src="resiForm.url" |
|||
:style="{height:imageHeight+'px',width:imageWidth+'px'}"> |
|||
<i v-else |
|||
class="el-icon-plus avatar-uploader-icon" |
|||
:style="{height:imageHeight+'px',width:imageWidth+'px'}"></i> |
|||
</el-upload> |
|||
</div> |
|||
|
|||
<div class="div_button"> |
|||
<el-button class="btn" |
|||
type="primary" |
|||
@click="changeImage('resi')">修改</el-button> |
|||
<el-button class="btn btn_2" |
|||
@click="changeDefault('resi')">恢复默认</el-button> |
|||
<div class="div_tip">{{tip}}</div> |
|||
</div> |
|||
|
|||
<div class="div_time"> |
|||
<span>启动页展示时长:</span> |
|||
<el-input-number v-model="resiForm.time" |
|||
:min="3" |
|||
:max="10" |
|||
label="启动页展示时长"></el-input-number> |
|||
</div> |
|||
</div> |
|||
|
|||
</el-card> |
|||
</el-col> |
|||
|
|||
<el-col :span="12"> |
|||
<el-card> |
|||
<div slot="header" |
|||
class="clearfix"> |
|||
<span>工作端</span> |
|||
|
|||
</div> |
|||
<div> |
|||
<div class="div_content" |
|||
:style="{height:rowHeight}"> |
|||
<div class="div_image"> |
|||
<el-upload class="item_width_1 avatar-uploader" |
|||
:action="uploadUlr" |
|||
:show-file-list="false" |
|||
:on-success="function (res, file) { return handleImgSuccess(res, file, 'work')}" |
|||
:before-upload="beforeImgUpload"> |
|||
<img v-if="workForm.url" |
|||
:src="workForm.url" |
|||
:style="{height:imageHeight+'px',width:imageWidth+'px'}"> |
|||
<i v-else |
|||
class="el-icon-plus avatar-uploader-icon" |
|||
:style="{height:imageHeight+'px',width:imageWidth+'px'}"></i> |
|||
</el-upload> |
|||
</div> |
|||
|
|||
<div class="div_button"> |
|||
<el-button class="btn" |
|||
type="primary" |
|||
@click="changeImage('work')">修改</el-button> |
|||
<el-button class="btn btn_2" |
|||
@click="changeDefault('work')">恢复默认</el-button> |
|||
<div class="div_tip">{{tip}}</div> |
|||
</div> |
|||
|
|||
<div class="div_time"> |
|||
<span>启动页展示时长:</span> |
|||
<el-input-number v-model="workForm.time" |
|||
:min="3" |
|||
:max="10" |
|||
label="启动页展示时长"></el-input-number> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
</el-card> |
|||
</el-col> |
|||
|
|||
</el-row> |
|||
|
|||
</div> |
|||
|
|||
</template> |
|||
|
|||
<script> |
|||
import CDialog from '@c/CDialog' |
|||
import { requestPost } from "@/js/dai/request"; |
|||
import { mapGetters } from 'vuex' |
|||
import { Loading } from 'element-ui' // 引入Loading服务 |
|||
|
|||
let loading // 加载动画 |
|||
export default { |
|||
data () { |
|||
return { |
|||
loading: false, |
|||
labelWidth: '100px', |
|||
// customerId: '', // 客户id 父组件传 |
|||
// clientType: '', // 小程序类型 父组件传 |
|||
customerName: '', |
|||
params: { |
|||
customerId: '', |
|||
}, |
|||
tip: "(文件大小不能超过200kb,格式仅支持jpg、png、gif)", |
|||
// imageHeight: 444, |
|||
// imageWidth: 250, |
|||
|
|||
uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/function/upload', |
|||
|
|||
resiForm: { |
|||
url: '',//启动页文件url路径 |
|||
clientType: 'resi',//小程序所属端类型【居民端: resi 工作端: work】 |
|||
time: '5',//启动页展示时间,单位秒 |
|||
type: 'image',//启动页文件类型(图片 - image、 视频 - video) 750*1334 |
|||
defUrl: '', |
|||
defClientType: '', |
|||
defTime: '', |
|||
defType: '' |
|||
}, |
|||
workForm: { |
|||
url: '',//启动页文件url路径 |
|||
clientType: 'work',//小程序所属端类型【居民端: resi 工作端: work】 |
|||
time: '5',//启动页展示时间,单位秒 |
|||
type: 'image',//启动页文件类型(图片 - image、 视频 - video) |
|||
defUrl: '', |
|||
defClientType: '', |
|||
defTime: '', |
|||
defType: '' |
|||
}, |
|||
|
|||
|
|||
} |
|||
}, |
|||
components: { |
|||
CDialog |
|||
}, |
|||
mounted () { |
|||
|
|||
}, |
|||
computed: { |
|||
rowHeight () { |
|||
return (this.clientHeight - 300) + 'px' |
|||
}, |
|||
paddingWidth () { |
|||
return this.resolution === 'small' ? 150 : 350 |
|||
|
|||
}, |
|||
imageHeight () { |
|||
return this.resolution === 'small' ? 222 : 444 |
|||
}, |
|||
imageWidth () { |
|||
return this.resolution === 'small' ? 125 : 250 |
|||
}, |
|||
...mapGetters(['clientHeight', 'resolution']) |
|||
}, |
|||
methods: { |
|||
initData (customerId, customerName) { |
|||
this.params = { customerId } |
|||
this.customerName = customerName |
|||
|
|||
this.loadData() |
|||
}, |
|||
|
|||
// 加载数据 |
|||
async loadData () { |
|||
const url = '/oper/customize/customerstartpage/startpage' |
|||
this.startLoading() |
|||
const { data, code, msg } = await requestPost(url, this.params) |
|||
this.endLoading() |
|||
if (code === 0) { |
|||
|
|||
data.forEach(element => { |
|||
if (!element.url) { |
|||
element.url = element.defUrl |
|||
element.clientType = element.defClientType |
|||
element.time = element.defTime |
|||
element.type = element.defType |
|||
} |
|||
if (element.clientType === 'resi') { |
|||
this.resiForm = element |
|||
} else { |
|||
this.workForm = element |
|||
} |
|||
|
|||
}); |
|||
|
|||
} else { |
|||
this.$message.error(msg) |
|||
} |
|||
|
|||
}, |
|||
|
|||
changeImage (type) { |
|||
let params = {} |
|||
if (type === 'resi') { |
|||
|
|||
params = this.resiForm |
|||
} else { |
|||
|
|||
params = this.workForm |
|||
} |
|||
|
|||
this.saveImage(params) |
|||
}, |
|||
|
|||
beforeImgUpload (file) { |
|||
// const isPNG = file.type === 'image/png' |
|||
const isLt1M = file.size / 1024 < 200 |
|||
|
|||
// if (!isPNG) { |
|||
// this.$message.error('上传图片只能是 PNG 格式!') |
|||
// } |
|||
if (!isLt1M) { |
|||
this.$message.error('上传图片大小不能超过 200kb!') |
|||
} |
|||
// return isPNG && isLt1M |
|||
return isLt1M |
|||
}, |
|||
|
|||
// 上传大图标成功 |
|||
handleImgSuccess (res, file, type) { |
|||
|
|||
if (res.code === 0 && res.msg === 'success') { |
|||
if (type === 'resi') { |
|||
this.resiForm.url = res.data.url |
|||
} else { |
|||
this.workForm.url = res.data.url |
|||
} |
|||
} else { |
|||
this.$message.error(res.msg) |
|||
} |
|||
}, |
|||
|
|||
// 重置图片 |
|||
changeDefault (type) { |
|||
let params = {} |
|||
if (type === 'resi') { |
|||
this.resiForm.url = this.resiForm.defUrl |
|||
params = this.resiForm |
|||
} else { |
|||
this.workForm.url = this.workForm.defUrl |
|||
params = this.workForm |
|||
} |
|||
|
|||
this.saveImage(params) |
|||
}, |
|||
|
|||
handelBack () { |
|||
this.$emit('cancleBack') |
|||
}, |
|||
|
|||
async saveImage (params) { |
|||
console.log('params', params) |
|||
let startPage = { |
|||
customerId: this.params.customerId, |
|||
...params |
|||
} |
|||
|
|||
const url = '/oper/customize/customerstartpage/savestartpage' |
|||
this.startLoading() |
|||
const { data, code, msg } = await requestPost(url, startPage) |
|||
this.endLoading() |
|||
if (code === 0) { |
|||
this.$message.success('保存成功') |
|||
|
|||
} else { |
|||
this.$message.error(msg) |
|||
} |
|||
}, |
|||
|
|||
// 开启加载动画 |
|||
startLoading () { |
|||
loading = Loading.service({ |
|||
lock: true, // 是否锁定 |
|||
text: '正在加载……', // 加载中需要显示的文字 |
|||
background: 'rgba(0,0,0,.7)' // 背景颜色 |
|||
}) |
|||
}, |
|||
// 结束加载动画 |
|||
endLoading () { |
|||
// clearTimeout(timer); |
|||
if (loading) { |
|||
loading.close() |
|||
} |
|||
} |
|||
}, |
|||
props: { |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped > |
|||
.clearfix { |
|||
height: 25px; |
|||
} |
|||
.clearfix:before, |
|||
.clearfix:after { |
|||
display: table; |
|||
content: ""; |
|||
} |
|||
.clearfix:after { |
|||
clear: both; |
|||
} |
|||
.el-row { |
|||
/* margin-bottom: 20px; */ |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
margin-top: 10px; |
|||
} |
|||
|
|||
.row { |
|||
/* padding: 0 100px; */ |
|||
} |
|||
.el-card { |
|||
overflow-y: auto; |
|||
} |
|||
.div_image { |
|||
width: 100%; |
|||
text-align: center; |
|||
} |
|||
.div_button { |
|||
margin-top: 20px; |
|||
width: 100%; |
|||
text-align: center; |
|||
} |
|||
.btn { |
|||
} |
|||
.btn_2 { |
|||
margin-left: 50px; |
|||
} |
|||
|
|||
.div_tip { |
|||
margin-top: 10px; |
|||
font-size: 10px; |
|||
} |
|||
|
|||
.div_time { |
|||
margin-top: 30px; |
|||
text-align: center; |
|||
} |
|||
</style> |
@ -1,123 +0,0 @@ |
|||
<template> |
|||
<el-card shadow="never" |
|||
class="aui-card--fill"> |
|||
<div class="mod-sys__menu"> |
|||
<el-form :inline="true" |
|||
:model="dataForm" |
|||
@keyup.enter.native="getDataList()"> |
|||
<el-form-item> |
|||
<el-button type="primary" |
|||
@click="addOrUpdateHandle()">{{ $t('add') }}</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-table v-loading="dataListLoading" |
|||
:data="dataList" |
|||
row-key="id" |
|||
border |
|||
:height="tableHeight" |
|||
style="width: 100%;"> |
|||
<el-table-column prop="name" |
|||
:label="$t('menu.name')" |
|||
header-align="center" |
|||
min-width="150"></el-table-column> |
|||
<el-table-column prop="icon" |
|||
:label="$t('menu.icon')" |
|||
header-align="center" |
|||
align="center"> |
|||
<template slot-scope="scope"> |
|||
<svg class="icon-svg" |
|||
aria-hidden="true"> |
|||
<use :xlink:href="`#${scope.row.icon}`"></use> |
|||
</svg> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column prop="type" |
|||
:label="$t('menu.type')" |
|||
header-align="center" |
|||
align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-tag v-if="scope.row.type === 0" |
|||
size="small">{{ $t('menu.type0') }}</el-tag> |
|||
<el-tag v-else |
|||
size="small" |
|||
type="info">{{ $t('menu.type1') }}</el-tag> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column prop="sort" |
|||
:label="$t('menu.sort')" |
|||
header-align="center" |
|||
align="center"></el-table-column> |
|||
<el-table-column prop="url" |
|||
:label="$t('menu.url')" |
|||
header-align="center" |
|||
align="center" |
|||
width="150" |
|||
:show-overflow-tooltip="true"></el-table-column> |
|||
<el-table-column prop="permissions" |
|||
:label="$t('menu.permissions')" |
|||
header-align="center" |
|||
align="center" |
|||
width="150" |
|||
:show-overflow-tooltip="true"></el-table-column> |
|||
<el-table-column :label="$t('handle')" |
|||
fixed="right" |
|||
header-align="center" |
|||
align="center" |
|||
width="150"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="text" |
|||
size="small" |
|||
@click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}</el-button> |
|||
<el-button type="text" |
|||
size="small" |
|||
@click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button> |
|||
<el-button type="text" |
|||
size="small" |
|||
@click="showCustomerMenu(scope.row.id)">{{ '客户配置' }}</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 弹窗, 新增 / 修改 --> |
|||
<add-or-update v-if="addOrUpdateVisible" |
|||
ref="addOrUpdate" |
|||
@refreshDataList="getDataList"></add-or-update> |
|||
<!-- 客户菜单配置 --> |
|||
<customer-add-or-update ref="customerForm" |
|||
@refreshDataList="getDataList"></customer-add-or-update> |
|||
</div> |
|||
</el-card> |
|||
</template> |
|||
|
|||
<script> |
|||
import mixinViewModule from '@/mixins/view-module' |
|||
import AddOrUpdate from './menu-add-or-update' |
|||
import { mapGetters } from 'vuex' |
|||
import CustomerAddOrUpdate from './customer-add-or-update' |
|||
export default { |
|||
mixins: [mixinViewModule], |
|||
data () { |
|||
return { |
|||
mixinViewModuleOptions: { |
|||
getDataListURL: '/gov/access/menu/list', |
|||
deleteURL: '/gov/access/menu' |
|||
}, |
|||
customerFormVisible: false |
|||
} |
|||
}, |
|||
components: { |
|||
AddOrUpdate, CustomerAddOrUpdate |
|||
}, |
|||
computed: { |
|||
tableHeight () { |
|||
// return this.resolution === 'small' ? this.clientHeight - 210 : this.clientHeight - 220 |
|||
return this.clientHeight - 210 |
|||
}, |
|||
...mapGetters(['clientHeight', 'resolution']), |
|||
}, |
|||
methods: { |
|||
showCustomerMenu (tableId) { |
|||
this.$refs['customerForm'].init(tableId) |
|||
} |
|||
} |
|||
} |
|||
</script> |
Loading…
Reference in new issue