文件收集功能(4/5)
优化文件收集情况的用户交互
This commit is contained in:
parent
73c08454c5
commit
535498811b
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user