| | |
| | | </template> |
| | | <template slot="tenantName" |
| | | slot-scope="{row}"> |
| | | <el-tag>{{ row.tenantName }}</el-tag> |
| | | <el-tag v-if="row.tenantName">{{ row.tenantName }}</el-tag> |
| | | </template> |
| | | <template slot="roleName" |
| | | slot-scope="{row}"> |
| | | <el-tag>{{ row.roleName }}</el-tag> |
| | | <el-tag v-if="row.roleName">{{ row.roleName }}</el-tag> |
| | | </template> |
| | | <template slot="deptName" |
| | | slot-scope="{row}"> |
| | | <el-tag>{{ row.deptName }}</el-tag> |
| | | <el-tag v-if="row.deptName">{{ row.deptName }}</el-tag> |
| | | </template> |
| | | <template slot="userTypeName" |
| | | slot-scope="{row}"> |
| | | <el-tag>{{ row.userTypeName }}</el-tag> |
| | | <el-tag v-if="row.userTypeName">{{ row.userTypeName }}</el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | </div> |
| | |
| | | import {exportBlob} from "@/api/common"; |
| | | import {getDeptTree, getDeptLazyTree} from "@/api/system/dept"; |
| | | import {getRoleTree} from "@/api/system/role"; |
| | | import {getPostList} from "@/api/system/post"; |
| | | //import {getPostList} from "@/api/system/post"; |
| | | import {mapGetters} from "vuex"; |
| | | import website from '@/config/website'; |
| | | import {getToken} from '@/util/auth'; |
| | |
| | | userflag:true, |
| | | usernumber:0, |
| | | userStatus:false, |
| | | isUpdateShowInput:false, |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | option() { |
| | | return{ |
| | | height:'auto', |
| | | calcHeight: 80, |
| | | calcHeight: 68, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | |
| | | message: "请输入登录账号", |
| | | trigger: "blur" |
| | | }], |
| | | disabled: this.isUpdateShowInput, |
| | | }, |
| | | { |
| | | label: "用户平台", |
| | |
| | | multiple: true, |
| | | type: "tree", |
| | | dicData: [], |
| | | disabled:this.userStatus, |
| | | disabled: this.isUpdateShowInput, |
| | | props: { |
| | | label: "title" |
| | | }, |
| | |
| | | const column = this.findObject(this.option.group, "deptId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | getPostList(tenantId).then(res => { |
| | | const column = this.findObject(this.option.group, "postId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | // getPostList(tenantId).then(res => { |
| | | // const column = this.findObject(this.option.group, "postId"); |
| | | // column.dicData = res.data.data; |
| | | // }); |
| | | }, |
| | | submitRole() { |
| | | const roleList = this.$refs.treeRole.getCheckedKeys().join(","); |
| | |
| | | beforeOpen(done, type) { |
| | | // console.log(type) |
| | | if(type === "edit"){ |
| | | this.userStatus = true; |
| | | this.isUpdateShowInput = true; |
| | | }else { |
| | | this.userStatus = false; |
| | | this.isUpdateShowInput = false; |
| | | } |
| | | //console.log(type) |
| | | // console.log('this.tenantId',this.tenantId) |