title = '文件收集ID ' . $model->id; $this->params['breadcrumbs'][] = ['label' => '文件收集', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; YiiAsset::register($this); $searchModel = new CollectionUploadedSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); $dataProvider->query->andWhere(['task_id' => $model->id]); ?>

title) ?>

'btn btn-primary', 'id' => 'copy-link-button']) ?> $model->id, 'secret' => $model->secret], ['class' => 'btn btn-primary', 'target' => '_blank']) ?> $model->id], [ 'class' => 'btn btn-danger', 'data' => [ 'confirm' => '你确定要取消这个收集任务吗?已收集的文件不会被删除', 'method' => 'post', ], ]) ?>

$model, 'attributes' => [ 'id', 'folder_path', 'created_at', 'secret', ], ]) ?>

文件收集情况:

$dataProvider, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'id', 'uploader_ip', 'uploaded_at', [ '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']); }, ], ], ]); ?>
registerJsFile('@web/js/collection_view.js', ['depends' => [JqueryAsset::class], 'position' => View::POS_END]); ?>