Commit e425d76b authored by wangjiangze's avatar wangjiangze

配置中心修改BUG更新

parent 81053f9a
......@@ -60,18 +60,16 @@ body{padding:20px}
</form>
<script type="text/javascript">
function submitForm(){
var sp_id = $("select[name='sp_id'] option:selected").val();
var name_v = $("input[name='name']").val();
var code_v = $("input[name='type_code']").val();
if(sp_id==0){
alert("请选择合作方");return;
}
var k_v = $("input[name='k']").val();
var v_v = $("input[name='v']").val();
if(!name_v){
alert("请输入配置名称");return;
}
if(!code_v){
alert("请输入配置类型code");return;
if(!k_v){
alert("请输入配置键");return;
}if(!v_v){
alert("请输入配置值");return;
}
$('#ff').form('submit', {
url:'/System/CenterConfig/addHandle/',
......@@ -95,7 +93,6 @@ function submitForm(){
}
$().ready(function(){
<if condition="$info">
$("select[name='sp_id'] option[value='{$info.sp_id}']").attr("selected",true);
$("input[name='status'][value='{$info.status}']").attr("checked",true);
</if>
});
......
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