Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
4d6646f4
Commit
4d6646f4
authored
Jan 17, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
40d6f904
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
OfficialAccountsDetail.vue
...es/enterprise/OfficialAccounts/OfficialAccountsDetail.vue
+15
-10
No files found.
src/pages/enterprise/OfficialAccounts/OfficialAccountsDetail.vue
View file @
4d6646f4
...
...
@@ -3,8 +3,8 @@
<q-card>
<q-card-section>
<div>
<span
class=
"text-h6"
v-if=
"addMsg.Id
>
0"
>
修改
</span>
<span
class=
"text-h6"
v-if=
"addMsg.Id
==
0"
>
新增
</span>
<span
class=
"text-h6"
v-if=
"addMsg.Id
>
0"
>
修改
</span>
<span
class=
"text-h6"
v-if=
"addMsg.Id
==
0"
>
新增
</span>
<q-btn
color=
"accent"
style=
"float:right;"
...
...
@@ -28,6 +28,8 @@
v-model=
"addMsg.Title"
label=
"标题"
maxlength=
"50"
ref=
"title"
:rules=
"[val => !!val || '请输入标题']"
/>
<q-input
class=
"col-12 q-mb-sm"
...
...
@@ -35,6 +37,7 @@
filled
v-model=
"addMsg.LinkUrl"
label=
"链接"
ref=
"link"
maxlength=
"1000"
/>
<q-input
...
...
@@ -148,9 +151,8 @@ export default {
this
.
getDetail
(
this
.
addMsg
.
Id
);
}
else
{
this
.
addMsg
.
Id
=
0
;
this
.
init
(
null
)
this
.
init
(
null
)
;
}
},
methods
:
{
goback
()
{
...
...
@@ -196,12 +198,15 @@ export default {
this
.
ueditor
.
value
=
val
;
},
saveData
()
{
setLearningGarden
(
this
.
addMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
Success
(
res
.
Message
)
this
.
goback
()
}
});
this
.
$refs
.
title
.
validate
();
if
(
!
this
.
$refs
.
title
.
hasError
)
{
setLearningGarden
(
this
.
addMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
Success
(
res
.
Message
);
this
.
goback
();
}
});
}
}
}
};
...
...
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