修改Whatshub工单的完成数量总计的计算方法
This commit is contained in:
@@ -64,7 +64,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
visible: false,
|
||||
searchable: true,
|
||||
operate: '=',
|
||||
searchList: Controller.api.buildRatioDeferredSearchList()
|
||||
searchList: Config.ratioDeferredList || {}
|
||||
},
|
||||
searchSelectMeta(false)
|
||||
),
|
||||
@@ -160,16 +160,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
}
|
||||
return ext;
|
||||
},
|
||||
/**
|
||||
* PHP json_encode 会把 ['0'=>..,'1'=>..] 压成数组,FastAdmin 通用搜索会误用文案作 option value
|
||||
*/
|
||||
buildRatioDeferredSearchList: function () {
|
||||
var list = Config.ratioDeferredList;
|
||||
if ($.isArray(list)) {
|
||||
return {0: list[0], 1: list[1]};
|
||||
}
|
||||
return list || {};
|
||||
},
|
||||
initCommonSearchSelectpicker: function (tbl) {
|
||||
var $form = $('form.form-commonsearch', tbl.$container);
|
||||
if ($form.length) {
|
||||
|
||||
Reference in New Issue
Block a user