rpc 禁止显示loading, option中加个参数 shadow: true,
xxxxxxxxxx
1
notice_call_back: function () {
2
var self = this
3
utility.get_config('notice_second_turn_in').then(function (need_notice) {
4
if (need_notice == 0) {
5
return false;
6
}
7
// 二次出勤
8
self._rpc({
9
"model": 'funenc_driver.driver_second_attendance',
10
"method": 'get_attendance_drivers',
11
"args": [self.address]
12
}, {
13
shadow: true,
14
}).then(function (datas) {
15
// 通知司机二次出勤
16
_.each(datas, function (data) {
17
var txt = data.driver_name + ' 请 二次出勤!';
18
console.log(txt);
19
utility.tts_speak(txt);
20
})
21
// 重新循环
22
self.start_notice()
23
}).fail(function (error_msg) {
24
// 重新循环
25
self.start_notice()
26
})
27
})
28
},
29
已复制