|
@@ -202,7 +202,7 @@
|
|
|
<th class="align-center w120 mw120">通道单量</th>
|
|
|
<?php foreach ($output['providers'] as $provider) { ?>
|
|
|
<th class="align-center w165 mw165">
|
|
|
- <input type="text" value="<?php echo $provider['channel_speed'] ?? '-1' ?>" name="pid-channel-speed[]" class="w32" />
|
|
|
+ <input data-pid="<?php echo $provider['provider_id']?>" type="text" value="<?php echo $provider['channel_speed'] ?? '-1' ?>" name="pid-channel-speed[]" class="w32 channel_speed_input" />
|
|
|
</th>
|
|
|
<?php } ?>
|
|
|
</tr>
|
|
@@ -365,6 +365,12 @@
|
|
|
// 提交
|
|
|
$("#submitBtn").click(function() {
|
|
|
console.log('isSubmit', isSubmit);
|
|
|
+ var $channel_speed_input = $('.channel_speed_input');
|
|
|
+ for(let i=0;i<$channel_speed_input.length;i++) {
|
|
|
+ const val = $channel_speed_input.eq(i).val();
|
|
|
+ const pid = $channel_speed_input.eq(i).attr('data-pid');
|
|
|
+ $channel_speed_input.eq(i).val(pid+'-'+val);
|
|
|
+ }
|
|
|
if (isSubmit) {
|
|
|
$("#price_form").submit();
|
|
|
}
|