|
@@ -75,8 +75,8 @@
|
|
<div class="mymain-container">
|
|
<div class="mymain-container">
|
|
<div class="btn-group clearfix">
|
|
<div class="btn-group clearfix">
|
|
<div class="fl">
|
|
<div class="fl">
|
|
- <el-button size="small" type="primary" icon="el-icon-plus" @click="toForm()">新增</el-button>
|
|
|
|
- <el-button size="small" type="danger" icon="el-icon-minus" :disabled="multipleSelection.length < 1" @click="batchDelete()">批量删除</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="primary" icon="el-icon-plus" @click="toForm()" v-if="$checkBtnRole('add', $route.meta.roles)">新增</el-button>
|
|
|
|
+ <el-button size="small" type="danger" icon="el-icon-minus" :disabled="multipleSelection.length < 1" @click="batchDelete()" v-if="$checkBtnRole('del', $route.meta.roles)">批量删除</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="fr">
|
|
<div class="fr">
|
|
<ExportButton :exUrl="'admin/user/mch/export'" :exParams="exParams" />
|
|
<ExportButton :exUrl="'admin/user/mch/export'" :exParams="exParams" />
|
|
@@ -122,17 +122,17 @@
|
|
<el-table-column align="center" label="审核日期" prop="confirmTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="审核日期" prop="confirmTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="操作" width="220" fixed="right">
|
|
<el-table-column align="center" label="操作" width="220" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-popconfirm style="margin-right: 10px;" title="确定申请吗?" @onConfirm="handleSubmit(scope.row.parentId)" v-if="scope.row.examineStatus === 'SAVE'" >
|
|
|
|
|
|
+ <el-popconfirm style="margin-right: 10px;" title="确定申请吗?" @onConfirm="handleSubmit(scope.row.parentId)" v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'SAVE'" >
|
|
<el-button slot="reference" type="text">申请</el-button>
|
|
<el-button slot="reference" type="text">申请</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
- <el-popconfirm style="margin-right: 10px;" title="确定撤回吗?" @onConfirm="handleWithdraw(scope.row.parentId)" v-if="scope.row.examineStatus === 'WAIT'" >
|
|
|
|
|
|
+ <el-popconfirm style="margin-right: 10px;" title="确定撤回吗?" @onConfirm="handleWithdraw(scope.row.parentId)" v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'WAIT'" >
|
|
<el-button slot="reference" type="text">撤回</el-button>
|
|
<el-button slot="reference" type="text">撤回</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
- <el-button type="text" @click="toForm(scope.row)" v-if="scope.row.examineStatus === 'SAVE'">编辑</el-button>
|
|
|
|
- <el-button type="text" @click="toExamine(scope.row)" v-if="scope.row.examineStatus === 'WAIT'">审批</el-button>
|
|
|
|
- <el-button type="text" @click="toReturn(scope.row)">退订</el-button>
|
|
|
|
|
|
+ <el-button type="text" @click="toForm(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles) && scope.row.examineStatus === 'SAVE'">编辑</el-button>
|
|
|
|
+ <el-button type="text" @click="toExamine(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">审批</el-button>
|
|
|
|
+ <el-button type="text" @click="toReturn(scope.row)" v-if="$checkBtnRole('examine', $route.meta.roles)">退订</el-button>
|
|
<el-button type="text" @click="toDetail(scope.row)">详情</el-button>
|
|
<el-button type="text" @click="toDetail(scope.row)">详情</el-button>
|
|
- <el-popconfirm style="margin-left: 10px;" title="确定删除吗?" @onConfirm="handleDelete(scope.row.parentId)" >
|
|
|
|
|
|
+ <el-popconfirm style="margin-left: 10px;" title="确定删除吗?" @onConfirm="handleDelete(scope.row.parentId)" v-if="$checkBtnRole('del', $route.meta.roles)">
|
|
<el-button slot="reference" type="text">删除</el-button>
|
|
<el-button slot="reference" type="text">删除</el-button>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
</template>
|
|
</template>
|