Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zj-manage
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
new-zhengjiang
zj-manage
Commits
ac47a89c
Commit
ac47a89c
authored
Apr 08, 2024
by
swl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: gx
parent
960bd873
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
7 deletions
+41
-7
livingCircle.js
src/api/livingCircle.js
+9
-0
category.vue
src/views/livingCircle/category.vue
+1
-1
enter.vue
src/views/livingCircle/enter.vue
+1
-1
help.vue
src/views/livingCircle/help.vue
+1
-1
searchTerms.vue
src/views/livingCircle/searchTerms.vue
+29
-4
No files found.
src/api/livingCircle.js
View file @
ac47a89c
...
@@ -157,3 +157,12 @@ export function enableKeyword(params) {
...
@@ -157,3 +157,12 @@ export function enableKeyword(params) {
})
})
);
);
}
}
// 关键词-删除
export
function
delKeyword
(
params
)
{
return
api
(
Object
.
assign
(
formatParams
(
"POST"
,
params
),
{
url
:
"/admin-api/living-circle/delKeyword"
,
})
);
}
src/views/livingCircle/category.vue
View file @
ac47a89c
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
>
>
<el-button
<el-button
@
click=
"delFlagHandle(scope.row)"
@
click=
"delFlagHandle(scope.row)"
:type=
"scope.row.delFlag == 0 ? '
danger
' : 'success'"
:type=
"scope.row.delFlag == 0 ? '
warning
' : 'success'"
size=
"mini"
size=
"mini"
round
round
slot=
"reference"
slot=
"reference"
...
...
src/views/livingCircle/enter.vue
View file @
ac47a89c
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
>
>
<el-button
<el-button
@
click=
"delFlagHandle(scope.row)"
@
click=
"delFlagHandle(scope.row)"
:type=
"scope.row.delFlag == 0 ? '
danger
' : 'success'"
:type=
"scope.row.delFlag == 0 ? '
warning
' : 'success'"
size=
"mini"
size=
"mini"
round
round
slot=
"reference"
slot=
"reference"
...
...
src/views/livingCircle/help.vue
View file @
ac47a89c
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
>
>
<el-button
<el-button
@
click=
"delFlagHandle(scope.row)"
@
click=
"delFlagHandle(scope.row)"
:type=
"scope.row.delFlag == 0 ? '
danger
' : 'success'"
:type=
"scope.row.delFlag == 0 ? '
warning
' : 'success'"
size=
"mini"
size=
"mini"
round
round
slot=
"reference"
slot=
"reference"
...
...
src/views/livingCircle/searchTerms.vue
View file @
ac47a89c
...
@@ -58,20 +58,32 @@
...
@@ -58,20 +58,32 @@
<el-button
<el-button
type=
"primary"
type=
"primary"
size=
"mini"
size=
"mini"
class=
"btn"
round
round
:disabled=
"scope.row.delFlag == 0"
:disabled=
"scope.row.delFlag == 0"
@
click=
"view(scope.row)"
@
click=
"view(scope.row)"
>
编辑
</el-button
>
编辑
</el-button
>
>
<el-button
<el-button
@
click=
"
delFlag
Handle(scope.row)"
@
click=
"
enable
Handle(scope.row)"
:type=
"scope.row.delFlag == 0 ? '
danger
' : 'success'"
:type=
"scope.row.delFlag == 0 ? '
warning
' : 'success'"
size=
"mini"
size=
"mini"
round
round
slot=
"reference"
slot=
"reference"
>
{{
scope
.
row
.
delFlag
==
0
?
"禁用"
:
"启用"
}}
>
{{
scope
.
row
.
delFlag
==
0
?
"禁用"
:
"启用"
}}
</el-button>
</el-button>
<el-popconfirm
title=
"确定删除此数据吗?"
@
confirm=
"delHandle(scope.row)"
>
<el-button
type=
"danger"
size=
"mini"
round
slot=
"reference"
style=
"margin-left: 10px"
>
删除
</el-button>
</el-popconfirm>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</table-template>
</table-template>
...
@@ -112,6 +124,7 @@ import {
...
@@ -112,6 +124,7 @@ import {
enableKeyword
,
enableKeyword
,
editKeyword
,
editKeyword
,
addKeyword
,
addKeyword
,
delKeyword
,
}
from
"@/api/livingCircle"
;
}
from
"@/api/livingCircle"
;
export
default
{
export
default
{
components
:
{
TableTemplate
},
components
:
{
TableTemplate
},
...
@@ -198,7 +211,7 @@ export default {
...
@@ -198,7 +211,7 @@ export default {
this
.
dataForm
.
id
=
row
.
id
;
this
.
dataForm
.
id
=
row
.
id
;
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
},
},
delFlag
Handle
(
row
)
{
enable
Handle
(
row
)
{
enableKeyword
({
enableKeyword
({
id
:
row
.
id
,
id
:
row
.
id
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
...
@@ -212,6 +225,18 @@ export default {
...
@@ -212,6 +225,18 @@ export default {
this
.
type
=
"add"
;
this
.
type
=
"add"
;
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
},
},
delHandle
(
row
)
{
delKeyword
({
id
:
row
.
id
,
pageNum
:
1
,
pageSize
:
10
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
init
();
}
});
},
confirmHandle
()
{
confirmHandle
()
{
this
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
...
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