ZaiZai 1 жил өмнө
parent
commit
d5c1335329

+ 8 - 0
src/api/modules/other.js

@@ -57,6 +57,7 @@ export const getDictionary = (form, msg = true) => HcApi({
     method: 'get',
     params: form,
 }, msg)
+
 //业务字典
 export const getDictionaryBiz = (form, msg = true) => HcApi({
     url: '/api/blade-system/dict-biz/dictionary',
@@ -64,6 +65,13 @@ export const getDictionaryBiz = (form, msg = true) => HcApi({
     params: form,
 }, msg)
 
+//业务字典
+export const getDictionaryBizTree = (form, msg = true) => HcApi({
+    url: '/api/blade-system/dict-biz/dictionary-tree',
+    method: 'get',
+    params: form,
+}, msg)
+
 
 //获取表单的下拉框测站点数据
 export const getDapSiteData = (form, msg = true) => HcApi({

+ 2 - 2
src/views/tentative/acquisition/data.vue

@@ -109,7 +109,7 @@
 <script setup>
 import { onActivated, ref } from 'vue'
 import { useAppStore } from '~src/store'
-import { getDictionaryBiz, getErtractInfo } from '~api/other'
+import { getDictionaryBizTree, getErtractInfo } from '~api/other'
 import { getArrValue, getObjValue, isNullES } from 'js-fast-way'
 import mainApi from '~api/tentative/acquisition/data'
 
@@ -184,7 +184,7 @@ const menuData = ref([
 ])
 //获取分类数据
 const getTestDataType = async () => {
-    const { data } = await getDictionaryBiz({ code: 'test_data_type' })
+    const { data } = await getDictionaryBizTree({ code: 'test_data_type' })
     menuData.value = getArrValue(data)
     console.log(data)
 }