|
|
|
@ -1,11 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<a-card :bordered="false" :bodyStyle="tstyle">
|
|
|
|
|
<div
|
|
|
|
|
class="table-page-search-wrapper"
|
|
|
|
|
v-if="hasPerm('BookingTemplate:page')"
|
|
|
|
|
:class="advanced ? 'Open' : 'Close'"
|
|
|
|
|
>
|
|
|
|
|
<div class="table-page-search-wrapper" :class="advanced ? 'Open' : 'Close'">
|
|
|
|
|
<a-form layout="inline">
|
|
|
|
|
<a-row :gutter="48">
|
|
|
|
|
<a-col :md="18">
|
|
|
|
@ -58,6 +54,7 @@
|
|
|
|
|
<vxe-column title="操作" fixed="right" width="200" align="center">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<vxe-button type="text" @click="$refs.editForm.edit(row)">编辑</vxe-button>
|
|
|
|
|
<vxe-button type="text" @click="FnDel(row)">删除</vxe-button>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-column>
|
|
|
|
|
</vxe-table>
|
|
|
|
@ -67,7 +64,11 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { BookingTemplateGetPrinttemplateRightList, SysUserPage } from '@/api/modular/main/PrinttemplateRight'
|
|
|
|
|
import {
|
|
|
|
|
BookingTemplateGetPrinttemplateRightList,
|
|
|
|
|
BookingPrintTemplateDeletePrinttemplateRight,
|
|
|
|
|
SysUserPage
|
|
|
|
|
} from '@/api/modular/main/PrinttemplateRight'
|
|
|
|
|
import addForm from './addForm.vue'
|
|
|
|
|
import editForm from './editForm.vue'
|
|
|
|
|
export default {
|
|
|
|
@ -101,9 +102,9 @@ export default {
|
|
|
|
|
dataIndex: 'typeName'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '租户名称',
|
|
|
|
|
title: '用户名称',
|
|
|
|
|
align: 'center',
|
|
|
|
|
dataIndex: 'tenantName'
|
|
|
|
|
dataIndex: 'userName'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
|
@ -121,6 +122,12 @@ export default {
|
|
|
|
|
this.init()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
FnDel(data) {
|
|
|
|
|
BookingPrintTemplateDeletePrinttemplateRight({ Ids: data.id }).then(res => {
|
|
|
|
|
this.$message.success('删除成功')
|
|
|
|
|
this.FnGetData()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
toggleAdvanced() {
|
|
|
|
|
this.advanced = !this.advanced
|
|
|
|
|
},
|
|
|
|
|