Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-admin
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
吴迪
gs1-admin
Commits
edcee82d
Commit
edcee82d
authored
Jan 22, 2022
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改后台操作按钮配置和标砖服务提供商管理审核接口
parent
84346e27
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
85 additions
and
39 deletions
+85
-39
news.vue
src/views/modules/application/news.vue
+7
-7
glossary.vue
src/views/modules/plate/glossary.vue
+3
-14
pcategory.vue
src/views/modules/plate/pcategory.vue
+3
-1
product.vue
src/views/modules/plate/product.vue
+56
-1
cases.vue
src/views/modules/standard/cases.vue
+8
-8
partners.vue
src/views/modules/standard/partners.vue
+8
-8
No files found.
src/views/modules/application/news.vue
View file @
edcee82d
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
<el-button
class=
"seach-btn"
@
click=
"getDataList()"
type=
"primary"
>
搜索
</el-button>
</el-form>
</el-form>
<div
class=
"add-btn"
>
<div
class=
"add-btn"
>
<el-button
v-if=
"isAuth('
manage
:news:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加文章
</el-button>
<el-button
v-if=
"isAuth('
application
:news:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
+ 添加文章
</el-button>
</div>
</div>
<div
class=
"table-list"
>
<div
class=
"table-list"
>
<el-table
<el-table
...
@@ -155,12 +155,12 @@
...
@@ -155,12 +155,12 @@
width=
"150"
width=
"150"
label=
"操作"
>
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"isAuth('
manage
:news:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('
application
:news:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,1)"
>
[成功]
</el-button>
<el-button
v-if=
"isAuth('
manage
:news:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<el-button
v-if=
"isAuth('
application
:news:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id,-1)"
>
[失败]
</el-button>
<br
v-if=
"isAuth('
manage
:news:check')"
/>
<br
v-if=
"isAuth('
application
:news:check')"
/>
<el-button
v-if=
"isAuth('
manage
:news:info')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id,true)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('
application
:news:info')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id,true)"
>
预览
</el-button>
<el-button
v-if=
"isAuth('
manage
:news:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('
application
:news:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button>
<el-button
v-if=
"isAuth('
manage
:news:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
<el-button
v-if=
"isAuth('
application
:news:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
src/views/modules/plate/glossary.vue
View file @
edcee82d
...
@@ -25,24 +25,11 @@
...
@@ -25,24 +25,11 @@
<el-form-item>
<el-form-item>
<el-button
@
click=
"getDataList()"
>
查询
</el-button>
<el-button
@
click=
"getDataList()"
>
查询
</el-button>
<el-button
v-if=
"isAuth('manage:glossary:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
新增
</el-button
>
<el-button
v-if=
"isAuth('manage:glossary:delete')"
type=
"danger"
@
click=
"deleteHandle()"
:disabled=
"dataListSelections.length
<
=
0
"
>
批量删除
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"add-btn"
>
<div
class=
"add-btn"
>
<el-button
<el-button
v-if=
"isAuth('
manage:center
:save')"
v-if=
"isAuth('
plate:glossary
:save')"
type=
"primary"
type=
"primary"
@
click=
"addOrUpdateHandle()"
@
click=
"addOrUpdateHandle()"
>
>
...
@@ -109,12 +96,14 @@
...
@@ -109,12 +96,14 @@
>
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<el-button
v-if=
"isAuth('plate:glossary:update')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button
>
修改
</el-button
>
>
<el-button
<el-button
v-if=
"isAuth('plate:glossary:delete')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
@
click=
"deleteHandle(scope.row.id)"
...
...
src/views/modules/plate/pcategory.vue
View file @
edcee82d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"mod-config"
>
<div
class=
"mod-config"
>
<div
class=
"add-btn"
>
<div
class=
"add-btn"
>
<el-button
<el-button
v-if=
"isAuth('
manage:center
:save')"
v-if=
"isAuth('
plate:pcategory
:save')"
type=
"primary"
type=
"primary"
@
click=
"addOrUpdateHandle()"
@
click=
"addOrUpdateHandle()"
>
>
...
@@ -40,12 +40,14 @@
...
@@ -40,12 +40,14 @@
>
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<el-button
v-if=
"isAuth('plate:pcategory:update')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.categoryid)"
@
click=
"addOrUpdateHandle(scope.row.categoryid)"
>
编辑
</el-button
>
编辑
</el-button
>
>
<el-button
<el-button
v-if=
"isAuth('plate:pcategory:delete')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"deleteHandle(scope.row.categoryid)"
@
click=
"deleteHandle(scope.row.categoryid)"
...
...
src/views/modules/plate/product.vue
View file @
edcee82d
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</el-form>
</el-form>
<div
class=
"add-btn"
>
<div
class=
"add-btn"
>
<el-button
<el-button
v-if=
"isAuth('
manage:news
:save')"
v-if=
"isAuth('
plate:product
:save')"
type=
"primary"
type=
"primary"
@
click=
"addOrUpdateHandle()"
@
click=
"addOrUpdateHandle()"
>
>
...
@@ -105,12 +105,29 @@
...
@@ -105,12 +105,29 @@
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
v-if=
"isAuth('plate:product:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id, 1)"
>
[成功]
</el-button
>
<el-button
v-if=
"isAuth('plate:product:check')"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id, -1)"
>
[失败]
</el-button
>
<br
v-if=
"isAuth('plate:product:check')"
/>
<el-button
v-if=
"isAuth('plate:product:update')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button
>
修改
</el-button
>
>
<el-button
<el-button
v-if=
"isAuth('plate:product:delete')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
@
click=
"deleteHandle(scope.row.id)"
...
@@ -276,6 +293,44 @@ export default {
...
@@ -276,6 +293,44 @@ export default {
});
});
});
});
},
},
// 审核
checkHandle
(
id
,
status
)
{
let
str
=
""
;
if
(
status
===
1
)
{
str
=
"成功"
;
}
else
{
str
=
"失败"
;
}
this
.
$confirm
(
`确定对[id=
${
id
}
]进行['审核
${
str
}
']操作?`
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
"/office/product/verifyProduct"
),
method
:
"post"
,
data
:
this
.
$http
.
adornData
({
id
:
id
,
status
:
status
,
}),
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$message
({
message
:
"操作成功"
,
type
:
"success"
,
duration
:
1500
,
onClose
:
()
=>
{
this
.
getDataList
();
},
});
}
else
{
this
.
$message
.
error
(
data
.
msg
);
}
});
})
.
catch
(()
=>
{});
},
},
},
};
};
</
script
>
</
script
>
src/views/modules/standard/cases.vue
View file @
edcee82d
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
</el-form>
</el-form>
<div
class=
"add-btn"
>
<div
class=
"add-btn"
>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:save')"
v-if=
"isAuth('
standard:case
s:save')"
type=
"primary"
type=
"primary"
@
click=
"addOrUpdateHandle()"
@
click=
"addOrUpdateHandle()"
>
>
...
@@ -191,36 +191,36 @@
...
@@ -191,36 +191,36 @@
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:check')"
v-if=
"isAuth('
standard:case
s:check')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"checkHandle(scope.row.id, 1)"
@
click=
"checkHandle(scope.row.id, 1)"
>
[成功]
</el-button
>
[成功]
</el-button
>
>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:check')"
v-if=
"isAuth('
standard:case
s:check')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"checkHandle(scope.row.id, -1)"
@
click=
"checkHandle(scope.row.id, -1)"
>
[失败]
</el-button
>
[失败]
</el-button
>
>
<br
v-if=
"isAuth('
manage:new
s:check')"
/>
<br
v-if=
"isAuth('
standard:case
s:check')"
/>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:info')"
v-if=
"isAuth('
standard:case
s:info')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id, true)"
@
click=
"addOrUpdateHandle(scope.row.id, true)"
>
预览
</el-button
>
预览
</el-button
>
>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:update')"
v-if=
"isAuth('
standard:case
s:update')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button
>
修改
</el-button
>
>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:delete')"
v-if=
"isAuth('
standard:case
s:delete')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
@
click=
"deleteHandle(scope.row.id)"
...
@@ -451,7 +451,7 @@ export default {
...
@@ -451,7 +451,7 @@ export default {
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
$http
({
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
"/office/cases/verify
News
"
),
url
:
this
.
$http
.
adornUrl
(
"/office/cases/verify"
),
method
:
"post"
,
method
:
"post"
,
data
:
this
.
$http
.
adornData
({
data
:
this
.
$http
.
adornData
({
id
:
id
,
id
:
id
,
...
...
src/views/modules/standard/partners.vue
View file @
edcee82d
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
</el-form>
</el-form>
<div
class=
"add-btn"
>
<div
class=
"add-btn"
>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:save')"
v-if=
"isAuth('
standard:partner
s:save')"
type=
"primary"
type=
"primary"
@
click=
"addOrUpdateHandle()"
@
click=
"addOrUpdateHandle()"
>
>
...
@@ -214,36 +214,36 @@
...
@@ -214,36 +214,36 @@
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:check')"
v-if=
"isAuth('
standard:partner
s:check')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"checkHandle(scope.row.id, 1)"
@
click=
"checkHandle(scope.row.id, 1)"
>
[成功]
</el-button
>
[成功]
</el-button
>
>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:check')"
v-if=
"isAuth('
standard:partner
s:check')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"checkHandle(scope.row.id, -1)"
@
click=
"checkHandle(scope.row.id, -1)"
>
[失败]
</el-button
>
[失败]
</el-button
>
>
<br
v-if=
"isAuth('
manage:new
s:check')"
/>
<br
v-if=
"isAuth('
standard:partner
s:check')"
/>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:info')"
v-if=
"isAuth('
standard:partner
s:info')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id, true)"
@
click=
"addOrUpdateHandle(scope.row.id, true)"
>
预览
</el-button
>
预览
</el-button
>
>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:update')"
v-if=
"isAuth('
standard:partner
s:update')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
修改
</el-button
>
修改
</el-button
>
>
<el-button
<el-button
v-if=
"isAuth('
manage:new
s:delete')"
v-if=
"isAuth('
standard:partner
s:delete')"
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
@
click=
"deleteHandle(scope.row.id)"
...
@@ -498,7 +498,7 @@ export default {
...
@@ -498,7 +498,7 @@ export default {
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
$http
({
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
"/office/
news/verifyNew
s"
),
url
:
this
.
$http
.
adornUrl
(
"/office/
partners/verifyPartner
s"
),
method
:
"post"
,
method
:
"post"
,
data
:
this
.
$http
.
adornData
({
data
:
this
.
$http
.
adornData
({
id
:
id
,
id
:
id
,
...
...
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