Commit 257551868d0939f92b7e514108512e2469408ba5

Authored by zhangzzzz
1 parent 843dc198

公告支持滚动、双击弹窗;

src/mes/scheduledTasks/machineTasks/index.js
@@ -759,7 +759,14 @@ @@ -759,7 +759,14 @@
759 {carouselData.map(item => ( 759 {carouselData.map(item => (
760 <div key={item.id} className={`tasksCarousel`}> 760 <div key={item.id} className={`tasksCarousel`}>
761 <h2>{item.title}</h2> 761 <h2>{item.title}</h2>
762 - <p>{item.content}</p> 762 + <p onDoubleClick={() => {
  763 + if (item.id === 999) return;
  764 + Modal.info({
  765 + width: "40vw",
  766 + title: item.title,
  767 + content: item.content
  768 + });
  769 + }}>{item.content}</p>
763 </div> 770 </div>
764 ))} 771 ))}
765 </Carousel> 772 </Carousel>
src/mes/scheduledTasks/machineTasks/index.less
@@ -172,7 +172,9 @@ @@ -172,7 +172,9 @@
172 } 172 }
173 173
174 .tasksCarousel { 174 .tasksCarousel {
175 - height: calc(100% - 8px); 175 + height: 100%;
  176 + display: flex !important;
  177 + flex-direction: column;
176 178
177 h2 { 179 h2 {
178 padding-left: 30px; 180 padding-left: 30px;
@@ -184,9 +186,13 @@ @@ -184,9 +186,13 @@
184 } 186 }
185 187
186 p { 188 p {
187 - margin-top: @margin-top; 189 + flex: 1;
  190 + overflow: auto;
  191 + margin: @margin-top 0 0 0;
188 line-height: 28px; 192 line-height: 28px;
189 font-size: 18px; 193 font-size: 18px;
  194 + cursor: default;
  195 + user-select: none;
190 } 196 }
191 } 197 }
192 } 198 }