Commit b7e91831 authored by 罗林杰's avatar 罗林杰

修改bug

parent 3bdf8942
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
<el-table-column align="center" label="操作" min-width="150"> <el-table-column align="center" label="操作" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="hasDetailPerm" v-has-permi="['cms:activity:query']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
>查看</el-button> >查看</el-button>
<el-button <el-button
v-if="scope.row.publishStatus!='1'" v-if="scope.row.publishStatus!='1'"
v-has-permi="hasUpdatePerm" v-has-permi="['cms:activity:update']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -171,6 +171,7 @@ ...@@ -171,6 +171,7 @@
>编辑</el-button> >编辑</el-button>
<el-button <el-button
v-if="scope.row.publishStatus!='1'" v-if="scope.row.publishStatus!='1'"
v-has-permi="['cms:activity:update']"
:class="commonField.resetPasClass" :class="commonField.resetPasClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -178,7 +179,6 @@ ...@@ -178,7 +179,6 @@
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<pagination <pagination
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
<el-table-column align="center" label="操作" min-width="100"> <el-table-column align="center" label="操作" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="hasDetailPerm" v-has-permi="['cms:activity:query']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -300,9 +300,6 @@ export default { ...@@ -300,9 +300,6 @@ export default {
return { return {
yesOrNo, yesOrNo,
pageKey: 0, pageKey: 0,
hasAddPerm: ['sys:activity:add'],
hasUpdatePerm: ['sys:activity:update'],
hasDetailPerm: ['sys:activity:query'],
// 显示开关 // 显示开关
showSwitch: { showSwitch: {
courseContent: true, courseContent: true,
......
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
<el-table-column label="操作" class-name="small-padding fixed-width" min-width="120"> <el-table-column label="操作" class-name="small-padding fixed-width" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="['cms:banner:update']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -115,6 +116,7 @@ ...@@ -115,6 +116,7 @@
>修改 >修改
</el-button> </el-button>
<el-button <el-button
v-has-permi="['cms:banner:update']"
:class="commonField.delClass" :class="commonField.delClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
......
...@@ -148,20 +148,21 @@ ...@@ -148,20 +148,21 @@
<el-table-column align="center" label="操作" min-width="160"> <el-table-column align="center" label="操作" min-width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="hasDetailPerm" v-has-permi="['cms:notice:query']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
@click="handleView(scope.row)" @click="handleView(scope.row)"
>查看</el-button> >查看</el-button>
<el-button <el-button
v-has-permi="hasUpdatePerm" v-has-permi="['cms:notice:update']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
>编辑</el-button> >编辑</el-button>
<el-button <el-button
v-has-permi="['cms:notice:update']"
:class="commonField.resetPasClass" :class="commonField.resetPasClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -205,9 +206,6 @@ export default { ...@@ -205,9 +206,6 @@ export default {
return { return {
yesOrNo, yesOrNo,
pageKey: 0, pageKey: 0,
hasAddPerm: ['sys:notice:add'],
hasUpdatePerm: ['sys:notice:update'],
hasDetailPerm: ['sys:notice:query'],
// 显示开关 // 显示开关
showSwitch: { showSwitch: {
courseContent: true, courseContent: true,
......
...@@ -109,36 +109,38 @@ ...@@ -109,36 +109,38 @@
<el-table-column align="center" label="操作" min-width="180"> <el-table-column align="center" label="操作" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="hasDetailPerm" v-has-permi="['opm:topic:query']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
@click="handleView(scope.row)" @click="handleView(scope.row)"
>查看</el-button> >查看</el-button>
<el-button <el-button
v-has-permi="hasUpdatePerm" v-has-permi="['opm:topic:update']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
>编辑</el-button> >编辑</el-button>
<el-dropdown <el-dropdown
v-if="scope.row.examStatus !== '1'" v-if="scope.row.examStatus !== '1'"
@command="handleExamOrNoExam(scope.row, $event)" style="margin-left: 10px;margin-right:10px ;"
style="margin-left: 10px;margin-right:10px ;" @command="handleExamOrNoExam(scope.row, $event)"
> >
<el-button <el-button
:class="commonField.resetPasClass" v-has-permi="['opm:topic:update']"
:type="commonField.typeParent" :class="commonField.resetPasClass"
:size="commonField.size" :type="commonField.typeParent"
>审核操作<i class="el-icon-arrow-down el-icon--right"></i> :size="commonField.size"
</el-button> >审核操作<i class="el-icon-arrow-down el-icon--right" />
<el-dropdown-menu slot="dropdown"> </el-button>
<el-dropdown-item command="exam">审核</el-dropdown-item> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="noExam">驳回</el-dropdown-item> <el-dropdown-item command="exam">审核</el-dropdown-item>
</el-dropdown-menu> <el-dropdown-item command="noExam">驳回</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown> </el-dropdown>
<el-button <el-button
v-has-permi="['opm:topic:update']"
:class="commonField.resetPasClass" :class="commonField.resetPasClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -198,15 +200,12 @@ import commonField from '@/utils/commonField' ...@@ -198,15 +200,12 @@ import commonField from '@/utils/commonField'
import { import {
addOpmTopic, addOpmTopic,
delOpmTopic, getOpmTopic, delOpmTopic, getOpmTopic,
listOpmTopic, updateExamStatus, updateNoExamStatus, updateOpmTopic, updateStatus listOpmTopic, updateExamStatus, updateOpmTopic, updateStatus
} from '@/api/contentManagement/topic' } from '@/api/contentManagement/topic'
import { updateResponseUrl } from '@/utils/updateUrl'
import { error } from 'autoprefixer/lib/utils'
import { parseTime } from '@/utils' import { parseTime } from '@/utils'
import { getDataCache, setDataCache } from '@/assets/js/filterData' import { getDataCache, setDataCache } from '@/assets/js/filterData'
import { listCmsActivity } from '@/api/contentManagement/activity' import { enableOrDisable } from '@/utils/allPageData'
import { typeField, enableOrDisable } from '@/utils/allPageData'
import { addCmsBanner, getCmsBanner, updateCmsBanner } from '@/api/contentManagement/banner'
export default { export default {
name: 'Index', name: 'Index',
// components: { // components: {
...@@ -284,20 +283,20 @@ export default { ...@@ -284,20 +283,20 @@ export default {
} }
], ],
// 审核状态选项 // 审核状态选项
examStatusOptions: [ examStatusOptions: [
{ {
label: '待审核', label: '待审核',
value: '0' value: '0'
}, },
{ {
label: '已通过', label: '已通过',
value: '1' value: '1'
}, },
{ {
label: '已驳回', label: '已驳回',
value: '2' value: '2'
} }
], ],
// 上传提交 // 上传提交
uploadList: { uploadList: {
fm: '' fm: ''
...@@ -534,37 +533,37 @@ export default { ...@@ -534,37 +533,37 @@ export default {
}, },
/** 审核按钮操作 */ /** 审核按钮操作 */
handleExamOrNoExam(row, command) { handleExamOrNoExam(row, command) {
let text, params, api; let text, params, api
if (command === 'exam') { if (command === 'exam') {
text = '审核'; text = '审核'
params = { params = {
businessId: row.businessId, businessId: row.businessId,
examStatus: '1' examStatus: '1'
}; }
api = updateExamStatus; api = updateExamStatus
} else if (command === 'noExam') { } else if (command === 'noExam') {
text = '驳回'; text = '驳回'
params = { params = {
businessId: row.businessId, businessId: row.businessId,
examStatus: '2' // 驳回审核 examStatus: '2' // 驳回审核
}; }
api = updateExamStatus; api = updateExamStatus
} }
this.$confirm(`是否确认${text}操作?`, text, { this.$confirm(`是否确认${text}操作?`, text, {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
return api(params); return api(params)
}).then(() => { }).then(() => {
this.$message({ this.$message({
message: `${text}成功`, message: `${text}成功`,
type: 'success' type: 'success'
}); })
this.loadData(); this.loadData()
}); })
}, },
/** /**
* @description: 查看 * @description: 查看
* @author: gaoyu * @author: gaoyu
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<el-table-column align="center" label="操作" min-width="150"> <el-table-column align="center" label="操作" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="hasDetailPerm" v-has-permi="['opm:article:query']"
:class="commonField.resetPasClass" :class="commonField.resetPasClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -110,12 +110,14 @@ ...@@ -110,12 +110,14 @@
>详情</el-button> >详情</el-button>
<el-button <el-button
v-show="scope.row.examStatus === '0'" v-show="scope.row.examStatus === '0'"
v-has-permi="['opm:article:update']"
:class="commonField.resetPasClass" :class="commonField.resetPasClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
@click="handleExam(scope.row)" @click="handleExam(scope.row)"
>审核</el-button> >审核</el-button>
<el-button <el-button
v-has-permi="['opm:article:update']"
:class="commonField.resetPasClass" :class="commonField.resetPasClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
......
...@@ -224,6 +224,7 @@ ...@@ -224,6 +224,7 @@
<el-table-column label="操作" class-name="small-padding fixed-width" width="300"> <el-table-column label="操作" class-name="small-padding fixed-width" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="['cms:order:query']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -231,6 +232,7 @@ ...@@ -231,6 +232,7 @@
>详情</el-button> >详情</el-button>
<el-button <el-button
v-if="(scope.row.status === 3 && scope.row.refundcount > 2)|| (scope.row.status === 5 && scope.row.refundcount > 2) " v-if="(scope.row.status === 3 && scope.row.refundcount > 2)|| (scope.row.status === 5 && scope.row.refundcount > 2) "
v-has-permi="['cms:order:update']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -238,6 +240,7 @@ ...@@ -238,6 +240,7 @@
>退款补偿</el-button> >退款补偿</el-button>
<el-button <el-button
v-if="scope.row.status === 8" v-if="scope.row.status === 8"
v-has-permi="['cms:order:update']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -245,6 +248,7 @@ ...@@ -245,6 +248,7 @@
>支付确认</el-button> >支付确认</el-button>
<el-button <el-button
v-if="(scope.row.status === 9 && scope.row.payPrice > 0) || (scope.row.status === 11 && scope.row.payPrice > 0)" v-if="(scope.row.status === 9 && scope.row.payPrice > 0) || (scope.row.status === 11 && scope.row.payPrice > 0)"
v-has-permi="['cms:order:update']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -252,6 +256,7 @@ ...@@ -252,6 +256,7 @@
>退单</el-button> >退单</el-button>
<el-button <el-button
v-if="scope.row.status === 2 || scope.row.status === 4" v-if="scope.row.status === 2 || scope.row.status === 4"
v-has-permi="['cms:order:update']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
......
...@@ -118,6 +118,7 @@ ...@@ -118,6 +118,7 @@
<el-table-column label="操作" class-name="small-padding fixed-width" width="200px"> <el-table-column label="操作" class-name="small-padding fixed-width" width="200px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="['mem:feedback:update']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
......
...@@ -274,20 +274,21 @@ ...@@ -274,20 +274,21 @@
<el-table-column align="center" label="操作" min-width="150"> <el-table-column align="center" label="操作" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="hasDetailPerm" v-has-permi="['mem:info:query']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
@click="handleView(scope.row)" @click="handleView(scope.row)"
>查看</el-button> >查看</el-button>
<el-button <el-button
v-has-permi="hasUpdatePerm" v-has-permi="['mem:info:update']"
:class="commonField.updateClass" :class="commonField.updateClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
>编辑</el-button> >编辑</el-button>
<el-button <el-button
v-has-permi="['mem:info:query']"
:class="commonField.resetPasClass" :class="commonField.resetPasClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
...@@ -340,7 +341,7 @@ ...@@ -340,7 +341,7 @@
<el-form-item> <el-form-item>
<!-- //充值按钮--> <!-- //充值按钮-->
<el-button <el-button
v-has-permi="hasAddPerm" v-has-permi="['mem:info:recharge']"
:class="commonField.addClass" :class="commonField.addClass"
:type="commonField.typePrimary" :type="commonField.typePrimary"
:icon="commonField.addIcon" :icon="commonField.addIcon"
......
...@@ -109,11 +109,6 @@ export default { ...@@ -109,11 +109,6 @@ export default {
data() { data() {
return { return {
pageKey: 0, pageKey: 0,
hasAddPerm: ['mem:info:add'],
hasUpdatePerm: ['mem:info:update'],
hasDetailPerm: ['mem:info:query'],
/* imageSrc: require('@/assets/image/test.png'),*/
// 显示开关 // 显示开关
showSwitch: { showSwitch: {
courseContent: true, courseContent: true,
......
...@@ -94,6 +94,7 @@ ...@@ -94,6 +94,7 @@
<el-table-column label="操作" class-name="small-padding fixed-width" width="200px"> <el-table-column label="操作" class-name="small-padding fixed-width" width="200px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-has-permi="['mem:leaveMessage:update']"
:class="commonField.delClass" :class="commonField.delClass"
:type="commonField.typeParent" :type="commonField.typeParent"
:size="commonField.size" :size="commonField.size"
......
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