wupengfei 1 tahun lalu
induk
melakukan
9a5f78245a

+ 3 - 5
.idea/workspace.xml

@@ -3,10 +3,8 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/operate/controller/Sponsor.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/Sponsor.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/operate/view/sponsor/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/sponsor/index.html" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/operate/view/template/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/template/index.html" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/operate/view/template_item/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/template_item/index.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/controller/ActivityHx.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/ActivityHx.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/view/activity_hx/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/activity_hx/index.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -381,7 +379,7 @@
       <workItem from="1689813742376" duration="13449000" />
       <workItem from="1689900489647" duration="18483000" />
       <workItem from="1690159826319" duration="22343000" />
-      <workItem from="1690246325106" duration="6396000" />
+      <workItem from="1690246325106" duration="6525000" />
     </task>
     <servers />
   </component>

+ 10 - 0
application/operate/controller/ActivityHx.php

@@ -81,6 +81,16 @@ class ActivityHx extends Controller
         $this->success('删除成功');
     }
 
+    /**
+     * 删除
+     * @auth true
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function remove()
+    {
+        $this->_save($this->table, ['is_hx' => '0']);
+    }
 
 
 

+ 2 - 0
application/operate/view/activity_hx/index.html

@@ -1,6 +1,8 @@
 {extend name='admin@main'}
 {block name="button"}
 <button data-modal='{:url("add")}' data-title="添加" class='layui-btn layui-btn-sm layui-btn-primary'>添加</button>
+<button data-action='{:url("remove")}'  data-confirm="确定要删除吗?" data-csrf="{:systoken('remove')}" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</button>
+
 {/block}
 {block name="content"}
 <div class="think-box-shadow">