fix 80941
This commit is contained in:
@@ -54,9 +54,11 @@
|
|||||||
<div slot="action" slot-scope="{record}" class="action-span-cell">
|
<div slot="action" slot-scope="{record}" class="action-span-cell">
|
||||||
<!-- 查看 -->
|
<!-- 查看 -->
|
||||||
<a @click="handleDetail(record)" class="table-ope-btn">{{ $t('view') }}</a>
|
<a @click="handleDetail(record)" class="table-ope-btn">{{ $t('view') }}</a>
|
||||||
<a-divider v-if="record.prcStatus === 1" type="vertical" />
|
<a-divider v-if="record.prcStatus === 1 && (record.createUserId === userInfo.id || isAdmin)" type="vertical" />
|
||||||
<!-- 强制撤回 -->
|
<!-- 强制撤回 -->
|
||||||
<a v-if="record.prcStatus === 1" @click="handleWithdrawal(record)" class="table-ope-btn">{{ $t('compulsoryWithdrawal') }}</a>
|
<a v-if="record.prcStatus === 1 && (record.createUserId === userInfo.id || isAdmin)"
|
||||||
|
@click="handleWithdrawal(record)"
|
||||||
|
class="table-ope-btn">{{ $t('compulsoryWithdrawal') }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</j-table>
|
</j-table>
|
||||||
@@ -69,11 +71,21 @@ import JTable from '@/components/jero/JTable'
|
|||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||||
import { compulsoryWithdrawal } from '@/api/workCenter'
|
import { compulsoryWithdrawal } from '@/api/workCenter'
|
||||||
import { ProcessType, ProcessKey } from '@/enums/commonEnums'
|
import { ProcessType, ProcessKey } from '@/enums/commonEnums'
|
||||||
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'MonitorList',
|
name: 'MonitorList',
|
||||||
components: { JTable },
|
components: { JTable },
|
||||||
mixins: [JeroListMixin],
|
mixins: [JeroListMixin],
|
||||||
|
computed: {
|
||||||
|
...mapGetters(['userInfo']),
|
||||||
|
// 当前用户是否管理员
|
||||||
|
isAdmin () {
|
||||||
|
const adminRoleList = window._CONFIG.adminRoleCode.split(',')
|
||||||
|
const userRoleList = this.userInfo.roleCode.split(',')
|
||||||
|
return userRoleList.some(tt => adminRoleList.includes(tt))
|
||||||
|
}
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
labelCol: {
|
labelCol: {
|
||||||
|
|||||||
Reference in New Issue
Block a user