diff --git a/app/adm/controller/Car.php b/app/adm/controller/Car.php index 7ed29d0..b09b4e9 100644 --- a/app/adm/controller/Car.php +++ b/app/adm/controller/Car.php @@ -39,7 +39,7 @@ class Car extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('CarCate')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); diff --git a/app/adm/controller/Meeting.php b/app/adm/controller/Meeting.php index 0e425bf..bd0c57e 100644 --- a/app/adm/controller/Meeting.php +++ b/app/adm/controller/Meeting.php @@ -39,7 +39,7 @@ class Meeting extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('MeetingCate')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); diff --git a/app/adm/controller/Seal.php b/app/adm/controller/Seal.php index 907604c..21256d8 100644 --- a/app/adm/controller/Seal.php +++ b/app/adm/controller/Seal.php @@ -39,7 +39,7 @@ class Seal extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('SealCate')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); diff --git a/app/contract/controller/Cate.php b/app/contract/controller/Cate.php index 3c6037d..e3bd297 100644 --- a/app/contract/controller/Cate.php +++ b/app/contract/controller/Cate.php @@ -39,7 +39,7 @@ class Cate extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('ContractCate')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); diff --git a/app/customer/controller/Contact.php b/app/customer/controller/Contact.php index f744b3e..d046e75 100644 --- a/app/customer/controller/Contact.php +++ b/app/customer/controller/Contact.php @@ -71,7 +71,7 @@ class Contact extends BaseController return to_assign(1, $e->getError()); } $detail= Db::name('CustomerContact')->where(['id' => $param['id']])->find(); - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('CustomerContact')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); diff --git a/app/customer/controller/Grade.php b/app/customer/controller/Grade.php index 87b37fb..8e2f213 100644 --- a/app/customer/controller/Grade.php +++ b/app/customer/controller/Grade.php @@ -39,7 +39,7 @@ class Grade extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('CustomerGrade')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); diff --git a/app/customer/controller/Source.php b/app/customer/controller/Source.php index a830ea9..89b235e 100644 --- a/app/customer/controller/Source.php +++ b/app/customer/controller/Source.php @@ -39,7 +39,7 @@ class Source extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('CustomerSource')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); diff --git a/app/home/controller/Cate.php b/app/home/controller/Cate.php index 5cc01fa..d7a8a13 100644 --- a/app/home/controller/Cate.php +++ b/app/home/controller/Cate.php @@ -61,7 +61,7 @@ class Cate extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('FlowType')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); @@ -135,7 +135,7 @@ class Cate extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('CostCate')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); @@ -199,7 +199,7 @@ class Cate extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('ExpenseCate')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); @@ -327,7 +327,7 @@ class Cate extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('Industry')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); @@ -391,7 +391,7 @@ class Cate extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('Services')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); @@ -433,7 +433,6 @@ class Cate extends BaseController } } - //工作类别 public function work_cate() { @@ -456,7 +455,7 @@ class Cate extends BaseController // 验证失败 输出错误信息 return to_assign(1, $e->getError()); } - $data['update_time'] = time(); + $param['update_time'] = time(); $res = Db::name('WorkCate')->strict(false)->field(true)->update($param); if ($res) { add_log('edit', $param['id'], $param); diff --git a/public/static/assets/gougu/module/oaTool.js b/public/static/assets/gougu/module/oaTool.js index 82a0dd2..fcd343b 100644 --- a/public/static/assets/gougu/module/oaTool.js +++ b/public/static/assets/gougu/module/oaTool.js @@ -40,7 +40,7 @@ layui.define(['tool'], function (exports) { box: 'fileBox', url: "/api/index/upload", accept: 'file', //普通文件 - exts: 'png|jpg|gif|jpeg|doc|docx|ppt|pptx|xls|xlsx|pdf|zip|rar|7z', //只允许上传文件格式 + exts: 'png|jpg|gif|jpeg|doc|docx|ppt|pptx|xls|xlsx|pdf|zip|rar|7z|txt|wps|avi|wmv|mpg|mov|rm|swf|flv|mp4|dwg|dxf|dwt|xmind', //只允许上传文件格式 colmd:4, isSave:false, uidDelete:false,