|
@@ -12,6 +12,7 @@ import { useTableData } from '/@/utils/useTableData';
|
|
|
import { usePagination } from '/@/utils/usePagination';
|
|
|
import EditEmployeeInfo from '/@/views/employee-information/components/EditEmployeeInfo.vue';
|
|
|
import { ref } from 'vue';
|
|
|
+import {hasPermission} from "/@/utils/hasPermission";
|
|
|
|
|
|
const route = useRoute();
|
|
|
const id = route.query.id;
|
|
@@ -144,17 +145,18 @@ onMounted(() => {
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-image>
|
|
|
- <el-tooltip content="编辑" placement="top">
|
|
|
- <el-button link type="warning" @click="editItem">
|
|
|
- <Edit style="width: 1.5em; height: 1.5em; margin-right: 8px" />
|
|
|
- </el-button>
|
|
|
- </el-tooltip>
|
|
|
<el-col :span="18">
|
|
|
<div class="info-container text-lg">
|
|
|
<div class="info-column">
|
|
|
<div class="font-semibold">
|
|
|
姓名:
|
|
|
<span class="font-medium italic ml-1.5" style="color: #64748b">{{ employeeOverview.name }}</span>
|
|
|
+ <el-tooltip content="编辑" placement="top">
|
|
|
+ <el-button link type="warning" @click="editItem" class="absolute" style="right: 10px; top: 20px"
|
|
|
+ v-if="hasPermission('PEOPLE_UPDATE')">
|
|
|
+ <Edit style="width: 1.5em; height: 1.5em; margin-right: 8px" />
|
|
|
+ </el-button>
|
|
|
+ </el-tooltip>
|
|
|
</div>
|
|
|
<div class="font-semibold">
|
|
|
所属部门:
|