|
@@ -2425,14 +2425,21 @@ function fastEdit(e, url, title, col, index, type)
|
|
|
if ($('#update_button').length) {
|
|
|
$('#update_button').hide();
|
|
|
}
|
|
|
-
|
|
|
- form.render();
|
|
|
- $("select").each(function()
|
|
|
- {
|
|
|
- if ($(this).attr('xm-select')) {
|
|
|
- layui.formSelects.render($(this).attr('xm-select'));
|
|
|
- }
|
|
|
- })
|
|
|
+
|
|
|
+ layui.config({
|
|
|
+ base: '../script/lib/layui/admin/' //静态资源所在路径
|
|
|
+ ,version:true
|
|
|
+ }).extend({
|
|
|
+ formSelects: 'plugin/formselects/formselects',
|
|
|
+ }).use(['formSelects', 'form'], function(){
|
|
|
+ layui.form.render();
|
|
|
+ $("select").each(function()
|
|
|
+ {
|
|
|
+ if ($(this).attr('xm-select')) {
|
|
|
+ layui.formSelects.render($(this).attr('xm-select'));
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
init(560);
|
|
|
});
|
|
|
}
|