Prechádzať zdrojové kódy

时间选择器icon图表修复

fanghuisheng 3 rokov pred
rodič
commit
193b2408d2

+ 2 - 1
WebRoot/WEB-INF/web.xml

@@ -70,8 +70,9 @@
         <url-pattern>*.gif</url-pattern>
         <url-pattern>*.png</url-pattern>
         <url-pattern>*.xls</url-pattern>
+        <url-pattern>*.woff</url-pattern>
+        <url-pattern>*.svg</url-pattern>
         <url-pattern>*.html</url-pattern>
-
     </servlet-mapping>
     <session-config>
         <session-timeout>15</session-timeout>

+ 6 - 1
WebRoot/view/patrolplan/scripts/patrolplan.js

@@ -347,7 +347,6 @@ Ext.onReady(function(){
             			fieldLabel:'任务名称',
             			id: 'fa_patrolplan_name',
             			name:'plan_name',
-						// maxLength: 20,
             	        editable : false,
             	        width:283,
 						listeners: {
@@ -567,6 +566,12 @@ Ext.onReady(function(){
 			            query.spot_id = AllSelectedRecords[0];
 			               
 			         	query.plan_name = Ext.getCmp('fa_patrolplan_name').getValue();
+						if(query.plan_name == ''){
+							Ext.Msg.alert('提示', '任务名称不能为空!', function(btn,txt){
+								// return false;
+							})
+						}
+						
 						query.team_id = Ext.getCmp('fa_patrol_team_id').getValue();
 						query.company_code = Ext.getCmp('fa_patrol_company_code').getValue();
 						query.cycle = fa_cycle;

+ 0 - 6
web/WEB-INF/web.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
-         version="4.0">
-</web-app>