diff --git a/public/img/auth_banner.jpg b/public/img/auth_banner.jpg deleted file mode 100644 index 449b0ad5..00000000 Binary files a/public/img/auth_banner.jpg and /dev/null differ diff --git a/public/img/logo_side.png b/public/img/logo_side.png new file mode 100644 index 00000000..9ecb68ba Binary files /dev/null and b/public/img/logo_side.png differ diff --git a/src/api/model/system.js b/src/api/model/system.js index c2a81502..399c9263 100644 --- a/src/api/model/system.js +++ b/src/api/model/system.js @@ -2,6 +2,15 @@ import config from "@/config" import http from "@/utils/request" export default { + config:{ + base: { + url: `${config.API_URL}/system/base_config/`, + name: "账户信息", + req: async function(){ + return await http.get(this.url); + } + }, + }, dept: { list: { url: `${config.API_URL}/system/dept/`, @@ -392,5 +401,21 @@ export default { return await http.get(this.url, params); } } + }, + baseInfo: { + getInfo: { + url: `${config.API_URL}/system/config/`, + name: "获取系统信息", + req: async function(){ + return await http.get(this.url); + } + }, + updateInfo: { + url: `${config.API_URL}/system/config/`, + name: "更新系统信息", + req: async function(data){ + return await http.put(this.url, data); + } + }, } } diff --git a/src/components/scEnm/lineChartsdialog.vue b/src/components/scEnm/lineChartsdialog.vue new file mode 100644 index 00000000..0ad081d0 --- /dev/null +++ b/src/components/scEnm/lineChartsdialog.vue @@ -0,0 +1,284 @@ + + + + + \ No newline at end of file diff --git a/src/config/route.js b/src/config/route.js index 3af263f7..c4d3f02b 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -114,6 +114,78 @@ const routes = [ } ] }, + { + "name": "rm", + "path": "/rm", + "meta": { + "title": "原料磨", + "icon": "el-icon-grid", + "type": "menu", + "perms": ["bi"] + }, + "children": [ + { + "name": "report", + "path": "/rm/report", + "meta": { + "title": "生产报告", + "icon": "el-icon-grid", + "perms": ["dataset"] + }, + "component": "rm/report" + }, + { + "name": "power", + "path": "/rm/power", + "meta": { + "title": "单位产品电耗", + "icon": "el-icon-grid", + "perms": ["dataset"] + }, + "component": "rm/power" + }, + { + "name": "teamAnalysis", + "path": "/rm/teamAnalysis", + "meta": { + "title": "班组月度对比", + "icon": "el-icon-grid", + "perms": ["dataset"] + }, + "component": "rm/teamAnalysis" + }, + { + "name": "workshopAnalysis", + "path": "/rm/workshopAnalysis", + "meta": { + "title": "车间单耗分析", + "icon": "el-icon-grid", + "perms": ["dataset"] + }, + "component": "rm/workshopAnalysis" + }, + { + "name": "handoverLog", + "path": "/rm/handoverLog", + "meta": { + "title": "交接班日志", + "icon": "el-icon-grid", + "perms": ["dataset"] + }, + "component": "rm/handoverLog" + }, + { + "name": "handovereEnter", + "path": "/rm/handovereEnter", + "meta": { + "title": "交接班记录", + "icon": "el-icon-grid", + "perms": ["dataset"] + }, + "component": "rm/handovereEnter" + } + ] + }, { "name": "em", "path": "/em", @@ -218,7 +290,6 @@ const routes = [ }, "component": "ecm/notify_setting" }, - { "name": "algo", "path": "/ecm/algo", diff --git a/src/layout/components/NavMenu.vue b/src/layout/components/NavMenu.vue index 5c39fb95..1a0b3d80 100644 --- a/src/layout/components/NavMenu.vue +++ b/src/layout/components/NavMenu.vue @@ -31,8 +31,8 @@ }, methods: { hasChildren(item) { - console.log(item) - console.log(item.children && !item.children.every(item => item.meta.hidden)) + // console.log(item) + // console.log(item.children && !item.children.every(item => item.meta.hidden)) return item.children && !item.children.every(item => item.meta.hidden) }, blankPageClick(path){ @@ -41,8 +41,8 @@ // let linkUrl = window.location.origin+"/#"+path; let routeUrl = this.$router.resolve({path: path}); - console.log(routeUrl.href) - debugger; + // console.log(routeUrl.href) + // debugger; window.open(routeUrl.href); }, } diff --git a/src/layout/index.vue b/src/layout/index.vue index 85e16185..2aa4e3d5 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -4,8 +4,10 @@
- - {{ $CONFIG.APP_NAME }} + + + + {{ baseName }}