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
e0032881
Commit
e0032881
authored
Jul 21, 2022
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
066c1524
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
index.vue
...views/TemplateManagement/components/AddTemplate/index.vue
+0
-11
No files found.
src/views/TemplateManagement/components/AddTemplate/index.vue
View file @
e0032881
...
...
@@ -32,7 +32,6 @@ export default defineComponent({
return
{
name
:
""
,
isErrorShowing
:
false
,
// 错误提示
isInActive
:
false
,
MyCategories
:
[]
as
any
[],
value
:
""
as
any
,
};
...
...
@@ -50,25 +49,16 @@ export default defineComponent({
},
methods
:
{
async
checkForm
()
{
if
(
this
.
isInActive
)
return
;
this
.
isInActive
=
true
;
this
.
isErrorShowing
=
true
;
// 追加非空验证
if
(
this
.
name
===
""
)
{
ElMessage
(
"模板名称不可为空"
);
this
.
isInActive
=
false
;
return
null
;
}
if
(
this
.
value
===
""
||
this
.
value
===
undefined
)
{
ElMessage
(
"请选择分类"
);
return
null
;
}
if
(
this
.
value
===
""
)
{
// ElMessage("请选择分类");
// this.isInActive = false;
this
.
value
=
this
.
MyCategories
[
0
].
id
;
// return null;
}
const
data
=
await
$ajax
({
type
:
"post"
,
url
:
GO_URLS
.
customize
,
...
...
@@ -82,7 +72,6 @@ export default defineComponent({
if
(
data
)
{
this
.
$emit
(
"successCallback"
,
this
.
value
);
}
this
.
isInActive
=
false
;
return
true
;
},
closeDialog
()
{
...
...
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