修改样式问题

master
yulingwei 5 years ago
parent 26f89f3c64
commit 3415ef8336

@ -105,17 +105,22 @@
<div <?php if (empty($data['process_log']) || $data['type'] == 1):?>hidden<?php endif;?> >
<div style="font-size:large;">工单进度</div>
<div style="width: 600px;border: 0.5px solid #000;height: 100%;padding-top: 20px;padding-right: 50px;padding-left: 50px;margin-bottom: 50px;">
<div style="width: 600px;border: 0.5px solid #000;height: 700px;padding-top: 20px;padding-right: 50px;padding-left: 50px;margin-bottom: 50px;overflow: scroll;">
<?php foreach($data['process_log'] as $index => $log):?>
<p style="font-weight: bold;font-size: medium;margin-top: 10px;">{$index+1}. {$log['title']}</p>
<?php if ($log['type'] == 2):?>
<?php foreach($log['detail'] as $detail):?>
<p style="margin-left: 20px;">--<?php echo $detail['key_name'] . " 旧值:".$detail['old']." 新值:".$detail['new'] ?></p>
<?php endforeach;?>
<?php elseif($log['type'] == 3):?>
<p style="margin-left: 20px;"><label>内容:</label><span style="color: gray;">{$log['detail']}</span></p>
<?php endif;?>
<?php endforeach;?>
<p style="font-weight: bold;font-size: medium;margin-top: 10px;">{$index+1}. {$log['title']}</p>
<?php if ($log['type'] == 2):?>
<?php foreach($log['detail'] as $detail):?>
<p style="margin-left: 20px;word-break: break-all;">
<span style="color: blue;">--<?php echo $detail['key_name'];?></span></br>
<span style="color: red;font-size: x-small;">旧值:</span></br>
<span><?php echo $detail['old'];?></span></br>
<span style="color: red;font-size: x-small;">新值:</span></br>
<span><?php echo $detail['new'];?></span>
<?php endforeach;?>
<?php elseif($log['type'] == 3):?>
<p style="margin-left: 20px;"><label>内容:</label><span style="color: gray;">{$log['detail']}</span></p>
<?php endif;?>
<?php endforeach;?>
</div>
</div>
</div>

@ -240,12 +240,17 @@
<div <?php if (empty($data['process_log']) || $data['type'] == 1):?>hidden<?php endif;?> >
<div style="font-size:large;">工单进度</div>
<div style="width: 600px;border: 0.5px solid #000;height: 100%;padding-top: 20px;padding-right: 50px;padding-left: 50px;margin-bottom: 50px;">
<div style="width: 600px;border: 0.5px solid #000;height: 700px;padding-top: 20px;padding-right: 50px;padding-left: 50px;margin-bottom: 50px;overflow: scroll;">
<?php foreach($data['process_log'] as $index => $log):?>
<p style="font-weight: bold;font-size: medium;margin-top: 10px;">{$index+1}. {$log['title']}</p>
<?php if ($log['type'] == 2):?>
<?php foreach($log['detail'] as $detail):?>
<p style="margin-left: 20px;">--<?php echo $detail['key_name'] . " 旧值:".$detail['old']." 新值:".$detail['new'] ?></p>
<p style="margin-left: 20px;word-break: break-all;">
<span style="color: blue;">--<?php echo $detail['key_name'];?></span></br>
<span style="color: red;font-size: x-small;">旧值:</span></br>
<span><?php echo $detail['old'];?></span></br>
<span style="color: red;font-size: x-small;">新值:</span></br>
<span><?php echo $detail['new'];?></span>
<?php endforeach;?>
<?php elseif($log['type'] == 3):?>
<p style="margin-left: 20px;"><label>内容:</label><span style="color: gray;">{$log['detail']}</span></p>

Loading…
Cancel
Save