删除addons相关文件;

This commit is contained in:
2022-04-03 15:36:22 +08:00
parent 2a97375418
commit e12821d3bc
6 changed files with 4 additions and 86 deletions

View File

@@ -5,6 +5,6 @@
return [
// 指令定义
'commands' => [
'alioss' => 'addons\alioss\command\Alioss',
],
];

View File

@@ -1,14 +0,0 @@
<?php
return [
// 自动加载,插件命令行模式下必须
'autoload' => true,
// 默认插件入口路径
'path' => 'addons',
// 默认方法
'default_action' => 'index',
];

View File

@@ -1,30 +0,0 @@
define(["jquery", "admin", "vue"], function ($, admin, Vue) {
var Controller = {
index: function () {
/**
* 添加模板
*/
$('.add-template').on('click', function () {
var dataKey = document.querySelectorAll("tr[data-key]"),
key = 0;
if (dataKey.length > 0) key = parseInt($(dataKey[dataKey.length - 1]).attr('data-key')) + 1;
var html = ' <tr data-key="' + key + '">\n' +
' <td><input type="text" name="name[' + key + ']" lay-verify="required" autocomplete="off" class="layui-input" value=""></td>\n' +
' <td><input type="text" name="value[' + key + ']" lay-verify="required" autocomplete="off" class="layui-input" value=""></td>\n' +
' <td><input type="text" name="remark[' + key + ']" lay-verify="required" autocomplete="off" class="layui-input" value=""></td>\n' +
' <td><span class="layui-btn layui-btn-danger layui-btn-sm" delete-template="">删除</span></td>\n' +
' </tr>';
$('.template-list').append(html);
});
$('body').on('click', '[delete-template]', function () {
$(this).parent().parent().remove();
});
admin.listen();
}
};
return Controller;
});

View File

@@ -1,37 +0,0 @@
define(["jquery", "admin",], function ($, admin) {
var init = {
table_elem: 'currentTable',
table_render_id: 'currentTableRenderId',
index_url: '/addons/alisms/record/index',
delete_url: '/addons/alisms/record/del',
};
var Controller = {
index: function () {
admin.table.render({
elem: '#' + init.table_elem,
id: init.table_render_id,
url: init.index_url,
init: init,
toolbar: ['refresh', 'delete'],
cols: [[
{type: "checkbox"},
{field: 'id', width: 80, title: 'ID', sort: true, align: "center"},
{field: 'phone', minWidth: 80, title: '发送手机', align: "center"},
{field: 'content', minWidth: 80, title: '短信内容', align: "center"},
{field: 'template', minWidth: 80, title: '短信模板', align: "center"},
{field: 'result', minWidth: 80, title: '返回结果', align: "center"},
{field: 'create_time', minWidth: 80, title: '发送时间', align: "center", search: 'range'},
{
width: 250, align: 'center', title: '操作', init: init, templet: admin.table.tool, operat: ['delete']
}
]],
});
admin.listen();
}
};
return Controller;
});

View File

@@ -1155,7 +1155,6 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine
var title = $(this).attr('data-title'),
url = $(this).attr('data-request'),
tableId = $(this).attr('data-table'),
addons = $(this).attr('data-addons'),
checkbox = $(this).attr('data-checkbox'),
direct = $(this).attr('data-direct'),
field = $(this).attr('data-field') || 'id';
@@ -1185,9 +1184,9 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine
postData[field] = ids;
}
if (addons !== true && addons !== 'true') {
url = admin.url(url);
}
url = admin.url(url);
tableId = tableId || init.table_render_id;
admin.msg.confirm(title, function () {
admin.request.post({