Commit 82d08949 authored by 蔡闯's avatar 蔡闯

房间模板导入下载

parent a338b70c
...@@ -277,7 +277,6 @@ class Vacancy extends Base ...@@ -277,7 +277,6 @@ class Vacancy extends Base
-> setPromptTitle('车库位置') -> setPromptTitle('车库位置')
-> setFormula1('"'.$optionsCarBlockString.'"');; //这一句为要设置数据有效性的单元格 -> setFormula1('"'.$optionsCarBlockString.'"');; //这一句为要设置数据有效性的单元格
} }
if($optionsCarBlockString) {
$phpExcel->getActiveSheet()->getCell('I'.$i)->getDataValidation()-> setType(\PHPExcel_Cell_DataValidation::TYPE_LIST) $phpExcel->getActiveSheet()->getCell('I'.$i)->getDataValidation()-> setType(\PHPExcel_Cell_DataValidation::TYPE_LIST)
-> setErrorStyle(\PHPExcel_Cell_DataValidation::STYLE_INFORMATION) -> setErrorStyle(\PHPExcel_Cell_DataValidation::STYLE_INFORMATION)
-> setAllowBlank(false) -> setAllowBlank(false)
...@@ -288,7 +287,7 @@ class Vacancy extends Base ...@@ -288,7 +287,7 @@ class Vacancy extends Base
-> setError('您输入的值不在下拉框列表内.') -> setError('您输入的值不在下拉框列表内.')
-> setPromptTitle('房屋类型') -> setPromptTitle('房屋类型')
-> setFormula1('"住宅,商铺,办公"'); //这一句为要设置数据有效性的单元格 -> setFormula1('"住宅,商铺,办公"'); //这一句为要设置数据有效性的单元格
}
} }
$objWriter = new \PHPExcel_Writer_Excel5($phpExcel); $objWriter = new \PHPExcel_Writer_Excel5($phpExcel);
......
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