|
|
@ -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, |
|
|
|