Browse Source

(*)增加name字段文件名 修改api接口和web取值

master
Archer_cdm 2 years ago
parent
commit
805d2c585c
  1. 3
      api/app/lib/controllers/report/index.js
  2. 5
      api/app/lib/models/reserveItemReport.js
  3. 2
      web/client/src/sections/business/containers/reserveItemsDepSummary.jsx
  4. 2
      web/client/src/sections/business/containers/reserveItemsLostStatistics.jsx
  5. 2
      web/client/src/sections/business/containers/reserveItemsPeriodicStatistics.jsx

3
api/app/lib/controllers/report/index.js

@ -14,7 +14,8 @@ async function getReserveItemReport(ctx, next) {
id: e.id,
date: e.year + '-' + e.month,
path: e.path,
type: e.type
type: e.type,
name: e.name
}
})
ctx.status = 200

5
api/app/lib/models/reserveItemReport.js

@ -31,6 +31,11 @@ module.exports = dc => {
type: DataTypes.STRING,
allowNull: true,
field: "type",
},
name: {
type: DataTypes.STRING,
allowNull: false,
field: "name",
}
}, {
tableName: "reserve_item_report",

2
web/client/src/sections/business/containers/reserveItemsDepSummary.jsx

@ -28,7 +28,7 @@ const ReserveItemsDepSummary = (props) => {
},
{
title: '名称',
dataIndex: 'path',
dataIndex: 'name',
},
{
title: '操作',

2
web/client/src/sections/business/containers/reserveItemsLostStatistics.jsx

@ -28,7 +28,7 @@ const ReserveItemsLostStatistics = (props) => {
},
{
title: '名称',
dataIndex: 'path',
dataIndex: 'name',
},
{
title: '操作',

2
web/client/src/sections/business/containers/reserveItemsPeriodicStatistics.jsx

@ -29,7 +29,7 @@ const ReserveItemsPeriodicStatistics = (props) => {
},
{
title: '名称',
dataIndex: 'path',
dataIndex: 'name',
},
{
title: '操作',

Loading…
Cancel
Save