|
...
|
...
|
@@ -28,15 +28,11 @@ |
|
|
|
{include file="common/foot"/}
|
|
|
|
<script src="/static/common/js/angular.min.js"></script>
|
|
|
|
<script>
|
|
|
|
var m = angular.module('hd',[]);
|
|
|
|
m.controller('ctrl',['$scope',function($scope) {
|
|
|
|
$scope.field = '{$info|raw}'!='null'?{$info|raw}:{title:''};
|
|
|
|
layui.use(['form', 'layer'], function () {
|
|
|
|
var form = layui.form, layer = layui.layer,$= layui.jquery;
|
|
|
|
form.on('submit(submit)', function (data) {
|
|
|
|
loading = layer.load(1,{shade:[0.1,'#fff']});
|
|
|
|
// 提交到方法 默认为本身
|
|
|
|
data.field.group_id = $scope.field.group_id;
|
|
|
|
$.post("{:url('addagent')}", data.field, function (res) {
|
|
|
|
layer.close(loading);
|
|
|
|
if (res.code > 0) {
|
|
...
|
...
|
@@ -49,5 +45,4 @@ |
|
|
|
});
|
|
|
|
})
|
|
|
|
});
|
|
|
|
}]);
|
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|