|
@@ -19,10 +19,16 @@
|
|
getTextbookInfoSubscriptionList,
|
|
getTextbookInfoSubscriptionList,
|
|
getTextbookInfoWarehouseList,
|
|
getTextbookInfoWarehouseList,
|
|
} from '/@/services/apis/TextbookController';
|
|
} from '/@/services/apis/TextbookController';
|
|
|
|
+ import { getDataOption } from '/@/api/system/dic';
|
|
|
|
+
|
|
const DescriptionsItem = Descriptions.Item;
|
|
const DescriptionsItem = Descriptions.Item;
|
|
const TabPane = Tabs.TabPane;
|
|
const TabPane = Tabs.TabPane;
|
|
const dataInfo = ref();
|
|
const dataInfo = ref();
|
|
- const [modalReg, { closeModal }] = useModalInner((data) => {
|
|
|
|
|
|
+ const [modalReg, { closeModal }] = useModalInner(async (data) => {
|
|
|
|
+ const dicList = await getDataOption({ code: 'textbook_category' });
|
|
|
|
+ data['textbookCategory'] = dicList.filter(
|
|
|
|
+ (item) => item.value === data['textbookCategory'],
|
|
|
|
+ )[0]?.label;
|
|
dataInfo.value = data;
|
|
dataInfo.value = data;
|
|
});
|
|
});
|
|
const [tableReg, { setColumns, setTableData }] = useTable({
|
|
const [tableReg, { setColumns, setTableData }] = useTable({
|