Commit c8e002c5 by chehuidong

bug

parent 03b1c304
......@@ -5,8 +5,8 @@ import SaasManage from '@/views/saasManage/indexPage.vue'
import LoginPage from '@/views/LoginPage.vue'
import menuPage from '@/views/menu.vue'
import TaskManage from '@/views/taskManage/index.vue'
export const DEFAULT_DASHBOARD = 'saasManage'
import HomePage from '@/views/homePage/index.vue'
export const DEFAULT_DASHBOARD = 'home'
Vue.use(VueRouter)
......@@ -16,13 +16,20 @@ const routes = [
name: 'login',
component: LoginPage,
},
{
path: '/',
name: 'home',
component: HomeView,
redirect: '/saas/manage',
redirect: '/saas/home',
children: [
{
path: '/saas/home',
name: 'home',
component: HomePage,
meta: { title: '首页' },
},
{
path: '/saas/manage',
name: 'saasManage',
meta: { title: 'ERP管理' },
......
......@@ -87,7 +87,7 @@ export default {
setToken(res.data.token)
setUser(res.data.saasUser)
this.setUserInfo(res.data.saasUser)
this.$router.push('/saas/manage')
this.$router.push('/saas/home')
}
} catch (e) {
console.error(e)
......
<template>
<div>首页</div>
</template>
<script>
export default {
data() {
return {}
},
}
</script>
<style>
</style>
\ No newline at end of file
......@@ -377,9 +377,7 @@
clearable
/>
</el-form-item>
<el-form-item
label="数据库名称"
>
<el-form-item label="数据库名称">
<el-input
style="width: 200px"
:value="`saas_${editForm.databaseName || ''}`"
......@@ -471,7 +469,11 @@
prop="contactPhone"
:rules="[
{ required: true, message: '请输入联系电话' },
{ pattern: /^1[3-9]\d{9}$/, message: '请输入正确的电话号码格式', trigger: 'blur' },
{
pattern: /^1[3-9]\d{9}$/,
message: '请输入正确的电话号码格式',
trigger: 'blur',
},
]"
>
<el-input
......@@ -679,7 +681,10 @@ export default {
this.getList()
},
rowClick(row) {
if (this.selection.length === 1 && this.selection[0] === row) {
if (
this.selection.length === 1 &&
this.selection[0] === row
) {
this.selection = []
this.$refs.table.clearSelection()
} else {
......@@ -750,9 +755,4 @@ export default {
flex: 1;
overflow: hidden;
}
.pagination {
text-align: center;
padding-top: 10px;
}
</style>
......@@ -77,11 +77,7 @@
>新增</el-button
>
</el-form-item>
<el-form-item>
<el-button type="danger" @click="deleteSection()"
>删除</el-button
>
</el-form-item>
<!-- <el-form-item>
<el-button type="info" @click="addDialog(2)">重置密码</el-button>
</el-form-item>-->
......@@ -90,7 +86,6 @@
<table-vue
:sourceData="sourceData"
ref="multipleTable"
:selection="true"
:tableColumns="usersTableColumns"
@currentChange="currentTabFn"
:rowClassName="cellClass"
......@@ -381,6 +376,7 @@ export default {
<span title="编辑" class="icon-view ">
<i
class="el-icon-edit-outline"
style="color:#E6A23C"
onClick={(e) =>
this.addDialog(2, item, e)
}
......@@ -388,16 +384,16 @@ export default {
</span>
<span title="重置密码" class="icon-view ">
<i
style="color:#67C23A"
class="el-icon-refresh-left"
onClick={(e) => this.resetPwd(e, item)}
></i>
</span>
<span title="删除" class="icon-view ">
<i
style="color:#F56C6C"
class="el-icon-delete"
onClick={(e) =>
this.deleteSection(item)
}
onClick={(e) => this.deleteSection(item)}
></i>
</span>
</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