diff --git a/public/json/app.json b/public/json/app.json
index 0211e556..ab014744 100644
--- a/public/json/app.json
+++ b/public/json/app.json
@@ -7,16 +7,16 @@
"appName": "自助机",
"appId": "selfHelp",
"secret": "YuOju6lP3t4thLbZOhRSV4UZ79vdnwIC",
- "type": "ALL",
- "exp": "长期"
+ "type": ["ALL"],
+ "exp": "2035-01-01 00:00:00"
},
{
"id": "101",
"appName": "微信小程序",
"appId": "WechatApp",
"secret": "WgBbsRtCeXiNXIYkkShxxvqOGrAYKK2e",
- "type": "",
- "exp": "长期"
+ "type": ["UPDATA", "QUERY"],
+ "exp": "2023-06-01 00:00:00"
}
],
"message": ""
diff --git a/public/json/login.json b/public/json/login.json
index e1523ed8..066e66a0 100644
--- a/public/json/login.json
+++ b/public/json/login.json
@@ -209,7 +209,7 @@
},
{
"path": "/setting/menu",
- "name": "menu",
+ "name": "settingMenu",
"meta": {
"title": "菜单管理"
},
@@ -222,6 +222,14 @@
"title": "应用管理"
},
"component": "setting/client"
+ },
+ {
+ "path": "/setting/log",
+ "name": "log",
+ "meta": {
+ "title": "系统日志"
+ },
+ "component": "setting/log"
}
]
}
diff --git a/src/api/index.js b/src/api/index.js
index 7c85ac2e..8660dab7 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -81,7 +81,20 @@ const api = {
}
}
},
+ log: {
+ list: {
+ url: `${config.API_URL}/json/log.json`,
+ name: "日志列表",
+ get: async function(){
+ return await http.get(this.url);
+ }
+ }
+ },
demo: {
+ upload: {
+ url: `https://www.fastmock.site/mock/44c807475f7eeba73409792255781935/api/upload`,
+ name: "文件上传接口"
+ },
select: {
url: `${config.API_URL}/json/select.json`,
name: "下拉菜单数据",
diff --git a/src/components/scUpload/index.vue b/src/components/scUpload/index.vue
index 7c91ad12..4f34ea9a 100644
--- a/src/components/scUpload/index.vue
+++ b/src/components/scUpload/index.vue
@@ -4,10 +4,10 @@
-
+
-
+
{{title}}
@@ -22,6 +22,9 @@
export default {
props: {
modelValue: { type: String, default: "" },
+ action: { type: String, default: "#" },
+ accept: { type: String, default: ".jpg, .png, .jpeg, .gif" },
+ maxSize: { type: Number, default: 10 },
title: { type: String, default: "上传" },
},
data() {
@@ -45,6 +48,11 @@
},
methods: {
before(file){
+ const maxSize = file.size / 1024 / 1024 < this.maxSize;
+ if (!maxSize) {
+ this.$message.warning('上传文件大小不能超过 10MB!');
+ return false;
+ }
this.tempImg = URL.createObjectURL(file);
this.loading = true;
},
@@ -56,6 +64,7 @@
}else{
this.img = res.data.src;
}
+ this.$emit('on-success', res)
},
error(err){
this.$notify.error({
@@ -74,11 +83,9 @@
diff --git a/src/views/setting/dic/index.vue b/src/views/setting/dic/index.vue
index 44f5ddbc..33a8d49d 100644
--- a/src/views/setting/dic/index.vue
+++ b/src/views/setting/dic/index.vue
@@ -43,7 +43,7 @@
-
+
@@ -158,6 +158,9 @@
this.dicMode = 'edit';
this.dicDialogVisible = true;
this.$nextTick(() => {
+ var editNode = this.$refs.dic.getNode(data.id);
+ var editNodeParentId = editNode.level==1?undefined:editNode.parent.data.id
+ data.parentId = editNodeParentId
this.$refs.dicDialog.setData(data)
})
},
diff --git a/src/views/setting/log/index.vue b/src/views/setting/log/index.vue
new file mode 100644
index 00000000..77127169
--- /dev/null
+++ b/src/views/setting/log/index.vue
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ /oauth/token
+ POST
+ 200
+ 登录用户验证
+ 2021-05-15 22:15:35
+
+
+
+
+
+ Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198
+ Safari/537.36
+
+
+
+
+ id=100
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/setting/menu/index.vue b/src/views/setting/menu/index.vue
index 349c0ce0..c6f59761 100644
--- a/src/views/setting/menu/index.vue
+++ b/src/views/setting/menu/index.vue
@@ -1,6 +1,9 @@
+
+
+
@@ -9,9 +12,14 @@
diff --git a/src/views/setting/role/index.vue b/src/views/setting/role/index.vue
index 1cf5abe3..4b967e07 100644
--- a/src/views/setting/role/index.vue
+++ b/src/views/setting/role/index.vue
@@ -35,7 +35,7 @@
-
+
取 消
diff --git a/src/views/setting/role/save.vue b/src/views/setting/role/save.vue
index 71f6bb75..d70e6d3f 100644
--- a/src/views/setting/role/save.vue
+++ b/src/views/setting/role/save.vue
@@ -4,7 +4,6 @@
- 如不选择任意上级,系统默认为最顶级角色
diff --git a/src/views/setting/system.vue b/src/views/setting/system.vue
index f392962e..7e2d7a26 100644
--- a/src/views/setting/system.vue
+++ b/src/views/setting/system.vue
@@ -2,10 +2,11 @@
- 用户管理
- 配置管理
- 角色管理
- 定时任务补偿
+
+
+
+ 业务配置
+ 扩展配置
@@ -16,7 +17,9 @@
name: 'system',
data() {
return {
-
+ sys: {
+ name: ""
+ }
}
}
}
diff --git a/src/views/setting/user/index.vue b/src/views/setting/user/index.vue
index 2c76446d..e1234ec8 100644
--- a/src/views/setting/user/index.vue
+++ b/src/views/setting/user/index.vue
@@ -55,7 +55,7 @@
-
+
取 消
diff --git a/src/views/setting/user/save.vue b/src/views/setting/user/save.vue
index 735125d3..068cf45b 100644
--- a/src/views/setting/user/save.vue
+++ b/src/views/setting/user/save.vue
@@ -3,7 +3,7 @@
-
+
@@ -49,6 +49,7 @@
},
data() {
return {
+ uploadUrl: this.$API.demo.upload.url,
//表单数据
form: {
id:"",