wupengfei 2 éve
szülő
commit
53bfafc2ab
2 módosított fájl, 29 hozzáadás és 1 törlés
  1. 1 1
      .idea/workspace.xml
  2. 28 0
      application/synth/controller/BillType.php

+ 1 - 1
.idea/workspace.xml

@@ -210,7 +210,7 @@
       <workItem from="1672793409629" duration="408000" />
       <workItem from="1672793834653" duration="24306000" />
       <workItem from="1672880479757" duration="22897000" />
-      <workItem from="1672966192005" duration="8679000" />
+      <workItem from="1672966192005" duration="8714000" />
     </task>
     <servers />
   </component>

+ 28 - 0
application/synth/controller/BillType.php

@@ -66,6 +66,34 @@ class BillType extends Controller
         $this->_save($this->table, ['status' => '1']);
     }
 
+    /**
+     * 添加
+     * @auth true
+     * @menu true
+     * @param array $data
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     */
+    public function add(){
+        $this->title = '添加';
+        $this->_form($this->table, 'form');
+    }
 
+    /**
+     *
+     * 编辑
+     * @auth true
+     * @menu true
+     * @param array $data
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     */
+    public function edit()
+    {
+        $this->title = '编辑';
+        $this->_form($this->table, 'form');
+    }
 
 }