Commit 719da6bc authored by 蔡闯's avatar 蔡闯

2021-1-7

parent 3ed8e2f1
...@@ -198,7 +198,7 @@ class Userbind extends Base ...@@ -198,7 +198,7 @@ class Userbind extends Base
$village_id = $this->village_id??1; $village_id = $this->village_id??1;
$optionsArr = Db::name('layout_list')->where(['village_id'=>$village_id])->column('code'); $optionsArr = Db::name('layout_list')->where(['village_id'=>$village_id])->column('code');
$optionsString = implode(',',$optionsArr);//这个是选择布局 $optionsString = implode(',',$optionsArr);//这个是选择布局
for($i=2;$i<200;$i++) { for($i=2;$i<20;$i++) {
$phpExcel->getActiveSheet()->getCell('F'.$i)->getDataValidation()-> setType(\PHPExcel_Cell_DataValidation::TYPE_LIST) $phpExcel->getActiveSheet()->getCell('F'.$i)->getDataValidation()-> setType(\PHPExcel_Cell_DataValidation::TYPE_LIST)
-> setErrorStyle(\PHPExcel_Cell_DataValidation::STYLE_INFORMATION) -> setErrorStyle(\PHPExcel_Cell_DataValidation::STYLE_INFORMATION)
-> setAllowBlank(false) -> setAllowBlank(false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment