diff --git a/admin/package.json b/admin/package.json index bbf8e3a..e5101f4 100644 --- a/admin/package.json +++ b/admin/package.json @@ -28,6 +28,7 @@ "postcss-import": "^14.1.0", "postcss-nested": "^5.0.6", "postcss-simple-vars": "^6.0.3", + "screenfull": "^6.0.1", "tailwindcss": "^3.0.24", "typescript": "^4.5.4", "unplugin-vue-components": "^0.19.3", @@ -36,4 +37,4 @@ "vue-router": "^4.0.13", "vue-tsc": "^0.29.8" } -} \ No newline at end of file +} diff --git a/admin/src/api/api_dtm.ts b/admin/src/api/api_dtm.ts index b0b52d6..e3793dd 100644 --- a/admin/src/api/api_dtm.ts +++ b/admin/src/api/api_dtm.ts @@ -3,7 +3,7 @@ import request from '/@/utils/request' export interface IListAllTransactionsReq { limit: number - position?: number + position?: string } export function listAllTransactions(payload: IListAllTransactionsReq): Promise> { @@ -14,6 +14,14 @@ export function listAllTransactions(payload: IListAllTransactionsReq): Promis }) } +export function getTransaction(payload: {gid: string}): Promise> { + return request({ + url: '/api/dtmsvr/query', + method: 'get', + params: payload + }) +} + export function getDtmVersion(): Promise> { return request({ url: '/api/dtmsvr/version', diff --git a/admin/src/components.d.ts b/admin/src/components.d.ts index 1c6807f..acd11d1 100644 --- a/admin/src/components.d.ts +++ b/admin/src/components.d.ts @@ -14,11 +14,14 @@ declare module '@vue/runtime-core' { ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider'] AMenu: typeof import('ant-design-vue/es')['Menu'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] + AModal: typeof import('ant-design-vue/es')['Modal'] ASubMenu: typeof import('ant-design-vue/es')['SubMenu'] ATable: typeof import('ant-design-vue/es')['Table'] ATag: typeof import('ant-design-vue/es')['Tag'] + ATextarea: typeof import('ant-design-vue/es')['Textarea'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + Screenfull: typeof import('./components/Screenfull/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] } } diff --git a/admin/src/components/Screenfull/index.vue b/admin/src/components/Screenfull/index.vue new file mode 100644 index 0000000..6f12919 --- /dev/null +++ b/admin/src/components/Screenfull/index.vue @@ -0,0 +1,40 @@ + + diff --git a/admin/src/components/SvgIcon/index.vue b/admin/src/components/SvgIcon/index.vue index f6fd3a5..29bd947 100644 --- a/admin/src/components/SvgIcon/index.vue +++ b/admin/src/components/SvgIcon/index.vue @@ -30,6 +30,8 @@ const styleExternalIcon = () => {