<view class="container">
  <!-- 模型类型选择 -->
  <picker bindchange="onModelTypeChange" value="{{selectedModelType}}" range="{{Model_name}}" range-key="label">
    <view class="picker">
      选择模型类型：{{selectedModelLabel || '请选择'}}
    </view>
  </picker>

  <!-- 表格化展示 -->
  <view class="model-table">
    <!-- 表头 -->
    <view class="table-header">
      <view class="col select-col">选择</view>
      <view class="col">模型ID</view>
      <view class="col">模型类型</view>
      <view class="col">R^2评分</view>
      <view class="col">MAE</view>
      <view class="col">RMSE</view>
    </view>

    <!-- 数据行 -->
    <view class="table-body">
      <block wx:for="{{filteredModelList}}" wx:key="ModelID">
        <view class="table-row {{selectedModelId === item.ModelID ? 'selected' : ''}}">
          <view class="col select-col">
            <radio 
              value="{{item.ModelID}}"
              data-model-id="{{item.ModelID}}"
              checked="{{selectedModelId === item.ModelID}}"
              bindtap="onModelSelect"
            />
          </view>
          <view class="col">{{item.ModelID}}</view>
          <view class="col">{{item.ModelType}}</view>
          <view class="col">{{item.PerformanceScore}}</view>
          <view class="col">{{item.MAE}}</view>
          <view class="col">{{item.RMSE}}</view>
        </view>
      </block>
    </view>
  </view>

  <!-- 提交按钮 -->
  <button bindtap="onSubmitModel" class="submit-btn">提交选择</button>
</view>