mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 19:12:48 +08:00
优化tableData;新增dataGet;
This commit is contained in:
@@ -4,15 +4,15 @@
|
||||
justify-content: left;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.table-data-container .layui-input .placeholder {
|
||||
color: #808080;
|
||||
}
|
||||
.table-data-container .layui-input .layui-btn {
|
||||
pointer-events: none;
|
||||
}
|
||||
.table-data-container .layui-input .layui-btn i {
|
||||
pointer-events: all;
|
||||
}
|
||||
.table-data-container .placeholder {
|
||||
color: #808080;
|
||||
}
|
||||
.table-data-container .layui-form-danger + .layui-input {
|
||||
border-color: #ff5722 !important;
|
||||
}
|
||||
@@ -40,8 +40,8 @@
|
||||
height: clientHeight,
|
||||
placeholder: '请选择',
|
||||
selectConfirmCallback: 'onTableDataConfirm',
|
||||
type:'input',
|
||||
className:'layui-input',
|
||||
type: 'input',
|
||||
className: 'layui-input',
|
||||
};
|
||||
|
||||
var options = $.extend(defaultOption, data);
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
options.index += 'select_mode=' + options.selectType;
|
||||
|
||||
if(options.type == 'textarea'){
|
||||
if (options.type == 'textarea') {
|
||||
options.className = 'layui-textarea';
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
if (this.setting.fieldName.indexOf('|') < 0) {
|
||||
return this.listSelected.map(
|
||||
(item) => {
|
||||
item['_select_show'] = item[this.setting.fieldName];
|
||||
item['_select_show'] = ua.dataGet(item, this.setting.fieldName);
|
||||
return item;
|
||||
}
|
||||
);
|
||||
@@ -92,7 +92,7 @@
|
||||
return this.listSelected.map(item => {
|
||||
var showText = '';
|
||||
fieldNameList.forEach(fieldName => {
|
||||
showText += item[fieldName] + ' ';
|
||||
showText += ua.dataGet(item, fieldName) + ' ';
|
||||
});
|
||||
item['_select_show'] = showText;
|
||||
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
justify-content: left;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.placeholder {
|
||||
color: #808080
|
||||
}
|
||||
|
||||
.layui-btn {
|
||||
pointer-events: none;
|
||||
|
||||
@@ -18,6 +14,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
color: #808080
|
||||
}
|
||||
|
||||
.layui-form-danger+.layui-input {
|
||||
border-color: #ff5722 !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user