Przeglądaj źródła

专家诊断模块

yf_zd 5 lat temu
rodzic
commit
dc7bee691f

+ 6 - 1
apps/Equipment/urls.py

@@ -19,7 +19,7 @@ from apps.Equipment.views import (
     Video_Check_List, Video_Detail, Video_List, Video_Photo, Video_Pub,
     Video_Upload,JKview,Person_Area_Pub,CropCount_View,Sell_Del,Pick_Del,
     Pick_New,Repertory_New_View,Park_Land,Contrast_Detail,Contrast_List,Person_View,Person_List,
-    Area_Create,Area_Map,Person_Limit,Limit_View,Create_User,Change_Pwd,Delete_User,User_Change_Pwd,QXZ_Auto,QXZ_Value_Mqtt,QXZ_Status2, QXZ_Report_Detail2)
+    Area_Create,Area_Map,Person_Limit,Limit_View,Expert,learnDepot,Create_User,Change_Pwd,Delete_User,User_Change_Pwd,QXZ_Auto,QXZ_Value_Mqtt,QXZ_Status2, QXZ_Report_Detail2)
 
 app_name = 'Equipment'
 
@@ -175,6 +175,11 @@ urlpatterns = [
     url(r'^limit$', Limit.as_view(), name='limit'),
     url(r'^person_limit$', Person_Limit.as_view(), name='person_limit'),
     url(r'^limit_view$', Limit_View.as_view(), name='limit_view'),
+
+
+    #专家诊断
+    url(r'^expert$', Expert.as_view(), name='expert'),
+    url(r'^learn_depot$', learnDepot.as_view(), name='learn_depot'),
     
 
     # 类型分析

+ 11 - 0
apps/Equipment/views.py

@@ -2889,6 +2889,17 @@ 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):
+        return render(request, 'backstageNet/limit/expert.html', context={})
+    def post(self,request):
+        pass
+class learnDepot(ListView):
+    def get(self,request):
+        return render(request, 'backstageNet/limit/learnDepot.html', context={})
+    def post(self,request):
+        pass
 
 # 创建新用户
 class Create_User(ListView):

templates/backstageNet/limit/limitUserManage copy 2.html → templates/backstageNet/limit/expert.html


+ 93 - 0
templates/backstageNet/limit/learnDepot.html

@@ -0,0 +1,93 @@
+{% load staticfiles %}
+<!doctype html>
+<html lang="zh">
+
+<head>
+	<meta charset="UTF-8">
+	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+	<meta name="viewport" content="width=device-width, initial-scale=1.0">
+	<title>HTML5 SVG可互动的3D标签云代码 - 站长素材</title>
+	<link rel="stylesheet" type="text/css" href="{% static '/lib/css/zzsc-demo.css'%}">
+	<style type="text/css">
+		#tag-cloud {
+			width: 640px;
+			height: 480px;
+			margin: 50px auto;
+		}
+	</style>
+</head>
+
+<body>
+	<div class="zzsc-container">
+		<div id='tag-cloud'></div>
+	</div>
+
+	<script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
+	<script src="{% static '/lib/js/jquery.svg3dtagcloud.min.js' %}"></script>
+	<script>
+		$(document).ready(function () {
+			var entries = [
+				{ label: '黄瓜白粉病', url: '#', target: 'BoardRight' },
+				{ label: '西瓜煤污病', url: '#', target: 'BoardRight' },
+				{ label: '小麦锈病', url: '#', target: 'BoardRight' },
+				{ label: '葡萄霜霉病', url: '#', target: 'BoardRight' },
+				{ label: '花生白绢病', url: '#', target: 'BoardRight' },
+				{ label: '苹果褐斑病', url: 'sell_view', target: '' },
+				{ label: '芒果炭疽病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '桃缩叶病', url: '#', target: 'BoardRight' },
+				{ label: '杨树溃疡病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '苹果木腐病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '苹果轮纹病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '番茄猝倒病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '黄瓜细菌性角斑病', url: '#', target: 'BoardRight' },
+				{ label: '水稻白叶枯病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '马铃薯青枯病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '柑橘溃疡病', url: 'sell_view', target: '' },
+				{ label: '白菜细菌性软腐病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '月季根癌病', url: 'https://github.com/', target: 'BoardRight' },
+				{ label: '辣椒花叶病毒病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '大白菜病毒病', url: '#', target: 'BoardRight' },
+				{ label: '葡萄扇叶病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '小麦网腥黑穗病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '小麦链格孢叶枯病 ', url: 'sell_view', target: 'BoardRight' },
+				{ label: '大豆灰霉病 ', url: 'sell_view', target: 'BoardRight' },
+				{ label: '花生立枯病和纹枯病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '花生锈病', url: 'sell_view', target: 'BoardRight' },
+				{ label: '棉花立枯病', url: '#', target: 'BoardRight' },
+				{ label: '十字花科黑斑病', url: '#', target: 'BoardRight' }
+			];
+
+			var settings = {
+
+				entries: entries,
+				width: 640,
+				height: 480,
+				radius: '85%',
+				radiusMin: 5,
+				bgDraw: true,
+				bgColor: '#fff',
+				opacityOver: 1.00,
+				opacityOut: 0.05,
+				opacitySpeed: 6,
+				fov: 800, //800
+				speed: 0.5,
+				fontFamily: 'Oswald, Arial, sans-serif',
+				fontSize: '18',
+				fontColor: '#494A5F',
+				fontWeight: 'bold',//bold
+				fontStyle: 'normal',//italic 
+				fontStretch: 'normal',//wider, narrower, ultra-condensed, extra-condensed, condensed, semi-condensed, semi-expanded, expanded, extra-expanded, ultra-expanded
+				fontToUpperCase: true
+
+			};
+
+			//var svg3DTagCloud = new SVG3DTagCloud( document.getElementById( 'holder'  ), settings );
+			$('#tag-cloud').svg3DTagCloud(settings);
+
+		});
+
+	</script>
+
+</body>
+
+</html>

+ 0 - 93
templates/backstageNet/limit/limitUserManage copy 3.html

@@ -1,93 +0,0 @@
-{% load staticfiles %}
-<!doctype html>
-<html lang="zh">
-
-<head>
-	<meta charset="UTF-8">
-	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-	<meta name="viewport" content="width=device-width, initial-scale=1.0">
-	<title>HTML5 SVG可互动的3D标签云代码 - 站长素材</title>
-	<link rel="stylesheet" type="text/css" href="{% static '/lib/css/zzsc-demo.css'%}">
-	<style type="text/css">
-		#tag-cloud {
-			width: 640px;
-			height: 480px;
-			margin: 50px auto;
-		}
-	</style>
-</head>
-
-<body>
-	<div class="zzsc-container">
-		<div id='tag-cloud'></div>
-	</div>
-
-	<script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
-	<script src="{% static '/lib/js/jquery.svg3dtagcloud.min.js' %}"></script>
-	<script>
-		$(document).ready(function () {
-			var entries = [
-				{ label: 'Back to top', url: '#', target: 'BoardRight' },
-				{ label: 'Bootstrap', url: '#', target: 'BoardRight' },
-				{ label: 'Carousel', url: '#', target: 'BoardRight' },
-				{ label: 'Countdown', url: '#', target: 'BoardRight' },
-				{ label: 'Dropdown Menu', url: '#', target: 'BoardRight' },
-				{ label: 'CodePen', url: 'sell_view', target: '' },
-				{ label: 'three.js', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'Form Validation', url: '#', target: 'BoardRight' },
-				{ label: 'JS Compress', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'TinyPNG', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'Can I Use', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'URL shortener', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'Grid Layout', url: '#', target: 'BoardRight' },
-				{ label: 'Twitter', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'deviantART', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'Gulp', url: 'sell_view', target: '' },
-				{ label: 'Browsersync', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'GitHub', url: 'https://github.com/', target: 'BoardRight' },
-				{ label: 'Shadertoy', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'Tree View', url: '#', target: 'BoardRight' },
-				{ label: 'jsPerf', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'Foundation', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'CreateJS', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'Velocity.js', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'TweenLite', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'jQuery', url: 'sell_view', target: 'BoardRight' },
-				{ label: 'Notification', url: '#', target: 'BoardRight' },
-				{ label: 'Parallax', url: '#', target: 'BoardRight' }
-			];
-
-			var settings = {
-
-				entries: entries,
-				width: 640,
-				height: 480,
-				radius: '85%',
-				radiusMin: 75,
-				bgDraw: true,
-				bgColor: '#494A5F',
-				opacityOver: 1.00,
-				opacityOut: 0.05,
-				opacitySpeed: 6,
-				fov: 800,
-				speed: 0.5,
-				fontFamily: 'Oswald, Arial, sans-serif',
-				fontSize: '15',
-				fontColor: '#fff',
-				fontWeight: 'normal',//bold
-				fontStyle: 'normal',//italic 
-				fontStretch: 'normal',//wider, narrower, ultra-condensed, extra-condensed, condensed, semi-condensed, semi-expanded, expanded, extra-expanded, ultra-expanded
-				fontToUpperCase: true
-
-			};
-
-			//var svg3DTagCloud = new SVG3DTagCloud( document.getElementById( 'holder'  ), settings );
-			$('#tag-cloud').svg3DTagCloud(settings);
-
-		});
-
-	</script>
-
-</body>
-
-</html>

+ 282 - 31
templates/backstageNet/limit/limit_user_list.html

@@ -1,31 +1,282 @@
-{% load staticfiles %}
-<tr style="display:none">
-	<td><input type="text" id="total_nums" value={{nums}}></td>
-</tr>
-{% if user_list|length %} {% for user in user_list %}
-<tr>
-	<td>{{ user.username }}</td>
-	<td>{{ user.email }}</td>
-	<td>{% if user.user_phone == "" %} 无 {% else %} {{user.user_phone}} {% endif %}</td>
-	<td>
-		{% if user.is_superuser == 1 %} 超级管理员 {% elif user.is_staff == 1 %} 管理员 {% else %} 用户 {% endif %}
-	</td>
-	<!-- <td>{% if user.user_remark == "" %} 无 {% else %} {{user.user_remark}} {% endif %}</td> -->
-	<td>{% if user.is_active == True %} 可用 {% else %} 不可用 {% endif %}</td>
-	<td>{{ user.date_joined }}</td>
-	<td>
-		<!-- <a class="fpsb-link" href="allot?uname={{ user.username }}" style="display: inline-block;"> -->
-			{% if user.username == 'admin' %} 
-				暂无权限
-			{% else %} 
-				<button class="layui-btn layui-btn-sm layui-btn-normal btn-shaixuan" onclick="allotEquipPage('{{ user.username }}')">权限分配</button>
-			{% endif %}
-		<!-- </a> -->
-	</td>
-</tr>
-{% endfor %} 	
-{% else %}
-<tr>
-    <td colspan="10" style="text-align:center;">暂无数据</td>
-</tr>	
-{% endif %}
+<script>
+	var navList = [
+            {
+                "id": 1,
+                "title": "首页",
+                "icon": "&#xe626;",
+                "url": "map",
+                "children": []
+            },
+            {
+                "id": 2,
+                "title": "设备分配",
+                "icon": "&#xe609;",
+                "url": "equipallot",
+                "disabled": "true",
+                "children": []
+            },
+            {
+                "id": 3,
+                "title": "信息发布",
+                "icon": "&#xe765;",
+                "url": "",
+                "children": [
+                    {
+                        "id": 3.1,
+                        "title": "新闻资讯",
+                        "url": "news_pub",
+                    },
+                    {
+                        "id": 3.2,
+                        "title": "视频资讯",
+                        "url": "video_pub",
+                    },
+                    {
+                        "id": 3.2,
+                        "title": "产品展厅",
+                        "url": "equip_pub",
+                    },
+                    {
+                        "id": 3.3,
+                        "title": "四季采摘",
+                        "url": "garden_pub",
+                    },
+                    {
+                        "id": 3.4,
+                        "title": "民宿导览",
+                        "url": "dorm_pub",
+                    },
+                ]
+            },
+            {
+                "id": 4,
+                "title": "视频监控",
+                "icon": "&#xe610;",
+                "url": "jkview",
+                "children": []
+            },
+            {
+                "id": 5,
+                "title": "传感及控制",
+                "icon": "&#xe654;",
+                "url": "",
+                "children": [
+                    {
+                        "id": 5.1,
+                        "title": "控制模块",
+                        "url": "qxzcontrol",
+                    },
+                    {
+                        "id": 5.2,
+                        "title": "趋势分析",
+                        "url": "qxzchart",
+                    },
+                    {
+                        "id": 5.3,
+                        "title": "数据统计",
+                        "url": "qxz_status",
+                    }
+                ]
+            },
+            {
+                "id": 6,
+                "title": "预警中心",
+                "icon": "&#xe634;",
+                "url": "",
+                "children": [
+                    {
+                        "id": 6.1,
+                        "title": "阈值设置",
+                        "url": "qxz_warning_view",
+                    },
+                    {
+                        "id": 6.2,
+                        "title": "生产方式设置",
+                        "url": "productionset",
+                    },
+                    {
+                        "id": 6.3,
+                        "title": "预警记录",
+                        "url": "qxz_warning_list",
+                    },
+                ]
+            },
+            {
+                "id": 7,
+                "title": "开心农场",
+                "icon": "&#xe603;",
+                "url": "",
+                "children": [
+                    {
+                        "id": 7.1,
+                        "title": "我的农场",
+                        "url": "person_farm_edit",
+                    },
+                    {
+                        "id": 7.2,
+                        "title": "农场管理",
+                        "url": "garden_manage_view",
+                    },
+                    {
+                        "id": 7.3,
+                        "title": "人员管理",
+                        "url": "garden_user_view",
+                    },
+                    {
+                        "id": 7.1,
+                        "title": "库存管理",
+                        "url": "repertory_view",  //物料管理    
+                    },
+                    {
+                        "id": 7.5,
+                        "title": "种植管理",
+                        "url": "cropcount",
+                    },
+                    {
+                        "id": 7.6,
+                        "title": "入库管理",
+                        "url": "pick",
+                    },
+                    {
+                        "id": 7.7,
+                        "title": "销售管理",
+                        "url": "sell_view",
+                    }
+                ]
+            },
+            {
+                "id": 8,
+                "title": "数据中心",
+                "icon": "&#xe603;",
+                "url": "",
+                "children": [
+                    {
+                        "id": 8.1,
+                        "title": "产业数据",
+                        "url": "industrydata",
+                    },
+                    {
+                        "id": 8.2,
+                        "title": "类型分析",
+                        "url": "type",
+                    },
+                    {
+                        "id": 8.3,
+                        "title": "对比分析",
+                        "url": "contrast",
+                    },
+                ]
+            },
+            {
+                "id": 10,
+                "title": "通知公告",
+                "icon": "&#xe765;",
+                "url": "",
+                "disabled": "true",
+                "children": [
+                    {
+                        "id": 10.1,
+                        "title": "发布公告",
+                        "url": "policy_pub",
+                        "disabled": "true",
+                    },
+                    {
+                        "id": 10.2,
+                        "title": "查看公告",
+                        "url": "policy_list_view",
+                        "disabled": "true",
+                    },
+                ]
+            },
+            {
+                "id": 11,
+                "title": "信息审核",
+                "icon": "&#xe765;",
+                "url": "",
+                "disabled": "true",
+                "children": [
+                    {
+                        "id": 11.1,
+                        "title": "新闻资讯",
+                        "url": "news_check",
+                        "disabled": "true",
+                    },
+
+                    {
+                        "id": 11.2,
+                        "title": "视频资讯",
+                        "url": "video_check",
+                        "disabled": "true",
+                    },
+                    {
+                        "id": 11.3,
+                        "title": "产品展厅",
+                        "url": "equip_check",
+                        "disabled": "true",
+                    },
+                    {
+                        "id": 11.4,
+                        "title": "四季采摘",
+                        "url": "garden_check",
+                        "disabled": "true",
+                    },
+                    {
+                        "id": 11.5,
+                        "title": "民宿导览",
+                        "url": "dorm_check",
+                        "disabled": "true",
+                    },
+                ]
+            },
+            {
+                "id": 12,
+                "title": "权限",
+                "icon": "&#xe765;",
+                "url": "limit_view",
+                "disabled": "true",
+                "children": []
+            },
+            {
+                "id": 13,
+                "title": "系统设置",
+                "icon": "&#xe765;",
+                "url": "",
+                "disabled": "true",
+                "children": [
+                    {
+                        "id": 13.1,
+                        "title": "用户管理",
+                        "url": "person_view",
+                        "disabled": "true",
+                    },
+                    {
+                        "id": 13.2,
+                        "title": "修改密码",
+                        "url": "policy_list_view",
+                        "disabled": "true",
+                    }
+                ]
+            },
+			{
+                "id": 13,
+                "title": "专家诊断",
+                "icon": "&#xe765;",
+                "url": "",
+                "disabled": "true",
+                "children": [
+                    {
+                        "id": 13.1,
+                        "title": "在线专家",
+                        "url": "expert",
+                        "disabled": "true",
+                    },
+                    {
+                        "id": 13.2,
+                        "title": "知识库",
+                        "url": "learning_depot",
+                        "disabled": "true",
+                    }
+                ]
+            },
+        ]
+</script>

+ 1 - 1
templates/static/lib/css/zzsc-demo.css

@@ -43,7 +43,7 @@ body, html { font-size: 100%; 	padding: 0; margin: 0;}
 }
 
 body{
-	background: #494A5F;
+	/* background: #494A5F; */
 	color: #D5D6E2;
 	font-weight: 500;
 	font-size: 1.05em;