公会信息

master
tping 4 years ago
parent 0f7b23ad57
commit 24fcfc4b90

@ -62,6 +62,10 @@ class SocietyInfoController extends ThinkController
$count = $query->count(); $count = $query->count();
if($is_export){ if($is_export){
$parseData = $query->field("*")->select(); $parseData = $query->field("*")->select();
foreach ($parseData as &$v) {
if ($v['is_potential'] == 1) $v['is_potential'] = "是";
else $v['is_potential'] = "否";
}
$this->assign('listData', $parseData); $this->assign('listData', $parseData);
$GetData = $_GET; $GetData = $_GET;
unset($GetData['export']); unset($GetData['export']);
@ -223,6 +227,8 @@ class SocietyInfoController extends ThinkController
if ($_POST) { if ($_POST) {
$save = I("post."); $save = I("post.");
if ($save['province'] == "请选择省份") $save['province'] = '';
if ($save['city'] == "请选择城市") $save['city'] = '';
$save['create_time'] = time(); $save['create_time'] = time();
$save['update_time'] = time(); $save['update_time'] = time();
$save['communication_time'] = time(); $save['communication_time'] = time();

@ -48,7 +48,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="l">公司:</td> <td class="l"><span style="color:red">*</span>公司:</td>
<td class="r table_radio"> <td class="r table_radio">
<input type="text" name="company_name" id="company_name" class="input" placeholder="请输入公司名称"> <input type="text" name="company_name" id="company_name" class="input" placeholder="请输入公司名称">
</td> </td>
@ -227,10 +227,10 @@
var cres = $('form').serializeArray(); var cres = $('form').serializeArray();
console.log(cres); console.log(cres);
if ($("#province").val() == "请选择省份" || !$("#province").val()) { if ($("#province").val() == "请选择省份" || !$("#province").val()) {
layer.msg('请选择省份');return ; // layer.msg('请选择省份');return ;
} }
if (!$("#city").val()) { if (!$("#city").val()) {
layer.msg('请选择城市');return ; // layer.msg('请选择城市');return ;
} }
if (!$("#company_name").val()) { if (!$("#company_name").val()) {
layer.msg('请输入公司名');return ; layer.msg('请输入公司名');return ;

@ -171,7 +171,9 @@
<td rowspan="{$data.row}">{$data.turnover}</td> <td rowspan="{$data.row}">{$data.turnover}</td>
<td rowspan="{$data.row}">{$data.address}</td> <td rowspan="{$data.row}">{$data.address}</td>
<td rowspan="{$data.row}">{$data.league_info}</td> <td rowspan="{$data.row}">{$data.league_info}</td>
<td rowspan="{$data.row}">{$data.is_potential}</td> <td rowspan="{$data.row}">
<if condition="$data['is_potential'] eq 1"><else /></if>
</td>
<td rowspan="{$data.row}">{$data.remark}</td> <td rowspan="{$data.row}">{$data.remark}</td>
<td rowspan="{$data.row}">{$data.interface_person}</td> <td rowspan="{$data.row}">{$data.interface_person}</td>
<td rowspan="{$data.row}">{$data.create_time|date='Y-m-d H:i:s', ###}</td> <td rowspan="{$data.row}">{$data.create_time|date='Y-m-d H:i:s', ###}</td>

Loading…
Cancel
Save