|
@@ -22,6 +22,7 @@
|
|
|
>
|
|
>
|
|
|
添加
|
|
添加
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" icon="el-icon-upload2" plain @click="uploadFile">导入</el-button>
|
|
|
</org-user-search>
|
|
</org-user-search>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 角色列 -->
|
|
<!-- 角色列 -->
|
|
@@ -86,12 +87,16 @@
|
|
|
:organization-id="organizationId"
|
|
:organization-id="organizationId"
|
|
|
@done="reload"
|
|
@done="reload"
|
|
|
/>
|
|
/>
|
|
|
|
|
+
|
|
|
|
|
+ <importDialog :defModule="moudleName" ref="importDialogRef" @success="reload" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import OrgUserSearch from './org-user-search.vue';
|
|
import OrgUserSearch from './org-user-search.vue';
|
|
|
import OrgUserEdit from './org-user-edit.vue';
|
|
import OrgUserEdit from './org-user-edit.vue';
|
|
|
|
|
+ import importDialog from "@/components/upload/import-dialog.vue";
|
|
|
|
|
+
|
|
|
import {
|
|
import {
|
|
|
getUserPage,
|
|
getUserPage,
|
|
|
removePersonnel,
|
|
removePersonnel,
|
|
@@ -99,7 +104,7 @@
|
|
|
} from '@/api/system/organization';
|
|
} from '@/api/system/organization';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- components: { OrgUserSearch, OrgUserEdit },
|
|
|
|
|
|
|
+ components: {importDialog, OrgUserSearch, OrgUserEdit},
|
|
|
props: {
|
|
props: {
|
|
|
// 机构id
|
|
// 机构id
|
|
|
organizationId: [Number, String],
|
|
organizationId: [Number, String],
|
|
@@ -109,6 +114,8 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ moudleName : "mainUser",
|
|
|
|
|
+
|
|
|
// 表格列配置
|
|
// 表格列配置
|
|
|
columns: [
|
|
columns: [
|
|
|
{
|
|
{
|
|
@@ -259,6 +266,9 @@
|
|
|
row.status = !row.status ? 1 : 0;
|
|
row.status = !row.status ? 1 : 0;
|
|
|
// this.$message.error(e.message);
|
|
// this.$message.error(e.message);
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ uploadFile () {
|
|
|
|
|
+ this.$refs.importDialogRef.open();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|