Browse Source

巡检计划弹窗标题优化

master
liujiangyong 2 years ago
parent
commit
2839ae6ddd
  1. 4
      web/client/src/sections/patrolManage/components/planModal.js

4
web/client/src/sections/patrolManage/components/planModal.js

@ -53,7 +53,7 @@ const PlanModal = ({ visible, onCreate, onCancel, dispatch, userLoading, userLis
return (
<Modal
visible={visible}
title="新增巡检计划"
title={(type === 'view' ? '查看' : type === 'edit' ? '编辑' : '新增') + "巡检计划"}
okText="确定"
cancelText="取消"
onCancel={() => {
@ -204,7 +204,7 @@ const PlanModal = ({ visible, onCreate, onCancel, dispatch, userLoading, userLis
);
};
function mapStateToProps (state) {
function mapStateToProps(state) {
const { auth, userList, structureList, patrolTemplate } = state
return {
user: auth.user,

Loading…
Cancel
Save