|
@@ -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
|
|
@@ -104,6 +110,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 +129,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,7 +139,7 @@
|
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
|
custom-class="ele-dialog-form"
|
|
custom-class="ele-dialog-form"
|
|
|
>
|
|
>
|
|
|
- <UserSearch @search="reload1" ></UserSearch>
|
|
|
|
|
|
|
+ <UserSearch @search="reload1"></UserSearch>
|
|
|
<!-- 数据表格 -->
|
|
<!-- 数据表格 -->
|
|
|
<ele-pro-table
|
|
<ele-pro-table
|
|
|
ref="table1"
|
|
ref="table1"
|
|
@@ -166,7 +171,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,UserSearch },
|
|
|
|
|
|
|
+ components: {
|
|
|
|
|
+ importDialog,
|
|
|
|
|
+ OrgUserSearch,
|
|
|
|
|
+ OrgUserEdit,
|
|
|
|
|
+ addUsers,
|
|
|
|
|
+ UserSearch
|
|
|
|
|
+ },
|
|
|
props: {
|
|
props: {
|
|
|
// 机构id
|
|
// 机构id
|
|
|
organizationId: [Number, String],
|
|
organizationId: [Number, String],
|
|
@@ -196,6 +207,7 @@ export default {
|
|
|
{
|
|
{
|
|
|
prop: 'name',
|
|
prop: 'name',
|
|
|
label: '姓名',
|
|
label: '姓名',
|
|
|
|
|
+ slot: 'name',
|
|
|
sortable: 'custom',
|
|
sortable: 'custom',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 110
|
|
minWidth: 110
|
|
@@ -340,7 +352,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 {
|
|
@@ -376,13 +388,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){
|
|
|
|
|
|
|
+ reload1(where) {
|
|
|
this.$refs.table1.reload({ pageNum: 1, where: 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)
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 解除绑定
|
|
// 解除绑定
|