|
|
@@ -22,7 +22,7 @@ from apps.AppInfo.models import (
|
|
|
Article, CKArticle, Equip, Equip_type, FarmList, FarmUser, GardenManage,
|
|
|
Hotel_Info, Hotel_Photo, JKdata, MyUser, Pick_Pub, Product, QXZdata,
|
|
|
QXZdata_New, QXZstatus, QXZstatus_New, QXZswitchdata, QXZswitchstatus,
|
|
|
- Video_data,GardenArea,Store_Manage,Areacrop,Sell_Manage,Person_Pick,QXZAutoswitch,Sightsee_Info)
|
|
|
+ Video_data,GardenArea,Store_Manage,Areacrop,Sell_Manage,Person_Pick,QXZAutoswitch,Sightsee_Info,Pic_Info)
|
|
|
from apps.Equipment.all_dict import qxz_dict
|
|
|
|
|
|
|
|
|
@@ -3168,6 +3168,7 @@ class Person_Limit(ListView):
|
|
|
user_list = user_list[(10*(page-1)):(page*10)]
|
|
|
return render(request, 'backstageNet/limit/limit_user_list.html', context={'user_list': user_list, "nums": nums})
|
|
|
|
|
|
+
|
|
|
# 专家诊断
|
|
|
class Expert(ListView):
|
|
|
def get(self,request):
|
|
|
@@ -3372,4 +3373,25 @@ class QXZ_Value_Mqtt(ListView):
|
|
|
# else:
|
|
|
# data = "1"
|
|
|
# return HttpResponse(data)
|
|
|
- return HttpResponse("0")
|
|
|
+ return HttpResponse("0")
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+# 保存图片信息
|
|
|
+class Pic_locat(ListView):
|
|
|
+ def get(self,request):
|
|
|
+ pass
|
|
|
+
|
|
|
+ def post(self,request):
|
|
|
+ # 东北点
|
|
|
+ locat1 = request.POST.get('locat1')
|
|
|
+ # 西南点
|
|
|
+ locat2 = request.POST.get('locat2')
|
|
|
+ # 图片地址
|
|
|
+ addr = request.POST.get('addr')
|
|
|
+ locat_info = request.POST.get('locat_info')
|
|
|
+ try:
|
|
|
+ Pic_Info.object.create(locat1=locat1,locat2=locat2,addr=addr,locat_info=locat_info)
|
|
|
+ return HttpResponse("1")
|
|
|
+ except:
|
|
|
+ return HttpResponse("0")
|