1
This commit is contained in:
@@ -127,6 +127,39 @@ class Production extends Base
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除main内容的某一行
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function delProductionMain(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
'p_main_id' => 'require'
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$this->production_article_main_obj->where('p_main_id',$data['p_main_id'])->update(['state'=>1]);
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑main内容
|
||||
* @return \think\response\Json|void
|
||||
*
|
||||
*/
|
||||
public function editProductionMain(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
'p_main_id' => 'require',
|
||||
'content'=>'require'
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除生产实例
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user