You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
SOP/sop-admin/sop-admin-front/pages/isv/isvAdd.js

39 lines
1.1 KiB

lib.importJs('../../assets/js/routerole.js')
.use(['element', 'table', 'form'], function () {
var table = layui.table;
var layer = layui.layer;
var form = layui.form;
var $ = layui.jquery;
var addForm = layui.Form('addForm');
$('#createFormDataBtn').click(function () {
ApiUtil.post('isv.form.gen', {}, function (resp) {
addForm.setData(resp.data);
});
return false;
});
form.on('radio(signTypeFilter)', function(data){
if (data.value == 1) {
$('.sign-type-rsa2').show();
$('.sign-type-md5').hide();
} else {
$('.sign-type-rsa2').hide();
$('.sign-type-md5').show();
}
});
form.on('submit(addFormSubmitFilter)', function (data) {
var param = addForm.getData();
ApiUtil.post('isv.info.add', param, function (resp) {
layer.alert('添加成功', function () {
location.href = 'isvList.html';
})
})
return false;
});
RouteRole.loadAllRole(form, 'roleArea');
});