|
@@ -158,4 +158,32 @@ class BestKnowledge extends Controller
|
|
|
public function edit(){
|
|
|
DataBestKnowledge::mForm('form');
|
|
|
}
|
|
|
+ public function _form_filter($vo){
|
|
|
+
|
|
|
+ if ($this->request->isGet()) {
|
|
|
+ if (isset($vo['id'])){
|
|
|
+ if (isset($vo['imgs'])){
|
|
|
+ $vo['imgs']= implode('|',explode(',',implode(',',$vo['imgs'])));
|
|
|
+ }
|
|
|
+
|
|
|
+ $this->assign('vo',$vo);
|
|
|
+ $this->fetch('form');
|
|
|
+ }
|
|
|
+
|
|
|
+ }elseif ($this->request->isPost()){
|
|
|
+ $vo['imgs'] = implode(',',explode('|',$vo['imgs']));
|
|
|
+ $vo['audit'] =2;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 删除
|
|
|
+ * @auth true
|
|
|
+ * @menu true
|
|
|
+ */
|
|
|
+ public function del($id){
|
|
|
+ DataTeachingKnowledge::whereIn('id',$id)->save([
|
|
|
+ 'is_del'=>0,
|
|
|
+ ]);
|
|
|
+ $this->success('删除成功');
|
|
|
+ }
|
|
|
}
|