浏览代码

公告详情

afa 10 月之前
父节点
当前提交
380015a9c7

+ 1 - 57
README.md

@@ -36,62 +36,6 @@ FastAdmin是一款基于ThinkPHP+Bootstrap的极速后台开发框架。
 
 ## 安装使用
 
-https://doc.fastadmin.net
+* 覆盖:thinkphp\library\think\Request.php
 
-## 在线演示
 
-https://demo.fastadmin.net
-
-用户名:admin
-
-密 码:123456
-
-提 示:演示站数据无法进行修改,请下载源码安装体验全部功能
-
-## 界面截图
-![控制台](https://images.gitee.com/uploads/images/2020/0929/202947_8db2d281_10933.gif "控制台")
-
-## 问题反馈
-
-在使用中有任何问题,请使用以下联系方式联系我们
-
-交流社区: https://ask.fastadmin.net
-
-QQ 1 群(满)、QQ 2 群(满)、QQ 3 群(满)、QQ 4 群(满)、QQ 5 群(满)、QQ 6 群(满)、[QQ 7 群](https://www.fastadmin.net/goto/qun)。
-
-Github: https://github.com/karsonzhang/fastadmin
-
-Gitee: https://gitee.com/karson/fastadmin
-
-## 特别鸣谢
-
-感谢以下的项目,排名不分先后
-
-ThinkPHP:http://www.thinkphp.cn
-
-AdminLTE:https://adminlte.io
-
-Bootstrap:http://getbootstrap.com
-
-jQuery:http://jquery.com
-
-Bootstrap-table:https://github.com/wenzhixin/bootstrap-table
-
-Nice-validator: https://validator.niceue.com
-
-SelectPage: https://github.com/TerryZ/SelectPage
-
-Layer: https://layuion.com/layer/
-
-DropzoneJS: https://www.dropzonejs.com
-
-
-## 版权信息
-
-FastAdmin遵循Apache2开源协议发布,并提供免费使用。
-
-本项目包含的第三方源码和二进制文件之版权信息另行标注。
-
-版权所有Copyright © 2017-2022 by FastAdmin (https://www.fastadmin.net)
-
-All rights reserved。

+ 1 - 0
application/admin/lang/zh-cn/general/announcement.php

@@ -9,6 +9,7 @@ return [
     'Images'      => '图片',
     'Weigh'       => '权重',
     'Status'      => '状态',
+    'Details'     => '详情',
     'Create_time' => '创建时间',
     'Update_time' => '更新时间'
 ];

+ 6 - 1
application/admin/view/general/announcement/add.html

@@ -40,7 +40,12 @@
             <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
         </div>
     </div>
-
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Details')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <textarea id="c-details" class="form-control editor" rows="5" name="row[details]" cols="50"></textarea>
+        </div>
+    </div>
     <div class="form-group layer-footer">
         <label class="control-label col-xs-12 col-sm-2"></label>
         <div class="col-xs-12 col-sm-8">

+ 6 - 1
application/admin/view/general/announcement/edit.html

@@ -39,7 +39,12 @@
             <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
         </div>
     </div>
-
+    <div class="form-group">
+        <label class="control-label col-xs-12 col-sm-2">{:__('Details')}:</label>
+        <div class="col-xs-12 col-sm-8">
+            <textarea id="c-details" class="form-control editor" rows="5" name="row[details]" cols="50">{$row.details|htmlentities}</textarea>
+        </div>
+    </div>
     <div class="form-group layer-footer">
         <label class="control-label col-xs-12 col-sm-2"></label>
         <div class="col-xs-12 col-sm-8">

+ 5 - 0
public/assets/js/backend/general/announcement.js

@@ -41,6 +41,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
 
             // 为表格绑定事件
             Table.api.bindevent(table);
+              // 修改添加窗口的大小
+              $(".btn-add").data("area", ["60%", "80%"]);
+              table.on('post-body.bs.table',function () {
+                  $('.btn-editone').data("area",["60%","80%"]);
+              });
         },
         add: function () {
             Controller.api.bindevent();