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
f9c6f7a8
Commit
f9c6f7a8
authored
May 31, 2023
by
李鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-lp0602' into dev0602
parents
ea5ad978
8a5b10f7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
src/page/main/support/document-type/index.vue
src/page/main/support/document-type/index.vue
+4
-2
src/page/main/support/document/add/index.vue
src/page/main/support/document/add/index.vue
+1
-1
src/page/main/support/document/edit/index.vue
src/page/main/support/document/edit/index.vue
+1
-1
src/page/main/support/helper.js
src/page/main/support/helper.js
+2
-0
No files found.
src/page/main/support/document-type/index.vue
View file @
f9c6f7a8
...
...
@@ -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/add/index.vue
View file @
f9c6f7a8
...
...
@@ -36,7 +36,7 @@ import { reactive, toRefs, computed, ref, onBeforeMount, nextTick } from "vue";
import
{
useRoute
,
useRouter
}
from
"
vue-router
"
;
import
axios
from
"
@/request/http.js
"
;
import
{
ElMessage
}
from
"
element-plus
"
;
import
{
$imgAdd
}
from
"
../helper
"
;
import
{
$imgAdd
}
from
"
../
../
helper
"
;
import
bgBreadcrumb
from
"
@/components/bg-breadcrumb.vue
"
;
const
route
=
useRoute
();
...
...
src/page/main/support/document/edit/index.vue
View file @
f9c6f7a8
...
...
@@ -36,7 +36,7 @@ import { reactive, toRefs, computed, ref, onBeforeMount, nextTick } from "vue";
import
{
useRoute
,
useRouter
}
from
"
vue-router
"
;
import
axios
from
"
@/request/http.js
"
;
import
{
ElMessage
}
from
"
element-plus
"
;
import
{
$imgAdd
}
from
"
../helper
"
;
import
{
$imgAdd
}
from
"
../
../
helper
"
;
import
bgBreadcrumb
from
"
@/components/bg-breadcrumb.vue
"
;
const
route
=
useRoute
();
...
...
src/page/main/support/
document/
helper.js
→
src/page/main/support/helper.js
View file @
f9c6f7a8
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
();
...
...
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