From 744f42c5496e656a1f9927740a3b37c0b97a6cba Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 14 七月 2023 14:34:12 +0800
Subject: [PATCH] lexcommunityupload0714
---
force-app/main/default/aura/RetrospectiveWeeklyReport/RetrospectiveWeeklyReportHelper.js | 376 +++++++++++++++++++++++++++-------------------------
1 files changed, 195 insertions(+), 181 deletions(-)
diff --git a/force-app/main/default/aura/RetrospectiveWeeklyReport/RetrospectiveWeeklyReportHelper.js b/force-app/main/default/aura/RetrospectiveWeeklyReport/RetrospectiveWeeklyReportHelper.js
index bc0f6c7..ce599da 100644
--- a/force-app/main/default/aura/RetrospectiveWeeklyReport/RetrospectiveWeeklyReportHelper.js
+++ b/force-app/main/default/aura/RetrospectiveWeeklyReport/RetrospectiveWeeklyReportHelper.js
@@ -34,7 +34,7 @@
else {
//component.set('v.errorMessage', 'doinit failed.');
this.error('doinit failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.login', false);
}
});
@@ -74,7 +74,7 @@
else {
//component.set('v.errorMessage', 'doinit failed.');
this.error('doinit failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.loginEdit', false);
}
});
@@ -200,7 +200,7 @@
else {
//component.set('v.errorMessage', 'get_reports failed.');
this.error('get_reports failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.loginEdit', false);
}
});
@@ -885,8 +885,9 @@
},
//缂栬緫鎸夐挳
edit_button: function (component, event, helper) {
- //component.set('v.loginEdit', true);
+ component.set('v.login', true);
debugger
+ //component.set('v.loginEdit', true);
this.allclear(component);
//component.set('v.loadOpp', true);
var index = event.getSource().get('v.value');
@@ -906,6 +907,7 @@
var ret = this.create_report_header_edit(component, event, helper, name, select_agency, select_date);
// SWAG-CF58C3 fy start
this.set_aws_url(component, 'Agency_Contact__c')
+ //component.set('v.login', false);
// SWAG-CF58C3 fy end
},
//淇濆瓨
@@ -1044,10 +1046,15 @@
// if (!productCategories__c) { error.push("鍏朵粬鍝佺墝浜у搧绫诲埆 涓嶅瓨鍦�"); }
+ //let errorMsg = '';
for (var i = 0; i < error.length; i++) {
component.set('v.errorMessage', error[i]);
this.showErrorToast(component);
+ //errorMsg += '; ' + error[i]
+ //this.error(error[i]);
}
+ // if(errorMsg != '')
+ // this.error(errorMsg.substring(1));
if (error.length > 0) {
component.find('save_button').set('v.disabled', false);
return false;
@@ -1108,8 +1115,8 @@
}
else {
//component.set('v.errorMessage', 'save_report failed.');
- this.error('save_report failed.');
- this.showErrorToast(component);
+ this.error('淇濆瓨鏃ユ姤澶辫触');
+ //this.showErrorToast(component);
component.find('save_button').set('v.disabled', false);
component.set('v.loginEdit', false);
}
@@ -1182,7 +1189,7 @@
else {
// component.set('v.errorMessage', 'get_reports_now failed.');
this.error('get_reports_now failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.find('save_button').set('v.disabled', false);
component.set('v.loginEdit', false);
}
@@ -1199,7 +1206,7 @@
var error = response.getError();
//component.set('v.errorMessage', '淇濆瓨鏃ユ姤澶辫触');
this.error('淇濆瓨鏃ユ姤澶辫触');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.find('save_button').set('v.disabled', false);
component.set('v.loginEdit', false);
}
@@ -1283,7 +1290,7 @@
if (s_date == false) {
//component.set('v.errorMessage', 'get_date_string failed.');
this.error('get_date_string failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
return false;
}
var head_key = this.create_header_input_key(s_agency, s_date);
@@ -1291,7 +1298,7 @@
if (head_key == false) {
//component.set('v.errorMessage', 'create_header_input_key failed.');
this.error('create_header_input_key failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
return false;
}
var key2 = s_date.replace(/-/g, '');
@@ -1314,19 +1321,19 @@
else {
//component.set('v.errorMessage', 'createReportHeader callback failed.');
this.error('createReportHeader callback failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.login', false);
}
});
$A.enqueueAction(action);
},
create_report_header_edit: function (component, event, helper, name, s_agency, s_date) {
- component.set('v.login',true);
+
s_date = this.get_date_string(s_date);
if (s_date == false) {
//component.set('v.errorMessage', 'get_date_string failed.');
this.error('get_date_string failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
return false;
}
var head_key = this.create_header_input_key(s_agency, s_date);
@@ -1334,31 +1341,32 @@
if (head_key == false) {
//component.set('v.errorMessage', 'create_header_input_key failed.');
this.error('create_header_input_key failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
return false;
}
var key2 = s_date.replace(/-/g, '');
var action = component.get('c.createReportHeader');
+
action.setParams({
"name": name,
"s_date": s_date,
"s_agency": s_agency,
"head_key": head_key,
});
- component.set('v.loginEdit', true);
+ component.set('v.login',true);
action.setCallback(this, function (response) {
var state = response.getState();
if (state == 'SUCCESS') {
var res = response.getReturnValue();
component.set('v.agency_report_header_id', res);
- component.set('v.loginEdit', false);
+ component.set('v.login', false);
this.toggle_report_edit(component, event, helper);
}
else {
//component.set('v.errorMessage', 'createReportHeader callback failed.');
this.error('createReportHeader callback failed.');
- this.showErrorToast(component);
- component.set('v.loginEdit', false);
+ //this.showErrorToast(component);
+ component.set('v.login', false);
}
});
$A.enqueueAction(action);
@@ -1369,7 +1377,7 @@
if (s_date == false) {
//component.set('v.errorMessage', 'get_date_string in create_header_input_key.');
this.error('get_date_string in create_header_input_key.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
return false;
}
}
@@ -1484,7 +1492,7 @@
component.set("v.hospitalId", accid);
component.set('v.setdoctorlisthos', true);
- this.set_doctor_list(component, event, helper);
+ this.set_doctor_list_edit(component, event, helper);
},
@@ -1547,7 +1555,7 @@
} else {
//component.set('v.errorMessage', '涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝�');
this.error('涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝�');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
}
},
//妯$硦鏌ヨ浣跨敤浜у搧2
@@ -1608,7 +1616,7 @@
} else {
//component.set('v.errorMessage', '涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝�');
this.error('涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝�');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
}
},
@@ -1670,7 +1678,7 @@
} else {
//component.set('v.errorMessage', '涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝�');
this.error('涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝�');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
}
},
@@ -1716,7 +1724,7 @@
else {
// component.set('v.errorMessage', 'AWS url/token error.');
this.error('AWS url/token error.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.login', false);
component.set('v.loginEdit', false);
}
@@ -1792,19 +1800,19 @@
} else if (acMap.errormsg != '') {
// component.set('v.errorMessage', acMap.errormsg);
this.error(acMap.errormsg);
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.login', false);
} else {
//component.set('v.errorMessage', 'agency contact insert id error.');
this.error('agency contact insert id error.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.login', false);
}
}
else {
//component.set('v.errorMessage', 'agency contact insert error.');
this.error('agency contact insert error.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.login', false);
}
});
@@ -1834,155 +1842,24 @@
$A.util.addClass(modal_newAC, 'disp_none');
component.set('v.successMessage', '.鎷滆浜哄凡鍒涘缓銆�');
this.showSuccessToast(component);
- this.set_doctor_list(component);
+ component.set('v.login', false);
+ this.set_doctor_list_edit(component);
} else {
//component.set('v.errorMessage', 'AWS confirm error.');
this.error('AWS confirm error.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.login', false);
}
}).catch(error => {
// component.set('v.errorMessage', 'AWS confirm error.');
this.error('AWS confirm error.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.login', false);
});
},
//SWAG-CF58C3 fy end 璋冪敤pi
set_doctor_list: function (component) {
- console.log('set_doctor_list')
- var doctor_value = component.find('select_purpose_type').get('v.value');
- var hospital_id = component.get('v.hospitalLinkId');
- console.log('hospital_id = ' + hospital_id);
- if (hospital_id) {
- if (doctor_value == '绉戝浼�') {
- component.set('v.login', true);
- this.set_doctor_list2(component);
- } else {
- component.set('v.login', true);
- var action = component.get('c.getDoctorList');
- action.setParams({
- "hospital_id": hospital_id,
- });
- action.setCallback(this, function (response) {
- var state = response.getState();
- if (state == 'SUCCESS') {
- ;
- var res = this.conv_selected(response.getReturnValue());
- //fy
- var setdoctorlisthos = component.get('v.setdoctorlisthos');
- if (setdoctorlisthos) {
- component.set('v.default_select_doctor_id', '');
- component.set('v.setdoctorlisthos', false);
- }
- //fy
- var default_doctor = component.get('v.default_select_doctor_id');
- if (default_doctor != '' && res.length > 0) {
- var doctor_title = '';
- let awsids = [];
- for (var i = 0; i < res.length; i++) {
- if (res[i].value == default_doctor) {
- res[i].selected = true;
- doctor_title = res[i].Doctor_Division1__c;
- } else {
- res[i].selected = false;
- }
- if (res[i].AWS_Data_Id__c) {
- awsids.push(res[i].AWS_Data_Id__c);
- }
- }
- component.find('select_doctor').set('v.options', res);
- component.set('v.doctor_title', doctor_title);
- console.log('awsids = ' + JSON.stringify(awsids))
- if (awsids.length > 0) {
- let PIConfig = component.get('v.PIConfig');
- let staticResourceAgencyContact = JSON.parse(PIConfig.staticResourceAgencyContact);
- AWSService.search(staticResourceAgencyContact.searchUrl, {
- dataIds: awsids
- }, function (data) {
- console.log('data = ' + JSON.stringify(data))
- if (data && data.object && data.object.length) {
- let m = {};
- for (let di in data.object) {
- if (data.object[di] && data.object[di].dataId) {
- m[data.object[di].dataId] = data.object[di];
- }
- }
-
- for (let ri in res) {
- if (res[ri] && res[ri].AWS_Data_Id__c && m.hasOwnProperty(res[ri].AWS_Data_Id__c)) {
- res[ri].label = m[res[ri].AWS_Data_Id__c].name;
- }
- }
- component.find('select_doctor').set('v.options', res);
- }
-
- component.set('v.login', false);
- }, staticResourceAgencyContact.token);
- }
- } else {
- let awsids = [];
- for (var i = 0; i < res.length; i++) {
- if (res[i].AWS_Data_Id__c) {
- awsids.push(res[i].AWS_Data_Id__c);
- }
- }
- component.find('select_doctor').set('v.options', res);
- if (awsids.length > 0) {
- let PIConfig = component.get('v.PIConfig');
- let staticResourceAgencyContact = JSON.parse(PIConfig.staticResourceAgencyContact);
- AWSService.search(staticResourceAgencyContact.searchUrl, {
- dataIds: awsids
- }, function (data) {
- if (data && data.object && data.object.length) {
- let m = {};
- for (let di in data.object) {
- if (data.object[di] && data.object[di].dataId) {
- m[data.object[di].dataId] = data.object[di];
- }
- }
-
- for (let ri in res) {
- if (res[ri] && res[ri].AWS_Data_Id__c && m.hasOwnProperty(res[ri].AWS_Data_Id__c)) {
- res[ri].label = m[res[ri].AWS_Data_Id__c].name;
- }
- }
- component.find('select_doctor').set('v.options', res);
- }
-
- component.set('v.login', false);
- }, staticResourceAgencyContact.token);
- }
- // component.find('select_doctor').set('v.options', res);
- if (res.length > 0) {
- component.set('v.doctor_title', res[0].Doctor_Division1__c);
- }
- }
- // component.set('v.default_select_doctor_id', '');
-
- component.set('v.doctor_list', res);
- component.set('v.login', false);
- }
- else {
- // component.set('v.errorMessage', 'set_doctor_list failed.');
- this.error('set_doctor_list failed.');
- this.showErrorToast(component);
- component.set('v.login', false);
- }
- });
- $A.enqueueAction(action);
- }
-
- } else {
- if (doctor_value == '绉戝浼�') {
- this.set_doctor_list2(component);
- } else {
- component.find('select_doctor').set('v.options', '');
- }
- }
- },//fy 20220414
- set_doctor_list_edit: function (component) {
console.log('set_doctor_list')
var doctor_value = component.find('select_purpose_type').get('v.value');
var hospital_id = component.get('v.hospitalLinkId');
@@ -2099,7 +1976,139 @@
else {
// component.set('v.errorMessage', 'set_doctor_list failed.');
this.error('set_doctor_list failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
+ component.set('v.loginEdit', false);
+ }
+ });
+ $A.enqueueAction(action);
+ }
+
+ } else {
+ if (doctor_value == '绉戝浼�') {
+ this.set_doctor_list2(component);
+ } else {
+ component.find('select_doctor').set('v.options', '');
+ }
+ }
+ component.set('v.loginEdit', false);
+ },//fy 20220414
+ set_doctor_list_edit: function (component) {
+ console.log('set_doctor_list')
+ var doctor_value = component.find('select_purpose_type').get('v.value');
+ var hospital_id = component.get('v.hospitalLinkId');
+ console.log('hospital_id = ' + hospital_id);
+ if (hospital_id) {
+ if (doctor_value == '绉戝浼�') {
+ component.set('v.loginEdit', true);
+ this.set_doctor_list2(component);
+ } else {
+ component.set('v.loginEdit', true);
+ var action = component.get('c.getDoctorList');
+ action.setParams({
+ "hospital_id": hospital_id,
+ });
+ action.setCallback(this, function (response) {
+ var state = response.getState();
+ if (state == 'SUCCESS') {
+ var res = this.conv_selected(response.getReturnValue());
+ //fy
+ var setdoctorlisthos = component.get('v.setdoctorlisthos');
+ if (setdoctorlisthos) {
+ component.set('v.default_select_doctor_id', '');
+ component.set('v.setdoctorlisthos', false);
+ }
+ //fy
+ var default_doctor = component.get('v.default_select_doctor_id');
+ if (default_doctor != '' && res.length > 0) {
+ var doctor_title = '';
+ let awsids = [];
+ for (var i = 0; i < res.length; i++) {
+ if (res[i].value == default_doctor) {
+ res[i].selected = true;
+ doctor_title = res[i].Doctor_Division1__c;
+ } else {
+ res[i].selected = false;
+ }
+ if (res[i].AWS_Data_Id__c) {
+ awsids.push(res[i].AWS_Data_Id__c);
+ }
+ }
+ component.find('select_doctor').set('v.options', res);
+ component.set('v.doctor_title', doctor_title);
+ console.log('awsids = ' + JSON.stringify(awsids))
+ if (awsids.length > 0) {
+ let PIConfig = component.get('v.PIConfig');
+ let staticResourceAgencyContact = JSON.parse(PIConfig.staticResourceAgencyContact);
+ AWSService.search(staticResourceAgencyContact.searchUrl, {
+ dataIds: awsids
+ }, function (data) {
+ console.log('data = ' + JSON.stringify(data))
+ if (data && data.object && data.object.length) {
+ let m = {};
+ for (let di in data.object) {
+ if (data.object[di] && data.object[di].dataId) {
+ m[data.object[di].dataId] = data.object[di];
+ }
+ }
+
+ for (let ri in res) {
+ if (res[ri] && res[ri].AWS_Data_Id__c && m.hasOwnProperty(res[ri].AWS_Data_Id__c)) {
+ res[ri].label = m[res[ri].AWS_Data_Id__c].name;
+ }
+ }
+ component.find('select_doctor').set('v.options', res);
+ }
+
+ component.set('v.loginEdit', false);
+ }, staticResourceAgencyContact.token);
+ }
+ } else {
+ let awsids = [];
+ for (var i = 0; i < res.length; i++) {
+ if (res[i].AWS_Data_Id__c) {
+ awsids.push(res[i].AWS_Data_Id__c);
+ }
+ }
+ component.find('select_doctor').set('v.options', res);
+ if (awsids.length > 0) {
+ let PIConfig = component.get('v.PIConfig');
+ let staticResourceAgencyContact = JSON.parse(PIConfig.staticResourceAgencyContact);
+ AWSService.search(staticResourceAgencyContact.searchUrl, {
+ dataIds: awsids
+ }, function (data) {
+ if (data && data.object && data.object.length) {
+ let m = {};
+ for (let di in data.object) {
+ if (data.object[di] && data.object[di].dataId) {
+ m[data.object[di].dataId] = data.object[di];
+ }
+ }
+
+ for (let ri in res) {
+ if (res[ri] && res[ri].AWS_Data_Id__c && m.hasOwnProperty(res[ri].AWS_Data_Id__c)) {
+ res[ri].label = m[res[ri].AWS_Data_Id__c].name;
+ }
+ }
+ component.find('select_doctor').set('v.options', res);
+ }
+
+ component.set('v.loginEdit', false);
+ }, staticResourceAgencyContact.token);
+ }
+ // component.find('select_doctor').set('v.options', res);
+ if (res.length > 0) {
+ component.set('v.doctor_title', res[0].Doctor_Division1__c);
+ }
+ }
+ // component.set('v.default_select_doctor_id', '');
+
+ component.set('v.doctor_list', res);
+ component.set('v.loginEdit', false);
+ }
+ else {
+ // component.set('v.errorMessage', 'set_doctor_list failed.');
+ this.error('set_doctor_list failed.');
+ //this.showErrorToast(component);
component.set('v.loginEdit', false);
}
});
@@ -2148,7 +2157,7 @@
if ((p1bool && p0bool && product_category_id == pcId1) || (p2bool && p0bool && product_category_id == pcId2)) {
//component.set('v.errorMessage', '涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝佸尯鍒�');
this.error('涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝佸尯鍒�');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.find('select_Product1').set('v.value', '');
}
},
@@ -2162,7 +2171,7 @@
if ((p1bool && p0bool && product_category_id == pcId1) || (p2bool && p0bool && product_category_id == pcId2)) {
//component.set('v.errorMessage', '涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝佸尯鍒�');
this.error('涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝佸尯鍒�');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.UseProduct2_TEXT', '');
}
},
@@ -2176,7 +2185,7 @@
if ((p1bool && p0bool && product_category_id == pcId1) || (p2bool && p0bool && product_category_id == pcId2)) {
//component.set('v.errorMessage', '涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝佸尯鍒�');
this.error('涓嶈兘閫夋嫨鍚屾牱鐨勪骇鍝佸尯鍒�');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.find('select_Product3').set('v.value', '');
}
},
@@ -2279,7 +2288,7 @@
$A.util.addClass(modal_newAC, 'disp_none');
component.set('v.successMessage', '.鎷滆浜哄凡鍒涘缓銆�');
this.showSuccessToast(component);
- this.set_doctor_list(component, event, helper);
+ this.set_doctor_list_edit(component, event, helper);
},
createCancel: function (component, event, helper) {
component.set('v.truthy', false);
@@ -2402,7 +2411,7 @@
else {
//component.set('v.errorMessage', 'AWS url/token error.');
this.error('AWS url/token error.');
- this.showErrorToast01(component);
+ //this.showErrorToast01(component);
component.set('v.login', false);
}
});
@@ -2427,7 +2436,7 @@
console.log('AWS search error = ' + JSON.stringify(error));
// component.set('v.errorMessage', 'AWS search error.');
this.error('AWS search error.');
- this.showErrorToast01(component);
+ //this.showErrorToast01(component);
component.set('v.login', false);
});
},
@@ -2478,14 +2487,14 @@
} else {
//component.set('v.errorMessage', 'AWS 鏌ヨ鏁版嵁涓虹┖ ');
this.error('AWS 鏌ヨ鏁版嵁涓虹┖ ');
- this.showErrorToast01(component);
+ //this.showErrorToast01(component);
//component.set('v.login', false);
component.set('v.modal_import_spinner', false);
}
} else {
//component.set('v.errorMessage', 'AWS search status : ' + result.status);
this.error('AWS search status : ' + result.status);
- this.showErrorToast01(component);
+ //this.showErrorToast01(component);
//component.set('v.login', false);
component.set('v.modal_import_spinner', false);
}
@@ -2494,7 +2503,7 @@
} else {
//component.set('v.errorMessage', valur[1] + '\n' + "璇蜂慨鏀瑰悗閲嶆柊涓婁紶");
this.error(valur[1] + '\n' + "璇蜂慨鏀瑰悗閲嶆柊涓婁紶");
- this.showErrorToast01(component);
+ //this.showErrorToast01(component);
//component.set('v.login', false);
component.set('v.modal_import_spinner', false);
}
@@ -2697,7 +2706,7 @@
console.log('error = ' + error);
//component.set('v.errorMessage', error);
this.error(error);
- this.showErrorToast01(component);
+ //this.showErrorToast01(component);
console.log('error=' + error);
//component.set('v.login', false);
component.set('v.modal_import_spinner', false);
@@ -2791,7 +2800,7 @@
console.log("==" + res1);
//component.set('v.errorMessage', res1 + "璇蜂慨鏀瑰悗閲嶆柊涓婁紶");
this.error(res1 + "璇蜂慨鏀瑰悗閲嶆柊涓婁紶");
- this.showErrorToast01(component);
+ //this.showErrorToast01(component);
//component.set('v.login', false);
component.set('v.modal_import_spinner', false);
} else {
@@ -2894,7 +2903,12 @@
var content = "<table class=\"table slds-table slds-table--bordered slds-table--cell-buffer\">";
content += "<thead><tr class=\"slds-text-title--caps\">";
for (i = 0; i < headers.length; i++) {
- content += '<th scope=\"col"\>' + headers[i] + '</th>';
+ //content += '<th scope=\"col"\ style=\"width:200px">' + headers[i] + '</th>';
+ if (headers[i] == '浜у搧1鍚岀被鑰楁潗绉戝鏈堜娇鐢ㄩ噺') {
+ content += '<th scope=\"col"\ style=\"width:250px"\>' + headers[i] + '</th>';
+ } else {
+ content += '<th scope=\"col"\ style=\"width:200px"\>' + headers[i] + '</th>';
+ }
}
content += "</tr></thead>";
for (var i = 0; i < objectRecords.length; i++) {
@@ -3086,7 +3100,7 @@
else {
//component.set('v.errorMessage', 'newlyBuild failed.');
this.error('newlyBuild failed.');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
component.set('v.login', false);
}
});
@@ -3103,12 +3117,12 @@
} else {
//component.set('v.errorMessage', '浜у搧1鍚岀被鑰楁潗绉戝鏈堜娇鐢ㄩ噺蹇呴』杈撳叆鏁板瓧!');
this.error('浜у搧1鍚岀被鑰楁潗绉戝鏈堜娇鐢ㄩ噺蹇呴』杈撳叆鏁板瓧!');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
}
} else {
//component.set('v.errorMessage', '浜у搧1鍚岀被鑰楁潗绉戝鏈堜娇鐢ㄩ噺鏈�澶氳緭鍏�14浣嶆暟瀛�!');
this.error('浜у搧1鍚岀被鑰楁潗绉戝鏈堜娇鐢ㄩ噺鏈�澶氳緭鍏�14浣嶆暟瀛�!');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
}
}
},
@@ -3122,12 +3136,12 @@
} else {
//component.set('v.errorMessage', '浜у搧鐢ㄩ噺蹇呴』杈撳叆鏁板瓧!');
this.error('浜у搧鐢ㄩ噺蹇呴』杈撳叆鏁板瓧!');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
}
} else {
//component.set('v.errorMessage', '浜у搧鐢ㄩ噺鏈�澶氳緭鍏�14浣嶆暟瀛�!');
this.error('浜у搧鐢ㄩ噺鏈�澶氳緭鍏�14浣嶆暟瀛�!');
- this.showErrorToast(component);
+ //this.showErrorToast(component);
}
}
},
@@ -3142,7 +3156,7 @@
component.find('new_con').set('v.disabled', true);
}
if (doctor_value != '') {
- this.set_doctor_list(component);
+ this.set_doctor_list_edit(component);
var action = component.get('c.selectPurposeTypes');
action.setParams({
'doctor_value': doctor_value
--
Gitblit v1.9.1