|
@@ -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;
|