Browse Source

Merge branch 'dev' of https://gitea.anxinyun.cn/gao.zhiyuan/Highways4Good into dev

release_0.0.4
dengyinhuan 2 years ago
parent
commit
45c415e6c1
  1. 4
      api/.vscode/launch.json
  2. 18
      api/app/lib/controllers/data/project.js
  3. 237
      api/app/lib/controllers/file/index.js
  4. 2
      api/app/lib/controllers/overview/conserve.js
  5. 8
      api/app/lib/index.js
  6. 31
      api/app/lib/models/file-road.js
  7. 32
      api/app/lib/models/file-type.js
  8. 73
      api/app/lib/models/files.js
  9. 21
      api/app/lib/routes/file/index.js
  10. 3
      api/log/development.log
  11. 2
      api/package.json
  12. 1
      web/Dockerfile
  13. 80
      web/client/assets/color.less
  14. 8
      web/client/src/components/Upload/index.js
  15. 89
      web/client/src/sections/fillion/actions/file.js
  16. 2
      web/client/src/sections/fillion/actions/index.js
  17. 4
      web/client/src/sections/fillion/components/bridgeTable.js
  18. 2
      web/client/src/sections/fillion/components/enforceTable.js
  19. 94
      web/client/src/sections/fillion/components/file/functionMenu.js
  20. 43
      web/client/src/sections/fillion/components/file/menu.less
  21. 73
      web/client/src/sections/fillion/components/file/roadModal.js
  22. 46
      web/client/src/sections/fillion/components/file/uploadModal.js
  23. 442
      web/client/src/sections/fillion/components/fileTable.js
  24. 2
      web/client/src/sections/fillion/components/highways/highwaysdata.js
  25. 2
      web/client/src/sections/fillion/components/highwaysTable.js
  26. 22
      web/client/src/sections/fillion/components/infor/details.js
  27. 2
      web/client/src/sections/fillion/components/inforTable.js
  28. 8
      web/client/src/sections/fillion/components/operationalTable.js
  29. 66
      web/client/src/sections/fillion/components/project/project.js
  30. 33
      web/client/src/sections/fillion/components/protable.less
  31. 4
      web/client/src/sections/fillion/components/publicTable.js
  32. 9
      web/client/src/sections/fillion/components/transportationTable.js
  33. 40
      web/client/src/sections/fillion/containers/file.js
  34. 3
      web/client/src/sections/fillion/containers/index.js
  35. 3
      web/client/src/sections/fillion/nav-item.js
  36. 19
      web/client/src/sections/fillion/routes.js
  37. 2
      web/client/src/sections/quanju/containers/footer/build/index.js
  38. 2
      web/client/src/themes/light.json
  39. 217
      web/client/src/utils/webapi.js
  40. 30721
      web/log/development.txt
  41. 22
      web/package-lock.json
  42. 2
      web/package.json

4
api/.vscode/launch.json

@ -13,8 +13,8 @@
"NODE_ENV": "development" "NODE_ENV": "development"
}, },
"args": [ "args": [
"-p 14000", "-p 4000",
"-f http://localhost:14000", "-f http://localhost:4000",
"-g postgres://postgres:123@10.8.30.32:5432/highways4good", "-g postgres://postgres:123@10.8.30.32:5432/highways4good",
"--qnak XuDgkao6cL0HidoMAPnA5OB10Mc_Ew08mpIfRJK5", "--qnak XuDgkao6cL0HidoMAPnA5OB10Mc_Ew08mpIfRJK5",
"--qnsk yewcieZLzKZuDfig0wLZ9if9jKp2P_1jd3CMJPSa", "--qnsk yewcieZLzKZuDfig0wLZ9if9jKp2P_1jd3CMJPSa",

18
api/app/lib/controllers/data/project.js

@ -3,14 +3,24 @@
async function projectGet (ctx) { async function projectGet (ctx) {
try { try {
const models = ctx.fs.dc.models; const models = ctx.fs.dc.models;
const { type } = ctx.query; const { type, entryName } = ctx.query;
const projectRes = await models.Project.findAll({ let findOption = {
where: { where: {
type
}, },
order: [['id', 'DESC']] order: [['id', 'DESC']]
}) }
if (type) {
findOption.where.type = type
}
if (entryName) {
findOption.where.entryName = {
$like: `%${entryName}%`
}
}
const projectRes = await models.Project.findAll(findOption)
ctx.status = 200; ctx.status = 200;
ctx.body = projectRes ctx.body = projectRes

237
api/app/lib/controllers/file/index.js

@ -0,0 +1,237 @@
'use strict';
const request = require('superagent');
const moment = require('moment');
async function createProjectDir(ctx, next) {
let error = { message: '新增项目目录失败' }, rs = null;
const { roadName } = ctx.query;
try {
const models = ctx.fs.dc.models;
rs = await models.FileRoad.create({
roadName
})
error = null;
} catch (err) {
ctx.status = 500;
ctx.body = { detail: err, ...error };
}
if (error) {
ctx.status = 400;
ctx.body = { ...error };
} else {
ctx.status = 200;
ctx.body = { message: '新增项目目录成功!', result: rs };
}
}
async function getFileDirs(ctx, next) {
let error = { message: '查询项目目录失败' }, rslt = null;
try {
const models = ctx.fs.dc.models;
rslt = await models.FileRoad.findAll({
// include: [{
// model: models.FileType
// }]
})
error = null;
} catch (err) {
ctx.status = 500;
ctx.body = { detail: err, ...error };
}
if (error) {
ctx.status = 400;
ctx.body = { ...error };
} else {
ctx.status = 200;
ctx.body = rslt;
}
}
async function delFileDir(ctx, next) {
let error = { message: '文件夹删除失败' };
let rslt = [], fileDirIds = [];
try {
const { id } = ctx.query, // type == parent / child
models = ctx.fs.dc.models;
const transaction = await ctx.fs.dc.orm.transaction();
await models.FileRoad.destroy({ where: { rId: id }, transaction })
await models.Files.destroy({ where: { roadId: id }, transaction })
await transaction.commit();
error = null;
} catch (err) {
await transaction.rollback();
ctx.status = 500;
ctx.body = { detail: err, ...error };
}
if (error) {
ctx.status = 400;
ctx.body = { ...error };
} else {
ctx.status = 200;
ctx.body = { message: '文件夹删除成功' };
}
}
async function uploadFile(ctx, next) {
let error = { message: '文件上传失败' }, rslt = null;
const { typeId, userId, userName, fileSize, fileName, fileUrl, fileExt, roadId } = ctx.request.body
try {
const models = ctx.fs.dc.models;
rslt = await models.Files.create({
fId: typeId,
uploaderId: userId,
roadId,
createDate: moment().format('YYYY-MM-DD HH:mm:ss'),
fileSize,
fileName,
fileUrl,
fileExt,
uploaderName: userName,
isDelete: false
})
error = null;
} catch (err) {
ctx.status = 500;
ctx.body = { detail: err, ...error };
}
if (error) {
ctx.status = 400;
ctx.body = { ...error };
} else {
ctx.status = 200;
ctx.body = { message: '文件上传成功', rslt };
}
}
async function deleteFile(ctx, next) {
let error = { message: '文件删除失败' }, rslt = null;
const { id } = ctx.query;
try {
const models = ctx.fs.dc.models;
rslt = await models.Files.update({
isDelete: true
}, {
where: { id: id }
})
error = null;
} catch (err) {
ctx.status = 500;
ctx.body = { detail: err, ...error };
}
if (error) {
ctx.status = 400;
ctx.body = { ...error };
} else {
ctx.status = 200;
ctx.body = { message: '文件删除成功', rslt };
}
}
async function getFileList(ctx, next) {
let error = { message: '文件上传失败' }, rslt = { list: [], counter: 0, type: '' };
const { fId, limit, offset, searchTxt, roadId } = ctx.query;
let limit_ = limit, offset_ = offset;
if (limit == null || limit < 0) {
limit_ = 10;
}
if (offset == null || offset < 0) {
offset_ = 0;
}
try {
const models = ctx.fs.dc.models;
let queryOptions = { isDelete: false }
if (searchTxt && searchTxt.trim() != '') {
queryOptions.fileName = { $like: `%${searchTxt}%` }
}
if (fId) {
queryOptions.fId = fId
}
if (roadId) {
queryOptions.roadId = roadId
}
rslt.type = await models.FileType.findOne({
where: { fId }
})
rslt.list = await models.Files.findAll({
where: queryOptions,
offset: offset_,
limit: limit_,
order: [
['id', 'DESC']
]
})
rslt.counter = await models.Files.count({
where: queryOptions
})
error = null;
} catch (err) {
ctx.status = 500;
ctx.body = { detail: err, ...error };
}
if (error) {
ctx.status = 400;
ctx.body = { ...error };
} else {
ctx.status = 200;
ctx.body = rslt;
}
}
function updateStructDir(opts) {
return async function (ctx, next) {
let error = { message: '文件夹名称更新失败' };
const models = ctx.fs.dc.models;
const { id, name } = ctx.query;
try {
await models.FileRoad.update({ roadName: name }, {
where: {
id: id
},
})
error = null;
} catch (err) {
ctx.status = 500;
ctx.body = { detail: err, ...error };
}
if (error) {
ctx.status = 400;
ctx.body = { ...error };
} else {
ctx.status = 200;
ctx.body = { message: '文件夹名称更新成功' };
}
}
}
module.exports = {
uploadFile,
deleteFile,
getFileList,
createProjectDir,
delFileDir,
getFileDirs,
updateStructDir,
}

2
api/app/lib/controllers/overview/conserve.js

@ -18,7 +18,9 @@ async function statistic (ctx) {
} }
if (projectType) { if (projectType) {
findOption.where.projectType = projectType; findOption.where.projectType = projectType;
} }
const reportRes = await await models.Report.findAll(findOption) const reportRes = await await models.Report.findAll(findOption)

8
api/app/lib/index.js

@ -26,7 +26,7 @@ module.exports.models = function (dc) { // dc = { orm: Sequelize对象, ORM: Seq
require(`./models/${filename}`)(dc) require(`./models/${filename}`)(dc)
}); });
const { User, Department, Report } = dc.models; const { User, Department, Report, FileType, Road, Files, FileRoad } = dc.models;
// 定义外键 // 定义外键
User.belongsTo(Department, { foreignKey: 'departmentId', targetKey: 'id' }); User.belongsTo(Department, { foreignKey: 'departmentId', targetKey: 'id' });
Department.hasMany(User, { foreignKey: 'departmentId', sourceKey: 'id' }); Department.hasMany(User, { foreignKey: 'departmentId', sourceKey: 'id' });
@ -34,4 +34,10 @@ module.exports.models = function (dc) { // dc = { orm: Sequelize对象, ORM: Seq
// 定义外键 // 定义外键
Report.belongsTo(User, { foreignKey: 'userId', targetKey: 'id' }); Report.belongsTo(User, { foreignKey: 'userId', targetKey: 'id' });
User.hasMany(Report, { foreignKey: 'userId', sourceKey: 'id' }); User.hasMany(Report, { foreignKey: 'userId', sourceKey: 'id' });
Files.belongsTo(FileType, { foreignKey: 'fId', targetKey: 'fId' });
FileType.hasMany(Files, { foreignKey: 'fId', targetKey: 'fId' });
// Files.belongsTo(Road, { foreignKey: 'roadId', targetKey: 'id' });
// Road.hasMany(Files, { foreignKey: 'roadId', targetKey: 'id' });
}; };

31
api/app/lib/models/file-road.js

@ -0,0 +1,31 @@
'use strict';
module.exports = function (dc) {
const FileRoad = dc.orm.define(
'fileRoad',
{
rId: {
field: 'id',
type: dc.ORM.INTEGER,
primaryKey: true,
autoIncrement: true,
allowNull: false
},
roadName: {
field: 'road_name',
type: dc.ORM.STRING,
},
originalData: {
field: 'original_data',
type: dc.ORM.STRING,
},
},
{
tableName: 'file_road'
}
);
dc.models.FileRoad = FileRoad;
return FileRoad;
};

32
api/app/lib/models/file-type.js

@ -0,0 +1,32 @@
'use strict';
module.exports = function (dc) {
const FileType = dc.orm.define(
'fileType',
{
fId: {
field: 'id',
type: dc.ORM.INTEGER,
primaryKey: true,
autoIncrement: true,
allowNull: false
},
fileType: {
field: 'file_type',
type: dc.ORM.STRING,
},
rId: {
field: 'file_road',
type: dc.ORM.INTEGER,
allowNull: false
},
},
{
tableName: 'file_type'
}
);
dc.models.FileType = FileType;
return FileType;
};

73
api/app/lib/models/files.js

@ -0,0 +1,73 @@
'use strict';
module.exports = function (dc) {
const Files = dc.orm.define(
'files',
{
id: {
field: 'id',
type: dc.ORM.INTEGER,
primaryKey: true,
autoIncrement: true,
allowNull: false
},
fId: {
field: 'file_type',
type: dc.ORM.INTEGER
},
roadId: {
field: 'road_id',
type: dc.ORM.INTEGER
},
uploaderId: {
field: 'uploader_id',
type: dc.ORM.INTEGER
},
uploaderName: {
field: 'uploader_name',
type: dc.ORM.INTEGER
},
startDate: {
field: 'start_date',
type: dc.ORM.DATE,
},
endDate: {
field: 'end_date',
type: dc.ORM.DATE,
},
createDate: {
field: 'create_date',
type: dc.ORM.DATE,
},
fileSize: {
field: 'file_size',
type: dc.ORM.INTEGER,
},
fileName: {
field: 'file_name',
type: dc.ORM.STRING,
},
fileUrl: {
field: 'file_url',
type: dc.ORM.STRING,
},
fileExt: {
field: 'file_ext',
type: dc.ORM.STRING,
},
isDelete: {
field: 'is_delete',
type: dc.ORM.BOOLEAN,
},
},
{
tableName: 'files'
}
);
dc.models.Files = Files;
return Files;
};

21
api/app/lib/routes/file/index.js

@ -0,0 +1,21 @@
'use strict';
const pan = require('../../controllers/file');
module.exports = function (app, router, opts, panCode) {
router.get('/create/struct/dir', pan.createProjectDir);
router.get('/get/file/dirs', pan.getFileDirs);
router.get('/netdisk-files/dir/delete', pan.delFileDir);
router.get('/netdisk-files/struct/dir/update', pan.updateStructDir(opts))
router.post('/netdisk-files/upload', pan.uploadFile);
router.get('/netdisk-files/delete', pan.deleteFile);
router.get('/netdisk-files/query', pan.getFileList);
};

3
api/log/development.log

@ -10656,3 +10656,6 @@ headers: {}
2022-07-28 18:34:55.231 - error: path: /publicity, error: TypeError: values.map is not a function 2022-07-28 18:34:55.231 - error: path: /publicity, error: TypeError: values.map is not a function
2022-07-28 18:35:45.669 - error: path: /publicity, error: TypeError: values.map is not a function 2022-07-28 18:35:45.669 - error: path: /publicity, error: TypeError: values.map is not a function
2022-07-28 18:37:40.324 - error: path: /publicity, error: TypeError: values.map is not a function 2022-07-28 18:37:40.324 - error: path: /publicity, error: TypeError: values.map is not a function
2022-07-28 21:48:22.652 - debug: [FS-LOGGER] Init.
2022-07-28 21:48:22.760 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-28 21:48:22.760 - info: [FS-AUTH] Inject auth and api mv into router.

2
api/package.json

@ -5,7 +5,7 @@
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
"test": "set DEBUG=true&&\"node_modules/.bin/mocha\" --harmony --reporter spec app/test/*.test.js", "test": "set DEBUG=true&&\"node_modules/.bin/mocha\" --harmony --reporter spec app/test/*.test.js",
"start": "set NODE_ENV=development&&node server -p 14000 -g postgres://postgres:123@10.8.30.32:5432/yinjiguanli -f http://localhost:14000", "start": "set NODE_ENV=development&&node server -p 4000 -g postgres://postgres:123@10.8.30.32:5432/highways4good -f http://localhost:14000",
"start:linux": "export NODE_ENV=development&&node server -p 4000 -g postgres://FashionAdmin:123456@10.8.30.39:5432/pm1", "start:linux": "export NODE_ENV=development&&node server -p 4000 -g postgres://FashionAdmin:123456@10.8.30.39:5432/pm1",
"automate": "sequelize-automate -c sequelize-automate.config.js" "automate": "sequelize-automate -c sequelize-automate.config.js"
}, },

1
web/Dockerfile

@ -10,6 +10,7 @@ RUN npm config set registry=http://10.8.30.22:7000
RUN echo "{\"time\":\"$BUILD_TIMESTAMP\",\"build\": \"$BUILD_NUMBER\",\"revision\": \"$SVN_REVISION_1\",\"URL\":\"$SVN_URL_1\"}" > version.json RUN echo "{\"time\":\"$BUILD_TIMESTAMP\",\"build\": \"$BUILD_NUMBER\",\"revision\": \"$SVN_REVISION_1\",\"URL\":\"$SVN_URL_1\"}" > version.json
RUN npm cache clean -f RUN npm cache clean -f
RUN npm install --registry http://10.8.30.22:7000 RUN npm install --registry http://10.8.30.22:7000
RUN rm -rf package-lock.json
RUN npm run build RUN npm run build
RUN rm -rf client/src RUN rm -rf client/src
RUN rm -rf node_modules RUN rm -rf node_modules

80
web/client/assets/color.less

@ -555,18 +555,6 @@ html {--antd-wave-shadow-color: @primary-color;}
.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled], .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active {color: @disabled-color;border-color: @border-color-base;background: @disabled-bg;box-shadow: none;} .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled], .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active {color: @disabled-color;border-color: @border-color-base;background: @disabled-bg;box-shadow: none;}
.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {color: currentcolor;} .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child {color: currentcolor;}
.ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {background: transparent;} .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled] > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:hover > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:focus > a:only-child::after, .ant-btn-background-ghost.ant-btn-dangerous.ant-btn-link[disabled]:active > a:only-child::after {background: transparent;}
a.ant-btn-disabled,
a.ant-btn-disabled:hover,
a.ant-btn-disabled:focus,
a.ant-btn-disabled:active {color: @disabled-color;border-color: transparent;background: transparent;box-shadow: none;}
a.ant-btn-disabled > a:only-child,
a.ant-btn-disabled:hover > a:only-child,
a.ant-btn-disabled:focus > a:only-child,
a.ant-btn-disabled:active > a:only-child {color: currentcolor;}
a.ant-btn-disabled > a:only-child::after,
a.ant-btn-disabled:hover > a:only-child::after,
a.ant-btn-disabled:focus > a:only-child::after,
a.ant-btn-disabled:active > a:only-child::after {background: transparent;}
.ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child), .ant-btn-group-rtl.ant-btn-group .ant-btn-primary + .ant-btn-primary {border-right-color: color(~`colorPalette("@{primary-color}", 5)`);border-left-color: @border-color-base;} .ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child), .ant-btn-group-rtl.ant-btn-group .ant-btn-primary + .ant-btn-primary {border-right-color: color(~`colorPalette("@{primary-color}", 5)`);border-left-color: @border-color-base;}
.ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child)[disabled], .ant-btn-group-rtl.ant-btn-group .ant-btn-primary + .ant-btn-primary[disabled] {border-right-color: @border-color-base;border-left-color: color(~`colorPalette("@{primary-color}", 5)`);} .ant-btn-group-rtl.ant-btn-group .ant-btn-primary:last-child:not(:first-child)[disabled], .ant-btn-group-rtl.ant-btn-group .ant-btn-primary + .ant-btn-primary[disabled] {border-right-color: @border-color-base;border-left-color: color(~`colorPalette("@{primary-color}", 5)`);}
.ant-picker-calendar {color: @text-color;background: @calendar-full-bg;} .ant-picker-calendar {color: @text-color;background: @calendar-full-bg;}
@ -601,6 +589,7 @@ a.ant-btn-disabled:active > a:only-child::after {background: transparent;}
.ant-card-type-inner .ant-card-head {background: @background-color-light;} .ant-card-type-inner .ant-card-head {background: @background-color-light;}
.ant-card-meta-title {color: @heading-color;} .ant-card-meta-title {color: @heading-color;}
.ant-card-meta-description {color: @text-color-secondary;} .ant-card-meta-description {color: @text-color-secondary;}
.ant-card-loading-block {background: linear-gradient(90deg, fade(@card-skeleton-bg, 20%), fade(@card-skeleton-bg, 40%), fade(@card-skeleton-bg, 20%));background-size: 600% 600%;border-radius: 2px;}
.ant-carousel {color: @text-color;} .ant-carousel {color: @text-color;}
.ant-carousel .slick-slider {-webkit-tap-highlight-color: transparent;} .ant-carousel .slick-slider {-webkit-tap-highlight-color: transparent;}
.ant-carousel .slick-prev, .ant-carousel .slick-next {color: transparent;background: transparent;border: 0;} .ant-carousel .slick-prev, .ant-carousel .slick-next {color: transparent;background: transparent;border: 0;}
@ -674,10 +663,8 @@ a.ant-btn-disabled:active > a:only-child::after {background: transparent;}
.ant-comment-actions > li > span:hover {color: @comment-action-hover-color;} .ant-comment-actions > li > span:hover {color: @comment-action-hover-color;}
.ant-picker-status-error.ant-picker, .ant-picker-status-error.ant-picker:not([disabled]):hover {background-color: @input-bg;border-color: #ff4d4f;} .ant-picker-status-error.ant-picker, .ant-picker-status-error.ant-picker:not([disabled]):hover {background-color: @input-bg;border-color: #ff4d4f;}
.ant-picker-status-error.ant-picker-focused, .ant-picker-status-error.ant-picker:focus {border-color: #ff7875;box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);border-right-width: 1px;} .ant-picker-status-error.ant-picker-focused, .ant-picker-status-error.ant-picker:focus {border-color: #ff7875;box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);border-right-width: 1px;}
.ant-picker-status-error.ant-picker .ant-picker-active-bar {background: #ff7875;}
.ant-picker-status-warning.ant-picker, .ant-picker-status-warning.ant-picker:not([disabled]):hover {background-color: @input-bg;border-color: #faad14;} .ant-picker-status-warning.ant-picker, .ant-picker-status-warning.ant-picker:not([disabled]):hover {background-color: @input-bg;border-color: #faad14;}
.ant-picker-status-warning.ant-picker-focused, .ant-picker-status-warning.ant-picker:focus {border-color: #ffc53d;box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);border-right-width: 1px;} .ant-picker-status-warning.ant-picker-focused, .ant-picker-status-warning.ant-picker:focus {border-color: #ffc53d;box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);border-right-width: 1px;}
.ant-picker-status-warning.ant-picker .ant-picker-active-bar {background: #ffc53d;}
.ant-picker {color: @text-color;background: @picker-bg;border: 1px solid @border-color-base;border-radius: 2px;} .ant-picker {color: @text-color;background: @picker-bg;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-picker:hover, .ant-picker-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px;} .ant-picker:hover, .ant-picker-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px;}
.ant-input-rtl .ant-picker:hover, .ant-input-rtl .ant-picker-focused {border-right-width: 0;border-left-width: 1px !important;} .ant-input-rtl .ant-picker:hover, .ant-input-rtl .ant-picker-focused {border-right-width: 0;border-left-width: 1px !important;}
@ -708,7 +695,7 @@ a.ant-btn-disabled:active > a:only-child::after {background: transparent;}
.ant-picker-range .ant-picker-active-bar {background: @primary-color;} .ant-picker-range .ant-picker-active-bar {background: @primary-color;}
.ant-picker-dropdown {color: @text-color;} .ant-picker-dropdown {color: @text-color;}
.ant-picker-ranges .ant-picker-preset > .ant-tag-blue {color: @primary-color;background: color(~`colorPalette("@{primary-color}", 1)`);border-color: color(~`colorPalette("@{primary-color}", 3)`);} .ant-picker-ranges .ant-picker-preset > .ant-tag-blue {color: @primary-color;background: color(~`colorPalette("@{primary-color}", 1)`);border-color: color(~`colorPalette("@{primary-color}", 3)`);}
.ant-picker-range-arrow {box-shadow: 2px 2px 6px -2px rgba(0, 0, 0, 0.1);border-radius: 0 0 2px;} .ant-picker-range-arrow {background: linear-gradient(135deg, transparent 40%, @calendar-bg 40%);box-shadow: 2px 2px 6px -2px rgba(0, 0, 0, 0.1);border-radius: 0 0 2px;}
.ant-picker-range-arrow::before {background: @calendar-bg;background-repeat: no-repeat;background-position: -10px -10px;} .ant-picker-range-arrow::before {background: @calendar-bg;background-repeat: no-repeat;background-position: -10px -10px;}
.ant-picker-panel-container {background: @calendar-bg;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} .ant-picker-panel-container {background: @calendar-bg;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);}
.ant-picker-panel-container .ant-picker-panel {background: transparent;border-width: 0 0 1px 0;border-radius: 0;} .ant-picker-panel-container .ant-picker-panel {background: transparent;border-width: 0 0 1px 0;border-radius: 0;}
@ -814,7 +801,7 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-dropdown-menu-item.ant-dropdown-menu-item-danger {color: #ff4d4f;} .ant-dropdown-menu-item.ant-dropdown-menu-item-danger {color: #ff4d4f;}
.ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover {color: #fff;background-color: #ff4d4f;} .ant-dropdown-menu-item.ant-dropdown-menu-item-danger:hover {color: #fff;background-color: #ff4d4f;}
.ant-dropdown {color: @text-color;} .ant-dropdown {color: @text-color;}
.ant-dropdown-arrow {border-radius: 0 0 2px;} .ant-dropdown-arrow {background: linear-gradient(135deg, transparent 40%, @popover-bg 40%);border-radius: 0 0 2px;}
.ant-dropdown-arrow::before {background: @popover-bg;background-repeat: no-repeat;background-position: -10px -10px;} .ant-dropdown-arrow::before {background: @popover-bg;background-repeat: no-repeat;background-position: -10px -10px;}
.ant-dropdown-placement-top > .ant-dropdown-arrow, .ant-dropdown-placement-topLeft > .ant-dropdown-arrow, .ant-dropdown-placement-topRight > .ant-dropdown-arrow {box-shadow: 3px 3px 7px -3px rgba(0, 0, 0, 0.1);} .ant-dropdown-placement-top > .ant-dropdown-arrow, .ant-dropdown-placement-topLeft > .ant-dropdown-arrow, .ant-dropdown-placement-topRight > .ant-dropdown-arrow {box-shadow: 3px 3px 7px -3px rgba(0, 0, 0, 0.1);}
.ant-dropdown-placement-bottom > .ant-dropdown-arrow, .ant-dropdown-placement-bottomLeft > .ant-dropdown-arrow, .ant-dropdown-placement-bottomRight > .ant-dropdown-arrow {box-shadow: 2px 2px 5px -2px rgba(0, 0, 0, 0.1);} .ant-dropdown-placement-bottom > .ant-dropdown-arrow, .ant-dropdown-placement-bottomLeft > .ant-dropdown-arrow, .ant-dropdown-placement-bottomRight > .ant-dropdown-arrow {box-shadow: 2px 2px 5px -2px rgba(0, 0, 0, 0.1);}
@ -949,7 +936,7 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search > .ant-input-group > .ant-input {border-radius: 2px 0 0 2px;} .ant-input-group.ant-input-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search > .ant-input-group > .ant-input {border-radius: 2px 0 0 2px;}
.ant-input-group > .ant-input-rtl:first-child, .ant-input-group-rtl .ant-input-group-addon:first-child {border-radius: 0 2px 2px 0;} .ant-input-group > .ant-input-rtl:first-child, .ant-input-group-rtl .ant-input-group-addon:first-child {border-radius: 0 2px 2px 0;}
.ant-input-group-rtl .ant-input-group-addon:first-child {border-right: 1px solid @border-color-base;border-left: 0;} .ant-input-group-rtl .ant-input-group-addon:first-child {border-right: 1px solid @border-color-base;border-left: 0;}
.ant-input-group-rtl .ant-input-group-addon:last-child {border-right: 0;border-left: 1px solid @border-color-base;border-radius: 2px 0 0 2px;} .ant-input-group-rtl .ant-input-group-addon:last-child {border-right: 0;border-left: 1px solid @border-color-base;}
.ant-input-group-rtl.ant-input-group > .ant-input:last-child, .ant-input-group-rtl.ant-input-group-addon:last-child {border-radius: 2px 0 0 2px;} .ant-input-group-rtl.ant-input-group > .ant-input:last-child, .ant-input-group-rtl.ant-input-group-addon:last-child {border-radius: 2px 0 0 2px;}
.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:first-child) {border-radius: 2px 0 0 2px;} .ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:first-child) {border-radius: 2px 0 0 2px;}
.ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:last-child) {border-radius: 0 2px 2px 0;} .ant-input-group-rtl.ant-input-group .ant-input-affix-wrapper:not(:last-child) {border-radius: 0 2px 2px 0;}
@ -957,10 +944,6 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:first-child, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select:first-child > .ant-select-selector, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:first-child .ant-input, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker:first-child .ant-input {border-radius: 0 2px 2px 0;} .ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:first-child, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select:first-child > .ant-select-selector, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:first-child .ant-input, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker:first-child .ant-input {border-radius: 0 2px 2px 0;}
.ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:last-child, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select:last-child > .ant-select-selector, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:last-child .ant-input, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker:last-child .ant-input, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker-focused:last-child .ant-input {border-left-width: 1px;border-radius: 2px 0 0 2px;} .ant-input-group-rtl.ant-input-group.ant-input-group-compact > *:last-child, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select:last-child > .ant-select-selector, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-select-auto-complete:last-child .ant-input, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker:last-child .ant-input, .ant-input-group-rtl.ant-input-group.ant-input-group-compact > .ant-cascader-picker-focused:last-child .ant-input {border-left-width: 1px;border-radius: 2px 0 0 2px;}
.ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl:not(:last-child).ant-input-search > .ant-input-group > .ant-input {border-radius: 0 2px 2px 0;} .ant-input-group.ant-input-group-compact .ant-input-group-wrapper-rtl:not(:last-child).ant-input-search > .ant-input-group > .ant-input {border-radius: 0 2px 2px 0;}
.ant-input-group > .ant-input-rtl:first-child {border-radius: 0 2px 2px 0;}
.ant-input-group > .ant-input-rtl:last-child {border-radius: 2px 0 0 2px;}
.ant-input-group-rtl .ant-input-group-addon:first-child {border-right: 1px solid @border-color-base;border-left: 0;border-radius: 0 2px 2px 0;}
.ant-input-group-rtl .ant-input-group-addon:last-child {border-right: 0;border-left: 1px solid @border-color-base;border-radius: 2px 0 0 2px;}
.ant-input-password-icon.anticon {color: @text-color-secondary;} .ant-input-password-icon.anticon {color: @text-color-secondary;}
.ant-input-password-icon.anticon:hover {color: @input-icon-hover-color;} .ant-input-password-icon.anticon:hover {color: @input-icon-hover-color;}
.ant-input-textarea-show-count::after {color: @text-color-secondary;} .ant-input-textarea-show-count::after {color: @text-color-secondary;}
@ -1046,7 +1029,7 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search > .ant-input-group > .ant-input {border-radius: 2px 0 0 2px;} .ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper:not(:last-child).ant-input-search > .ant-input-group > .ant-input {border-radius: 2px 0 0 2px;}
.ant-input-number-group > .ant-input-number-rtl:first-child, .ant-input-number-group-rtl .ant-input-number-group-addon:first-child {border-radius: 0 2px 2px 0;} .ant-input-number-group > .ant-input-number-rtl:first-child, .ant-input-number-group-rtl .ant-input-number-group-addon:first-child {border-radius: 0 2px 2px 0;}
.ant-input-number-group-rtl .ant-input-number-group-addon:first-child {border-right: 1px solid @border-color-base;border-left: 0;} .ant-input-number-group-rtl .ant-input-number-group-addon:first-child {border-right: 1px solid @border-color-base;border-left: 0;}
.ant-input-number-group-rtl .ant-input-number-group-addon:last-child {border-right: 0;border-left: 1px solid @border-color-base;border-radius: 2px 0 0 2px;} .ant-input-number-group-rtl .ant-input-number-group-addon:last-child {border-right: 0;border-left: 1px solid @border-color-base;}
.ant-input-number-group-rtl.ant-input-number-group > .ant-input-number:last-child, .ant-input-number-group-rtl.ant-input-number-group-addon:last-child {border-radius: 2px 0 0 2px;} .ant-input-number-group-rtl.ant-input-number-group > .ant-input-number:last-child, .ant-input-number-group-rtl.ant-input-number-group-addon:last-child {border-radius: 2px 0 0 2px;}
.ant-input-number-group-rtl.ant-input-number-group .ant-input-number-affix-wrapper:not(:first-child) {border-radius: 2px 0 0 2px;} .ant-input-number-group-rtl.ant-input-number-group .ant-input-number-affix-wrapper:not(:first-child) {border-radius: 2px 0 0 2px;}
.ant-input-number-group-rtl.ant-input-number-group .ant-input-number-affix-wrapper:not(:last-child) {border-radius: 0 2px 2px 0;} .ant-input-number-group-rtl.ant-input-number-group .ant-input-number-affix-wrapper:not(:last-child) {border-radius: 0 2px 2px 0;}
@ -1054,10 +1037,6 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > *:first-child, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-select:first-child > .ant-select-selector, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-select-auto-complete:first-child .ant-input, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-cascader-picker:first-child .ant-input {border-radius: 0 2px 2px 0;} .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > *:first-child, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-select:first-child > .ant-select-selector, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-select-auto-complete:first-child .ant-input, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-cascader-picker:first-child .ant-input {border-radius: 0 2px 2px 0;}
.ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > *:last-child, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-select:last-child > .ant-select-selector, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-select-auto-complete:last-child .ant-input, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-cascader-picker:last-child .ant-input, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-cascader-picker-focused:last-child .ant-input {border-left-width: 1px;border-radius: 2px 0 0 2px;} .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > *:last-child, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-select:last-child > .ant-select-selector, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-select-auto-complete:last-child .ant-input, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-cascader-picker:last-child .ant-input, .ant-input-number-group-rtl.ant-input-number-group.ant-input-number-group-compact > .ant-cascader-picker-focused:last-child .ant-input {border-left-width: 1px;border-radius: 2px 0 0 2px;}
.ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper-rtl:not(:last-child).ant-input-search > .ant-input-group > .ant-input {border-radius: 0 2px 2px 0;} .ant-input-number-group.ant-input-number-group-compact .ant-input-group-wrapper-rtl:not(:last-child).ant-input-search > .ant-input-group > .ant-input {border-radius: 0 2px 2px 0;}
.ant-input-number-group > .ant-input-number-rtl:first-child {border-radius: 0 2px 2px 0;}
.ant-input-number-group > .ant-input-number-rtl:last-child {border-radius: 2px 0 0 2px;}
.ant-input-number-group-rtl .ant-input-number-group-addon:first-child {border-right: 1px solid @border-color-base;border-left: 0;border-radius: 0 2px 2px 0;}
.ant-input-number-group-rtl .ant-input-number-group-addon:last-child {border-right: 0;border-left: 1px solid @border-color-base;border-radius: 2px 0 0 2px;}
.ant-input-number-handler {color: @text-color-secondary;border-left: 1px solid @border-color-base;} .ant-input-number-handler {color: @text-color-secondary;border-left: 1px solid @border-color-base;}
.ant-input-number-handler:active {background: @input-number-handler-active-bg;} .ant-input-number-handler:active {background: @input-number-handler-active-bg;}
.ant-input-number-handler:hover .ant-input-number-handler-up-inner, .ant-input-number-handler:hover .ant-input-number-handler-down-inner {color: color(~`colorPalette("@{primary-color}", 5)`);} .ant-input-number-handler:hover .ant-input-number-handler-up-inner, .ant-input-number-handler:hover .ant-input-number-handler-down-inner {color: color(~`colorPalette("@{primary-color}", 5)`);}
@ -1313,8 +1292,8 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-pagination-simple .ant-pagination-simple-pager input:hover {border-color: @primary-color;} .ant-pagination-simple .ant-pagination-simple-pager input:hover {border-color: @primary-color;}
.ant-pagination-simple .ant-pagination-simple-pager input:focus {border-color: color(~`colorPalette("@{primary-color}", 5)`);box-shadow: 0 0 0 2px fade(@primary-color, 20%);} .ant-pagination-simple .ant-pagination-simple-pager input:focus {border-color: color(~`colorPalette("@{primary-color}", 5)`);box-shadow: 0 0 0 2px fade(@primary-color, 20%);}
.ant-pagination-simple .ant-pagination-simple-pager input[disabled] {color: @disabled-color;background: @disabled-bg;border-color: @border-color-base;} .ant-pagination-simple .ant-pagination-simple-pager input[disabled] {color: @disabled-color;background: @disabled-bg;border-color: @border-color-base;}
.ant-pagination.ant-pagination-mini .ant-pagination-item:not(.ant-pagination-item-active) {background: transparent;border-color: transparent;} .ant-pagination.mini .ant-pagination-item:not(.ant-pagination-item-active) {background: transparent;border-color: transparent;}
.ant-pagination.ant-pagination-mini .ant-pagination-prev .ant-pagination-item-link, .ant-pagination.ant-pagination-mini .ant-pagination-next .ant-pagination-item-link {background: transparent;border-color: transparent;} .ant-pagination.mini .ant-pagination-prev .ant-pagination-item-link, .ant-pagination.mini .ant-pagination-next .ant-pagination-item-link {background: transparent;border-color: transparent;}
.ant-pagination.ant-pagination-disabled .ant-pagination-item {background: @disabled-bg;border-color: @border-color-base;} .ant-pagination.ant-pagination-disabled .ant-pagination-item {background: @disabled-bg;border-color: @border-color-base;}
.ant-pagination.ant-pagination-disabled .ant-pagination-item a {color: @disabled-color;background: transparent;border: none;} .ant-pagination.ant-pagination-disabled .ant-pagination-item a {color: @disabled-color;background: transparent;border: none;}
.ant-pagination.ant-pagination-disabled .ant-pagination-item-active {background: @pagination-item-disabled-bg-active;} .ant-pagination.ant-pagination-disabled .ant-pagination-item-active {background: @pagination-item-disabled-bg-active;}
@ -1330,8 +1309,8 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-popover-message {color: @text-color;} .ant-popover-message {color: @text-color;}
.ant-popover-message > .anticon {color: #faad14;} .ant-popover-message > .anticon {color: #faad14;}
.ant-popover-arrow {background: transparent;} .ant-popover-arrow {background: transparent;}
.ant-popover-arrow-content {--antd-arrow-background-color: @popover-bg;border-radius: 0 0 2px;} .ant-popover-arrow-content {background-color: @popover-bg;border-radius: 0 0 2px;}
.ant-popover-arrow-content::before {background: var(--antd-arrow-background-color);background-repeat: no-repeat;background-position: -10px -10px;} .ant-popover-arrow-content::before {background: @popover-bg;background-repeat: no-repeat;background-position: -10px -10px;}
.ant-popover-placement-top .ant-popover-arrow-content, .ant-popover-placement-topLeft .ant-popover-arrow-content, .ant-popover-placement-topRight .ant-popover-arrow-content {box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);} .ant-popover-placement-top .ant-popover-arrow-content, .ant-popover-placement-topLeft .ant-popover-arrow-content, .ant-popover-placement-topRight .ant-popover-arrow-content {box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);}
.ant-popover-placement-right .ant-popover-arrow-content, .ant-popover-placement-rightTop .ant-popover-arrow-content, .ant-popover-placement-rightBottom .ant-popover-arrow-content {box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);} .ant-popover-placement-right .ant-popover-arrow-content, .ant-popover-placement-rightTop .ant-popover-arrow-content, .ant-popover-placement-rightBottom .ant-popover-arrow-content {box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);}
.ant-popover-placement-bottom .ant-popover-arrow-content, .ant-popover-placement-bottomLeft .ant-popover-arrow-content, .ant-popover-placement-bottomRight .ant-popover-arrow-content {box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.06);} .ant-popover-placement-bottom .ant-popover-arrow-content, .ant-popover-placement-bottomLeft .ant-popover-arrow-content, .ant-popover-placement-bottomRight .ant-popover-arrow-content {box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.06);}
@ -1387,13 +1366,12 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-radio-wrapper {color: @text-color;} .ant-radio-wrapper {color: @text-color;}
.ant-radio {color: @text-color;} .ant-radio {color: @text-color;}
.ant-radio-wrapper:hover .ant-radio, .ant-radio:hover .ant-radio-inner, .ant-radio-input:focus + .ant-radio-inner {border-color: @primary-color;} .ant-radio-wrapper:hover .ant-radio, .ant-radio:hover .ant-radio-inner, .ant-radio-input:focus + .ant-radio-inner {border-color: @primary-color;}
.ant-radio-input:focus + .ant-radio-inner {box-shadow: 0 0 0 3px fade(@primary-color, 12%);} .ant-radio-input:focus + .ant-radio-inner {box-shadow: 0 0 0 3px color(~`colorPalette("@{primary-color}", 1)`);}
.ant-radio-checked::after {border: 1px solid @primary-color;border-radius: 50%;animation-fill-mode: both;} .ant-radio-checked::after {border: 1px solid @primary-color;border-radius: 50%;animation-fill-mode: both;}
.ant-radio-inner {background-color: @btn-default-bg;border-color: @border-color-base;border-style: solid;border-width: 1px;border-radius: 50%;} .ant-radio-inner {background-color: @btn-default-bg;border-color: @border-color-base;border-style: solid;border-width: 1px;border-radius: 50%;}
.ant-radio-inner::after {background-color: @primary-color;border-top: 0;border-left: 0;border-radius: 16px;} .ant-radio-inner::after {background-color: @primary-color;border-top: 0;border-left: 0;border-radius: 16px;}
.ant-radio.ant-radio-disabled .ant-radio-inner {border-color: @border-color-base;}
.ant-radio-checked .ant-radio-inner {border-color: @primary-color;} .ant-radio-checked .ant-radio-inner {border-color: @primary-color;}
.ant-radio-disabled .ant-radio-inner {background-color: @disabled-bg;} .ant-radio-disabled .ant-radio-inner {background-color: @disabled-bg;border-color: @border-color-base !important;}
.ant-radio-disabled .ant-radio-inner::after {background-color: @radio-dot-disabled-color;} .ant-radio-disabled .ant-radio-inner::after {background-color: @radio-dot-disabled-color;}
.ant-radio-disabled + span {color: @disabled-color;} .ant-radio-disabled + span {color: @disabled-color;}
.ant-radio-button-wrapper {color: @text-color;background: @btn-default-bg;border: 1px solid @border-color-base;border-top-width: 1.02px;border-left-width: 0;} .ant-radio-button-wrapper {color: @text-color;background: @btn-default-bg;border: 1px solid @border-color-base;border-top-width: 1.02px;border-left-width: 0;}
@ -1403,7 +1381,7 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-radio-button-wrapper:last-child {border-radius: 0 2px 2px 0;} .ant-radio-button-wrapper:last-child {border-radius: 0 2px 2px 0;}
.ant-radio-button-wrapper:first-child:last-child {border-radius: 2px;} .ant-radio-button-wrapper:first-child:last-child {border-radius: 2px;}
.ant-radio-button-wrapper:hover {color: @primary-color;} .ant-radio-button-wrapper:hover {color: @primary-color;}
.ant-radio-button-wrapper:focus-within {box-shadow: 0 0 0 3px fade(@primary-color, 12%);} .ant-radio-button-wrapper:focus-within {box-shadow: 0 0 0 3px color(~`colorPalette("@{primary-color}", 1)`);}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {color: @primary-color;background: @btn-default-bg;border-color: @primary-color;} .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {color: @primary-color;background: @btn-default-bg;border-color: @primary-color;}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {background-color: @primary-color;} .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {background-color: @primary-color;}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {border-color: @primary-color;} .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {border-color: @primary-color;}
@ -1411,11 +1389,11 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover::before {background-color: color(~`colorPalette("@{primary-color}", 5)`);} .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover::before {background-color: color(~`colorPalette("@{primary-color}", 5)`);}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);} .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {color: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active::before {background-color: color(~`colorPalette("@{primary-color}", 7)`);} .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active::before {background-color: color(~`colorPalette("@{primary-color}", 7)`);}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {box-shadow: 0 0 0 3px fade(@primary-color, 12%);} .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {box-shadow: 0 0 0 3px color(~`colorPalette("@{primary-color}", 1)`);}
.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {color: @radio-solid-checked-color;background: @primary-color;border-color: @primary-color;} .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {color: @radio-solid-checked-color;background: @primary-color;border-color: @primary-color;}
.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {color: @radio-solid-checked-color;background: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);} .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {color: @radio-solid-checked-color;background: color(~`colorPalette("@{primary-color}", 5)`);border-color: color(~`colorPalette("@{primary-color}", 5)`);}
.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {color: @radio-solid-checked-color;background: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);} .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {color: @radio-solid-checked-color;background: color(~`colorPalette("@{primary-color}", 7)`);border-color: color(~`colorPalette("@{primary-color}", 7)`);}
.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {box-shadow: 0 0 0 3px fade(@primary-color, 12%);} .ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {box-shadow: 0 0 0 3px color(~`colorPalette("@{primary-color}", 1)`);}
.ant-radio-button-wrapper-disabled {color: @disabled-color;background-color: @disabled-bg;border-color: @border-color-base;} .ant-radio-button-wrapper-disabled {color: @disabled-color;background-color: @disabled-bg;border-color: @border-color-base;}
.ant-radio-button-wrapper-disabled:first-child, .ant-radio-button-wrapper-disabled:hover {color: @disabled-color;background-color: @disabled-bg;border-color: @border-color-base;} .ant-radio-button-wrapper-disabled:first-child, .ant-radio-button-wrapper-disabled:hover {color: @disabled-color;background-color: @disabled-bg;border-color: @border-color-base;}
.ant-radio-button-wrapper-disabled:first-child {border-left-color: @border-color-base;} .ant-radio-button-wrapper-disabled:first-child {border-left-color: @border-color-base;}
@ -1482,11 +1460,14 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle {border-radius: 50%;} .ant-skeleton-header .ant-skeleton-avatar.ant-skeleton-avatar-circle {border-radius: 50%;}
.ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {border-radius: 50%;} .ant-skeleton-header .ant-skeleton-avatar-lg.ant-skeleton-avatar-circle {border-radius: 50%;}
.ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {border-radius: 50%;} .ant-skeleton-header .ant-skeleton-avatar-sm.ant-skeleton-avatar-circle {border-radius: 50%;}
.ant-skeleton-content .ant-skeleton-title {background: @skeleton-color;border-radius: 2px;} .ant-skeleton-content .ant-skeleton-title {background: @skeleton-color;border-radius: 4px;}
.ant-skeleton-content .ant-skeleton-paragraph > li {background: @skeleton-color;border-radius: 2px;} .ant-skeleton-content .ant-skeleton-paragraph > li {background: @skeleton-color;border-radius: 4px;}
.ant-skeleton-round .ant-skeleton-content .ant-skeleton-title, .ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph > li {border-radius: 100px;} .ant-skeleton-round .ant-skeleton-content .ant-skeleton-title, .ant-skeleton-round .ant-skeleton-content .ant-skeleton-paragraph > li {border-radius: 100px;}
.ant-skeleton-active .ant-skeleton-title, .ant-skeleton-active .ant-skeleton-paragraph > li, .ant-skeleton-active .ant-skeleton-avatar, .ant-skeleton-active .ant-skeleton-button, .ant-skeleton-active .ant-skeleton-input, .ant-skeleton-active .ant-skeleton-image {background: transparent;} .ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-title, .ant-skeleton.ant-skeleton-active .ant-skeleton-content .ant-skeleton-paragraph > li {background: linear-gradient(90deg, @skeleton-color 25%, @skeleton-to-color 37%, @skeleton-color 63%);background-size: 400% 100%;}
.ant-skeleton-active .ant-skeleton-title::after, .ant-skeleton-active .ant-skeleton-paragraph > li::after, .ant-skeleton-active .ant-skeleton-avatar::after, .ant-skeleton-active .ant-skeleton-button::after, .ant-skeleton-active .ant-skeleton-input::after, .ant-skeleton-active .ant-skeleton-image::after {background: linear-gradient(90deg, @skeleton-color 25%, @skeleton-to-color 37%, @skeleton-color 63%);} .ant-skeleton.ant-skeleton-active .ant-skeleton-avatar {background: linear-gradient(90deg, @skeleton-color 25%, @skeleton-to-color 37%, @skeleton-color 63%);background-size: 400% 100%;}
.ant-skeleton.ant-skeleton-active .ant-skeleton-button {background: linear-gradient(90deg, @skeleton-color 25%, @skeleton-to-color 37%, @skeleton-color 63%);background-size: 400% 100%;}
.ant-skeleton.ant-skeleton-active .ant-skeleton-input {background: linear-gradient(90deg, @skeleton-color 25%, @skeleton-to-color 37%, @skeleton-color 63%);background-size: 400% 100%;}
.ant-skeleton.ant-skeleton-active .ant-skeleton-image {background: linear-gradient(90deg, @skeleton-color 25%, @skeleton-to-color 37%, @skeleton-color 63%);background-size: 400% 100%;}
.ant-skeleton-element .ant-skeleton-button {background: @skeleton-color;border-radius: 2px;} .ant-skeleton-element .ant-skeleton-button {background: @skeleton-color;border-radius: 2px;}
.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle {border-radius: 50%;} .ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-circle {border-radius: 50%;}
.ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round {border-radius: 32px;} .ant-skeleton-element .ant-skeleton-button.ant-skeleton-button-round {border-radius: 32px;}
@ -1603,7 +1584,7 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-expanded-row > td, .ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-placeholder > td {border-right: 0;} .ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-expanded-row > td, .ant-table.ant-table-bordered.ant-table-scroll-horizontal > .ant-table-container > .ant-table-body > table > tbody > tr.ant-table-placeholder > td {border-right: 0;}
.ant-table.ant-table-bordered > .ant-table-footer {border: 1px solid @border-color-split;border-top: 0;} .ant-table.ant-table-bordered > .ant-table-footer {border: 1px solid @border-color-split;border-top: 0;}
.ant-table-cell .ant-table-container:first-child {border-top: 0;} .ant-table-cell .ant-table-container:first-child {border-top: 0;}
.ant-table-cell-scrollbar:not([rowspan]) {box-shadow: 0 1px 0 1px @table-header-bg;} .ant-table-cell-scrollbar {box-shadow: 0 1px 0 1px @table-header-bg;}
.ant-table {color: @text-color;background: @component-background;border-radius: 2px;} .ant-table {color: @text-color;background: @component-background;border-radius: 2px;}
.ant-table table {border-radius: 2px 2px 0 0;border-collapse: separate;border-spacing: 0;} .ant-table table {border-radius: 2px 2px 0 0;border-collapse: separate;border-spacing: 0;}
.ant-table-footer {color: @heading-color;background: @background-color-light;} .ant-table-footer {color: @heading-color;background: @background-color-light;}
@ -1654,10 +1635,10 @@ tr.ant-table-expanded-row:hover > td {background: @table-expanded-row-bg;}
.ant-table-empty .ant-table-tbody > tr.ant-table-placeholder {color: @disabled-color;} .ant-table-empty .ant-table-tbody > tr.ant-table-placeholder {color: @disabled-color;}
.ant-table-tbody > tr.ant-table-placeholder:hover > td {background: @component-background;} .ant-table-tbody > tr.ant-table-placeholder:hover > td {background: @component-background;}
.ant-table-cell-fix-left, .ant-table-cell-fix-right {background: @component-background;} .ant-table-cell-fix-left, .ant-table-cell-fix-right {background: @component-background;}
.ant-table-ping-left:not(.ant-table-has-fix-left) > .ant-table-container::before {box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);} .ant-table-ping-left:not(.ant-table-has-fix-left) .ant-table-container::before {box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);}
.ant-table-ping-left .ant-table-cell-fix-left-first::after, .ant-table-ping-left .ant-table-cell-fix-left-last::after {box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);} .ant-table-ping-left .ant-table-cell-fix-left-first::after, .ant-table-ping-left .ant-table-cell-fix-left-last::after {box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);}
.ant-table-ping-left .ant-table-cell-fix-left-last::before {background-color: transparent !important;} .ant-table-ping-left .ant-table-cell-fix-left-last::before {background-color: transparent !important;}
.ant-table-ping-right:not(.ant-table-has-fix-right) > .ant-table-container::after {box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);} .ant-table-ping-right:not(.ant-table-has-fix-right) .ant-table-container::after {box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);}
.ant-table-ping-right .ant-table-cell-fix-right-first::after, .ant-table-ping-right .ant-table-cell-fix-right-last::after {box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);} .ant-table-ping-right .ant-table-cell-fix-right-first::after, .ant-table-ping-right .ant-table-cell-fix-right-last::after {box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);}
.ant-table-sticky-holder {background: @component-background;} .ant-table-sticky-holder {background: @component-background;}
.ant-table-sticky-scroll {background: lighten(@table-border-color, 80%);border-top: 1px solid @border-color-split;} .ant-table-sticky-scroll {background: lighten(@table-border-color, 80%);border-top: 1px solid @border-color-split;}
@ -1666,7 +1647,6 @@ tr.ant-table-expanded-row:hover > td {background: @table-expanded-row-bg;}
.ant-table-sticky-scroll-bar-active {background-color: fade(@table-sticky-scroll-bar-bg, 80%);} .ant-table-sticky-scroll-bar-active {background-color: fade(@table-sticky-scroll-bar-bg, 80%);}
.ant-table-title {border-radius: 2px 2px 0 0;} .ant-table-title {border-radius: 2px 2px 0 0;}
.ant-table-title + .ant-table-container {border-top-left-radius: 0;border-top-right-radius: 0;} .ant-table-title + .ant-table-container {border-top-left-radius: 0;border-top-right-radius: 0;}
.ant-table-title + .ant-table-container table {border-radius: 0;}
.ant-table-title + .ant-table-container table > thead > tr:first-child th:first-child {border-radius: 0;} .ant-table-title + .ant-table-container table > thead > tr:first-child th:first-child {border-radius: 0;}
.ant-table-title + .ant-table-container table > thead > tr:first-child th:last-child {border-radius: 0;} .ant-table-title + .ant-table-container table > thead > tr:first-child th:last-child {border-radius: 0;}
.ant-table-container {border-top-left-radius: 2px;border-top-right-radius: 2px;} .ant-table-container {border-top-left-radius: 2px;border-top-right-radius: 2px;}
@ -1769,7 +1749,7 @@ tr.ant-table-expanded-row:hover > td {background: @table-expanded-row-bg;}
.ant-tooltip {color: @text-color;} .ant-tooltip {color: @text-color;}
.ant-tooltip-inner {color: #fff;background-color: @tooltip-bg;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);} .ant-tooltip-inner {color: #fff;background-color: @tooltip-bg;border-radius: 2px;box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);}
.ant-tooltip-arrow {background: transparent;} .ant-tooltip-arrow {background: transparent;}
.ant-tooltip-arrow-content {--antd-arrow-background-color: linear-gradient(to right bottom, fadeout(@tooltip-bg, 10%), @tooltip-bg);border-radius: 0 0 2px;} .ant-tooltip-arrow-content {--antd-arrow-background-color: linear-gradient(to right bottom, fadeout(@tooltip-bg, 10%), @tooltip-bg);background-color: transparent;border-radius: 0 0 2px;}
.ant-tooltip-arrow-content::before {background: var(--antd-arrow-background-color);background-repeat: no-repeat;background-position: -10px -10px;} .ant-tooltip-arrow-content::before {background: var(--antd-arrow-background-color);background-repeat: no-repeat;background-position: -10px -10px;}
.ant-tooltip-placement-top .ant-tooltip-arrow-content, .ant-tooltip-placement-topLeft .ant-tooltip-arrow-content, .ant-tooltip-placement-topRight .ant-tooltip-arrow-content {box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);} .ant-tooltip-placement-top .ant-tooltip-arrow-content, .ant-tooltip-placement-topLeft .ant-tooltip-arrow-content, .ant-tooltip-placement-topRight .ant-tooltip-arrow-content {box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);}
.ant-tooltip-placement-right .ant-tooltip-arrow-content, .ant-tooltip-placement-rightTop .ant-tooltip-arrow-content, .ant-tooltip-placement-rightBottom .ant-tooltip-arrow-content {box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);} .ant-tooltip-placement-right .ant-tooltip-arrow-content, .ant-tooltip-placement-rightTop .ant-tooltip-arrow-content, .ant-tooltip-placement-rightBottom .ant-tooltip-arrow-content {box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);}
@ -1959,7 +1939,6 @@ a.ant-typography.ant-typography-disabled:hover, .ant-typography a.ant-typography
.ant-typography pre code {background: transparent;border: 0;} .ant-typography pre code {background: transparent;border: 0;}
.ant-typography blockquote {border-left: 4px solid rgba(100, 100, 100, 0.2);} .ant-typography blockquote {border-left: 4px solid rgba(100, 100, 100, 0.2);}
.ant-upload {color: @text-color;} .ant-upload {color: @text-color;}
.ant-upload.ant-upload-disabled {color: @disabled-color;}
.ant-upload.ant-upload-select-picture-card {background-color: @background-color-light;border: 1px dashed @border-color-base;border-radius: 2px;} .ant-upload.ant-upload-select-picture-card {background-color: @background-color-light;border: 1px dashed @border-color-base;border-radius: 2px;}
.ant-upload.ant-upload-select-picture-card:hover {border-color: @primary-color;} .ant-upload.ant-upload-select-picture-card:hover {border-color: @primary-color;}
.ant-upload-disabled.ant-upload.ant-upload-select-picture-card:hover {border-color: @border-color-base;} .ant-upload-disabled.ant-upload.ant-upload-select-picture-card:hover {border-color: @border-color-base;}
@ -1990,6 +1969,7 @@ a.ant-typography.ant-typography-disabled:hover, .ant-typography a.ant-typography
.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete {color: rgba(255, 255, 255, 0.85);} .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete {color: rgba(255, 255, 255, 0.85);}
.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye:hover, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download:hover, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover {color: #fff;} .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye:hover, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download:hover, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover {color: #fff;}
.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item {background-color: @background-color-light;} .ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item {background-color: @background-color-light;}
.ant-upload-list .ant-upload-animate-inline-appear, .ant-upload-list .ant-upload-animate-inline-enter, .ant-upload-list .ant-upload-animate-inline-leave {animation-fill-mode: cubic-bezier(0.78, 0.14, 0.15, 0.86);}
.ant-pro-table-search {background-color: @component-background !important;} .ant-pro-table-search {background-color: @component-background !important;}
.bezierEasingMixin() { .bezierEasingMixin() {
@functions: ~`(function() {var NEWTON_ITERATIONS = 4;var NEWTON_MIN_SLOPE = 0.001;var SUBDIVISION_PRECISION = 0.0000001;var SUBDIVISION_MAX_ITERATIONS = 10;var kSplineTableSize = 11;var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);var float32ArraySupported = typeof Float32Array === 'function';function A (aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1; } @functions: ~`(function() {var NEWTON_ITERATIONS = 4;var NEWTON_MIN_SLOPE = 0.001;var SUBDIVISION_PRECISION = 0.0000001;var SUBDIVISION_MAX_ITERATIONS = 10;var kSplineTableSize = 11;var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);var float32ArraySupported = typeof Float32Array === 'function';function A (aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1; }
@ -2439,8 +2419,7 @@ this.tinycolor = tinycolor;})()`;}
.colorPaletteMixin() { .colorPaletteMixin() {
@functions: ~`(function() {var hueStep = 2;var saturationStep = 0.16;var saturationStep2 = 0.05;var brightnessStep1 = 0.05;var brightnessStep2 = 0.15;var lightColorCount = 5;var darkColorCount = 4;var getHue = function(hsv, i, isLight) {var hue;if (hsv.h >= 60 && hsv.h <= 240) {hue = isLight ? hsv.h - hueStep * i : hsv.h + hueStep * i;} else {hue = isLight ? hsv.h + hueStep * i : hsv.h - hueStep * i;} @functions: ~`(function() {var hueStep = 2;var saturationStep = 0.16;var saturationStep2 = 0.05;var brightnessStep1 = 0.05;var brightnessStep2 = 0.15;var lightColorCount = 5;var darkColorCount = 4;var getHue = function(hsv, i, isLight) {var hue;if (hsv.h >= 60 && hsv.h <= 240) {hue = isLight ? hsv.h - hueStep * i : hsv.h + hueStep * i;} else {hue = isLight ? hsv.h + hueStep * i : hsv.h - hueStep * i;}
if (hue < 0) {hue += 360;} else if (hue >= 360) {hue -= 360;} if (hue < 0) {hue += 360;} else if (hue >= 360) {hue -= 360;}
return Math.round(hue);};var getSaturation = function(hsv, i, isLight) {if (hsv.h === 0 && hsv.s === 0) {return hsv.s;} return Math.round(hue);};var getSaturation = function(hsv, i, isLight) {var saturation;if (isLight) {saturation = hsv.s - saturationStep * i;} else if (i === darkColorCount) {saturation = hsv.s + saturationStep;} else {saturation = hsv.s + saturationStep2 * i;}
var saturation;if (isLight) {saturation = hsv.s - saturationStep * i;} else if (i === darkColorCount) {saturation = hsv.s + saturationStep;} else {saturation = hsv.s + saturationStep2 * i;}
if (saturation > 1) {saturation = 1;} if (saturation > 1) {saturation = 1;}
if (isLight && i === lightColorCount && saturation > 0.1) {saturation = 0.1;} if (isLight && i === lightColorCount && saturation > 0.1) {saturation = 0.1;}
if (saturation < 0.06) {saturation = 0.06;} if (saturation < 0.06) {saturation = 0.06;}
@ -2897,7 +2876,7 @@ this.tinycolor = tinycolor;})()`;}
@cascader-dropdown-line-height: @dropdown-line-height; @cascader-dropdown-line-height: @dropdown-line-height;
@anchor-bg: transparent; @anchor-bg: transparent;
@anchor-border-color: @border-color-split; @anchor-border-color: @border-color-split;
@anchor-link-top: 4px; @anchor-link-top: 7px;
@anchor-link-left: 16px; @anchor-link-left: 16px;
@anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left; @anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left;
@tooltip-max-width: 250px; @tooltip-max-width: 250px;
@ -2922,7 +2901,7 @@ this.tinycolor = tinycolor;})()`;}
@modal-header-border-style: @border-style-base; @modal-header-border-style: @border-style-base;
@modal-header-title-line-height: 22px; @modal-header-title-line-height: 22px;
@modal-header-title-font-size: @font-size-lg; @modal-header-title-font-size: @font-size-lg;
@modal-header-close-size: @modal-header-title-line-height + 2 * @modal-header-padding-vertical; @modal-header-close-size: 56px;
@modal-heading-color: @heading-color; @modal-heading-color: @heading-color;
@modal-close-color: @text-color-secondary; @modal-close-color: @text-color-secondary;
@modal-footer-bg: transparent; @modal-footer-bg: transparent;
@ -2933,7 +2912,6 @@ this.tinycolor = tinycolor;})()`;}
@modal-mask-bg: fade(@black, 45%); @modal-mask-bg: fade(@black, 45%);
@modal-confirm-body-padding: 32px 32px 24px; @modal-confirm-body-padding: 32px 32px 24px;
@modal-confirm-title-font-size: @font-size-lg; @modal-confirm-title-font-size: @font-size-lg;
@modal-border-radius: @border-radius-base;
@progress-default-color: @processing-color; @progress-default-color: @processing-color;
@progress-remaining-color: @background-color-base; @progress-remaining-color: @background-color-base;
@progress-info-text-color: @progress-text-color; @progress-info-text-color: @progress-text-color;

8
web/client/src/components/Upload/index.js

@ -54,7 +54,7 @@ class Uploads extends Component {
componentWillReceiveProps(np) { componentWillReceiveProps(np) {
const { dispatch, value: thisEditData, onChange } = this.props; const { dispatch, value: thisEditData, onChange } = this.props;
const { value: nextEditData } = np; const { value: nextEditData, clearFileList } = np;
const setFileList = () => { const setFileList = () => {
let defaultFileList = []; let defaultFileList = [];
@ -92,6 +92,12 @@ class Uploads extends Component {
} }
} }
} }
if (clearFileList) {
this.setState({
fileList: []
});
}
// else{ // else{
// this.setState({ // this.setState({
// fileList:[], // fileList:[],

89
web/client/src/sections/fillion/actions/file.js

@ -0,0 +1,89 @@
import { basicAction } from '@peace/utils'
import { ApiTable } from '$utils'
export function createFileDir(query) {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'CREATE_FILE_DIR',
url: ApiTable.createFileDir,
query,
msg: { error: '创建文件夹失败' },
// reducer: { name: 'uploadFile' }
});
}
export function delFileDir(query) {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'DEL_FILE_DIR',
url: ApiTable.delFileDir,
query,
msg: { error: '删除文件夹失败' },
// reducer: { name: 'uploadFile' }
});
}
export function queryFileDir(query) {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'QUERY_FILE_DIR',
url: ApiTable.queryFileDIr,
query,
msg: { error: '查询文件夹失败' },
reducer: { name: 'fileDirs' }
});
}
export function updateFileDir(query) {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'UPDATE_FILE_DIR',
url: ApiTable.updateFileDir,
query,
msg: { error: '更新文件夹名称失败' },
// reducer: { name: 'fileDirs' }
});
}
// data : {typeId, userId, userName, startDate, endDate, fileSize, fileName, fileUrl, fileExt}
export function uploadFile(data) {
return dispatch => basicAction({
type: 'post',
dispatch: dispatch,
actionType: 'UPLOAD_FILE',
url: ApiTable.uploadFile,
data,
msg: { error: '上传文件失败' },
reducer: { name: 'uploadFile' }
});
}
export function deleteFile(id) {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'DELETE_FILE',
url: ApiTable.deleteFile,
msg: { error: '删除文件数据失败' },
query: { id },
reducer: { name: 'fileDel' }
});
}
export function getFileList(query) { // fId, limit, offset, searchTxt
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'GET_FILE_LIST',
url: ApiTable.getFileList,
query,
msg: { error: '获取档案数据失败' },
reducer: { name: 'fileList' }
});
}

2
web/client/src/sections/fillion/actions/index.js

@ -2,7 +2,9 @@
import * as infor from './infor' import * as infor from './infor'
import * as patrol from './patrol' import * as patrol from './patrol'
import * as file from './file'
export default { export default {
...infor, ...infor,
...patrol, ...patrol,
...file,
} }

4
web/client/src/sections/fillion/components/bridgeTable.js

@ -1507,7 +1507,7 @@ const BrideTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button> >编辑</Button>
@ -1691,7 +1691,7 @@ const BrideTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
yilanModal('edit', record) yilanModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button><Popconfirm title='' onConfirm={() => { deldatas(record.id) }}> >编辑</Button><Popconfirm title='' onConfirm={() => { deldatas(record.id) }}>

2
web/client/src/sections/fillion/components/enforceTable.js

@ -1508,7 +1508,7 @@ const openModal = (type, record) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
}} }}
>编辑</Button><Button type="link"></Button></div> >编辑</Button><Button type="link"></Button></div>

94
web/client/src/sections/fillion/components/file/functionMenu.js

@ -0,0 +1,94 @@
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { delFileDir, queryFileDir, updateFileDir, } from '../../actions/file';
import './menu.less'
import { message, Modal } from 'antd';
import { ExclamationCircleOutlined } from '@ant-design/icons'
const { confirm } = Modal;
const FunctionMenu = props => {
const { dispatch, onDelDir, selectRoad } = props;
useEffect(() => {
const box = document.getElementById('tree-box');
if (box)
box.oncontextmenu = function (e) {
//取消默认的浏览器自带右键 很重要!!
e.preventDefault();
//获取我们自定义的右键菜单
var menu = document.querySelector("#rihgt-click-menu");
//根据事件对象中鼠标点击的位置,进行定位
menu.style.left = e.clientX + 'px';
menu.style.top = e.clientY + 'px';
//改变自定义菜单的高宽,让它显示出来
menu.style.display = 'block';
}
//关闭右键菜单,很简单
window.onclick = function (e) {
//用户触发click事件就可以关闭了,因为绑定在window上,按事件冒泡处理,不会影响菜单的功能
document.querySelector('#rihgt-click-menu') ? document.querySelector('#rihgt-click-menu').style.display = 'none' : ''
}
}, [true])
const onDeleteDir = () => {
if (selectRoad) {
const id = selectRoad
dispatch(delFileDir({ id })).then(res => {
const { type } = res;
if (type == 'DEL_FILE_DIR_SUCCESS') {
dispatch(queryFileDir());
message.success('删除成功')
} else {
message.error('删除失败')
}
});
}
}
const showDeleteConfirm = () => {
confirm({
title: `是否确认删除该道路?`,
icon: <ExclamationCircleOutlined />,
// content: 'Some descriptions',
okText: '是',
okType: 'danger',
cancelText: '否',
onOk() {
onDeleteDir();
},
onCancel() {
},
});
}
const refreshFileDir = () => {
dispatch(queryFileDir());
}
return (
<div id="rihgt-click-menu">
<div class="context_item">
<div class="inner_item" onClick={showDeleteConfirm}>
<i class="glyphicon glyphicon-file"></i>
</div>
</div>
<div class="context_item">
<div class="inner_item" onClick={refreshFileDir}>
<i class="glyphicon glyphicon-file"></i>
</div>
</div>
</div>
)
}
FunctionMenu.propTypes = {}
export default FunctionMenu

43
web/client/src/sections/fillion/components/file/menu.less

@ -0,0 +1,43 @@
#rihgt-click-menu {
display: none;
font-size: 1.1em;
position: fixed;
width: 200px;
height: auto;
padding: 5px 0px;
border-radius: 5px;
top: 10;
left: 10;
background-color: #fff;
box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24);
color: #333;
z-index: 999;
}
#rihgt-click-menu .context_item {
height: 32px;
line-height: 32px;
cursor: pointer;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
#rihgt-click-menu .context_item:hover {
background-color: #ddd;
}
#rihgt-click-menu .context_item .inner_item {
margin: 0px 10px;
}
#rihgt-click-menu .context_item .inner_item i {
margin: 0 5px 0 0;
font-weight: bold;
}
#rihgt-click-menu .context_hr {
height: 1px;
border-top: 1px solid #bbb;
margin: 3px 10px;
}

73
web/client/src/sections/fillion/components/file/roadModal.js

@ -0,0 +1,73 @@
import React, { useState, useEffect } from 'react'
import PropTypes from 'prop-types';
import { Modal, Input, Row, Col } from 'antd';
const { Search } = Input;
const RoadModal = props => {
const { isVisible, onSubmit, onCancel, roads } = props;
const [roadName, setRoadName] = useState('');
const [isRepeated, setIsRepeated] = useState(true);
let timer = null;
useEffect(() => {
if (timer)
clearTimeout(timer)
else {
timer = setTimeout(() => {
if (roads.some(item => item.roadName == roadName)) {
setIsRepeated(true)
} else {
setIsRepeated(false);
}
}, 500);
}
}, [roadName]);
useEffect(() => {
if (!isVisible) {
setRoadName('')
setIsRepeated(false)
}
return () => {
setRoadName('')
}
}, [isVisible])
const onInputText = (e) => {
const value = e.target.value;
setRoadName(value);
}
const onConfirm = () => {
if (!isRepeated)
if (roadName && roadName.trim() != '') {
onSubmit(roadName)
}
}
return (
<Modal title="添加道路" visible={isVisible} onOk={onConfirm} onCancel={onCancel} >
<Row type="flex" style={{ alignContent: 'center' }}>
<Col span={6}>
<span style={{ color: 'gray', lineHeight: "32px" }}>请输入道路名称:</span>
</Col>
<Col span={18}>
<Search placeholder='请输入道路名称' onChange={onInputText} value={roadName} />
</Col>
<Row>
{
isRepeated ? <span style={{ color: 'red' }}>道路名称重复</span>
: ''
}
</Row>
</Row>
</Modal>
)
}
RoadModal.propTypes = {}
export default RoadModal

46
web/client/src/sections/fillion/components/file/uploadModal.js

@ -0,0 +1,46 @@
import React, { useState, useEffect } from 'react'
import { Modal, Input, Row, Col } from 'antd';
import Upload from '../../../../components/Upload';
const UploadModal = props => {
const { isVisible, onSubmit, onCancel, } = props;
const [files, setFiles] = useState()
useEffect(() => {
if (!isVisible) {
}
return () => {
}
}, [isVisible])
const onConfirm = () => {
onSubmit(files);
}
const onFileUploaded = (fileList) => {
console.log('fileList: ', fileList);
setFiles(fileList);
}
return (
<Modal title="文件上传" visible={isVisible} onOk={onConfirm} onCancel={onCancel} >
<Row type="flex" style={{ alignContent: 'center' }}>
<Upload
uploadType={'project'}
maxFilesNum={1}
maxFileSize={10}
onChange={onFileUploaded}
clearFileList={isVisible}
// value
// onStateChange
/>
</Row>
</Modal>
)
}
UploadModal.propTypes = {}
export default UploadModal

442
web/client/src/sections/fillion/components/fileTable.js

@ -0,0 +1,442 @@
import { connect } from 'react-redux';
import './protable.less'
import { Card, Button, Row, DatePicker, Input, Modal, message, Image } from 'antd';
import ProTable from '@ant-design/pro-table';
import { getFileList, createFileDir, queryFileDir, uploadFile, deleteFile } from '../actions/file';
import { ExclamationCircleOutlined } from '@ant-design/icons';
import React, { useEffect, useState } from 'react';
import { httpDel } from '@peace/utils'
import { PinyinHelper } from '@peace/utils';
import RoadModal from './file/roadModal';
// import Pdfh5 from "pdfh5";
// import "pdfh5/css/pdfh5.css";
import FunctionMenu from './file/functionMenu';
const { confirm } = Modal;
// @ts-ignore
import UploadModal from './file/uploadModal';
// var pdfh5 = null;
const DetailList = (props) => {
const { fileList, loading, dispatch, handelRefresh, onPageChange } = props;
const [imgSrc, setImgSrc] = useState({ imageView: false, imgSrc: '' })
const [pdfView, setPdfView] = useState({ showPDF: false, pdfName: '', pdfurl: '' })
var tyApiRoot = localStorage.getItem('tyApiRoot')
// useEffect(() => {
// if (pdfView.showPDF) {
// pdfh5 = new Pdfh5("#pdf-loader", {
// pdfurl: pdfView.pdfurl
// })
// }
// }, [pdfView])
const handleRemove = (record, filePath) => {
if (record) {
dispatch(deleteFile(record.id)).then(res => {
if (res.type == 'DELETE_FILE_SUCCESS') {
message.success("文件删除成功");
handelRefresh()
} else {
message.error("文件删除失败")
}
})
}
let url = `${tyApiRoot}/attachments`, msg = {};
const actionType = "DEL_FILE_RECORD";
if (filePath) {
httpDel(dispatch, { url, actionType, msg, query: { src: filePath } })
}
}
const overviewPDF = (record, filePath) => {
setPdfView({ showPDF: true, pdfName: record.fileName, pdfurl: filePath })
}
const showDeleteConfirm = (record, filePath) => {
confirm({
title: '是否确认删除该文件?',
icon: <ExclamationCircleOutlined />,
// content: 'Some descriptions',
okText: '是',
okType: 'danger',
cancelText: '否',
onOk() {
handleRemove(record, filePath);
},
onCancel() {
},
});
}
const columns = [
{
title: '资料名称',
key: 'fileName',
dataIndex: 'fileName',
align: 'center',
}, {
title: '所属道路',
key: 'road',
dataIndex: 'road',
align: 'center',
render: (text, record) => {
return '';
}
}, {
title: '资料类型',
key: 'address',
dataIndex: 'address',
align: 'center',
render: (text, record) => {
return '';
}
},
{
title: '文件类型',
key: 'fileExt',
dataIndex: 'fileExt',
align: 'center'
},
{
title: '文件大小',
width: 100,
key: 'fileSize',
dataIndex: 'fileSize',
align: 'center',
render: (text, record) => {
let size = 0;
if (record.fileSize < 1024 * 1024) {
size = (record.fileSize / 1024).toFixed(2) + 'KB'
} else {
size = (record.fileSize / 1024 / 1024).toFixed(2) + 'MB'
}
return <span>{size}</span>
}
}, {
title: '创建时间',
key: 'createDate',
dataIndex: 'createDate',
valueType: 'dateTime',
align: 'center'
}, {
title: '操作',
width: 200,
key: 'option',
valueType: 'option',
align: 'center',
render: (text, record) => {
const regEx = /\bhttps?:\/\/[^:\/]+/ig;
const path = record.fileUrl;
const filename = path.substr(path.lastIndexOf("/") + 1);
const filePath = path.replace(regEx, "");
const filePath_ = `${tyApiRoot}/attachments?src=${filePath}&filename=${filename}`;
return <span>
{/* {<a style={{ color: '#333398' }} href={fpath}>下载</a>} */}
{<a style={{ color: '#333398' }} onClick={() => {
window.open(filePath_);
}} >下载</a>}
<span className="ant-divider" />
<a style={{ color: '#333398' }} onClick={() => { showDeleteConfirm(record, filePath) }}>删除</a>
{
['.png', '.jpg'].some(item => item == record.fileExt) ?
[<span className="ant-divider" />,
<a style={{ color: '#333398' }} onClick={() => { setImgSrc({ imageView: true, imgSrc: path }) }}>预览</a>]
: ''
}
{/* {
['.pdf'].some(item => item == record.fileExt) ?
[<span className="ant-divider" />,
<a style={{ color: '#333398' }} onClick={() => overviewPDF(record, path)}>预览</a>]
: ''
} */}
</span>
},
},
];
return [
<ProTable
columns={columns}
dataSource={fileList?.list || []}
loading={loading}
pagination={{
total: fileList?.count || 0,
pageSize: 10,
defaultPageSize: 10,
showSizeChanger: false,
onChange: (page, pageSize) => {
onPageChange(page, pageSize)
}
}}
rowKey="key"
toolBarRender={false}
search={false}
/>,
<Image
width={200}
style={{ display: 'none' }}
src={imgSrc.imgSrc}
preview={{
visible: imgSrc.imageView,
src: imgSrc.imgSrc,
onVisibleChange: value => {
setImgSrc({ imageView: value, imgSrc: '' });
},
}}
/>,
// <Modal
// visible={pdfView.showPDF}
// footer={null}
// title={pdfView.pdfName}
// width={860}
// onCancel={() => {
// pdfh5 = null;
// setPdfView({ showPDF: false, pdfName: '', pdfurl: '' });
// }}
// >
// <div id="pdf-loader" style={{ width: 830, height: 600, overflowY: 'hidden' }} />
// </Modal>
];
};
const RoadNameList = (props) => {
const [filterRoad, setFilterRoad] = useState([]);
const [addVisible, setAddVisible] = useState(false);
const [selectRoad, setSelectRoad] = useState();
const { onChange, roads, loading, queryData, dispatch } = props;
const columns = [
{
title: '道路名称',
key: 'roadName',
dataIndex: 'roadName',
align: 'center',
},
];
useEffect(() => {
if (roads && roads instanceof Array) {
setSelectRoad(roads[0].rId)
onChange(roads[0]);
}
}, [roads])
useEffect(() => {
if (roads) {
setFilterRoad(roads)
}
}, [roads])
var timer = null;
const doRoadNameSearch = (e) => {
const name = e.target.value;
if (timer) {
clearTimeout(timer)
} else {
setTimeout(() => {
let _roads = roads.filter(road => PinyinHelper.isSearchMatched(road.roadName, name));
setFilterRoad(_roads);
}, 500);
}
}
const createRoadDir = (roadName) => {
dispatch(createFileDir({ roadName })).then(res => {
if (res.type == 'CREATE_FILE_DIR_SUCCESS') {
setAddVisible(false)
message.success('新增道路文件夹成功');
dispatch(queryFileDir())
}
});
}
const onDelDir = () => {
}
return (
<div id="tree-box" className='spilce'>
<ProTable
columns={columns}
dataSource={filterRoad}
loading={loading}
rowKey="name"
rowClassName={(record) => {
return record.rId == selectRoad ? 'list-row-actived' : '';
}}
toolBarRender={() => [
<div>
<Button onClick={() => setAddVisible(true)} type="primary" style={{ width: '100%', marginBottom: 8 }} >新增</Button>
<Input placeholder='输入道路名称' onChange={doRoadNameSearch} ></Input>
</div>
]}
options={false}
pagination={false}
search={false}
onRow={(record) => {
return {
onClick: () => {
if (record) {
setSelectRoad(record.rId);
onChange(record);
}
},
};
}}
/>
<RoadModal
roads={roads}
isVisible={addVisible}
onSubmit={createRoadDir}
onCancel={() => { setAddVisible(false) }}
/>
<FunctionMenu
selectRoad={selectRoad}
dispatch={dispatch}
onDelDir={onDelDir}
/>
</div>
);
};
const FileTable = (props) => {
const { roads, fileList, dispatch, fileListLoading, roadsLoading, user } = props;
const [record, setRecord] = useState();
const [activeTabKey1, setActiveTabKey1] = useState('1');
const [uploadVisible, setUploadVisible] = useState(false);
const { RangePicker } = DatePicker;
useEffect(() => {
if (roads && roads instanceof Array) {
setRecord(roads[0]);
}
}, [roads])
useEffect(() => {
if (record) {
queryData();
}
}, [record])
const queryData = () => {
const { rId } = record;
dispatch(getFileList({ fId: activeTabKey1, limit: 10, offset: 0, roadId: rId }))
}
const onPageChange = (page, pageSize) => {
dispatch(getFileList({ fId: activeTabKey1, limit: pageSize, offset: (page - 1) * pageSize, roadId: rId }))
}
useEffect(() => {
if (record && activeTabKey1) {
queryData();
}
}, [activeTabKey1, record])
const handelRefresh = () => {
queryData()
}
const tabList = [
{
key: '1',
tab: '前期资料',
}, {
key: '2',
tab: '施工资料',
}, {
key: '3',
tab: '竣工资料',
}, {
key: '4',
tab: '维修资料',
}, {
key: '5',
tab: '道路资料',
},
];
const onTab1Change = (key) => {
setActiveTabKey1(key);
};
const handleChangeRecord = (newRecord) => {
let target = null;
if (!record || newRecord.rId != record.rId) {
target = newRecord;
}
setRecord(target);
}
const hanleUpload = (fileList) => {
let fileUrl, fileExt, fileName, fileSize;
if (fileList && fileList instanceof Array) {
const file = fileList[0];
fileName = file.name;
fileExt = fileName.substr(fileName.lastIndexOf('.'));
fileUrl = file.url;
fileSize = file.size;
dispatch(uploadFile({ typeId: activeTabKey1, userId: user.id, fileSize, fileName, fileUrl, fileExt, roadId: record.rId })).then(res => {
if (res.type == 'UPLOAD_FILE_SUCCESS') {
message.success('文件新增成功');
setUploadVisible(false);
queryData();
}
});
}
}
return (
<div className='card-protable'>
<Card >
<RoadNameList
dispatch={dispatch}
queryData={queryData}
onChange={(record) => handleChangeRecord(record)}
record={record}
roads={roads}
loading={roadsLoading} />
</Card>
<Card
style={{ flex: 1 }}
tabList={tabList}
activeTabKey={activeTabKey1}
onTabChange={(key) => {
onTab1Change(key);
}}
>
<Row>
<Button onClick={() => { setUploadVisible(true) }} type="primary" style={{ width: 160, marginBottom: 8 }} >上传</Button>
</Row>
<Card style={{ flex: 1 }}>
<DetailList fileList={fileList} record={record} loading={fileListLoading} dispatch={dispatch} handelRefresh={handelRefresh} onPageChange={onPageChange} />
</Card>
</Card>
<UploadModal
isVisible={uploadVisible}
onCancel={() => { setUploadVisible(false) }}
onSubmit={hanleUpload}
/>
</div>
);
};
function mapStateToProps(state) {
const { fileDirs, fileList, auth } = state;
return {
roads: fileDirs.data,
roadsLoading: fileDirs.isRequesting,
fileList: fileList.data,
fileListLoading: fileList.isRequesting,
user: auth.user,
};
}
export default connect(mapStateToProps)(FileTable);

2
web/client/src/sections/fillion/components/highways/highwaysdata.js

@ -47,7 +47,7 @@ const HightModal = (props) => {
}} }}
initialValues={recortd} initialValues={recortd}
> >
{typecard == '111' ? {typecard == 'compile' ?
<ProForm.Group <ProForm.Group
> >
<ProFormText <ProFormText

2
web/client/src/sections/fillion/components/highwaysTable.js

@ -75,7 +75,7 @@ const hightModal = (type, record) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
hightModal('edit', record) hightModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button></div> >编辑</Button></div>

22
web/client/src/sections/fillion/components/infor/details.js

@ -152,12 +152,12 @@ const UserModal = (props) => {
if (Object.values(values).length > 0) { if (Object.values(values).length > 0) {
if (rewkeys === 'transportation') { if (rewkeys === 'transportation') {
if (typecard == '111') { if (typecard == 'compile') {
setDelet(values) setDelet(values)
const query = { ...values, level: whichofits, roadId: records?.[0]?.value || '' } const query = { ...values, level: whichofits, roadId: records?.[0]?.value || '' }
dispatch(putRoadway(query)).then((res) => { dispatch(putRoadway(query)).then((res) => {
return true
}) })
return true
} else { } else {
setDelet(values) setDelet(values)
const query = { ...values, level: whichofits } const query = { ...values, level: whichofits }
@ -169,9 +169,9 @@ const UserModal = (props) => {
} }
if (rewkeys === 'bridge') { if (rewkeys === 'bridge') {
if (typecard == '111') { if (typecard == 'compile') {
setDelet(values) setDelet(values)
const query = { ...values, roadId: records?.[0]?.value || '' } const query = { ...values, bridgeId: records?.[0]?.value || '' }
dispatch(putBridge(query)).then((res) => { dispatch(putBridge(query)).then((res) => {
}) })
@ -186,7 +186,7 @@ const UserModal = (props) => {
} }
} }
if (rewkeys === 'weihuo') { if (rewkeys === 'weihuo') {
if (typecard == '111') { if (typecard == 'compile') {
setDelet(values) setDelet(values)
const query = { ...values, vehicleId: records?.[0]?.value || '', type: '危货' } const query = { ...values, vehicleId: records?.[0]?.value || '', type: '危货' }
@ -205,7 +205,7 @@ const UserModal = (props) => {
} }
} }
if (rewkeys === 'chuzu') { if (rewkeys === 'chuzu') {
if (typecard == '111') { if (typecard == 'compile') {
setDelet(values) setDelet(values)
const query = { ...values, vehicleId: records?.[0]?.value || '', type: '出租车' } const query = { ...values, vehicleId: records?.[0]?.value || '', type: '出租车' }
@ -224,7 +224,7 @@ const UserModal = (props) => {
} }
} }
if (rewkeys === 'yehu') { if (rewkeys === 'yehu') {
if (typecard == '111') { if (typecard == 'compile') {
setDelet(values) setDelet(values)
const query = { ...values, businessId: records?.[0]?.value, type: values.type } const query = { ...values, businessId: records?.[0]?.value, type: values.type }
dispatch(putHouseholds(query)).then((res) => { dispatch(putHouseholds(query)).then((res) => {
@ -240,7 +240,7 @@ const UserModal = (props) => {
return true return true
} }
} if (rewkeys === 'xianlu') { } if (rewkeys === 'xianlu') {
if (typecard == '111') { if (typecard == 'compile') {
setDelet(values) setDelet(values)
const query = { ...values, lineId: records?.[0]?.value || '' } const query = { ...values, lineId: records?.[0]?.value || '' }
dispatch(putCircuit(query)).then((res) => { dispatch(putCircuit(query)).then((res) => {
@ -257,7 +257,7 @@ const UserModal = (props) => {
} }
} }
if (rewkeys === 'cheliang') { if (rewkeys === 'cheliang') {
if (typecard == '111') { if (typecard == 'compile') {
setDelet(values) setDelet(values)
const query = { ...values, carId: records?.[0]?.value || '' } const query = { ...values, carId: records?.[0]?.value || '' }
dispatch(putVehicle(query)).then((res) => { dispatch(putVehicle(query)).then((res) => {
@ -274,7 +274,7 @@ const UserModal = (props) => {
} }
} }
if (rewkeys === 'zhichao') { if (rewkeys === 'zhichao') {
if (typecard == '111') { if (typecard == 'compile') {
setDelet(values) setDelet(values)
const query = { ...values, overspeedId: records?.[0]?.value || '' } const query = { ...values, overspeedId: records?.[0]?.value || '' }
dispatch(putPurchase(query)).then((res) => { dispatch(putPurchase(query)).then((res) => {
@ -297,7 +297,7 @@ const UserModal = (props) => {
}} }}
initialValues={recortd} initialValues={recortd}
> >
{typecard == '111' ? {typecard == 'compile' ?
<ProForm.Group <ProForm.Group
> >
<ProFormText <ProFormText

2
web/client/src/sections/fillion/components/inforTable.js

@ -353,7 +353,7 @@ const InForTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button> >编辑</Button>

8
web/client/src/sections/fillion/components/operationalTable.js

@ -110,7 +110,7 @@ const OperaTionalTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
hightModal('edit', record) hightModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button></div> >编辑</Button></div>
@ -697,7 +697,7 @@ const OperaTionalTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button> <Popconfirm title='' onConfirm={() => { deldata(record.id) }}> >编辑</Button> <Popconfirm title='' onConfirm={() => { deldata(record.id) }}>
@ -1330,7 +1330,7 @@ const OperaTionalTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button> <Popconfirm title='' onConfirm={() => { deldata(record.id) }}> >编辑</Button> <Popconfirm title='' onConfirm={() => { deldata(record.id) }}>
@ -1800,7 +1800,7 @@ const OperaTionalTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button><Popconfirm title='' onConfirm={() => { deldatas(record.id) }}> >编辑</Button><Popconfirm title='' onConfirm={() => { deldatas(record.id) }}>

66
web/client/src/sections/fillion/components/project/project.js

@ -1,9 +1,9 @@
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { Form, Spin, Table } from 'antd'; import { Form, Spin, Table } from 'antd';
import { DrawerForm, ProForm, ProFormText,ProFormSelect } from '@ant-design/pro-form'; import { DrawerForm, ProForm, ProFormText, ProFormSelect } from '@ant-design/pro-form';
import { putProject } from "../../actions/infor" import { putProject } from "../../actions/infor"
import _ from 'lodash' import _ from 'lodash'
const data = { const data = {
"entryName": "项目名称", "entryName": "项目名称",
@ -79,16 +79,16 @@ const ProjectModal = (props) => {
onFinish={(values) => { onFinish={(values) => {
console.log(values) console.log(values)
if (rewkeys === 'road') { if (rewkeys === 'road') {
if (typecard == '111') { if (typecard == 'compile') {
setDelet(values) setDelet(values)
const query = { ...values, type:rewkeys,projectId:records?.[0]?.value || '' } const query = { ...values, type: rewkeys, projectId: records?.[0]?.value || '', done: values.done === 'true' ? true : false }
dispatch(putProject(query)).then((res) => { dispatch(putProject(query)).then((res) => {
}) })
return true return true
} else { } else {
setDelet(values) setDelet(values)
const query = { ...values, type:rewkeys } const query = { ...values, type: rewkeys,done: values.done === 'true' ? true : false }
dispatch(putProject(query)).then((res) => { dispatch(putProject(query)).then((res) => {
}) })
@ -96,16 +96,16 @@ const ProjectModal = (props) => {
} }
} }
if (rewkeys === 'bridge') { if (rewkeys === 'bridge') {
if (typecard == '111') { if (typecard == 'compile') {
setDelet(values) setDelet(values)
const query = { ...values, type:rewkeys,projectId:records?.[0]?.value || '' } const query = { ...values, type: rewkeys, projectId: records?.[0]?.value || '',done: values.done === 'true' ? true : false }
dispatch(putProject(query)).then((res) => { dispatch(putProject(query)).then((res) => {
}) })
return true return true
} else { } else {
setDelet(values) setDelet(values)
const query = { ...values, type:rewkeys } const query = { ...values, type: rewkeys,done: values.done === 'true' ? true : false }
dispatch(putProject(query)).then((res) => { dispatch(putProject(query)).then((res) => {
}) })
@ -113,9 +113,9 @@ const ProjectModal = (props) => {
} }
} }
}} }}
initialValues={recortd} initialValues={{ ...recortd, done: recortd.done ? 'true' : 'false' }}
> >
{typecard == '111' ? {typecard == 'compile' ?
<ProForm.Group <ProForm.Group
> >
<ProFormText <ProFormText
@ -124,23 +124,23 @@ const ProjectModal = (props) => {
label={newlys?.[0]?.name} label={newlys?.[0]?.name}
placeholder="请输入名称" placeholder="请输入名称"
// value={recordsay?.[0]?.value} // value={recordsay?.[0]?.value}
// rules={[{ required: true, message: "必填" }]} // rules={[{ required: true, message: "必填" }]}
/><ProFormText /><ProFormText
name={newlys?.[1]?.type} name={newlys?.[1]?.type}
width="md" width="md"
label={newlys?.[1]?.name} label={newlys?.[1]?.name}
placeholder="请输入名称" placeholder="请输入名称"
// value={recordsay?.[1]?.value} // value={recordsay?.[1]?.value}
// rules={[{ required: true, message: "必填" }]} // rules={[{ required: true, message: "必填" }]}
/> />
<ProFormSelect <ProFormSelect
options={[ options={[
{ {
value: 'true', value: 'true',
label: '是', label: '是',
},{ }, {
value: 'false', value: 'false',
label: '否', label: '否',
}, },
@ -164,31 +164,31 @@ const ProjectModal = (props) => {
label={newlys?.[0]?.name} label={newlys?.[0]?.name}
placeholder="请输入名称" placeholder="请输入名称"
// value={recordssy?.[0]?.value} // value={recordssy?.[0]?.value}
// rules={[{ required: true, message: "必填" }]} // rules={[{ required: true, message: "必填" }]}
/><ProFormText /><ProFormText
name={newlys?.[1]?.type} name={newlys?.[1]?.type}
width="md" width="md"
label={newlys?.[1]?.name} label={newlys?.[1]?.name}
placeholder="请输入名称" placeholder="请输入名称"
// value={recordssy?.[1]?.value} // value={recordssy?.[1]?.value}
// rules={[{ required: true, message: "必填" }]} // rules={[{ required: true, message: "必填" }]}
/> />
<ProFormSelect <ProFormSelect
options={[ request={async () => [
{ {
value: 'true', value: 'true',
label: '是', label: '是',
},{ }, {
value: 'false', value: 'false',
label: '否', label: '否',
}, },
]} ]}
width="xs"
name='done' name='done'
label='是否已完成' label='是否已完成'
rules={[{ required: true, message: "必填" }]} rules={[{ required: true, message: "必填" }]}
/> />
{newlysay?.map((item, index) => { {newlysay?.map((item, index) => {
return <ProFormText width="md" return <ProFormText width="md"

33
web/client/src/sections/fillion/components/protable.less

@ -1,21 +1,30 @@
.protable-transpor{ .protable-transpor {
.ant-table-cell-fix-left{ .ant-table-cell-fix-left {
background-color: #ffffff !important; background-color: #ffffff !important;
} }
.ant-table-cell-fix-right{
.ant-table-cell-fix-right {
background-color: #ffffff !important; background-color: #ffffff !important;
} }
} }
.spilce{
.split-row-select-active { .list-row-actived {
background-color: #e6f7ff; background-color: #7cafc6;
} font-weight: 600;
th {
display: none;
}
} }
.card-protable{display: flex;
flex-direction:row;
.ant-divider {
width: 0px;
height: 8px;
border-left: 1px solid gray;
margin: 0px 8px;
opacity: 0.8;
}
.card-protable {
display: flex;
flex-direction: row;
width: 100%; width: 100%;
} }

4
web/client/src/sections/fillion/components/publicTable.js

@ -408,7 +408,7 @@ const PublicTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button><Popconfirm title='' onConfirm={() => { deldata(record.id) }}> >编辑</Button><Popconfirm title='' onConfirm={() => { deldata(record.id) }}>
@ -1103,7 +1103,7 @@ const PublicTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button><Popconfirm title='' onConfirm={() => { deldatas(record.id) }}> >编辑</Button><Popconfirm title='' onConfirm={() => { deldatas(record.id) }}>

9
web/client/src/sections/fillion/components/transportationTable.js

@ -1178,7 +1178,7 @@ const TransporTationTable = (props) => {
onClick={() => { onClick={() => {
setRecortd(record) setRecortd(record)
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
}} }}
>编辑</Button> >编辑</Button>
<Popconfirm title='是否确认删除' onConfirm={() => { deldata(record.id) }}><Button type="link" <Popconfirm title='是否确认删除' onConfirm={() => { deldata(record.id) }}><Button type="link"
@ -2334,7 +2334,7 @@ const TransporTationTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
@ -3491,7 +3491,7 @@ const TransporTationTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
openModal('edit', record) openModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
@ -3678,7 +3678,7 @@ const TransporTationTable = (props) => {
return <div><Button type="link" return <div><Button type="link"
onClick={() => { onClick={() => {
yilanModal('edit', record) yilanModal('edit', record)
setTypecard('111') setTypecard('compile')
setRecortd(record) setRecortd(record)
}} }}
>编辑</Button> >编辑</Button>
@ -3832,7 +3832,6 @@ const TransporTationTable = (props) => {
setRowSelected([]); setRowSelected([]);
const res = await dispatch(getProject(query)); const res = await dispatch(getProject(query));
setCounts(res.payload.data) setCounts(res.payload.data)
console.log(res)
return { return {
...res, ...res,
total: res.payload.data ? res.payload.data.count : 0 total: res.payload.data ? res.payload.data.count : 0

40
web/client/src/sections/fillion/containers/file.js

@ -0,0 +1,40 @@
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import '../style.less';
import { queryFileDir } from '../actions/file';
import FileTable from '../components/fileTable';
const superagent = require('superagent');
const patrol = (props) => {
const { dispatch, user } = props
useEffect(() => {
dispatch(queryFileDir())
}, [true])
//批量导出
const exports = (ids, counts) => {
let reportIds = [];
if (ids.length)
reportIds = ids
else
reportIds = (counts || {}).ids || [];
superagent.post('/_report/http')
.send({ id: reportIds.map(i => Number(i)) }).end((err, res) => {
const resTextIs = res.text.split('/').pop()
window.open(
'/_api/' +
`attachments?src=files/${resTextIs}&filename=${encodeURIComponent(resTextIs)}&token=${user.token}`)
})
}
return (
<> <FileTable exports={exports} />
</>
)
}
function mapStateToProps(state) {
const { auth } = state
return {
user: auth.user,
}
}
export default connect(mapStateToProps)(patrol);

3
web/client/src/sections/fillion/containers/index.js

@ -11,4 +11,5 @@ import Videois from './videois';
import PromoTional from './promotional'; import PromoTional from './promotional';
import Maintenance from './maintenance'; import Maintenance from './maintenance';
import Patrol from './patrol'; import Patrol from './patrol';
export { Infor,transportation,BridgeTable,HigHways,OperaTional,Enforce,Public,Videois,PromoTional,Maintenance,Patrol }; import File from './file';
export { Infor,transportation,BridgeTable,HigHways,OperaTional,Enforce,Public,Videois,PromoTional,Maintenance,Patrol,File};

3
web/client/src/sections/fillion/nav-item.js

@ -32,6 +32,9 @@ export function getNavItem(user, dispatch) {
<Menu.Item key="fillionpublic"> <Menu.Item key="fillionpublic">
<Link to="/fillion/public">公交管理</Link> <Link to="/fillion/public">公交管理</Link>
</Menu.Item> </Menu.Item>
<Menu.Item key="fileCont">
<Link to="/fillion/file">档案管理</Link>
</Menu.Item>
<Menu.Item key="fillionvideois"> <Menu.Item key="fillionvideois">
<Link to="/fillion/videois">视频管理</Link> <Link to="/fillion/videois">视频管理</Link>
</Menu.Item> </Menu.Item>

19
web/client/src/sections/fillion/routes.js

@ -10,6 +10,7 @@ import { Videois } from './containers';
import { PromoTional } from './containers'; import { PromoTional } from './containers';
import { Maintenance } from './containers' import { Maintenance } from './containers'
import { Patrol } from './containers' import { Patrol } from './containers'
import { File } from './containers';
export default [{ export default [{
type: 'inner', type: 'inner',
route: { route: {
@ -31,14 +32,14 @@ export default [{
component: transportation, component: transportation,
breadcrumb: '道路管理', breadcrumb: '道路管理',
} }
, { , {
path: '/bridge', path: '/bridge',
key: 'fillionbridge', key: 'fillionbridge',
menuSelectKeys: ['fillionbridge'], menuSelectKeys: ['fillionbridge'],
component: BridgeTable, component: BridgeTable,
breadcrumb: '桥梁管理', breadcrumb: '桥梁管理',
} }
, { , {
path: '/highways', path: '/highways',
key: 'fillionhighways', key: 'fillionhighways',
menuSelectKeys: ['fillionhighways'], menuSelectKeys: ['fillionhighways'],
@ -56,7 +57,7 @@ export default [{
menuSelectKeys: ['fillionenforce'], menuSelectKeys: ['fillionenforce'],
component: Enforce, component: Enforce,
breadcrumb: '执法管理', breadcrumb: '执法管理',
}, { }, {
path: '/maintenance', path: '/maintenance',
key: 'fillionmaintenance', key: 'fillionmaintenance',
menuSelectKeys: ['fillionmaintenance'], menuSelectKeys: ['fillionmaintenance'],
@ -74,14 +75,22 @@ export default [{
menuSelectKeys: ['fillionpublic'], menuSelectKeys: ['fillionpublic'],
component: Public, component: Public,
breadcrumb: '公交管理', breadcrumb: '公交管理',
}, { },
{
path: '/file',
key: 'fileCont',
menuSelectKeys: ['fileCont'],
component: File,
breadcrumb: '档案管理',
},
{
path: '/videois', path: '/videois',
key: 'fillionvideois', key: 'fillionvideois',
menuSelectKeys: ['fillionvideois'], menuSelectKeys: ['fillionvideois'],
component: Videois, component: Videois,
breadcrumb: '视频管理', breadcrumb: '视频管理',
} }
, { , {
path: '/promotional', path: '/promotional',
key: 'fillionpromotional', key: 'fillionpromotional',
menuSelectKeys: ['fillionpromotional'], menuSelectKeys: ['fillionpromotional'],

2
web/client/src/sections/quanju/containers/footer/build/index.js

@ -49,7 +49,7 @@ const Build = (props) => {
const res = await dispatch(getxuanchuan()); const res = await dispatch(getxuanchuan());
// setdata(alltype.filter(item=>item.name!=='null')) // setdata(alltype.filter(item=>item.name!=='null'))
setxuandata(res.payload.data) setxuandata(res.payload.data || [])
console.log(res.payload.data,'宣传栏数据') console.log(res.payload.data,'宣传栏数据')
} }

2
web/client/src/themes/light.json

File diff suppressed because one or more lines are too long

217
web/client/src/utils/webapi.js

@ -3,112 +3,121 @@ import { ProxyRequest } from "@peace/utils";
export const GodTransRequest = new ProxyRequest("_godTrans"); export const GodTransRequest = new ProxyRequest("_godTrans");
export const ApiTable = { export const ApiTable = {
login: 'login', login: 'login',
logout: 'logout', logout: 'logout',
getEnterprisesMembers: 'enterprises/{enterpriseId}/members', getEnterprisesMembers: 'enterprises/{enterpriseId}/members',
//组织管理-用户管理-部门 //组织管理-用户管理-部门
getDepMessage: 'department', getDepMessage: 'department',
createDepMessage: 'department', createDepMessage: 'department',
updateDepMessage: 'department', updateDepMessage: 'department',
delDepMessage: 'department/{depId}', delDepMessage: 'department/{depId}',
//组织管理-用户管理-用户 //组织管理-用户管理-用户
getDepUser: 'department/{depId}/user', getDepUser: 'department/{depId}/user',
createUser: 'department/user', createUser: 'department/user',
updateUser: 'department/user/{userId}', updateUser: 'department/user/{userId}',
delUser: 'department/user/{userIds}', delUser: 'department/user/{userIds}',
resetPwd: 'department/user/{userId}/password', resetPwd: 'department/user/{userId}/password',
//用户权限 //用户权限
getResource: 'resource', getResource: 'resource',
getUserResource: 'user/resource', getUserResource: 'user/resource',
postUserRes: 'user/resource', postUserRes: 'user/resource',
//报表配置 //报表配置
allAreas: 'allAreas', allAreas: 'allAreas',
addReportConfig: 'report/config', addReportConfig: 'report/config',
getReportConfig: 'report/config', getReportConfig: 'report/config',
editReportConfig: 'report/{reportId}/config', editReportConfig: 'report/{reportId}/config',
delReportConfig: 'report/{reportId}/config', delReportConfig: 'report/{reportId}/config',
// 报表编辑 // 报表编辑
getReportRectify: 'report/rectify', getReportRectify: 'report/rectify',
getReportRectifyDetail: 'report/rectify/detail', getReportRectifyDetail: 'report/rectify/detail',
compileReportRectifyDetail: 'report/rectify/detail', compileReportRectifyDetail: 'report/rectify/detail',
getReportList: 'report/list', getReportList: 'report/list',
getReportDetail: 'report/{reportId}/detail', getReportDetail: 'report/{reportId}/detail',
getUsers: 'user', getUsers: 'user',
//档案管理
//运政管理 uploadFile: 'netdisk-files/upload',
getOperaTional: 'vehicle', putOperaTional: 'vehicle', deleteFile: 'netdisk-files/delete',
getSpecificVehicle: 'vehicle/specific', putSpecificVehicle: 'vehicle/specific', delSpecificVehicle: 'vehicle/{vehicleId}/specific', getFileList: 'netdisk-files/query',
getHouseholds: 'vehicle/business', putHouseholds: 'vehicle/business', delHouseholds: 'vehicle/business/{businessId}', createFileDir: 'create/struct/dir',
getRoadway: 'road', delFileDir: 'netdisk-files/dir/delete',
// 获取运政统计 queryFileDIr: 'get/file/dirs',
getYunZheng: "transportation/statistic", updateFileDir: 'netdisk-files/struct/dir/update',
//桥梁管理
getBridge: 'bridge',
putBridge: 'bridge', //运政管理
delBridge: 'bridge/{bridgeId}', getOperaTional: 'vehicle', putOperaTional: 'vehicle',
//工程数据 getSpecificVehicle: 'vehicle/specific', putSpecificVehicle: 'vehicle/specific', delSpecificVehicle: 'vehicle/{vehicleId}/specific',
getProject: 'project', getHouseholds: 'vehicle/business', putHouseholds: 'vehicle/business', delHouseholds: 'vehicle/business/{businessId}',
putProject: 'project', getRoadway: 'road',
delProject: 'project/{projectId}', // 获取运政统计
//道路数据 getYunZheng: "transportation/statistic",
getRoadway: 'road', //桥梁管理
putRoadway: 'road', getBridge: 'bridge',
delRoadway: 'road/{roadId}', putBridge: 'bridge',
//道路统计 delBridge: 'bridge/{bridgeId}',
getBgroadstatistics: "build/road_state", //工程数据
getProject: 'project',
//治超监测点处理数据 putProject: 'project',
getzhichaomanager: 'manage/overspeed/processed', delProject: 'project/{projectId}',
//道路数据
//获取治超详情数据 getRoadway: 'road',
getzhichaodetail: '/manage/overspeed', putRoadway: 'road',
// 获取道路养护统计及列表 delRoadway: 'road/{roadId}',
getroadmaintain: "conserve/statistic", //道路统计
// 获取治超详情列 getBgroadstatistics: "build/road_state",
getzhichaoList: "manage/overspeed",
//治超监测点处理数据
//大屏运营 —— 公交车辆层级信息 getzhichaomanager: 'manage/overspeed/processed',
getBusTier: '/operation/car_level',
//获取治超详情数据
//获取路政列表 getzhichaodetail: '/manage/overspeed',
getHighways: 'road_manage', putHighways: 'road_manage', // 获取道路养护统计及列表
getroadmaintain: "conserve/statistic",
//获取道路养护统计及列表 // 获取治超详情列
getRoadMaintenance: 'conserve/statistic', getzhichaoList: "manage/overspeed",
//获取宣传数据 //大屏运营 —— 公交车辆层级信息
getpropagata: 'publicity', getBusTier: '/operation/car_level',
// <<<<<<< HEAD
// //公交信息 //获取路政列表
// getCircuit: 'bus/line', putCircuit: 'bus/line', delCircuit: 'bus/line/{lineId}', getHighways: 'road_manage', putHighways: 'road_manage',
// getVehicle: 'bus/car', putVehicle: 'bus/car', delVehicle: 'bus/car/{carId}',
// ======= //获取道路养护统计及列表
//公交信息 getRoadMaintenance: 'conserve/statistic',
getCircuit: 'bus/line', putCircuit: 'bus/line', delCircuit: 'bus/line/{lineId}',
getVehicle: 'bus/car', putVehicle: 'bus/car', delVehicle: 'bus/car/{carId}', //获取宣传数据
getpropagata: 'publicity',
// <<<<<<< HEAD
// 获取道路拥堵指数 // //公交信息
getgodshuju: "data/god_trans", // getCircuit: 'bus/line', putCircuit: 'bus/line', delCircuit: 'bus/line/{lineId}',
// getVehicle: 'bus/car', putVehicle: 'bus/car', delVehicle: 'bus/car/{carId}',
//治超管理 // =======
getPurchase: 'overspeed', //公交信息
putPurchase: 'overspeed', getCircuit: 'bus/line', putCircuit: 'bus/line', delCircuit: 'bus/line/{lineId}',
delPurchase: 'overspeed/{overspeedId}', getVehicle: 'bus/car', putVehicle: 'bus/car', delVehicle: 'bus/car/{carId}',
// >>>>>>> a3fe9bee43370f1e5ceb69dcdef1b9b7cbf9c84c
// 获取道路拥堵指数
getgodshuju: "data/god_trans",
//治超管理
getPurchase: 'overspeed',
putPurchase: 'overspeed',
delPurchase: 'overspeed/{overspeedId}',
// >>>>>>> a3fe9bee43370f1e5ceb69dcdef1b9b7cbf9c84c
}; };
export const RouteTable = { export const RouteTable = {
apiRoot: '/api/root', apiRoot: '/api/root',
fileUpload: '/_upload/new', fileUpload: '/_upload/new',
cleanUpUploadTrash: '/_upload/cleanup', cleanUpUploadTrash: '/_upload/cleanup',
}; };

30721
web/log/development.txt

File diff suppressed because it is too large

22
web/package-lock.json

@ -324,7 +324,7 @@
"@antv/g-svg": { "@antv/g-svg": {
"version": "0.5.6", "version": "0.5.6",
"resolved": "http://npm.anxinyun.cn/@antv%2fg-svg/-/g-svg-0.5.6.tgz", "resolved": "http://npm.anxinyun.cn/@antv%2fg-svg/-/g-svg-0.5.6.tgz",
"integrity": "sha512-Xve1EUGk4HMbl2nq4ozR4QLh6GyoZ8Xw/+9kHYI4B5P2lIUQU95MuRsaLFfW5NNpZDx85ZeH97tqEmC9L96E7A==", "integrity": "sha1-cLL6mAxDGzmtPFtLU+NqHWCVfWU=",
"requires": { "requires": {
"@antv/g-base": "^0.5.3", "@antv/g-base": "^0.5.3",
"@antv/g-math": "^0.1.6", "@antv/g-math": "^0.1.6",
@ -1921,7 +1921,7 @@
}, },
"@peace/utils": { "@peace/utils": {
"version": "0.0.51", "version": "0.0.51",
"resolved": "http://npm.anxinyun.cn/@peace%2futils/-/utils-0.0.51.tgz", "resolved": "http://npm.anxinyun.cn:443/@peace%2futils/-/utils-0.0.51.tgz",
"integrity": "sha512-+HeDYNCf4Cid2nWEIQxED2avueBgXL4AgY7SVngubfCS6qI2TKjyPuTrtDGHTvojuLQe5BlEiKMxIuiAMQmTag==", "integrity": "sha512-+HeDYNCf4Cid2nWEIQxED2avueBgXL4AgY7SVngubfCS6qI2TKjyPuTrtDGHTvojuLQe5BlEiKMxIuiAMQmTag==",
"requires": { "requires": {
"immutable": "^4.0.0-rc.12", "immutable": "^4.0.0-rc.12",
@ -4203,7 +4203,7 @@
"connect-history-api-fallback": { "connect-history-api-fallback": {
"version": "1.6.0", "version": "1.6.0",
"resolved": "http://npm.anxinyun.cn/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", "resolved": "http://npm.anxinyun.cn/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz",
"integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==" "integrity": "sha1-izIIk1kwjRERFdgcrT/Oq4iPl7w="
}, },
"connected-react-router": { "connected-react-router": {
"version": "6.9.3", "version": "6.9.3",
@ -4625,7 +4625,7 @@
"define-property": { "define-property": {
"version": "2.0.2", "version": "2.0.2",
"resolved": "http://npm.anxinyun.cn/define-property/-/define-property-2.0.2.tgz", "resolved": "http://npm.anxinyun.cn/define-property/-/define-property-2.0.2.tgz",
"integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", "integrity": "sha1-1Flono1lS6d+AqgX+HENcCyxbp0=",
"requires": { "requires": {
"is-descriptor": "^1.0.2", "is-descriptor": "^1.0.2",
"isobject": "^3.0.1" "isobject": "^3.0.1"
@ -6178,7 +6178,7 @@
"he": { "he": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "http://npm.anxinyun.cn/he/-/he-1.2.0.tgz", "resolved": "http://npm.anxinyun.cn/he/-/he-1.2.0.tgz",
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "integrity": "sha1-hK5l+n6vsWX922FWauFLrwVmTw8=",
"dev": true "dev": true
}, },
"history": { "history": {
@ -6924,7 +6924,7 @@
"js-tokens": { "js-tokens": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "http://npm.anxinyun.cn/js-tokens/-/js-tokens-4.0.0.tgz", "resolved": "http://npm.anxinyun.cn/js-tokens/-/js-tokens-4.0.0.tgz",
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" "integrity": "sha1-GSA/tZmR35jjoocFDUZHzerzJJk="
}, },
"jsbn": { "jsbn": {
"version": "0.1.1", "version": "0.1.1",
@ -7286,7 +7286,7 @@
"koa-static": { "koa-static": {
"version": "1.5.3", "version": "1.5.3",
"resolved": "http://npm.anxinyun.cn/koa-static/-/koa-static-1.5.3.tgz", "resolved": "http://npm.anxinyun.cn/koa-static/-/koa-static-1.5.3.tgz",
"integrity": "sha512-FmfSFJOrtWGZ/Ae5Q7xeM+ck1IdofNEvIQhdPLvGHyTjilhYmFGoyRN1+BAbTknWnDoRRyHsGGq0FMRDTcCb1w==", "integrity": "sha1-29IUbu5xeA3/0xLyPMSnYui839I=",
"requires": { "requires": {
"debug": "^3.2.5", "debug": "^3.2.5",
"koa-send": "~2.0.1" "koa-send": "~2.0.1"
@ -9335,7 +9335,7 @@
}, },
"react-quill": { "react-quill": {
"version": "1.3.5", "version": "1.3.5",
"resolved": "http://npm.anxinyun.cn/react-quill/-/react-quill-1.3.5.tgz", "resolved": "http://npm.anxinyun.cn:443/react-quill/-/react-quill-1.3.5.tgz",
"integrity": "sha1-jErXWdoDNlsXx5xsUq+pdyJZhE4=", "integrity": "sha1-jErXWdoDNlsXx5xsUq+pdyJZhE4=",
"dev": true, "dev": true,
"requires": { "requires": {
@ -10518,7 +10518,7 @@
"source-map-resolve": { "source-map-resolve": {
"version": "0.5.3", "version": "0.5.3",
"resolved": "http://npm.anxinyun.cn/source-map-resolve/-/source-map-resolve-0.5.3.tgz", "resolved": "http://npm.anxinyun.cn/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
"integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", "integrity": "sha1-GQhmvs51U+H48mei7oLGBrVQmho=",
"requires": { "requires": {
"atob": "^2.1.2", "atob": "^2.1.2",
"decode-uri-component": "^0.2.0", "decode-uri-component": "^0.2.0",
@ -11101,7 +11101,7 @@
"type-is": { "type-is": {
"version": "1.6.18", "version": "1.6.18",
"resolved": "http://npm.anxinyun.cn/type-is/-/type-is-1.6.18.tgz", "resolved": "http://npm.anxinyun.cn/type-is/-/type-is-1.6.18.tgz",
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", "integrity": "sha1-TlUs0F3wlGfcvE73Od6J8s83wTE=",
"requires": { "requires": {
"media-typer": "0.3.0", "media-typer": "0.3.0",
"mime-types": "~2.1.24" "mime-types": "~2.1.24"
@ -11341,7 +11341,7 @@
"use": { "use": {
"version": "3.1.1", "version": "3.1.1",
"resolved": "http://npm.anxinyun.cn/use/-/use-3.1.1.tgz", "resolved": "http://npm.anxinyun.cn/use/-/use-3.1.1.tgz",
"integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" "integrity": "sha1-1QyMrHmhn7wg8pEfVuuXP04QBw8="
}, },
"use-json-comparison": { "use-json-comparison": {
"version": "1.0.6", "version": "1.0.6",

2
web/package.json

@ -6,7 +6,7 @@
"scripts": { "scripts": {
"test": "mocha", "test": "mocha",
"start": "cross-env NODE_ENV=development npm run start-params", "start": "cross-env NODE_ENV=development npm run start-params",
"start-params": "node server -p 5000 -u http://10.8.30.7:14000 --qndmn http://rfkimpwbb.hn-bkt.clouddn.com", "start-params": "node server -p 5000 -u http://localhost:4000 --qndmn http://rfkimpwbb.hn-bkt.clouddn.com",
"deploy": "export NODE_ENV=production&&npm run color && npm run build && node server", "deploy": "export NODE_ENV=production&&npm run color && npm run build && node server",
"build-dev": "export NODE_ENV=development&&webpack --config webpack.config.js", "build-dev": "export NODE_ENV=development&&webpack --config webpack.config.js",
"build": "export NODE_ENV=production&&webpack --config webpack.config.prod.js", "build": "export NODE_ENV=production&&webpack --config webpack.config.prod.js",

Loading…
Cancel
Save