feature: 面板
This commit is contained in:
parent
16010e86b0
commit
3b3c95b5e0
|
|
@ -24,11 +24,11 @@
|
||||||
<label class="control-label col-xs-12 col-sm-2">文件说明:</label>
|
<label class="control-label col-xs-12 col-sm-2">文件说明:</label>
|
||||||
<div class="col-xs-12 col-sm-8">
|
<div class="col-xs-12 col-sm-8">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input id="c-prove_file_path" class="form-control" size="50" name="row[prove_file_path]" type="text" value="{$row.path|htmlentities}">
|
<input id="c-prove_file_path" class="form-control" size="50" name="row[prove_file_path]" type="text" value="{$row.prove_file_path|htmlentities}">
|
||||||
<div class="input-group-addon no-border no-padding">
|
<div class="input-group-addon no-border no-padding">
|
||||||
<span><button type="button" id="plupload-path" class="btn btn-danger plupload" data-input-id="c-prove_file_path" data-mimetype="*" data-multiple="false" data-preview-id="p-path"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
<span><button type="button" id="plupload-path" class="btn btn-danger plupload" data-input-id="c-prove_file_path" data-mimetype="*" data-multiple="false" data-preview-id="p-path"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
||||||
{if $row->prove_file_path}
|
{if $row->prove_file_path}
|
||||||
<span><a href="{$row.url}" class="btn btn-primary btn-info btn-preview" data-type="{$row.filetype}">预览</a></span>
|
<span><button class="btn btn-primary btn-info btn-preview" data-type="{$row.filetype}" data-url="{$row.url}">预览</button></span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<span class="msg-box n-right" for="c-prove_file_path"></span>
|
<span class="msg-box n-right" for="c-prove_file_path"></span>
|
||||||
|
|
|
||||||
|
|
@ -46,10 +46,10 @@
|
||||||
<label class="control-label col-xs-12 col-sm-2">完成附件:</label>
|
<label class="control-label col-xs-12 col-sm-2">完成附件:</label>
|
||||||
<div class="col-xs-12 col-sm-8">
|
<div class="col-xs-12 col-sm-8">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input id="c-prove_file_path" class="form-control" size="50" readonly="readonly" name="row[prove_file_path]" type="text" value="">
|
<input id="c-prove_file_path" class="form-control" size="50" readonly="readonly" name="row[prove_file_path]" type="text" value="{$row.prove_file_path}">
|
||||||
<div class="input-group-addon no-border no-padding">
|
<div class="input-group-addon no-border no-padding">
|
||||||
{if $row.prove_file_path}
|
{if $row.prove_file_path}
|
||||||
<span><a href="{$row.url}" class="btn btn-primary btn-info btn-preview" data-type="{$row.filetype}">预览</a></span>
|
<span><button class="btn btn-primary btn-info btn-preview" data-type="{$row.filetype}" data-url="{$row.url}">预览</button></span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<span class="msg-box n-right" for="c-prove_file_path"></span>
|
<span class="msg-box n-right" for="c-prove_file_path"></span>
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'table', 'echarts', 'echart
|
||||||
shade: [0.3, '#393D49'],
|
shade: [0.3, '#393D49'],
|
||||||
area: area,
|
area: area,
|
||||||
callback:function(value){
|
callback:function(value){
|
||||||
CallBackFun(value.id, value.name);//在回调函数里可以调用你的业务代码实现前端的各种逻辑和效果
|
location.reload(); // 重新加载当前页面
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Fast.api.open(url,msg,options);
|
Fast.api.open(url,msg,options);
|
||||||
|
|
@ -133,7 +133,6 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'table', 'echarts', 'echart
|
||||||
Form.api.bindevent($("form[role=form]"), function(data, ret){
|
Form.api.bindevent($("form[role=form]"), function(data, ret){
|
||||||
//这里是表单提交处理成功后的回调函数,接收来自php的返回数据
|
//这里是表单提交处理成功后的回调函数,接收来自php的返回数据
|
||||||
Fast.api.close(data);//这里是重点
|
Fast.api.close(data);//这里是重点
|
||||||
Toastr.success("成功");//这个可有可无
|
|
||||||
}, function(data, ret){
|
}, function(data, ret){
|
||||||
Toastr.success("失败");
|
Toastr.success("失败");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user