摘要: exportTypes: ['excel'],exportOptions: { ignoreColumn: [0, 'operate', 'user.avatar'], mso:{ onMsoNumberFormat: function (cell, row, col) { return !isNa 阅读全文
posted @ 2023-08-24 16:48 U丶Zero 阅读(36) 评论(0) 推荐(0) 编辑
摘要: <?php namespace app\api\controller; use app\common\library\Auth; use think\Config; use think\Controller; use think\Hook; use think\Lang; use think\Loa 阅读全文
posted @ 2022-11-29 17:17 U丶Zero 阅读(153) 评论(0) 推荐(0) 编辑
摘要: { field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate, buttons: [ { name: ' 阅读全文
posted @ 2022-10-31 16:35 U丶Zero 阅读(345) 评论(0) 推荐(0) 编辑
摘要: /public/index.php if (isset($_SERVER['HTTP_ORIGIN'])) { // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one // you want to allow, and if so: hea 阅读全文
posted @ 2022-10-29 09:56 U丶Zero 阅读(188) 评论(0) 推荐(0) 编辑
摘要: index.html <a href="javascript:;" class="btn btn-success btn-adds btn-disabled disabled {:$auth->check('match/article/adds')?'':'hide'}" title="{:__(' 阅读全文
posted @ 2022-09-06 17:03 U丶Zero 阅读(1069) 评论(0) 推荐(0) 编辑
摘要: 1.获取下拉框显示数据,默认加载字段,id,name public function source() { //$json = cache('ai_activity_type'); $json = false; if ($json false) { $typeModel = new \app\adm 阅读全文
posted @ 2022-07-26 11:34 U丶Zero 阅读(2064) 评论(0) 推荐(0) 编辑
摘要: 开发背景: 新项目,需要配合客户完成网站迁移,需要使用客户主域名,将新项目作为模块使用。(https://aa.cn/cloud/) 新项目的操作步骤如下: 1:在public目录下创建cloud目录 当作模块使用 将前端开发的html,js,css等静态文件全部拷贝到此目录下 2:更改接口编写方式 阅读全文
posted @ 2022-07-14 17:10 U丶Zero 阅读(56) 评论(0) 推荐(0) 编辑
摘要: function getAccessToken() { $appId = ""; $secretId = ""; $accessUrl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&s 阅读全文
posted @ 2022-06-24 16:33 U丶Zero 阅读(212) 评论(0) 推荐(0) 编辑
摘要: JS代码: {field: 'type.name', title: __('Type.name'), searchList: $.getJSON("ai/activity_type/source")}, PHP代码: public function source() { $json = cache( 阅读全文
posted @ 2022-06-21 16:18 U丶Zero 阅读(1034) 评论(0) 推荐(0) 编辑
摘要: public\assets\js\require-table.js; LINE 42: sortOrder: 'asc', 阅读全文
posted @ 2022-04-07 17:23 U丶Zero 阅读(345) 评论(0) 推荐(0) 编辑