mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-05 17:42:49 +08:00
完善table组件细节;开始接入城市选择器;
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData'], function ($, tableSelect, undefined, miniTheme, tableData) {
|
||||
define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData','citypicker'], function ($, tableSelect, undefined, miniTheme, tableData) {
|
||||
|
||||
window.onInitElemStyle = function () {
|
||||
miniTheme.renderElemStyle()
|
||||
@@ -1708,6 +1708,20 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData'], function
|
||||
});
|
||||
}
|
||||
|
||||
var cityList= $(v).closest('.layui-form').find('[data-toggle="city-picker"]');
|
||||
|
||||
if(cityList.length > 0){
|
||||
$.each(cityList, function (i, v) {
|
||||
console.log(i);
|
||||
console.log(v);
|
||||
var code = $(v).data('citypicker').getCode(type);
|
||||
var text = $(v).data('citypicker').getVal(type);
|
||||
|
||||
console.log(code);
|
||||
console.log(text);
|
||||
})
|
||||
}
|
||||
|
||||
if (typeof preposeCallback === 'function') {
|
||||
dataField = preposeCallback(dataField);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user