Selaa lähdekoodia

气象站数据转发监视

yf_ymm 5 vuotta sitten
vanhempi
commit
12acdef1bf
1 muutettua tiedostoa jossa 17 lisäystä ja 0 poistoa
  1. 17 0
      apps/Equipment/views.py

+ 17 - 0
apps/Equipment/views.py

@@ -1581,6 +1581,9 @@ class Video_Check_List(ListView):
                     })
         #删除
         elif req == "del":
+            i = Video_data.objects.get(id=art_id)
+            ckobj = CKArticle.objects.get(title=i.title)
+            ckobj.delete()
             art_obj.delete()
             data = "1"
         #保存
@@ -1661,6 +1664,9 @@ class Equip_Check_List(ListView):
                     })
         #删除
         elif req == "del":
+            i = Product.objects.get(id=art_id)
+            ckobj = CKArticle.objects.get(title=i.title)
+            ckobj.delete()
             art_obj.delete()
             data = "1"
         #审核通过
@@ -1741,6 +1747,9 @@ class Garden_Check_List(ListView):
                     })
         #删除
         elif req == "del":
+            i = Pick_Pub.objects.get(id=art_id)
+            ckobj = CKArticle.objects.get(title=i.name)
+            ckobj.delete()
             art_obj.delete()
             data = "1"
         #审核通过
@@ -1832,6 +1841,9 @@ class Dorm_Check_List(ListView):
                 # data.append(x.addr)       
         #删除
         elif req == "del":
+            i = Hotel_Info.objects.get(id=art_id)
+            ckobj = CKArticle.objects.get(title=i.name)
+            ckobj.delete()
             art_obj.delete()
             data = "1"
         #审核通过
@@ -1891,6 +1903,9 @@ class Farm_Check_List(ListView):
         art_obj = GardenArea.objects.filter(id=art_id)
         #删除
         if req == "del":
+            i = GardenArea.objects.get(id=art_id)
+            ckobj = CKArticle.objects.get(title=i.name)
+            ckobj.delete()
             art_obj.delete()
             data = "1"
         #审核通过
@@ -1967,6 +1982,8 @@ class Sightsee_Check_List(ListView):
             i.save()
             data = "1"
         elif req == "del":
+            ckobj = CKArticle.objects.get(title=i.name)
+            ckobj.delete()
             i.delete()
             data = "1"
         return HttpResponse(data)