字典优化,tabs优化,自动化代码优化 (#1128)

* server/service/system/sys_dictionary.go: fix 获取字典单条数据时status失效的bug

* 增加关闭状态下折叠内容所在menu的高亮提示

* 修复字典变更无法打开的bug

* 增加详情页签区分功能

* 增加字典详情区分

* 修复字典功能

Co-authored-by: yancunju <yancunju@autouc.com>
This commit is contained in:
奇淼(piexlmax
2022-06-12 20:23:08 +08:00
committed by GitHub
co-authored by yancunju
parent 9da394f711
commit e0280a56ce
11 changed files with 84 additions and 28 deletions
@@ -85,13 +85,15 @@
<el-button
size="small"
icon="document"
type="primary" link
type="primary"
link
@click="toDetile(scope.row)"
>详情</el-button>
<el-button
size="small"
icon="edit"
type="primary" link
type="primary"
link
@click="updateSysDictionaryFunc(scope.row)"
>变更</el-button>
<el-popover
@@ -103,7 +105,8 @@
<div style="text-align: right; margin-top: 8px">
<el-button
size="small"
type="primary" link
type="primary"
link
@click="scope.row.visible = false"
>取消</el-button>
<el-button
@@ -114,7 +117,8 @@
</div>
<template #reference>
<el-button
type="primary" link
type="primary"
link
icon="delete"
size="small"
style="margin-left: 10px"
@@ -308,7 +312,7 @@ const toDetile = (row) => {
const dialogFormVisible = ref(false)
const type = ref('')
const updateSysDictionaryFunc = async(row) => {
const res = await findSysDictionary({ ID: row.ID })
const res = await findSysDictionary({ ID: row.ID, status: row.status })
type.value = 'update'
if (res.code === 0) {
formData.value = res.data.resysDictionary
@@ -356,6 +360,7 @@ const enterDialog = async() => {
break
}
if (res.code === 0) {
ElMessage.success('操作成功')
closeDialog()
getTableData()
}
@@ -221,7 +221,7 @@ const updateSysDictionaryDetailFunc = async(row) => {
const res = await findSysDictionaryDetail({ ID: row.ID })
type.value = 'update'
if (res.code === 0) {
formData.value = res.data.resysDictionaryDetail
formData.value = res.data.reSysDictionaryDetail
dialogFormVisible.value = true
}
}