Commit edcee82d by 林家欣

修改后台操作按钮配置和标砖服务提供商管理审核接口

parent 84346e27
...@@ -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>
......
...@@ -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)"
......
...@@ -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)"
......
...@@ -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>
...@@ -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:news:save')" v-if="isAuth('standard:cases: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:news:check')" v-if="isAuth('standard:cases: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:news:check')" v-if="isAuth('standard:cases: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:news:check')" /> <br v-if="isAuth('standard:cases:check')" />
<el-button <el-button
v-if="isAuth('manage:news:info')" v-if="isAuth('standard:cases: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:news:update')" v-if="isAuth('standard:cases: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:news:delete')" v-if="isAuth('standard:cases: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/verifyNews"), url: this.$http.adornUrl("/office/cases/verify"),
method: "post", method: "post",
data: this.$http.adornData({ data: this.$http.adornData({
id: id, id: id,
......
...@@ -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:news:save')" v-if="isAuth('standard:partners: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:news:check')" v-if="isAuth('standard:partners: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:news:check')" v-if="isAuth('standard:partners: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:news:check')" /> <br v-if="isAuth('standard:partners:check')" />
<el-button <el-button
v-if="isAuth('manage:news:info')" v-if="isAuth('standard:partners: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:news:update')" v-if="isAuth('standard:partners: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:news:delete')" v-if="isAuth('standard:partners: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/verifyNews"), url: this.$http.adornUrl("/office/partners/verifyPartners"),
method: "post", method: "post",
data: this.$http.adornData({ data: this.$http.adornData({
id: id, id: id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment