| | |
| | | </h4> |
| | | <userLogin v-if="activeName==='user'"></userLogin> |
| | | <thirdLogin v-else-if="activeName==='third'"></thirdLogin> |
| | | <div class="login-menu"> |
| | | <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a> |
| | | <!--<a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>--> |
| | | <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a> |
| | | <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a> |
| | | </div> |
| | | <!-- <div class="login-menu">--> |
| | | <!-- <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a>--> |
| | | <!-- <a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>--> |
| | | <!-- <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a>--> |
| | | <!-- <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a>--> |
| | | <!-- </div>--> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | status-icon |
| | | > |
| | | <el-form-item prop="selectInput"> |
| | | <el-select v-model="loginForm.tenantId" placeholder="请选择租户" style="width: 100%" @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-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-button @click="ChandleLogin">测试单点登录</el-button> |
| | | <el-button class="login-submit" |
| | | size="small" |
| | | type="primary" |
| | |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="delok">取 消</el-button> |
| | | <el-button type="primary" @click="addok">确 定</el-button> |
| | | <el-button type="primary" @click="addHandler">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | }, |
| | | props: [], |
| | | methods: { |
| | | ChandleLogin(){ |
| | | |
| | | }, |
| | | closehandle(){ |
| | | removeToken() |
| | | }, |
| | |
| | | removeToken() |
| | | }, |
| | | // 点击确定修改密码 |
| | | addok(){ |
| | | addHandler(){ |
| | | this.dialogFormVisible = false |
| | | updatePassword(md5(this.form.oldPassword), this.form.newPassword, this.form.newPassword1).then(res=>{ |
| | | console.log(res) |
| | |
| | | }) |
| | | }, |
| | | // 绑定下拉菜单动态ID |
| | | selectchange(value) { |
| | | selectChange(value) { |
| | | this.loginForm.tenantId = value |
| | | }, |
| | | showPassword() { |
| | |
| | | :size="size" clearable style="width:300px;margin-left: 10px;" |
| | | @clear="handleClear" @keyup.enter.native="handleEnter"></el-input> |
| | | </template> |
| | | <template #menu="{row,index,size}"> |
| | | <el-button type="text" icon="el-icon-menu" size="small" @click="classifyHandler">分类授权</el-button> |
| | | |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog :visible.sync="dialogVisible" append-to-body title="分类授权"> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | |
| | | data() { |
| | | return { |
| | | loading: false, |
| | | dialogVisible:false, |
| | | page: { |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | // 获取列表 |
| | | // async getDataList() { |
| | | // this.loading = true |
| | | // console.log(this.search) |
| | | // const { pageSize, currentPage } = this.page |
| | | // let param = { size: pageSize, current: currentPage } |
| | | // this.search = Object.keys(this.search) |
| | | // .filter((key) => this.search[key] !== null && this.search[key] !== undefined && this.search[key] !== "") |
| | | // .reduce((acc, key) => ({ ...acc, [key]: this.search[key] }), {}); |
| | | // const response = await getSysInfoList(pageSize,currentPage,{...param}) |
| | | // if (response.status === 200) { |
| | | // console.log(response) |
| | | // this.loading = false |
| | | // const data = response.data.data |
| | | // this.data = data.records |
| | | // this.page.total = data.total |
| | | // } else this.loading = false |
| | | // }, |
| | | //分类授权 |
| | | classifyHandler(){ |
| | | this.dialogVisible=true; |
| | | }, |
| | | async getDataList() { |
| | | this.loading = true; |
| | | console.log(this.search); |