feat: 部门详情, 编辑

This commit is contained in:
lilinyuan
2024-06-01 15:57:07 +08:00
parent 5be806104f
commit de2475f39a
4 changed files with 205 additions and 0 deletions

View File

@@ -33,18 +33,25 @@
<el-table-column prop="departmentCode" label="部门编码"/>
<el-table-column prop="departmentName" label="部门名称"/>
<el-table-column prop="createTime" label="创建时间"/>
<el-table-column prop="oper" label="操作">
<template #default="{ row }">
<el-button type="primary" link @click="goEdit(row.departmentId)">编辑</el-button>
</template>
</el-table-column>
</el-table>
</template>
<script setup>
import {Search, Refresh,Sort} from "@element-plus/icons-vue";
import {getDepartmentList} from "@/api/subsidiary";
import { useRouter } from "vue-router";
const queryInstance = ref()
const queryParams = reactive({
departmentCode: '',
departmentMark: '',
departmentName: ''
})
const router = useRouter()
const loading = ref(true)
const isExpand = ref(true)
const list = ref([])
@@ -80,6 +87,15 @@ const getList = () => {
loading.value = false
})
}
const goEdit = (id) => {
router.push({
name: 'Mosrdeptedit',
query: {
id
}
})
}
getList()
</script>