mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
added 新增FormJS的引入
This commit is contained in:
parent
6684c2bf41
commit
1cccbd41f8
@ -617,15 +617,26 @@
|
||||
success: function(data){
|
||||
if( data.code == 200 ){
|
||||
if( data.data.tempType == 'table' ){
|
||||
// if( $.buildTable ){
|
||||
// $('#content').html($.buildTable(data.data));
|
||||
// $('#tableBox').hide().fadeIn(800);
|
||||
// }else{
|
||||
if( $.buildTable ){
|
||||
$('#content').html($.buildTable(data.data));
|
||||
$('#tableBox').hide().fadeIn(800);
|
||||
}else{
|
||||
$.getScript('__JS__/template/table.js', function (){
|
||||
$('#content').html($.buildTable(data.data));
|
||||
$('#tableBox').hide().fadeIn(800);
|
||||
});
|
||||
// }
|
||||
}
|
||||
}
|
||||
if( data.data.tempType == 'form' ){
|
||||
if( $.buildForm ){
|
||||
$('#content').html($.buildForm(data.data));
|
||||
$('#tableBox').hide().fadeIn(800);
|
||||
}else{
|
||||
$.getScript('__JS__/template/form.js', function (){
|
||||
$('#content').html($.buildForm(data.data));
|
||||
$('#formBox').hide().fadeIn(800);
|
||||
});
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$.alertMsg(data.msg);
|
||||
|
@ -1,4 +1,40 @@
|
||||
/**
|
||||
* Created by 7d-vision on 2016/11/7.
|
||||
*/
|
||||
(function ($) {})(jQuery);
|
||||
(function ($) {
|
||||
|
||||
$.buildForm = function ( formObj ) {
|
||||
var formHtml = '<div class="box" id="formBox"><div class="box-body">';
|
||||
|
||||
formHtml += '</div></div>';
|
||||
return formHtml;
|
||||
};
|
||||
|
||||
function buildInput( inputObj ) {
|
||||
|
||||
}
|
||||
|
||||
function buildButton( buttonObj ) {
|
||||
|
||||
}
|
||||
|
||||
function buildTextarea() {
|
||||
|
||||
}
|
||||
|
||||
function buildSelect() {
|
||||
|
||||
}
|
||||
|
||||
function buildEditors() {
|
||||
|
||||
}
|
||||
|
||||
function buildUpload() {
|
||||
|
||||
}
|
||||
|
||||
function buildCode() {
|
||||
|
||||
}
|
||||
})(jQuery);
|
Loading…
x
Reference in New Issue
Block a user