|
@@ -2,7 +2,7 @@
|
|
* @Author: PoJun
|
|
* @Author: PoJun
|
|
* @Date: 2023-10-13 10:35:43
|
|
* @Date: 2023-10-13 10:35:43
|
|
* @LastEditors: PoJun
|
|
* @LastEditors: PoJun
|
|
- * @LastEditTime: 2023-12-20 15:52:28
|
|
|
|
|
|
+ * @LastEditTime: 2024-07-09 16:34:51
|
|
* @Message: 人员管理
|
|
* @Message: 人员管理
|
|
-->
|
|
-->
|
|
<template>
|
|
<template>
|
|
@@ -39,8 +39,7 @@
|
|
<template slot="extraBtns">
|
|
<template slot="extraBtns">
|
|
<a-button type="primary" @click="optClick(null, 'new')">新增</a-button>
|
|
<a-button type="primary" @click="optClick(null, 'new')">新增</a-button>
|
|
<a-button type="danger" ghost @click="exitClick('0')">删除</a-button>
|
|
<a-button type="danger" ghost @click="exitClick('0')">删除</a-button>
|
|
- <!-- <a-button type="primary">导入</a-button> -->
|
|
|
|
- <!-- <a-button type="primary">导出</a-button> -->
|
|
|
|
|
|
+ <a-button type="primary" @click="showImport = true">导入</a-button>
|
|
<!-- <a-button type="primary" @click="exitClick('1')">重置密码</a-button> -->
|
|
<!-- <a-button type="primary" @click="exitClick('1')">重置密码</a-button> -->
|
|
</template>
|
|
</template>
|
|
<template #delete="{ row }">
|
|
<template #delete="{ row }">
|
|
@@ -62,6 +61,9 @@
|
|
:postsData="postsData"
|
|
:postsData="postsData"
|
|
:depsData="depsData"
|
|
:depsData="depsData"
|
|
/>
|
|
/>
|
|
|
|
+
|
|
|
|
+ <!-- 导入组件 -->
|
|
|
|
+ <FileImport v-model="showImport" @uploadOk="uploadOk" title="人员导入" type="org_person" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -72,8 +74,9 @@ import treeFilterMixin from "@/mixin/tree-filter-mixin.js";
|
|
import { getOrgDepTree, getOrgPostTree, deleteRogPerson, batchDeletePerson } from "@/api/index.js";
|
|
import { getOrgDepTree, getOrgPostTree, deleteRogPerson, batchDeletePerson } from "@/api/index.js";
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
import moment from "moment";
|
|
import moment from "moment";
|
|
|
|
+import FileImport from "@/components/importExport/FileImport.vue";
|
|
export default {
|
|
export default {
|
|
- components: { CommonTable, PersonnelDetail },
|
|
|
|
|
|
+ components: { CommonTable, PersonnelDetail, FileImport },
|
|
mixins: [treeFilterMixin],
|
|
mixins: [treeFilterMixin],
|
|
name: "sysManagerUser",
|
|
name: "sysManagerUser",
|
|
data() {
|
|
data() {
|
|
@@ -149,6 +152,7 @@ export default {
|
|
currentPerson: {}, // 当前点击的人员
|
|
currentPerson: {}, // 当前点击的人员
|
|
postsData: [], // 岗位数据
|
|
postsData: [], // 岗位数据
|
|
depsData: [], // 部门数据
|
|
depsData: [], // 部门数据
|
|
|
|
+ showImport: false, //导入弹窗
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -178,7 +182,7 @@ export default {
|
|
switch (type) {
|
|
switch (type) {
|
|
case "0":
|
|
case "0":
|
|
this.$confirm({
|
|
this.$confirm({
|
|
- title: "确认对选中数据做退场处理?",
|
|
|
|
|
|
+ title: "确认删除选中数据?",
|
|
onOk: () => {
|
|
onOk: () => {
|
|
batchDeletePerson({ ids }).then(() => {
|
|
batchDeletePerson({ ids }).then(() => {
|
|
this.$refs.xTable.refresh(false);
|
|
this.$refs.xTable.refresh(false);
|
|
@@ -219,6 +223,9 @@ export default {
|
|
this.$refs.xTable.refresh();
|
|
this.$refs.xTable.refresh();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ uploadOk() {
|
|
|
|
+ this.$refs.xTable.refresh();
|
|
|
|
+ },
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapGetters("account", ["org"]),
|
|
...mapGetters("account", ["org"]),
|