diff --git a/src/api/classify/classify.js b/src/api/classify/classify.js index 0d63dc16..bf30e2ca 100644 --- a/src/api/classify/classify.js +++ b/src/api/classify/classify.js @@ -99,4 +99,16 @@ export const $_selectChildCalssifyList = (data) => { method: 'post', data }) +} + + +// 考核部门 + + +export const $_parentId = (params) => { + return request({ + url: '/api/blade-system/dept/lazy-tree', + method: 'get', + params + }) } \ No newline at end of file diff --git a/src/views/supervise/IndicatorList.vue b/src/views/supervise/IndicatorList.vue index 5709f1fb..c836824f 100644 --- a/src/views/supervise/IndicatorList.vue +++ b/src/views/supervise/IndicatorList.vue @@ -328,6 +328,7 @@ import { $_removeByIds, $_selectChildCalssifyList, $_selectParentCalssifyList, + $_parentId, } from '@/api/classify/classify'; const loadingclassification = ref(false); //指标分类加载效果 const classificationdata = ref([]); //指标分类数据 @@ -490,6 +491,13 @@ const showdrawer = _flag => { }; // 新增/编辑分类 const newlyAddedFn = () => { + + + + $_parentId({parentId:1}).then(res=>{ + console.log(res); + }) + loadingclassification.value = true; //开启加载效果 let data = { ...lassificationform.value, diff --git a/src/views/supervise/classify.vue b/src/views/supervise/classify.vue index 771b935e..e6f2ac76 100644 --- a/src/views/supervise/classify.vue +++ b/src/views/supervise/classify.vue @@ -214,6 +214,7 @@ const ClassificationDditing = val => { lassificationform.value.name = data.name; //分类名称 lassificationform.value.description = data.description; //分类描述 lassificationform.value.remark = data.remark; //分类备注 + }; // 分类新增按钮