Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
source-trace-manage
Commits
9d82c7c3
Commit
9d82c7c3
authored
Aug 11, 2022
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
92075b6c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
25 deletions
+55
-25
copyrightService.ts
src/service/copyrightService.ts
+22
-12
index.vue
src/views/CopyRightDetail/index.vue
+9
-2
Service.ts
...gPersonManagement/components/FilingPersonTable/Service.ts
+3
-1
CopyrightTable.vue
src/views/copyrightManagement/CopyrightTable.vue
+13
-5
draftBoxTable.vue
src/views/draftBox/draftBoxTable.vue
+8
-5
No files found.
src/service/copyrightService.ts
View file @
9d82c7c3
...
...
@@ -37,13 +37,18 @@ export function postAuth(
}
export
function
deleteAuth
(
id
:
number
)
{
return
$ajax
({
type
:
"delete"
,
url
:
"/api/authentication"
,
params
:
{
id
,
return
$ajax
(
{
type
:
"delete"
,
url
:
"/api/authentication"
,
params
:
{
id
,
},
},
});
{
toast
:
true
,
}
);
}
export
function
getAuths
(
...
...
@@ -132,13 +137,18 @@ export function getCopyRights(payload: {
});
}
export
function
deleteCopyRights
(
ids
:
number
[])
{
return
$ajax
({
type
:
"delete"
,
url
:
"/api/copyrights"
,
params
:
{
ids
,
return
$ajax
(
{
type
:
"delete"
,
url
:
"/api/copyrights"
,
params
:
{
ids
,
},
},
});
{
toast
:
true
,
}
);
}
export
function
getBills
(
payload
:
{
...
...
src/views/CopyRightDetail/index.vue
View file @
9d82c7c3
...
...
@@ -313,6 +313,7 @@ import {
gainSourceMapping
,
}
from
"../copyrightManagement/statusMapping"
;
import
{
router
}
from
"@/router"
;
import
{
showTip
}
from
"@/components/GlobalMount/api"
;
const
showCert
=
ref
(
false
);
...
...
@@ -336,8 +337,14 @@ function handleClickEdit(raw: iCopyRight) {
}
async
function
handleClickDel
(
raw
:
iCopyRight
)
{
await
deleteCopyRights
([
raw
.
id
]);
router
.
back
();
showTip
(
"此操作将删除该版权, 是否继续?"
,
async
()
=>
{
await
deleteCopyRights
([
raw
.
id
]);
router
.
back
();
},
()
=>
{}
);
}
</
script
>
...
...
src/views/FilingPersonManagement/components/FilingPersonTable/Service.ts
View file @
9d82c7c3
...
...
@@ -2,6 +2,7 @@ import { ElMessage } from "element-plus";
import
{
eStatusOfFilerCertification
}
from
"@/components/ApproveStatus/status"
;
import
{
router
}
from
"@/router"
;
import
{
deleteAuth
}
from
"@/service/copyrightService"
;
import
{
showTip
}
from
"@/components/GlobalMount/api"
;
export
default
class
Service
{
static
instance
:
Service
;
...
...
@@ -62,7 +63,8 @@ export default class Service {
id
:
slotProps
.
id
,
});
}
else
if
(
operateValue
===
"del"
)
{
deleteAuth
(
slotProps
.
id
).
then
((
ret
)
=>
{
showTip
(
"此操作将删除该备案人, 是否继续?"
,
async
()
=>
{
const
ret
=
await
deleteAuth
(
slotProps
.
id
);
if
(
ret
&&
ret
.
code
===
200
)
{
ElMessage
.
success
(
"删除成功"
);
emit
(
"refresh"
);
...
...
src/views/copyrightManagement/CopyrightTable.vue
View file @
9d82c7c3
...
...
@@ -98,6 +98,7 @@ import { router } from "@/router";
import
{
deleteCopyRights
}
from
"@/service/copyrightService"
;
import
{
iCopyRight
}
from
"@/types/copyright"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
showTip
}
from
"@/components/GlobalMount/api"
;
defineProps
<
{
data
:
any
[];
...
...
@@ -178,11 +179,18 @@ const handleClickItem = async (value: eOperate, slotProps: iCopyRight) => {
});
break
;
case
eOperate
.
delete
:
const
res
=
await
deleteCopyRights
([
slotProps
.
id
]);
if
(
res
&&
res
.
code
===
200
)
{
ElMessage
.
success
(
"删除成功"
);
emit
(
"refresh"
);
}
showTip
(
"此操作将删除该版权, 是否继续?"
,
async
()
=>
{
const
res
=
await
deleteCopyRights
([
slotProps
.
id
]);
if
(
res
&&
res
.
code
===
200
)
{
ElMessage
.
success
(
"删除成功"
);
emit
(
"refresh"
);
}
},
()
=>
{}
);
break
;
}
};
...
...
src/views/draftBox/draftBoxTable.vue
View file @
9d82c7c3
...
...
@@ -57,6 +57,7 @@ import { workTypeMapping } from "../copyrightManagement/statusMapping";
import
{
router
}
from
"@/router"
;
import
{
deleteCopyRights
}
from
"@/service/copyrightService"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
showTip
}
from
"@/components/GlobalMount/api"
;
const
emit
=
defineEmits
([
"scrollToEnd"
,
"refresh"
]);
...
...
@@ -100,11 +101,13 @@ const operateList = [
name
:
"删除"
,
value
:
"删除"
,
click
:
async
(
slotProps
:
any
)
=>
{
const
res
=
await
deleteCopyRights
([
slotProps
.
id
]);
if
(
res
&&
res
.
code
===
200
)
{
ElMessage
.
success
(
"删除成功"
);
emit
(
"refresh"
);
}
showTip
(
"此操作将删除该版权, 是否继续?"
,
async
()
=>
{
const
res
=
await
deleteCopyRights
([
slotProps
.
id
]);
if
(
res
&&
res
.
code
===
200
)
{
ElMessage
.
success
(
"删除成功"
);
emit
(
"refresh"
);
}
});
},
},
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment