|
@@ -10,6 +10,7 @@ import newDepartment from "./components/newDepartment.vue";
|
|
|
import addPerson from "./components/addPerson.vue";
|
|
|
import personDetailsDrawer from "./components/personDetailsDrawer.vue";
|
|
|
import changeRole from "./components/changeRole.vue";
|
|
|
+import { addDeptPost } from "@/api/system.ts";
|
|
|
// 添加部门
|
|
|
const newDepartmentRef = ref(null);
|
|
|
const newDepartmentShow = ref(false);
|
|
@@ -108,6 +109,11 @@ const tableData = [
|
|
|
const addDepartment = () => {
|
|
|
newDepartmentRef.value.open();
|
|
|
};
|
|
|
+const addDeptPostApi = async () => {
|
|
|
+ let res = await addDeptPost();
|
|
|
+ console.log(res);
|
|
|
+};
|
|
|
+// addDeptPostApi();
|
|
|
// 删除人员
|
|
|
const deletePerson = row => {
|
|
|
console.log(row);
|