| | |
| | | status-icon |
| | | > |
| | | <el-form-item prop="selectInput"> |
| | | <el-select v-model="loginForm.value" placeholder="请选择租户" style="width: 326px" @change="selectchange"> |
| | | <el-select v-model="loginForm.tenantId" placeholder="请选择租户" style="width: 100%" @change="selectchange"> |
| | | <i slot="prefix" class="el-icon-s-operation"/> |
| | | <el-option |
| | | v-for="(item,index) in loginForm.region" |
| | |
| | | </el-dialog> |
| | | </div> |
| | | |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | }, |
| | | loginForm: { |
| | | //租户ID |
| | | tenantId: "000000", |
| | | tenantId: "", |
| | | //部门ID |
| | | deptId: "", |
| | | //角色ID |
| | | roleId: "", |
| | | //用户名 |
| | | username: "admin", |
| | | username: "", |
| | | //密码 |
| | | password: "admin", |
| | | password: "", |
| | | selectInput: '', |
| | | //下拉input数据 |
| | | value: '管理组', |
| | |
| | | //在mounted获取首页下拉菜单数据 |
| | | this.$axios.get('/api/ubcs-system/tenant/tenant-map').then(res => { |
| | | if (res.data.code == 200) { |
| | | console.log(res.data.data); |
| | | this.loginForm.tenantId = res.data.data[0].TENANT_ID; |
| | | this.loginForm.region = res.data.data |
| | | } |
| | | }) |