修改表单样式

This commit is contained in:
邹景立 2021-08-28 18:51:07 +08:00
parent 2c65a07730
commit 5f8358435c
2 changed files with 3 additions and 7 deletions

View File

@ -5,8 +5,6 @@
.keys-container .layui-card {
width: 580px;
height: 578px;
position: absolute;
border: 1px solid #ccc
}
.keys-container .layui-card .layui-card-body {

View File

@ -29,13 +29,13 @@
</ul>
</div>
<div class="absolute inline-block layui-card margin-left-10" style="border:1px solid #ccc;height:578px;width:570px">
<div class="absolute inline-block layui-card margin-left-10" style="height:578px;width:570px">
<div class="layui-card-header layui-bg-gray text-center">菜单编辑</div>
<div class="layui-card-body" ng-if="list.length<1">
<blockquote class="layui-elem-quote border-0 text-center">请在左侧创建菜单...</blockquote>
</div>
<div class="layui-card-body" ng-if="list.length>0">
<form class="layui-form menu-form" autocomplete="off" style="padding-right:80px;">
<form class="layui-form menu-form padding-right-40" autocomplete="off">
<div class="layui-form-item margin-top-20">
<label class="layui-form-label">菜单名称</label>
<div class="layui-input-block">
@ -117,9 +117,7 @@
angular.bootstrap(document.getElementById(app.name), [app.name]);
function callback($rootScope) {
$rootScope.item = {};
$rootScope.list = [];
$rootScope.keys = [];
$rootScope.item = {}, $rootScope.list = [], $rootScope.keys = [];
$.form.load('{:url("index")}', {output: 'json'}, 'get', function (ret) {
return $rootScope.$apply(function () {
$rootScope.keys = ret.data.keysdata || [];