前端-目录结构标准化调整
parent
3b999faf89
commit
d9f920b245
|
@ -74,7 +74,7 @@ export const constantRoutes = [
|
|||
children: [
|
||||
{
|
||||
path: 'profile',
|
||||
component: (resolve) => require(['@/views/system/user/profile/index'], resolve),
|
||||
component: (resolve) => require(['@/views/permission/user/profile/index'], resolve),
|
||||
name: 'Profile',
|
||||
meta: { title: '个人中心', icon: 'user' }
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ export const constantRoutes = [
|
|||
children: [
|
||||
{
|
||||
path: 'users',
|
||||
component: (resolve) => require(['@/views/system/user/users/index'], resolve),
|
||||
component: (resolve) => require(['@/views/permission/user/users/index'], resolve),
|
||||
name: 'Profile',
|
||||
meta: { title: '个人测试', icon: 'user' }
|
||||
}
|
||||
|
|
|
@ -57,17 +57,17 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:dept:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-plus"
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-plus"
|
||||
@click="handleAdd(scope.row)"
|
||||
v-hasPermi="['system:dept:add']"
|
||||
>新增</el-button>
|
||||
|
@ -139,7 +139,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { listDept, getDept, delDept, addDept, updateDept, listDeptExcludeChild } from "@/api/system/dept";
|
||||
import { listDept, getDept, delDept, addDept, updateDept, listDeptExcludeChild } from "@/api/permission/dept";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
|
||||
|
@ -314,4 +314,4 @@ export default {
|
|||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</script>
|
|
@ -248,7 +248,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {addMenu, delMenu, getMenu, listMenu, updateMenu} from "@/api/system/menu";
|
||||
import {addMenu, delMenu, getMenu, listMenu, updateMenu} from "@/api/permission/menu";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
import IconSelect from "@/components/IconSelect";
|
|
@ -112,7 +112,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
|
@ -155,7 +155,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { listPost, getPost, delPost, addPost, updatePost, exportPost } from "@/api/system/post";
|
||||
import { listPost, getPost, delPost, addPost, updatePost, exportPost } from "@/api/permission/post";
|
||||
|
||||
export default {
|
||||
name: "Post",
|
||||
|
@ -323,4 +323,4 @@ export default {
|
|||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</script>
|
|
@ -248,9 +248,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { listRole, getRole, delRole, addRole, updateRole, exportRole, dataScope, changeRoleStatus } from "@/api/system/role";
|
||||
import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu";
|
||||
import { treeselect as deptTreeselect, roleDeptTreeselect } from "@/api/system/dept";
|
||||
import { listRole, getRole, delRole, addRole, updateRole, exportRole, dataScope, changeRoleStatus } from "@/api/permission/role";
|
||||
import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/permission/menu";
|
||||
import { treeselect as deptTreeselect, roleDeptTreeselect } from "@/api/permission/dept";
|
||||
|
||||
export default {
|
||||
name: "Role",
|
||||
|
@ -607,4 +607,4 @@ export default {
|
|||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</script>
|
|
@ -343,9 +343,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { listUser, getUser, delUser, addUser, updateUser, exportUser, resetUserPwd, changeUserStatus, importTemplate } from "@/api/system/user";
|
||||
import { listUser, getUser, delUser, addUser, updateUser, exportUser, resetUserPwd, changeUserStatus, importTemplate } from "@/api/permission/user";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import { treeselect } from "@/api/system/dept";
|
||||
import { treeselect } from "@/api/permission/dept";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
|
||||
|
@ -407,7 +407,7 @@ export default {
|
|||
// 设置上传的请求头部
|
||||
headers: { Authorization: "Bearer " + getToken() },
|
||||
// 上传的地址
|
||||
url: process.env.VUE_APP_BASE_API + "/system/user/importData"
|
||||
url: process.env.VUE_APP_BASE_API + "/permission/user/importData"
|
||||
},
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
|
@ -672,4 +672,4 @@ export default {
|
|||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</script>
|
|
@ -62,7 +62,7 @@
|
|||
import userAvatar from "./userAvatar";
|
||||
import userInfo from "./userInfo";
|
||||
import resetPwd from "./resetPwd";
|
||||
import { getUserProfile } from "@/api/system/user";
|
||||
import { getUserProfile } from "@/api/permission/user";
|
||||
|
||||
export default {
|
||||
name: "Profile",
|
|
@ -17,7 +17,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { updateUserPwd } from "@/api/system/user";
|
||||
import { updateUserPwd } from "@/api/permission/user";
|
||||
|
||||
export default {
|
||||
data() {
|
|
@ -55,7 +55,7 @@
|
|||
<script>
|
||||
import store from "@/store";
|
||||
import { VueCropper } from "vue-cropper";
|
||||
import { uploadAvatar } from "@/api/system/user";
|
||||
import { uploadAvatar } from "@/api/permission/user";
|
||||
|
||||
export default {
|
||||
components: { VueCropper },
|
||||
|
@ -164,4 +164,4 @@ export default {
|
|||
line-height: 110px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
</style>
|
||||
</style>
|
|
@ -2,7 +2,7 @@
|
|||
<el-form ref="form" :model="user" :rules="rules" label-width="80px">
|
||||
<el-form-item label="用户昵称" prop="nickName">
|
||||
<el-input v-model="user.nickName" />
|
||||
</el-form-item>
|
||||
</el-form-item>
|
||||
<el-form-item label="手机号码" prop="phonenumber">
|
||||
<el-input v-model="user.phonenumber" maxlength="11" />
|
||||
</el-form-item>
|
||||
|
@ -23,7 +23,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { updateUserProfile } from "@/api/system/user";
|
||||
import { updateUserProfile } from "@/api/permission/user";
|
||||
|
||||
export default {
|
||||
props: {
|
|
@ -127,7 +127,7 @@
|
|||
<script>
|
||||
import { getGenTable, updateGenTable } from "@/api/tool/gen";
|
||||
import { optionselect as getDictOptionselect } from "@/api/system/dict/type";
|
||||
import { listMenu as getMenuTreeselect } from "@/api/system/menu";
|
||||
import { listMenu as getMenuTreeselect } from "@/api/permission/menu";
|
||||
import basicInfoForm from "./basicInfoForm";
|
||||
import genInfoForm from "./genInfoForm";
|
||||
import Sortable from 'sortablejs'
|
||||
|
|
Loading…
Reference in New Issue