|
@@ -41,6 +41,8 @@
|
|
<template #bodyCell="{ column, record }">
|
|
<template #bodyCell="{ column, record }">
|
|
<template v-if="column.dataIndex === 'action'">
|
|
<template v-if="column.dataIndex === 'action'">
|
|
<a-space>
|
|
<a-space>
|
|
|
|
+ <a @click="detailRef.onOpen(record)" v-if="hasPerm('bizActivateDetail')">明细</a>
|
|
|
|
+ <a-divider type="vertical" v-if="hasPerm(['bizActivateDetail','bizActivateEdit'],'and')" />
|
|
<a @click="formRef.onOpen(record)" v-if="hasPerm('bizActivateEdit')">编辑</a>
|
|
<a @click="formRef.onOpen(record)" v-if="hasPerm('bizActivateEdit')">编辑</a>
|
|
<a-divider type="vertical" v-if="hasPerm(['bizActivateEdit', 'bizActivateDelete'], 'and')" />
|
|
<a-divider type="vertical" v-if="hasPerm(['bizActivateEdit', 'bizActivateDelete'], 'and')" />
|
|
<a-popconfirm title="确定要删除吗?" @confirm="deleteBizActivate(record)">
|
|
<a-popconfirm title="确定要删除吗?" @confirm="deleteBizActivate(record)">
|
|
@@ -65,15 +67,18 @@
|
|
</s-table>
|
|
</s-table>
|
|
</a-card>
|
|
</a-card>
|
|
<Form ref="formRef" @successful="tableRef.refresh()" />
|
|
<Form ref="formRef" @successful="tableRef.refresh()" />
|
|
|
|
+ <Detail ref="detailRef" @successful="tableRef.refresh()" />
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup name="bizactivate">
|
|
<script setup name="bizactivate">
|
|
import { cloneDeep } from 'lodash-es'
|
|
import { cloneDeep } from 'lodash-es'
|
|
import Form from './form.vue'
|
|
import Form from './form.vue'
|
|
|
|
+ import Detail from './detail.vue'
|
|
import bizActivateApi from '@/api/biz/bizActivateApi'
|
|
import bizActivateApi from '@/api/biz/bizActivateApi'
|
|
import tool from '@/utils/tool'
|
|
import tool from '@/utils/tool'
|
|
const tableRef = ref()
|
|
const tableRef = ref()
|
|
const formRef = ref()
|
|
const formRef = ref()
|
|
|
|
+ const detailRef = ref()
|
|
const toolConfig = { refresh: true, height: true, columnSetting: true, striped: false }
|
|
const toolConfig = { refresh: true, height: true, columnSetting: true, striped: false }
|
|
const searchFormRef = ref()
|
|
const searchFormRef = ref()
|
|
let searchFormState = reactive({})
|
|
let searchFormState = reactive({})
|
|
@@ -111,14 +116,13 @@
|
|
},
|
|
},
|
|
]
|
|
]
|
|
// 操作栏通过权限判断是否显示
|
|
// 操作栏通过权限判断是否显示
|
|
- /*if (hasPerm(['bizActivateEdit', 'bizActivateDelete'])) {
|
|
|
|
- columns.push({
|
|
|
|
- title: '操作',
|
|
|
|
- dataIndex: 'action',
|
|
|
|
- align: 'center',
|
|
|
|
- width: 150
|
|
|
|
- })
|
|
|
|
- }*/
|
|
|
|
|
|
+ columns.push({
|
|
|
|
+ title: '操作',
|
|
|
|
+ dataIndex: 'action',
|
|
|
|
+ align: 'center',
|
|
|
|
+ width: 150
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
|
|
const loadData = (parameter) => {
|
|
const loadData = (parameter) => {
|
|
const searchFormParam = JSON.parse(JSON.stringify(searchFormState))
|
|
const searchFormParam = JSON.parse(JSON.stringify(searchFormState))
|