Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
805d8d5f
Commit
805d8d5f
authored
May 31, 2023
by
李鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
72fc342d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
src/page/main/support/document-type/index.vue
src/page/main/support/document-type/index.vue
+4
-2
src/page/main/support/document/helper.js
src/page/main/support/document/helper.js
+2
-0
src/page/main/support/helper.js
src/page/main/support/helper.js
+17
-0
No files found.
src/page/main/support/document-type/index.vue
View file @
805d8d5f
...
...
@@ -175,6 +175,7 @@ import { Search } from "@element-plus/icons-vue";
import
{
watch
,
nextTick
,
reactive
,
toRefs
,
ref
,
computed
,
onBeforeMount
}
from
"
vue
"
;
import
{
useRoute
,
useRouter
}
from
"
vue-router
"
;
import
axios
from
"
@/request/http.js
"
;
import
{
topId
}
from
"
../helper.js
"
;
import
{
ElMessage
}
from
"
element-plus
"
;
import
bgBreadcrumb
from
"
@/components/bg-breadcrumb.vue
"
;
...
...
@@ -399,7 +400,7 @@ const editCurType = async (row) => {
if
(
res
.
data
.
code
==
200
)
{
const
data
=
res
.
data
.
data
||
{};
state
.
formData
=
{
parent_id
:
data
.
parent_id
,
parent_id
:
data
.
parent_id
===
topId
?
"
topLevel
"
:
data
.
parent_id
,
classify_name
:
data
.
classify_name
,
sort
:
data
.
sort
,
describe
:
data
.
describe
,
...
...
@@ -454,7 +455,8 @@ const deleteCurType = (row) => {
};
const
beforeSwitchStatus
=
async
(
row
)
=>
{
const
res
=
await
axios
.
get
(
`/apaas/knowledge/v5/documentmgr/classify/quote/
${
row
.
id
}
`
);
if
(
!
res
.
data
.
data
)
{
console
.
log
(
res
);
if
(
res
.
data
.
code
!==
200
)
{
ElMessage
.
warning
(
"
请将该文档类型下所挂载的文档删除或转移至其他文档类型下再停用!
"
);
return
false
;
}
...
...
src/page/main/support/document/helper.js
View file @
805d8d5f
import
$axios
from
"
@/request/http
"
;
export
const
topId
=
"
00000000-0000-0000-0000-000000000000
"
;
export
const
$imgAdd
=
function
(
args
,
editorRef
)
{
const
[
pos
,
$file
]
=
args
;
const
formdata
=
new
FormData
();
...
...
src/page/main/support/helper.js
0 → 100644
View file @
805d8d5f
import
$axios
from
"
@/request/http
"
;
export
const
topId
=
"
00000000-0000-0000-0000-000000000000
"
;
export
const
$imgAdd
=
function
(
args
,
editorRef
)
{
const
[
pos
,
$file
]
=
args
;
const
formdata
=
new
FormData
();
formdata
.
append
(
"
file
"
,
$file
);
formdata
.
append
(
"
directory
"
,
"
image
"
);
$axios
.
post
(
"
/apaas/common/image/upload
"
,
formdata
,
{
headers
:
{
"
Content-Type
"
:
"
multipart/form-data
"
},
})
.
then
(({
data
})
=>
{
editorRef
.
$img2Url
(
pos
,
data
.
data
);
});
};
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