tts
This commit is contained in:
parent
79e78abd28
commit
3d052fa2b4
|
|
@ -57,6 +57,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'echarts','echarts-th
|
|||
});
|
||||
// 为表格2绑定事件
|
||||
Table.api.bindevent(table2);
|
||||
|
||||
|
||||
$("#select_city").on("cp:updated", function () {
|
||||
console.log(123);
|
||||
var citypicker = $(this).data("citypicker");
|
||||
var code = citypicker.getCode("district") || citypicker.getCode("city") || citypicker.getCode("province");
|
||||
console.log(code);
|
||||
$("#select_area_id").val(code);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
|
@ -104,12 +114,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'echarts','echarts-th
|
|||
});
|
||||
|
||||
|
||||
$("#select_city").on("cp:updated", function () {
|
||||
console.log(123);
|
||||
var citypicker = $(this).data("citypicker");
|
||||
var code = citypicker.getCode("district") || citypicker.getCode("city") || citypicker.getCode("province");
|
||||
console.log(code);
|
||||
$("#select_area_id").val(code);
|
||||
|
||||
$(function () {
|
||||
$('.city-picker-dropdown').each(function () {
|
||||
var offset = $(this).offset();
|
||||
if (offset.top === 0 && offset.left === 0) {
|
||||
$(this).remove(); // 错误渲染的 dropdown 移除
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/* var _data = items;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user