字典管理ok

This commit is contained in:
仲么了
2024-01-25 11:04:07 +08:00
parent bdc5a452f3
commit 6c8b73eee1
8 changed files with 305 additions and 79 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class='default-main'>
<div class='default-main' style='position: relative;'>
<TableHeader>
<template #select>
<el-form-item label='过滤筛选'>
@@ -17,6 +17,7 @@
</TableHeader>
<Table ref='tableRef' />
<PopupEdit ref='popupEditRef'></PopupEdit>
<Detail ref='detailRef' :detail='detail' @close='detail = null' v-if='detail'></Detail>
</div>
</template>
<script setup lang='ts'>
@@ -28,14 +29,13 @@ import TableHeader from '@/components/table/header/index.vue'
import { ElMessage } from 'element-plus'
import PopupEdit from './popupEdit.vue'
import { dictTypeDelete } from '@/api/system-boot/dictType'
import router from '@/router/index'
import Detail from './detail.vue'
defineOptions({
name: 'setting/dictionary/list'
name: 'system-boot/dictType/list'
})
const popupEditRef = ref()
const detail = ref<anyObj | null>(null)
const tableStore = new TableStore({
url: '/system-boot/dictType/list',
method: 'POST',
@@ -61,12 +61,7 @@ const tableStore = new TableStore({
icon: 'el-icon-ZoomIn',
render: 'tipButton',
click: row => {
// router.push({
// path: '/admin/setting/dictionary/list/detail',
// params: {
// id: row.id
// }
// })
detail.value = row
}
},
{
@@ -78,7 +73,6 @@ const tableStore = new TableStore({
popupEditRef.value.open('编辑字典类型', row)
}
},
{
title: '删除',
type: 'danger',
@@ -118,4 +112,4 @@ onMounted(() => {
const add = () => {
popupEditRef.value.open('新增字典类型')
}
</script>
</script>