wenlele 2 years ago
parent
commit
4a04ab16c5
  1. 3
      api/log/development.log
  2. 2
      web/client/src/sections/projectRegime/containers/qrCode.js
  3. 13
      web/log/development.txt

3
api/log/development.log

@ -4168,3 +4168,6 @@ notNull Violation: PatrolPlan.patrolCount cannot be null
2023-01-30 17:16:09.126 - debug: [FS-LOGGER] Init. 2023-01-30 17:16:09.126 - debug: [FS-LOGGER] Init.
2023-01-30 17:16:09.250 - info: [FS-ATTACHMENT] Inject attachment mw into router. 2023-01-30 17:16:09.250 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2023-01-30 17:16:09.250 - info: [FS-AUTH] Inject auth and api mv into router. 2023-01-30 17:16:09.250 - info: [FS-AUTH] Inject auth and api mv into router.
2023-01-30 17:22:36.201 - debug: [FS-LOGGER] Init.
2023-01-30 17:22:36.345 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2023-01-30 17:22:36.345 - info: [FS-AUTH] Inject auth and api mv into router.

2
web/client/src/sections/projectRegime/containers/qrCode.js

@ -98,7 +98,7 @@ const QrCode = (props) => {
<Button type="primary" onClick={() => { <Button type="primary" onClick={() => {
const a = document.createElement('a') const a = document.createElement('a')
const filename = 'picName.jpeg' const filename = firmList?.filter(u => u.value == v.projectId)[0]?.label + '(' + v.name + ')'
a.href = v.qrCode // picSrc 是图片 base64 码,可以直接给 img 的 src 属性,展示图片 a.href = v.qrCode // picSrc 是图片 base64 码,可以直接给 img 的 src 属性,展示图片
a.download = filename a.download = filename
document.body.appendChild(a) document.body.appendChild(a)

13
web/log/development.txt

@ -5581,3 +5581,16 @@
2023-01-31 08:39:58.707 - debug: [FS-LOGGER] Init. 2023-01-31 08:39:58.707 - debug: [FS-LOGGER] Init.
2023-01-31 08:39:58.710 - debug: init fs.attachment and inject it into app(app.fs.attachment) and runtime ctx(ctx.fs.attachment) 2023-01-31 08:39:58.710 - debug: init fs.attachment and inject it into app(app.fs.attachment) and runtime ctx(ctx.fs.attachment)
2023-01-31 08:39:59.052 - info: [Router] Inject api: attachment/index 2023-01-31 08:39:59.052 - info: [Router] Inject api: attachment/index
2023-01-31 08:43:42.292 - debug: [FS-LOGGER] Init.
2023-01-31 08:43:42.296 - debug: init fs.attachment and inject it into app(app.fs.attachment) and runtime ctx(ctx.fs.attachment)
2023-01-31 08:43:42.558 - info: [Router] Inject api: attachment/index
2023-01-31 09:52:24.543 - info: extNames
[
'/_file-server/project/44501f2a-8fc5-4192-9669-efab29f2de23/5',
'jpg'
]
2023-01-31 09:52:47.926 - info: extNames
[
'/_file-server/project/44501f2a-8fc5-4192-9669-efab29f2de23/5',
'jpg'
]

Loading…
Cancel
Save