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