7 lines
863 B
Plaintext
7 lines
863 B
Plaintext
INSERT INTO `{TABLE_NAME}`(`parent_id`, `level`, `name`, `code`, `icon`, `route`, `component`, `redirect`, `is_hidden`, `type`, `status`, `sort`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`, `remark`) VALUES ({PARENT_ID}, '{LEVEL}', '{NAME}', '{CODE}', 'icon-home', '{ROUTE}', '{VUE_TEMPLATE}', NULL, '2', 'M', '1', 0, {ADMIN_ID}, NULL, now(), now(), NULL, NULL);
|
|
|
|
SET @id := LAST_INSERT_ID();
|
|
SET @level := CONCAT('{LEVEL}', ',', @id);
|
|
|
|
INSERT INTO `{TABLE_NAME}`(`parent_id`, `level`, `name`, `code`, `icon`, `route`, `component`, `redirect`, `is_hidden`, `type`, `status`, `sort`, `created_by`, `updated_by`, `created_at`, `updated_at`, `deleted_at`, `remark`) VALUES (@id, @level, CONCAT('{NAME}', '列表'), CONCAT('{CODE}',':index'), NULL, NULL, NULL, NULL, '2', 'B', '1', 0, {ADMIN_ID}, NULL, now(), now(), NULL, NULL);
|
|
{LOAD_MENU} |