update
This commit is contained in:
@ -63,6 +63,7 @@ cors:
|
|||||||
- X-Sign
|
- X-Sign
|
||||||
- X-Sign-Ts
|
- X-Sign-Ts
|
||||||
- X-Sign-Nonce
|
- X-Sign-Nonce
|
||||||
|
- X-Locale
|
||||||
max_age: 86400 # 预检请求缓存秒数
|
max_age: 86400 # 预检请求缓存秒数
|
||||||
|
|
||||||
# 公开接口「前端 JS 签名」:给 /runway-looks(列表)与 /brands 两个批量接口加请求签名校验,
|
# 公开接口「前端 JS 签名」:给 /runway-looks(列表)与 /brands 两个批量接口加请求签名校验,
|
||||||
|
|||||||
@ -28,9 +28,12 @@ SET parent_image_id = COALESCE((
|
|||||||
), 0)
|
), 0)
|
||||||
WHERE d.is_detail = 1 AND d.is_deleted = 0 AND d.parent_image_id = 0;
|
WHERE d.is_detail = 1 AND d.is_deleted = 0 AND d.parent_image_id = 0;
|
||||||
|
|
||||||
|
-- 注意:必须**先**删视图,再删 look_index 列——视图 SELECT i.* 依赖 look_index,
|
||||||
|
-- 列还在时 DROP COLUMN 会报 "cannot drop column ... because other objects depend on it"。
|
||||||
|
DROP VIEW IF EXISTS public_brand_runway_images;
|
||||||
|
|
||||||
ALTER TABLE brand_runway_images DROP COLUMN IF EXISTS look_index;
|
ALTER TABLE brand_runway_images DROP COLUMN IF EXISTS look_index;
|
||||||
|
|
||||||
DROP VIEW IF EXISTS public_brand_runway_images;
|
|
||||||
CREATE VIEW public_brand_runway_images AS
|
CREATE VIEW public_brand_runway_images AS
|
||||||
SELECT i.* FROM brand_runway_images i
|
SELECT i.* FROM brand_runway_images i
|
||||||
JOIN brand_runways r ON r.id = i.runway_id
|
JOIN brand_runways r ON r.id = i.runway_id
|
||||||
|
|||||||
1801
db_dump.sql
1801
db_dump.sql
File diff suppressed because it is too large
Load Diff
@ -124,7 +124,11 @@
|
|||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
})
|
})
|
||||||
.then(function (r) { return r.json(); })
|
.then(function (r) { return r.json(); })
|
||||||
.then(function (d) { applyImages(d.images, kindOf(batchForm.getAttribute('action')), main.value); if (stat) stat.textContent = d.count + ' 张 · ' + d.groups + ' 组'; })
|
.then(function (d) {
|
||||||
|
applyImages(d.images, kindOf(batchForm.getAttribute('action')), main.value);
|
||||||
|
if (stat) stat.textContent = d.count + ' 张 · ' + d.groups + ' 组';
|
||||||
|
clearSelection();
|
||||||
|
})
|
||||||
.catch(function (err) { alert('合并失败:' + err); });
|
.catch(function (err) { alert('合并失败:' + err); });
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -146,6 +150,10 @@
|
|||||||
return m ? m[1] : 'street';
|
return m ? m[1] : 'street';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearSelection() {
|
||||||
|
document.querySelectorAll('input[name="main"]:checked, input[name="img"]:checked').forEach(function (c) { c.checked = false; });
|
||||||
|
}
|
||||||
|
|
||||||
// 更新某个主图的「显示副图」开关:按最新副图数创建/更新/移除按钮,文案随展开态变化。
|
// 更新某个主图的「显示副图」开关:按最新副图数创建/更新/移除按钮,文案随展开态变化。
|
||||||
function updateToggle(mainId, detailCount) {
|
function updateToggle(mainId, detailCount) {
|
||||||
var cell = document.querySelector('.cell[data-img-id="' + mainId + '"]');
|
var cell = document.querySelector('.cell[data-img-id="' + mainId + '"]');
|
||||||
|
|||||||
Reference in New Issue
Block a user