后台菜单重构:菜单类型分组排序(软件在前/后台在后)、新增同类型末尾排序;任务中心分组移除,视频任务记录归入记录与版本、店铺数据记录归入店铺管理;界面名词优化(菜单权限配置/去重数据汇总/无效ASIN数据/视频任务记录/店铺数据记录/生成记录)
Build Backend JAR / build (push) Has been cancelled
Build Backend JAR / build (push) Has been cancelled
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
var guides = {
|
||||
users: { text: '先用筛选定位账号,再编辑角色和菜单权限;删除账号会要求二次确认。', steps: ['筛选账号', '编辑权限', '确认保存'] },
|
||||
columns: { text: '菜单会影响后台和软件端的可见范围。建议先填写名称、标识和路由,再设置父菜单。', steps: ['新增或调整菜单', '设置层级', '检查权限'] },
|
||||
columns: { text: '菜单会影响后台和软件端的可见范围。建议先填写名称、标识和页面路径,再设置上级菜单。', steps: ['新增或调整菜单', '设置层级', '检查权限'] },
|
||||
'dedupe-total-data': { text: '支持按关键词、用户、分组和国家筛选;导入前先确认所选分组,导出会按日期范围生成文件。', steps: ['选择分组', '筛选或导入', '核对并导出'] },
|
||||
'invalid-asin-data': { text: '维护不符合规则的 ASIN 或品牌。添加后可使用上方筛选快速回查。', steps: ['填写 ASIN/品牌', '选择分组', '保存并回查'] },
|
||||
'shop-keys': { text: '紫鸟令牌属于敏感配置。白名单状态可悬停查看检测详情,编辑前请先核对账号名称。', steps: ['新增或筛选密钥', '查看白名单状态', '编辑或删除'] },
|
||||
|
||||
@@ -97,9 +97,8 @@
|
||||
var ADMIN_MENU_GROUPS = [
|
||||
{ key: 'account', title: '账号与权限', items: ['users', 'columns'] },
|
||||
{ key: 'data', title: '数据管理', items: ['dedupe-total-data', 'invalid-asin-data', 'query-asin', 'product-categories'] },
|
||||
{ key: 'shop', title: '店铺管理', items: ['shop-keys', 'shop-manage', 'skip-price-asin'] },
|
||||
{ key: 'tasks', title: '任务中心', items: ['image-video-tasks', 'shop-data-crawl-tasks'] },
|
||||
{ key: 'record', title: '记录与版本', items: ['history', 'version', 'digital-human-version'] }
|
||||
{ key: 'shop', title: '店铺管理', items: ['shop-keys', 'shop-manage', 'skip-price-asin', 'shop-data-crawl-tasks'] },
|
||||
{ key: 'record', title: '记录与版本', items: ['history', 'version', 'digital-human-version', 'image-video-tasks'] }
|
||||
];
|
||||
var ADMIN_MENU_ICONS = {
|
||||
'users': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>',
|
||||
@@ -831,7 +830,7 @@
|
||||
var menuType = typeSelect ? (typeSelect.value || 'app') : 'app';
|
||||
var editingId = selectId === 'editColumnParentId' ? Number(document.getElementById('editColumnId').value || 0) : 0;
|
||||
var blockedIds = editingId > 0 ? [editingId].concat(columnDescendantIds(editingId)) : [];
|
||||
select.innerHTML = '<option value="">无(根菜单)</option>';
|
||||
select.innerHTML = '<option value="">无(一级菜单)</option>';
|
||||
allColumnsList.filter(function (item) {
|
||||
return !item._structureOnly && String(item.menu_type || 'app') === String(menuType) && blockedIds.indexOf(columnId(item)) < 0;
|
||||
}).forEach(function (item) {
|
||||
@@ -5866,10 +5865,10 @@
|
||||
msgEl.className = 'msg';
|
||||
if (!name) { msgEl.textContent = '请填写菜单名称'; msgEl.classList.add('err'); return; }
|
||||
if (!key) {
|
||||
msgEl.textContent = '请填写栏目标识'; msgEl.classList.add('err'); return;
|
||||
msgEl.textContent = '请填写菜单标识'; msgEl.classList.add('err'); return;
|
||||
}
|
||||
if (!routePath) {
|
||||
msgEl.textContent = '请填写菜单路由'; msgEl.classList.add('err'); return;
|
||||
msgEl.textContent = '请填写页面路径'; msgEl.classList.add('err'); return;
|
||||
}
|
||||
if (sortOrderValue !== '' && isNaN(sortOrder)) {
|
||||
msgEl.textContent = '排序必须是数字'; msgEl.classList.add('err'); return;
|
||||
@@ -5914,10 +5913,10 @@
|
||||
msgEl.className = 'msg';
|
||||
if (!name) { msgEl.textContent = '请填写菜单名称'; msgEl.classList.add('err'); return; }
|
||||
if (!key) {
|
||||
msgEl.textContent = '请填写栏目标识'; msgEl.classList.add('err'); return;
|
||||
msgEl.textContent = '请填写菜单标识'; msgEl.classList.add('err'); return;
|
||||
}
|
||||
if (!routePath) {
|
||||
msgEl.textContent = '请填写菜单路由'; msgEl.classList.add('err'); return;
|
||||
msgEl.textContent = '请填写页面路径'; msgEl.classList.add('err'); return;
|
||||
}
|
||||
if (sortOrderValue !== '' && isNaN(sortOrder)) {
|
||||
msgEl.textContent = '排序必须是数字'; msgEl.classList.add('err'); return;
|
||||
|
||||
Reference in New Issue
Block a user