Commit 8cda7e4c authored by zazaname's avatar zazaname

聚合服务端后台V1.0

parent 7de8a5a2
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -20,6 +20,7 @@ require.config({ ...@@ -20,6 +20,7 @@ require.config({
"tableSelect": ["plugs/lay-module/tableSelect/tableSelect"], "tableSelect": ["plugs/lay-module/tableSelect/tableSelect"],
"iconPickerFa": ["plugs/lay-module/iconPicker/iconPickerFa"], "iconPickerFa": ["plugs/lay-module/iconPicker/iconPickerFa"],
"autocomplete": ["plugs/lay-module/autocomplete/autocomplete"], "autocomplete": ["plugs/lay-module/autocomplete/autocomplete"],
"xm-select": ["plugs/lay-module/xm-select/xm-select"],
"vue": ["plugs/vue-2.6.10/vue.min"], "vue": ["plugs/vue-2.6.10/vue.min"],
"ckeditor": ["plugs/ckeditor4/ckeditor"], "ckeditor": ["plugs/ckeditor4/ckeditor"],
} }
...@@ -33,6 +34,7 @@ window.PATH_CONFIG = PATH_CONFIG; ...@@ -33,6 +34,7 @@ window.PATH_CONFIG = PATH_CONFIG;
// 初始化控制器对应的JS自动加载 // 初始化控制器对应的JS自动加载
if ("undefined" != typeof CONFIG.AUTOLOAD_JS && CONFIG.AUTOLOAD_JS) { if ("undefined" != typeof CONFIG.AUTOLOAD_JS && CONFIG.AUTOLOAD_JS) {
console.log(BASE_URL + CONFIG.CONTROLLER_JS_PATH);
require([BASE_URL + CONFIG.CONTROLLER_JS_PATH+"?t="+(Date.parse(new Date()))], function (Controller) { require([BASE_URL + CONFIG.CONTROLLER_JS_PATH+"?t="+(Date.parse(new Date()))], function (Controller) {
if (eval('Controller.' + CONFIG.ACTION)) { if (eval('Controller.' + CONFIG.ACTION)) {
eval('Controller.' + CONFIG.ACTION + '()'); eval('Controller.' + CONFIG.ACTION + '()');
......
...@@ -333,6 +333,26 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine ...@@ -333,6 +333,26 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine
'</div>\n' + '</div>\n' +
'</div>'; '</div>';
break; break;
case 'xm-select':
d.searchOp = '=';
var xm_select_html = '';
$.each(d.selectList, function (sI, sV) {
var selected = '';
if (sI === d.searchValue) {
selected = 'selected=""';
}
xm_select_html += '<option value="' + sI + '" ' + selected + '>' + sV + '</option>/n';
});
formHtml += '\t<div class="layui-form-item layui-inline">\n' +
'<label class="layui-form-label">' + d.title + '</label>\n' +
'<div class="layui-input-inline xm-select">\n' +
'<select class="layui-select" id="c-' + d.fieldAlias + '" name="' + d.fieldAlias + '" data-search-op="' + d.searchOp + '" >\n' +
'<option value="">- 全部 -</option> \n' +
xm_select_html +
'</select>\n' +
'</div>\n' +
'</div>';
break;
case 'range': case 'range':
d.searchOp = 'range'; d.searchOp = 'range';
formHtml += '\t<div class="layui-form-item layui-inline">\n' + formHtml += '\t<div class="layui-form-item layui-inline">\n' +
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment