ソースを参照

气象站数据转发监视

yf_ymm 5 年 前
コミット
e6cac0e5ed
1 ファイル変更9 行追加0 行削除
  1. 9 0
      apps/Equipment/views.py

+ 9 - 0
apps/Equipment/views.py

@@ -1586,6 +1586,9 @@ class Video_Check_List(ListView):
         #保存
         elif req == "check":
             art_obj = Video_data.objects.get(id=art_id)
+            ckobj = CKArticle.objects.get(title=art_obj.title)
+            ckobj.hidden = True
+            ckobj.save()
             art_obj.hidden = True
             art_obj.save()
             data = "1"
@@ -1663,6 +1666,9 @@ class Equip_Check_List(ListView):
         #审核通过
         elif req == "check":
             art_obj = Product.objects.get(id=art_id)
+            ckobj = CKArticle.objects.get(title=art_obj.title)
+            ckobj.hidden = True
+            ckobj.save()
             art_obj.hidden = True
             art_obj.save()
             data = "1"
@@ -1741,6 +1747,9 @@ class Garden_Check_List(ListView):
         elif req == "check":
             art_obj = Pick_Pub.objects.get(id=art_id)
             art_obj.hidden = True
+            ckobj = CKArticle.objects.get(title=art_obj.title)
+            ckobj.hidden = True
+            ckobj.save()
             art_obj.save()
             data = "1"
         data = json.dumps(data,ensure_ascii=False)