review代码调整代码

This commit is contained in:
2024-11-14 11:47:42 +08:00
parent 8f89252d8b
commit 95f54fb674
2 changed files with 3 additions and 4 deletions

View File

@@ -32,9 +32,7 @@
import { ElMessage, type FormItemRule } from 'element-plus' import { ElMessage, type FormItemRule } from 'element-plus'
import { addDictTree, updateDictTree } from '@/api/system/dictionary/dictTree' import { addDictTree, updateDictTree } from '@/api/system/dictionary/dictTree'
import { computed, type Ref, ref } from 'vue'; import { computed, type Ref, ref } from 'vue';
import { useDictStore } from '@/stores/modules/dict'
import { type ResultData } from '@/api/interface'; import { type ResultData } from '@/api/interface';
const dictStore = useDictStore()
// 定义弹出组件元信息 // 定义弹出组件元信息
const dialogFormRef = ref() const dialogFormRef = ref()
function useMetaInfo() { function useMetaInfo() {

View File

@@ -21,7 +21,7 @@
</template> </template>
<script setup lang='tsx' name='dict'> <script setup lang='tsx' name='dict'>
import {CirclePlus, Delete, EditPen, Download, View} from '@element-plus/icons-vue' import {CirclePlus, Delete, EditPen} from '@element-plus/icons-vue'
import {type Dict} from '@/api/system/dictionary/interface' import {type Dict} from '@/api/system/dictionary/interface'
import type { ProTableInstance, ColumnProps } from '@/components/ProTable/interface' import type { ProTableInstance, ColumnProps } from '@/components/ProTable/interface'
import TreePopup from '@/views/system/dictionary/dictTree/components/treePopup.vue' import TreePopup from '@/views/system/dictionary/dictTree/components/treePopup.vue'
@@ -72,6 +72,7 @@
prop: 'operation', prop: 'operation',
label: '操作', label: '操作',
fixed: 'right', fixed: 'right',
width: 250,
}, },
]) ])
@@ -83,7 +84,7 @@
// 删除字典类型 // 删除字典类型
const handleDelete = async (params: Dict.ResDictTree) => { const handleDelete = async (params: Dict.ResDictTree) => {
//console.log(params) console.log(params)
await useHandleData(deleteDictTree, params, `删除【${params.name}】树形字典类型`) await useHandleData(deleteDictTree, params, `删除【${params.name}】树形字典类型`)
proTable.value?.getTableList() proTable.value?.getTableList()
} }