|
@@ -24,7 +24,7 @@ from apps.AppInfo.models import (
|
|
|
Hotel_Info, Hotel_Photo, JKdata, MyUser, Pick_Pub, Product, QXZdata,
|
|
Hotel_Info, Hotel_Photo, JKdata, MyUser, Pick_Pub, Product, QXZdata,
|
|
|
QXZdata_New, QXZstatus, QXZstatus_New, QXZswitchdata, QXZswitchstatus,
|
|
QXZdata_New, QXZstatus, QXZstatus_New, QXZswitchdata, QXZswitchstatus,
|
|
|
Video_data,GardenArea,Store_Manage,Areacrop,Sell_Manage,Person_Pick,QXZAutoswitch,Sightsee_Info,Pic_Info,
|
|
Video_data,GardenArea,Store_Manage,Areacrop,Sell_Manage,Person_Pick,QXZAutoswitch,Sightsee_Info,Pic_Info,
|
|
|
- QXZ_Alarm_Log,Experts)
|
|
|
|
|
|
|
+ QXZ_Alarm_Log,Experts,Relations)
|
|
|
from apps.Equipment.all_dict import qxz_dict
|
|
from apps.Equipment.all_dict import qxz_dict
|
|
|
|
|
|
|
|
|
|
|
|
@@ -3792,3 +3792,21 @@ class Expert_Info(ListView):
|
|
|
pic = request.POST.get('pic')
|
|
pic = request.POST.get('pic')
|
|
|
Experts.objects.create(name=name,relation=relation,desc=desc,pic=pic)
|
|
Experts.objects.create(name=name,relation=relation,desc=desc,pic=pic)
|
|
|
return HttpResponse("1")
|
|
return HttpResponse("1")
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+class Add_Relation(ListView):
|
|
|
|
|
+ def get(self,request):
|
|
|
|
|
+
|
|
|
|
|
+ return render(request, 'backstageNet/systemSet/userManage.html', context={})
|
|
|
|
|
+ def post(self, request):
|
|
|
|
|
+ ex_id = request.POST.get('id')
|
|
|
|
|
+ if ex_id:
|
|
|
|
|
+ Relations.objects.get(id=ex_id).delete()
|
|
|
|
|
+ return HttpResponse("1")
|
|
|
|
|
+ name = request.POST.get('name')
|
|
|
|
|
+ relation = request.POST.get('relation')
|
|
|
|
|
+ desc = request.POST.get('desc')
|
|
|
|
|
+ pic = request.POST.get('pic')
|
|
|
|
|
+ Relations.objects.create(name=name,relation=relation,pic=pic)
|
|
|
|
|
+ return HttpResponse("1")
|