| | |
| | | :before-change="() => setCategoryVis(row)" |
| | | /> |
| | | </template> |
| | | <template #category="{ row }"> |
| | | {{ row.category?.name }} |
| | | </template> |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | <AddOrEditDictionaryDialog v-bind="dialogProps" /> |
| | |
| | | operationBtnMap, |
| | | }); |
| | | |
| | | const { dictionaryCategoryList, ensureQueryData, getDictionaryCategoryNameByCode } = |
| | | useGetDictionaryCategorySelect(); |
| | | const { dictionaryCategoryList, ensureQueryData } = useGetDictionaryCategorySelect(); |
| | | |
| | | const { getDictionaryDataNameByCode } = useDictionaryDataSelect({ |
| | | const { getDictionaryDataNameByCode, updateDictionaryDataSelect } = useDictionaryDataSelect({ |
| | | categoryCode: CategoryCode.IndustryCategory, |
| | | }); |
| | | |
| | |
| | | let res = await dictionaryServices.saveDictionaryData(params); |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | updateDictionaryDataSelect(); |
| | | getList(paginationState.pageIndex); |
| | | dialogState.dialogVisible = false; |
| | | } |