Commit 7ffee2fc authored by 冷冷's avatar 冷冷

添加新特性。新增租户管理

parent d70123c3
...@@ -21,6 +21,8 @@ var validateUsername = (rule, value, callback) => { ...@@ -21,6 +21,8 @@ var validateUsername = (rule, value, callback) => {
let result = response.data.data let result = response.data.data
if (result !== null) { if (result !== null) {
callback(new Error('用户名已经存在')) callback(new Error('用户名已经存在'))
} else {
callback()
} }
}); });
}; };
...@@ -129,4 +131,4 @@ export const tableOption = { ...@@ -129,4 +131,4 @@ export const tableOption = {
addVisdiplay: false, addVisdiplay: false,
span: 24, span: 24,
}] }]
} }
\ No newline at end of file
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
选择租户<i class="el-icon-arrow-down el-icon--right"></i> 选择租户<i class="el-icon-arrow-down el-icon--right"></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="2">pigx</el-dropdown-item> <el-dropdown-item command="1">租户1</el-dropdown-item>
<el-dropdown-item command="2">租户2</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment