Commit 6348e8e6 by yuananting

fix:图标挤压,指派报错

parent 3dcf263d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-07-28 14:56:52 * @Date: 2021-07-28 14:56:52
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-08-17 15:18:08 * @LastEditTime: 2021-08-17 16:16:04
* @Description: 描述一下咯 * @Description: 描述一下咯
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -80,16 +80,19 @@ function TrainList(props) { ...@@ -80,16 +80,19 @@ function TrainList(props) {
// 显示指派弹窗 // 显示指派弹窗
function handleShowAssignModal(item) { function handleShowAssignModal(item) {
const assignList = item.assignList.map((childItem) => { let _assignList = [];
childItem.checkedId = childItem.assignId; if (item.assignList?.length > 0) {
childItem.checkedName = childItem.assignName; _assignList = item.assignList.map((childItem) => {
childItem.checkedType = childItem.assignType; childItem.checkedId = childItem.assignId;
return childItem; childItem.checkedName = childItem.assignName;
}); childItem.checkedType = childItem.assignType;
return childItem;
});
}
const chooseAssignorModal = ( const chooseAssignorModal = (
<ChooseAssignorModal <ChooseAssignorModal
currentAssignorList={assignList} currentAssignorList={_assignList}
visible={true} visible={true}
onClose={() => { onClose={() => {
setChooseAssignorModal(null); setChooseAssignorModal(null);
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
height: 60px; height: 60px;
border-radius: 2px; border-radius: 2px;
margin-right: 8px; margin-right: 8px;
flex-shrink: 0;
} }
.train-name { .train-name {
width: 188px; width: 188px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment