Browse Source

chore: 逻辑完善

master
wangxiang 1 year ago
parent
commit
76bab8d39f
  1. 2
      src/api/platform/system/controller/gencodeCustomObj.ts
  2. 2
      src/views/system/devtools/genCustomObj/GenCustomObjModal.vue

2
src/api/platform/system/controller/gencodeCustomObj.ts

@ -13,7 +13,7 @@ enum Api {
export const listGencodeCustomObj = (params?: Partial<GencodeCustomObjParams>) => defHttp.get<GencodeCustomObjResult>({ url: Api.list, params }, { isReturnResultResponse: true }); export const listGencodeCustomObj = (params?: Partial<GencodeCustomObjParams>) => defHttp.get<GencodeCustomObjResult>({ url: Api.list, params }, { isReturnResultResponse: true });
export const selectListByValue = (type: string) => defHttp.get<GencodeCustomObj[]>({ url: `${Api.selectListByValue}/${type}` }); export const selectListByValue = (value: string) => defHttp.get<GencodeCustomObj[]>({ url: Api.selectListByValue, params: { value } });
export const addGencodeCustomObj = (params: Partial<GencodeCustomObj>) => defHttp.post({ url: Api.add, data: params }); export const addGencodeCustomObj = (params: Partial<GencodeCustomObj>) => defHttp.post({ url: Api.add, data: params });

2
src/views/system/devtools/genCustomObj/GenCustomObjModal.vue

@ -136,7 +136,7 @@ import {reactive, computed, ref} from 'vue';
{ {
field: 'type', field: 'type',
componentProps: { componentProps: {
onChange: (e: ChangeEvent) => state.tableVisible = e.target.value == '0' onChange: (e: ChangeEvent) => e.target?.value && (state.tableVisible = e.target.value == '0')
} }
}]); }]);
// tag // tag

Loading…
Cancel
Save