|
@@ -1,9 +1,4 @@
|
|
-import {
|
|
|
|
- queryConditionSchema,
|
|
|
|
- queryExecutorList,
|
|
|
|
- queryMatterDetail,
|
|
|
|
- queryMatterTree
|
|
|
|
-} from '@/services/api/business'
|
|
|
|
|
|
+import { queryConditionSchema, queryExecutorList, queryMatterTree } from '@/services/api/business'
|
|
import { queryInstitutionList } from '@/services/api/institution'
|
|
import { queryInstitutionList } from '@/services/api/institution'
|
|
import { querySubjectList } from '@/services/api/subject'
|
|
import { querySubjectList } from '@/services/api/subject'
|
|
import consts from '@/utils/consts'
|
|
import consts from '@/utils/consts'
|
|
@@ -12,7 +7,6 @@ import type { Effect, Reducer } from '@umijs/max'
|
|
export interface BusinessModelState {
|
|
export interface BusinessModelState {
|
|
institutionList: API.InstitutionList[]
|
|
institutionList: API.InstitutionList[]
|
|
subjectList: API.SubjectParams[]
|
|
subjectList: API.SubjectParams[]
|
|
- matterDetail: API.MatterTreeItem[]
|
|
|
|
executorMap: {
|
|
executorMap: {
|
|
[key: string]: API.ExecutorItem[]
|
|
[key: string]: API.ExecutorItem[]
|
|
}
|
|
}
|
|
@@ -53,8 +47,7 @@ const BusinessModel: BusinessModelType = {
|
|
executorMap: {},
|
|
executorMap: {},
|
|
conditionMap: {},
|
|
conditionMap: {},
|
|
matterMap: {},
|
|
matterMap: {},
|
|
- conditionSchema: {},
|
|
|
|
- matterDetail: {}
|
|
|
|
|
|
+ conditionSchema: {}
|
|
},
|
|
},
|
|
effects: {
|
|
effects: {
|
|
*queryInstitution({ payload }, { call, put }) {
|
|
*queryInstitution({ payload }, { call, put }) {
|
|
@@ -79,17 +72,6 @@ const BusinessModel: BusinessModelType = {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- *queryMatterDetail({ payload }, { call, put }) {
|
|
|
|
- const response = yield call(queryMatterDetail, payload)
|
|
|
|
- if (response?.code === consts.RET_CODE.SUCCESS) {
|
|
|
|
- yield put({
|
|
|
|
- type: 'save',
|
|
|
|
- payload: {
|
|
|
|
- matterDetail: response.data
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
*queryMatter({ payload }, { call, put }) {
|
|
*queryMatter({ payload }, { call, put }) {
|
|
const response = yield call(queryMatterTree, payload)
|
|
const response = yield call(queryMatterTree, payload)
|
|
if (response?.code === consts.RET_CODE.SUCCESS) {
|
|
if (response?.code === consts.RET_CODE.SUCCESS) {
|