[update] 修改bug81030

This commit is contained in:
lideqin
2024-01-19 10:22:49 +08:00
parent e4047b0d3f
commit 9e3031038f
@@ -193,7 +193,7 @@
<!-- 操作栏 -->
<div slot="action" slot-scope="{record}" class="action-span-cell">
<a @click="handleDetail(record)" class="table-ope-btn" v-has="'enterpriseStandardLibrary:plan:detail'">{{ $t('view') }}</a>
<a-divider type="vertical" />
<a-divider v-if="isHasPermission('enterpriseStandardLibrary:plan:detail') && record.allowDel && isHasPermission('enterpriseStandardLibrary:plan:delete')" type="vertical" />
<a @click="handleDelete(record.id)" class="table-ope-btn" v-if="record.allowDel" v-has="'enterpriseStandardLibrary:plan:delete'">{{ $t('delete') }}</a>
</div>
@@ -207,6 +207,7 @@ import { queryDepartTreeList } from '@/api/api'
import JTable from '@/components/jero/JTable'
import { JeroListMixin } from '@/mixins/JeroListMixin'
import { downFile } from '../../../api/manage'
import { isHasPermission } from '@/utils/hasPermission'
export default {
name: 'PlanList',
@@ -424,6 +425,7 @@ export default {
this.currentDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
},
methods: {
isHasPermission,
// 获取组织机构树
getSysCategoryTree () {
queryDepartTreeList().then((res) => {