feat(image): add page
This commit is contained in:
@@ -14,6 +14,7 @@ export namespace Project {
|
||||
rate_speed?: number // 额定倍速
|
||||
create_user: string // 创建人
|
||||
owner: string // 项目负责人
|
||||
members: number[] // 项目成员
|
||||
label_process?: string[] // 工序
|
||||
admin_user: number[] // 标注管理员id
|
||||
data_source?: string // 数据源
|
||||
|
||||
@@ -1070,8 +1070,8 @@ const TopTools = (
|
||||
} else {
|
||||
// 无id返回时跳转回任务列表页
|
||||
const url = backUrl || "/"
|
||||
// router.push(url)
|
||||
window.location.href = url
|
||||
router.push(url)
|
||||
// window.location.href = url
|
||||
// 重置图片比例及选中标注对象
|
||||
usePaperStore.getState().resetRasterScale()
|
||||
useObjectStore.getState().resetPathAndOperationStatus()
|
||||
@@ -1660,8 +1660,8 @@ const TopTools = (
|
||||
onClick={() => {
|
||||
if (isView) {
|
||||
const url = backUrl || "/"
|
||||
// router.push(url)
|
||||
window.location.href = url
|
||||
router.push(url)
|
||||
// window.location.href = url
|
||||
// handleBackup("auto_backup");
|
||||
// 重置图片比例及选中标注对象
|
||||
usePaperStore.getState().resetRasterScale()
|
||||
@@ -2248,8 +2248,8 @@ const TopTools = (
|
||||
}
|
||||
setConfirmOpen(false)
|
||||
const url = backUrl || "/"
|
||||
// router.push(url)
|
||||
window.location.href = url
|
||||
router.push(url)
|
||||
// window.location.href = url
|
||||
// 重置图片比例及选中标注对象
|
||||
usePaperStore.getState().resetRasterScale()
|
||||
useObjectStore.getState().resetPathAndOperationStatus()
|
||||
@@ -2259,8 +2259,8 @@ const TopTools = (
|
||||
setConfirmOpen(false)
|
||||
handleBackup("auto_backup")
|
||||
const url = backUrl || "/"
|
||||
// router.push(url)
|
||||
window.location.href = url
|
||||
router.push(url)
|
||||
// window.location.href = url
|
||||
// 重置图片比例及选中标注对象
|
||||
usePaperStore.getState().resetRasterScale()
|
||||
useObjectStore.getState().resetPathAndOperationStatus()
|
||||
|
||||
@@ -12,6 +12,7 @@ type PermissionMap = {
|
||||
}
|
||||
|
||||
const mappingList: { [x: string]: [string, string] } = {
|
||||
"/setting/project/all": ["project", "config"],
|
||||
"/management/team/employee": ["user", "view"],
|
||||
"/management/team/organization": ["user", "group_view"],
|
||||
"/management/team/dailypaper": ["daily_work", "team_view"],
|
||||
|
||||
Reference in New Issue
Block a user