Commit e425d76b authored by wangjiangze's avatar wangjiangze

配置中心修改BUG更新

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