|
|
@@ -11,6 +11,19 @@ use Yii;
|
|
|
class XjController extends BaseController
|
|
|
{
|
|
|
|
|
|
+ //删除选项 ssh 20230728
|
|
|
+ public function actionDelItem()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $id = $get['id'] ?? 0;
|
|
|
+ $xj = XjClass::getById($id, true);
|
|
|
+ if (empty($xj) || $xj->mainId != $this->mainId) {
|
|
|
+ util::fail('修改失败');
|
|
|
+ }
|
|
|
+ $xj->delete();
|
|
|
+ util::complete();
|
|
|
+ }
|
|
|
+
|
|
|
//修改多颜色名称 ssh 20220107
|
|
|
public function actionChangeXjName()
|
|
|
{
|