| | |
| | | <el-link @click="handleEdit(row)">编辑</el-link> |
| | | <el-link @click="handleAddChild(row)">新增子项</el-link> |
| | | <el-link type="danger" @click="handleDelete(row)">删除</el-link> |
| | | <el-link type="danger" @click="handleShare(row)">共享</el-link> |
| | | <el-link type="danger" @click="handleShare(row)" v-if="hasSharing">共享</el-link> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import ShareDiaLog from './ShareDiaLog.vue' |
| | | import { saveOperationLog } from '@ztzf/apis' |
| | | import { useRoute } from 'vue-router' |
| | | import { useStore } from 'vuex' |
| | | |
| | | const store = useStore() |
| | | const permission = computed(() => store.state.user.permission) |
| | | const ancestors = computed(() => store.state.user.userInfo?.detail?.ancestors) |
| | | // 市级部门并且有权限才能看到共享按钮 |
| | | const hasSharing = computed(() => permission.value.department_share && ancestors.value.split(',')?.length === 2) |
| | | const initSearchParams = () => ({ |
| | | deptName: '', |
| | | fullName: '', |