This commit is contained in:
molong
2022-11-01 11:42:28 +08:00
parent f8927e3193
commit 5cee9dcfab
23 changed files with 550 additions and 235 deletions

View File

@@ -54,7 +54,8 @@
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
"parser": "@babel/eslint-parser",
"requireConfigFile": false
},
"rules": {
"indent": 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 286 KiB

After

Width:  |  Height:  |  Size: 509 KiB

View File

@@ -11,14 +11,14 @@ export default {
},
file: {
menu: {
url: `${config.API_URL}/file/menu`,
url: `${config.API_URL}file/menu`,
name: "获取文件分类",
get: async function(){
return await http.get(this.url);
}
},
list: {
url: `${config.API_URL}/file/list`,
url: `${config.API_URL}file/list`,
name: "获取文件列表",
get: async function(params){
return await http.get(this.url, params);

View File

@@ -4,14 +4,14 @@ import http from "@/utils/request"
export default {
filter: {
list: {
url: `${config.API_URL}/tools/filter/index`,
url: `${config.API_URL}tools/filter/index`,
name: "获得过滤数据",
get: async function(params){
return await http.get(this.url, params);
}
},
insert:{
url: `${config.API_URL}/tools/filter/insert`,
url: `${config.API_URL}tools/filter/insert`,
name: "导入过滤数据",
post: async function(data={}){
return await http.post(this.url, data);

View File

@@ -3,35 +3,35 @@ import http from "@/utils/request"
export default {
list: {
url: `${config.API_URL}/auth/user/index`,
url: `${config.API_URL}auth/user/index`,
name: "获得用户列表",
get: async function(params){
return await http.get(this.url, params);
}
},
add: {
url: `${config.API_URL}/auth/user/add`,
url: `${config.API_URL}auth/user/add`,
name: "添加用户",
post: async function(params){
return await http.post(this.url, params);
}
},
edit: {
url: `${config.API_URL}/auth/user/edit`,
url: `${config.API_URL}auth/user/edit`,
name: "编辑用户",
post: async function(params){
return await http.post(this.url, params);
}
},
uppasswd:{
url: `${config.API_URL}/auth/user/passwd`,
url: `${config.API_URL}auth/user/passwd`,
name: "修改密码",
post: async function(params){
return await http.post(this.url, params);
}
},
uprole: {
url: `${config.API_URL}/auth/user/auth`,
url: `${config.API_URL}auth/user/auth`,
name: "编辑用户",
post: async function(params){
return await http.post(this.url, params);
@@ -39,21 +39,21 @@ export default {
},
role: {
list: {
url: `${config.API_URL}/auth/role/index`,
url: `${config.API_URL}auth/role/index`,
name: "获得角色列表",
get: async function(params){
return await http.get(this.url, params);
}
},
edit: {
url: `${config.API_URL}/auth/role/edit`,
url: `${config.API_URL}auth/role/edit`,
name: "编辑角色",
post: async function(params){
return await http.post(this.url, params);
}
},
auth: {
url: `${config.API_URL}/auth/role/auth`,
url: `${config.API_URL}auth/role/auth`,
name: "编辑角色",
post: async function(params){
return await http.post(this.url, params);
@@ -62,14 +62,14 @@ export default {
},
department: {
list: {
url: `${config.API_URL}/auth/department/index`,
url: `${config.API_URL}auth/department/index`,
name: "获得部门列表",
get: async function(params){
return await http.get(this.url, params);
}
},
edit: {
url: `${config.API_URL}/auth/department/edit`,
url: `${config.API_URL}auth/department/edit`,
name: "编辑部门",
post: async function(params){
return await http.post(this.url, params);
@@ -77,7 +77,7 @@ export default {
}
},
userinfo:{
url: `${config.API_URL}/auth/user/info`,
url: `${config.API_URL}auth/user/info`,
name: "获得用户信息",
get: async function(params){
return await http.get(this.url, params);

View File

@@ -12,7 +12,8 @@ const DEFAULT_CONFIG = {
CORE_VER: "1.6.6",
//接口地址
API_URL: "http://127.0.0.1:8000/",
// API_URL: "http://127.0.0.1:8000/",
API_URL: "http://q.dxpd.cn/",
//请求超时
TIMEOUT: 10000,

View File

@@ -89,33 +89,33 @@
tasksVisible: false,
msg: false,
msgList: [
{
id: 1,
type: 'user',
avatar: "static/images/avatar.jpg",
title: "Skuya",
describe: "如果喜欢就点个星星支持一下哦",
link: "https://gitee.com/lolicode/scui",
time: "5分钟前"
},
{
id: 2,
type: 'user',
avatar: "static/images/avatar2.gif",
title: "Lolowan",
describe: "点进去Gitee获取最新开源版本",
link: "https://gitee.com/lolicode/scui",
time: "14分钟前"
},
{
id: 3,
type: 'system',
avatar: "static/images/logo.png",
title: "感谢登录SCUI Admin",
describe: "Vue 3.0 + Vue-Router 4.0 + ElementPlus + Axios 后台管理系统。",
link: "https://gitee.com/lolicode/scui",
time: "2020年7月24日"
}
// {
// id: 1,
// type: 'user',
// avatar: "static/images/avatar.jpg",
// title: "Skuya",
// describe: "如果喜欢就点个星星支持一下哦",
// link: "https://gitee.com/lolicode/scui",
// time: "5分钟前"
// },
// {
// id: 2,
// type: 'user',
// avatar: "static/images/avatar2.gif",
// title: "Lolowan",
// describe: "点进去Gitee获取最新开源版本",
// link: "https://gitee.com/lolicode/scui",
// time: "14分钟前"
// },
// {
// id: 3,
// type: 'system',
// avatar: "static/images/logo.png",
// title: "感谢登录SCUI Admin",
// describe: "Vue 3.0 + Vue-Router 4.0 + ElementPlus + Axios 后台管理系统。",
// link: "https://gitee.com/lolicode/scui",
// time: "2020年7月24日"
// }
]
}
},

View File

@@ -184,7 +184,7 @@
<div class="layout-setting" @click="openSetting"><el-icon><el-icon-brush-filled /></el-icon></div>
<el-drawer title="布局实时演示" v-model="settingDialog" :size="400" append-to-body destroy-on-close>
<el-drawer title="布局配置" v-model="settingDialog" :size="400" append-to-body destroy-on-close>
<setting></setting>
</el-drawer>
</template>

View File

@@ -98,7 +98,8 @@ export default {
path: "",
component: "",
title: newMenuName,
type: "menu"
type: "menu",
sort: 0
}
this.menuloading = true
var res = await this.$API.system.menu.add.post(newMenuData)

View File

@@ -60,6 +60,10 @@
<el-switch v-model="form.affix" />
<div class="el-form-item-msg">是否固定类似首页控制台在标签中是没有关闭按钮的</div>
</el-form-item>
<el-form-item label="是否全屏" prop="fullpage">
<el-switch v-model="form.fullpage" />
<div class="el-form-item-msg">是否全屏</div>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="save" :loading="loading"> </el-button>
</el-form-item>
@@ -185,7 +189,10 @@
//表单注入数据
setData(data, pid){
this.form = data
this.form.sort = parseInt(this.form.sort);
this.form.hidden = this.form.hidden == 1 ? true : false;
this.form.hiddenBreadcrumb = this.form.hiddenBreadcrumb == 1 ? true : false;
this.form.affix = this.form.affix == 1 ? true : false;
this.form.fullpage = this.form.fullpage == 1 ? true : false;
this.form.apiList = data.apiList || []
this.form.parent_id = pid
}

View File

@@ -144,7 +144,7 @@
.login_adv__title div i {font-size: 40px;}
.login_adv__title div i.add {font-size: 20px;color: rgba(255,255,255,0.6);}
.login_adv__bottom {position: absolute;left:0px;right: 0px;bottom: 0px;color: #fff;padding: 40px;background-image:linear-gradient(transparent, #000);z-index: 3;}
.login_adv__mask {position: absolute;top:0px;left:0px;right: 0px;bottom: 0px;background: rgba(0,0,0,0.5);z-index: 1;}
.login_adv__mask {position: absolute;top:0px;left:0px;right: 0px;bottom: 0px;background: rgba(255,255,255,0.1);z-index: 1;}
.login_main {flex: 1;overflow: auto;display:flex;}
.login-form {width: 400px;margin: auto;padding:20px 0;}