文件收集功能(4/5)

优化文件收集情况的用户交互
This commit is contained in:
Chenx221 2024-02-26 19:52:53 +08:00
parent 73c08454c5
commit 535498811b
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -49,14 +49,19 @@ $dataProvider->query->andWhere(['task_id' => $model->id]);
<h2>文件收集情况:</h2> <h2>文件收集情况:</h2>
<?= GridView::widget([ <?= GridView::widget([
'dataProvider' => $dataProvider, 'dataProvider' => $dataProvider,
// 'filterModel' => $searchModel,
'columns' => [ 'columns' => [
['class' => 'yii\grid\SerialColumn'], ['class' => 'yii\grid\SerialColumn'],
'id', 'id',
// 'task_id',
'uploader_ip', 'uploader_ip',
'uploaded_at', 'uploaded_at',
'subfolder_name', [
'attribute' => 'subfolder_name',
'format' => 'raw',
'value' => function ($model) {
$url = "https://devs.chenx221.cyou:8081/index.php?r=home%2Findex&directory=" . urlencode($model->task->folder_path.'/'.$model->subfolder_name);
return Html::a($model->subfolder_name, $url, ['target' => '_blank']);
},
],
], ],
]); ?> ]); ?>
</div> </div>