* Code for task showimport.

This commit is contained in:
tanghucheng
2022-08-05 16:03:21 +08:00
parent 5d3b1f4496
commit 03eb151f67
3 changed files with 9 additions and 2 deletions
+6 -1
View File
@@ -141,12 +141,17 @@ class port extends control
*/
public function ajaxGetTbody($model = '', $lastID = 0, $pagerID = 1)
{
$filter = '';
if($model == 'task') $filter = 'estimate';
$this->loadModel($model);
$importFields = $this->config->$model->templateFields;
$fields = $this->port->initFieldList($model, $importFields, false);
$formatDatas = $this->port->format($model);
$formatDatas = $this->port->format($model, $filter);
$datas = $this->port->getPageDatas($formatDatas, $pagerID);
if($model == 'task') $datas = $this->task->processDatas4Task($datas);
$html = $this->port->buildNextList($datas->datas, $lastID, $fields, $pagerID, $model);
die($html);
}
+2 -1
View File
@@ -87,7 +87,7 @@ class portModel extends model
$countInputVars = count($datas) * count($current); // Count all post datas
$showSuhosinInfo = common::judgeSuhosinSetting($countInputVars);
if($showSuhosinInfo) return extension_loaded('suhosin') ? sprintf($this->lang->suhosinInfo, $countInputVars) : sprintf($this->lang->maxVarsInfo, $countInputVars);
return '';
return;
}
/**
@@ -1275,6 +1275,7 @@ class portModel extends model
$html = '';
$key = key($list);
$addID = 1;
$members = $this->loadModel('user')->getTeamMemberPairs($this->session->taskPortParams['executionID'], 'execution');
$appendFields = $this->session->appendFields;
$showImportCount = $this->config->port->lazyLoading ? $this->config->port->showImportCount : $this->maxImport;
+1
View File
@@ -36,6 +36,7 @@ function loadData($showmore)
$('#showData tbody').find('.picker-select').picker({chosenMode: true}).removeClass('nopicker');
})
}
function throttle(fn, threshhold)
{
var last;