前端-目录结构标准化调整
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' }
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
@ -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";
|
|
@ -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",
|
|
@ -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",
|
|
@ -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: {
|
|
@ -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 },
|
|
@ -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