|
|
@@ -38,7 +38,7 @@
|
|
|
>
|
|
|
<!-- 搜索 -->
|
|
|
<template slot="searchs">
|
|
|
- <el-form-item prop="username" label="用户账号">
|
|
|
+ <el-form-item prop="username" label="用户账号">
|
|
|
<el-input v-model="search.username" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="name" label="用户姓名">
|
|
|
@@ -63,7 +63,7 @@
|
|
|
|
|
|
<!-- 表格 -->
|
|
|
<template slot="columns">
|
|
|
- <el-table-column
|
|
|
+ <el-table-column
|
|
|
label="序号"
|
|
|
type="index"
|
|
|
align="center"
|
|
|
@@ -116,10 +116,10 @@
|
|
|
<script>
|
|
|
import GSearchTable from "@/components/table/gx.search.table.vue";
|
|
|
import OrgTree from "@/components/orgTree";
|
|
|
-import { mapGetters } from 'vuex'
|
|
|
-import {getLabel} from '@/views/commonOption.js'
|
|
|
+import { mapGetters } from "vuex";
|
|
|
+import { getLabel } from "@/views/commonOption.js";
|
|
|
export default {
|
|
|
- components: { GSearchTable,OrgTree },
|
|
|
+ components: { GSearchTable, OrgTree },
|
|
|
data() {
|
|
|
return {
|
|
|
isShow: false,
|
|
|
@@ -127,9 +127,9 @@ export default {
|
|
|
search: this.emptySearch(),
|
|
|
};
|
|
|
},
|
|
|
- dicts:["sys_user_is_lock"],
|
|
|
+ dicts: ["sys_user_is_lock"],
|
|
|
computed: {
|
|
|
- ...mapGetters(["orgId"])
|
|
|
+ ...mapGetters(["orgId"]),
|
|
|
},
|
|
|
watch: {},
|
|
|
props: {
|
|
|
@@ -137,10 +137,10 @@ export default {
|
|
|
type: Number,
|
|
|
default: 0,
|
|
|
},
|
|
|
-
|
|
|
- customTreeRequest:{
|
|
|
- type:Function
|
|
|
- }
|
|
|
+
|
|
|
+ customTreeRequest: {
|
|
|
+ type: Function,
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
getLabel,
|
|
|
@@ -153,15 +153,16 @@ export default {
|
|
|
// },
|
|
|
/**
|
|
|
* 还没有调试默认选中
|
|
|
- * @param {} defaultSelect
|
|
|
+ * @param {} defaultSelect
|
|
|
*/
|
|
|
show(defaultSelect) {
|
|
|
- this.search = this.emptySearch();
|
|
|
- this.isShow = true;
|
|
|
- this.refresh()
|
|
|
+ this.search = this.emptySearch();
|
|
|
+ this.isShow = true;
|
|
|
+ // this.refresh()
|
|
|
},
|
|
|
resetQuery() {
|
|
|
- this.search=this.emptySearch();
|
|
|
+ this.search.username = null;
|
|
|
+ this.search.name = null;
|
|
|
// this.resetForm("search");
|
|
|
// this.queryParams.orgId = undefined;
|
|
|
// this.$refs.tree.setCurrentKey(null);
|
|
|
@@ -173,24 +174,24 @@ export default {
|
|
|
onSelect(item) {
|
|
|
this.selectList = item;
|
|
|
},
|
|
|
- refresh(){
|
|
|
- this.$nextTick(()=>{
|
|
|
- this.$refs.searchTable.refresh();
|
|
|
- })
|
|
|
+ refresh() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.searchTable.refresh();
|
|
|
+ });
|
|
|
},
|
|
|
getList() {
|
|
|
- this.$nextTick(()=>{
|
|
|
- this.$refs.searchTable.search();
|
|
|
- })
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.searchTable.search();
|
|
|
+ });
|
|
|
},
|
|
|
- onSubmit() {
|
|
|
+ onSubmit() {
|
|
|
this.$emit("select", this.selectList);
|
|
|
this.onHide();
|
|
|
},
|
|
|
getDefaultKey(key) {
|
|
|
- // debugger
|
|
|
- this.search.orgId = key;
|
|
|
- this.refresh();
|
|
|
+ // debugger
|
|
|
+ this.search.orgId = key;
|
|
|
+ this.refresh();
|
|
|
},
|
|
|
//单选框状态改变
|
|
|
checkChange(state) {
|
|
|
@@ -210,18 +211,15 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
},
|
|
|
- mounted() {
|
|
|
-
|
|
|
- },
|
|
|
+ mounted() {},
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
+.el-dialog-div {
|
|
|
+ height: 600px;
|
|
|
|
|
|
-.el-dialog-div{
|
|
|
- height: 600px;
|
|
|
-
|
|
|
- ::v-deep .tree-container{
|
|
|
- height: 500px;
|
|
|
- }
|
|
|
+ ::v-deep .tree-container {
|
|
|
+ height: 500px;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|