Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
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
office
haoban-3
Commits
460f50a4
Commit
460f50a4
authored
Oct 28, 2022
by
huaying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 新建编辑模板置顶逻辑
parent
4d9402d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
addGroupTemplate.vue
src/views/apps/customerApp/addGroupTemplate.vue
+8
-12
No files found.
src/views/apps/customerApp/addGroupTemplate.vue
View file @
460f50a4
...
...
@@ -52,10 +52,10 @@
<el-table-column
prop=
""
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"delRow(scope.$index, scope.row)"
>
移除
</el-button>
<dm-delete
tips=
"确定置顶?"
@
confirm=
"isTopping(scope.$index, scope.row, 1)"
v-if=
"
isEdit
&& scope.row.topFlag == 0"
>
<dm-delete
tips=
"确定置顶?"
@
confirm=
"isTopping(scope.$index, scope.row, 1)"
v-if=
"
toppingNum
<
5
&&
scope
.
row
.
topFlag =
=
0
"
>
<el-button
type=
"text"
style=
"padding: 0 14px"
:disabled=
"toppingNum >= 5"
>
置顶
</el-button>
</dm-delete>
<dm-delete
tips=
"确定取消置顶?"
@
confirm=
"isTopping(scope.$index, scope.row, 0)"
v-if=
"
isEdit &&
scope.row.topFlag == 1"
>
<dm-delete
tips=
"确定取消置顶?"
@
confirm=
"isTopping(scope.$index, scope.row, 0)"
v-if=
"scope.row.topFlag == 1"
>
<el-button
type=
"text"
>
取消置顶
</el-button>
</dm-delete>
</
template
>
...
...
@@ -120,8 +120,7 @@ export default {
total
:
0
,
groupShow
:
false
,
loadingBtn
:
false
,
toppingNum
:
0
,
isEdit
:
false
toppingNum
:
0
};
},
methods
:
{
...
...
@@ -156,12 +155,12 @@ export default {
}
setTimeout
(()
=>
{
this
.
loading
=
false
;
this
.
$message
.
success
(
'操作成功!'
);
//
this.$message.success('操作成功!');
},
500
);
// this.getTemplateSet(this.brandId);
// } else {
// this.$message.error(res.data.message);
// }
//
} else {
//
this.$message.error(res.data.message);
//
}
// })
// .finally(() => {
// this.loading = false;
...
...
@@ -349,9 +348,7 @@ export default {
handler
:
function
(
val
)
{
const
that
=
this
;
if
(
val
)
{
if
(
that
.
isEdit
)
{
that
.
getToppingNum
(
val
);
}
that
.
getToppingNum
(
val
);
}
},
deep
:
true
...
...
@@ -359,7 +356,6 @@ export default {
},
mounted
()
{
const
that
=
this
;
that
.
isEdit
=
that
.
$route
.
query
.
templateId
?
true
:
false
;
that
.
$emit
(
'showTab'
,
'12'
);
if
(
that
.
brandId
&&
!!
that
.
$route
.
query
.
templateId
)
{
that
.
getTemplateSet
(
that
.
brandId
);
...
...
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