修改 检测脚本新增页面

This commit is contained in:
GGJ
2025-02-17 09:00:27 +08:00
parent 9c9b8015a0
commit 5c012c2bc9
2 changed files with 85 additions and 96 deletions

View File

@@ -44,7 +44,7 @@
<script setup lang="ts">
import { ref, reactive } from 'vue'
import type { Dict } from '@/api/system/dictionary/interface'
import { getDictTreeList } from '@/api/system/dictionary/dictTree'
import { getDictTreeByCode } from '@/api/system/dictionary/dictTree'
interface TabOption {
label: string
name: string
@@ -58,15 +58,7 @@ const props = defineProps({
})
const tableData = ref<any[]>([])
onMounted(async () => {
const resDictTree: Dict.ResDictTree = {
name: '脚本-误差',
id: '',
pid: '',
pids: '',
code: 'Script_Error',
sort: 0
}
let data = await getDictTreeList(resDictTree)
let data = await getDictTreeByCode({ code: 'Script_Error' })
data.data[0].children.forEach((item: any, i: number) => {
tableData.value.push({