完善table组件细节;开始接入城市选择器;

This commit is contained in:
2022-07-09 18:27:59 +08:00
parent ec8e3cdaed
commit 423acb0329
16 changed files with 5412 additions and 1 deletions

View File

@@ -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);
}