修改 检测脚本新增页面
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user