|
@@ -44,6 +44,12 @@
|
|
|
{{ item.roleName }}
|
|
{{ item.roleName }}
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+
|
|
|
|
|
+ <template v-slot:name="{ row }">
|
|
|
|
|
+ <el-link type="primary" :underline="false" @click="openEdit(row,true)">
|
|
|
|
|
+ {{ row.name }}</el-link
|
|
|
|
|
+ >
|
|
|
|
|
+ </template>
|
|
|
<!-- 状态列 -->
|
|
<!-- 状态列 -->
|
|
|
<!-- <template v-slot:status="{ row }">
|
|
<!-- <template v-slot:status="{ row }">
|
|
|
<el-switch
|
|
<el-switch
|
|
@@ -60,7 +66,6 @@
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
|
@click="openEdit(row)"
|
|
@click="openEdit(row)"
|
|
|
- v-if="!row.loginName"
|
|
|
|
|
>
|
|
>
|
|
|
修改
|
|
修改
|
|
|
</el-link>
|
|
</el-link>
|
|
@@ -104,6 +109,7 @@
|
|
|
:institutionList="institutionList"
|
|
:institutionList="institutionList"
|
|
|
:organization-id="organizationId"
|
|
:organization-id="organizationId"
|
|
|
@done="reload"
|
|
@done="reload"
|
|
|
|
|
+ ref="userEditRef"
|
|
|
/>
|
|
/>
|
|
|
<addUsers :visible.sync="showEdit1" :data="null" ref="userEdit" />
|
|
<addUsers :visible.sync="showEdit1" :data="null" ref="userEdit" />
|
|
|
<importDialog
|
|
<importDialog
|
|
@@ -122,9 +128,7 @@
|
|
|
<el-radio v-model="radio" label="2">否</el-radio>
|
|
<el-radio v-model="radio" label="2">否</el-radio>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="setUser"
|
|
|
|
|
- >确 定</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button type="primary" @click="setUser">确 定</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
@@ -134,9 +138,10 @@
|
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
|
custom-class="ele-dialog-form"
|
|
custom-class="ele-dialog-form"
|
|
|
>
|
|
>
|
|
|
|
|
+ <UserSearch @search="reload1"></UserSearch>
|
|
|
<!-- 数据表格 -->
|
|
<!-- 数据表格 -->
|
|
|
<ele-pro-table
|
|
<ele-pro-table
|
|
|
- ref="table"
|
|
|
|
|
|
|
+ ref="table1"
|
|
|
:columns="columns1"
|
|
:columns="columns1"
|
|
|
:datasource="datasource1"
|
|
:datasource="datasource1"
|
|
|
:current.sync="userRow"
|
|
:current.sync="userRow"
|
|
@@ -157,7 +162,7 @@ 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 importDialog from '@/components/upload/import-dialog.vue';
|
|
|
import addUsers from '@/views/system/user/components/user-edit.vue';
|
|
import addUsers from '@/views/system/user/components/user-edit.vue';
|
|
|
-
|
|
|
|
|
|
|
+import UserSearch from '@/views/system/user/components/user-search.vue';
|
|
|
import {
|
|
import {
|
|
|
getUserPage,
|
|
getUserPage,
|
|
|
removePersonnel,
|
|
removePersonnel,
|
|
@@ -165,7 +170,13 @@ import {
|
|
|
} from '@/api/system/organization';
|
|
} from '@/api/system/organization';
|
|
|
import { pageUsers } from '@/api/system/user';
|
|
import { pageUsers } from '@/api/system/user';
|
|
|
export default {
|
|
export default {
|
|
|
- components: { importDialog, OrgUserSearch, OrgUserEdit, addUsers },
|
|
|
|
|
|
|
+ components: {
|
|
|
|
|
+ importDialog,
|
|
|
|
|
+ OrgUserSearch,
|
|
|
|
|
+ OrgUserEdit,
|
|
|
|
|
+ addUsers,
|
|
|
|
|
+ UserSearch
|
|
|
|
|
+ },
|
|
|
props: {
|
|
props: {
|
|
|
// 机构id
|
|
// 机构id
|
|
|
organizationId: [Number, String],
|
|
organizationId: [Number, String],
|
|
@@ -195,6 +206,7 @@ export default {
|
|
|
{
|
|
{
|
|
|
prop: 'name',
|
|
prop: 'name',
|
|
|
label: '姓名',
|
|
label: '姓名',
|
|
|
|
|
+ slot: 'name',
|
|
|
sortable: 'custom',
|
|
sortable: 'custom',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 110
|
|
minWidth: 110
|
|
@@ -339,7 +351,7 @@ export default {
|
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
|
},
|
|
},
|
|
|
setUser() {
|
|
setUser() {
|
|
|
- this.dialogVisible = false
|
|
|
|
|
|
|
+ this.dialogVisible = false;
|
|
|
if (this.radio == 1) {
|
|
if (this.radio == 1) {
|
|
|
this.userShow = true;
|
|
this.userShow = true;
|
|
|
} else {
|
|
} else {
|
|
@@ -375,10 +387,14 @@ export default {
|
|
|
reload(where) {
|
|
reload(where) {
|
|
|
this.$refs.table.reload({ pageNum: 1, where: where });
|
|
this.$refs.table.reload({ pageNum: 1, where: where });
|
|
|
},
|
|
},
|
|
|
|
|
+ reload1(where) {
|
|
|
|
|
+ this.$refs.table1.reload({ pageNum: 1, where: where });
|
|
|
|
|
+ },
|
|
|
/* 显示编辑 */
|
|
/* 显示编辑 */
|
|
|
- openEdit(row) {
|
|
|
|
|
|
|
+ openEdit(row,disabled) {
|
|
|
this.current = row;
|
|
this.current = row;
|
|
|
this.showEdit = true;
|
|
this.showEdit = true;
|
|
|
|
|
+ this.$refs.userEditRef.setDisabled(disabled)
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 解除绑定
|
|
// 解除绑定
|