Showing
4 changed files
with
17 additions
and
10 deletions
1 | import { BasicPageParams } from '/@/api/model/baseModel'; | 1 | import { BasicPageParams } from '/@/api/model/baseModel'; |
2 | -export type LogQueryParam = BasicPageParams & CameraParam; | 2 | +export type LogQueryParam = BasicPageParams & LoginParam; |
3 | 3 | ||
4 | -export type CameraParam = { | ||
5 | - status?: true; | ||
6 | - name?: string; | ||
7 | - organizationId?: string; | ||
8 | - orderFiled?: string; | ||
9 | - orderType?: string; | 4 | +export type LoginParam = { |
5 | + actionType?: string; | ||
6 | + startTime?: string; | ||
7 | + endTime?: string; | ||
10 | }; | 8 | }; |
1 | <template> | 1 | <template> |
2 | - <BasicDrawer v-bind="$attrs" @register="registerDrawer" title="异常日志详情" width="30%"> | 2 | + <BasicDrawer v-bind="$attrs" @register="registerDrawer" title="异常日志详情" width="40%"> |
3 | <BasicForm @register="registerForm" /> | 3 | <BasicForm @register="registerForm" /> |
4 | </BasicDrawer> | 4 | </BasicDrawer> |
5 | </template> | 5 | </template> |
@@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
9 | import { formSchema } from './config.data'; | 9 | import { formSchema } from './config.data'; |
10 | import { BasicDrawer, useDrawerInner } from '/@/components/Drawer'; | 10 | import { BasicDrawer, useDrawerInner } from '/@/components/Drawer'; |
11 | import { getLogManageDetail } from '/@/api/log/logManager'; | 11 | import { getLogManageDetail } from '/@/api/log/logManager'; |
12 | + import moment from 'moment'; | ||
12 | 13 | ||
13 | export default defineComponent({ | 14 | export default defineComponent({ |
14 | name: 'ContactDrawer', | 15 | name: 'ContactDrawer', |
@@ -26,8 +27,10 @@ | @@ -26,8 +27,10 @@ | ||
26 | setDrawerProps({ confirmLoading: false }); | 27 | setDrawerProps({ confirmLoading: false }); |
27 | const res = await getLogManageDetail(data.record.id); | 28 | const res = await getLogManageDetail(data.record.id); |
28 | const actionData = JSON.stringify(res.actionData); | 29 | const actionData = JSON.stringify(res.actionData); |
30 | + const createdTime = moment(data.record.createdTime).format('YYYY-MM-DD'); | ||
29 | await setFieldsValue(res || data.record); | 31 | await setFieldsValue(res || data.record); |
30 | await setFieldsValue({ actionData }); | 32 | await setFieldsValue({ actionData }); |
33 | + await setFieldsValue({ createdTime }); | ||
31 | }); | 34 | }); |
32 | return { | 35 | return { |
33 | registerDrawer, | 36 | registerDrawer, |
1 | <template> | 1 | <template> |
2 | - <BasicDrawer v-bind="$attrs" @register="registerDrawer" title="操作日志详情" width="30%"> | 2 | + <BasicDrawer v-bind="$attrs" @register="registerDrawer" title="操作日志详情" width="40%"> |
3 | <BasicForm @register="registerForm" /> | 3 | <BasicForm @register="registerForm" /> |
4 | </BasicDrawer> | 4 | </BasicDrawer> |
5 | </template> | 5 | </template> |
@@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
9 | import { formSchema } from './config.data'; | 9 | import { formSchema } from './config.data'; |
10 | import { BasicDrawer, useDrawerInner } from '/@/components/Drawer'; | 10 | import { BasicDrawer, useDrawerInner } from '/@/components/Drawer'; |
11 | import { getLogManageDetail } from '/@/api/log/logManager'; | 11 | import { getLogManageDetail } from '/@/api/log/logManager'; |
12 | + import moment from 'moment'; | ||
12 | 13 | ||
13 | export default defineComponent({ | 14 | export default defineComponent({ |
14 | name: 'ContactDrawer', | 15 | name: 'ContactDrawer', |
@@ -25,9 +26,11 @@ | @@ -25,9 +26,11 @@ | ||
25 | await resetFields(); | 26 | await resetFields(); |
26 | setDrawerProps({ confirmLoading: false }); | 27 | setDrawerProps({ confirmLoading: false }); |
27 | const res = await getLogManageDetail(data.record.id); | 28 | const res = await getLogManageDetail(data.record.id); |
29 | + const createdTime = moment(data.record.createdTime).format('YYYY-MM-DD'); | ||
28 | const actionData = JSON.stringify(res.actionData); | 30 | const actionData = JSON.stringify(res.actionData); |
29 | await setFieldsValue(res || data.record); | 31 | await setFieldsValue(res || data.record); |
30 | await setFieldsValue({ actionData }); | 32 | await setFieldsValue({ actionData }); |
33 | + await setFieldsValue({ createdTime }); | ||
31 | }); | 34 | }); |
32 | return { | 35 | return { |
33 | registerDrawer, | 36 | registerDrawer, |
1 | <template> | 1 | <template> |
2 | - <BasicDrawer v-bind="$attrs" @register="registerDrawer" title="登陆登出日志详情" width="30%"> | 2 | + <BasicDrawer v-bind="$attrs" @register="registerDrawer" title="登陆登出日志详情" width="40%"> |
3 | <BasicForm @register="registerForm" /> | 3 | <BasicForm @register="registerForm" /> |
4 | </BasicDrawer> | 4 | </BasicDrawer> |
5 | </template> | 5 | </template> |
@@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
9 | import { formSchema } from './config.data'; | 9 | import { formSchema } from './config.data'; |
10 | import { BasicDrawer, useDrawerInner } from '/@/components/Drawer'; | 10 | import { BasicDrawer, useDrawerInner } from '/@/components/Drawer'; |
11 | import { getLogManageDetail } from '/@/api/log/logManager'; | 11 | import { getLogManageDetail } from '/@/api/log/logManager'; |
12 | + import moment from 'moment'; | ||
12 | 13 | ||
13 | export default defineComponent({ | 14 | export default defineComponent({ |
14 | name: 'ContactDrawer', | 15 | name: 'ContactDrawer', |
@@ -25,9 +26,11 @@ | @@ -25,9 +26,11 @@ | ||
25 | await resetFields(); | 26 | await resetFields(); |
26 | setDrawerProps({ confirmLoading: false }); | 27 | setDrawerProps({ confirmLoading: false }); |
27 | const res = await getLogManageDetail(data.record.id); | 28 | const res = await getLogManageDetail(data.record.id); |
29 | + const createdTime = moment(data.record.createdTime).format('YYYY-MM-DD'); | ||
28 | const actionData = JSON.stringify(res.actionData); | 30 | const actionData = JSON.stringify(res.actionData); |
29 | await setFieldsValue(res || data.record); | 31 | await setFieldsValue(res || data.record); |
30 | await setFieldsValue({ actionData }); | 32 | await setFieldsValue({ actionData }); |
33 | + await setFieldsValue({ createdTime }); | ||
31 | }); | 34 | }); |
32 | return { | 35 | return { |
33 | registerDrawer, | 36 | registerDrawer, |