Browse Source

新增:前端界面项目

yangsl 3 years ago
parent
commit
23aecd0f28

+ 0 - 54
.github/ISSUE_TEMPLATE/bug_report.md

@@ -1,54 +0,0 @@
----
-name: Bug report
-about: Create a report to help us improve(Bug 反馈)
-title: ''
-labels: ''
-assignees: ''
-
----
-
-**Describe the bug (描述 Bug)**
-
-A clear and concise description of what the bug is.
-
-
-
-**To Reproduce (重现步骤)**
-Steps to reproduce the behavior:
-
-1. Go to '...'
-2. Click on '....'
-3. Scroll down to '....'
-4. See error
-
-
-
-**Expected behavior(你期待的是什么?)**
-A clear and concise description of what you expected to happen.
-
-
-
-**Screenshots(截图)**
-If applicable, add screenshots to help explain your problem.
-
-
-
-**Desktop (please complete the following information):**
-
- - OS: [e.g. iOS]
- - Browser [e.g. chrome, safari]
- - Version [e.g. 22]
-
-
-
-**Smartphone (please complete the following information):**
-
- - Device: [e.g. iPhone6]
- - OS: [e.g. iOS8.1]
- - Browser [e.g. stock browser, safari]
- - Version [e.g. 22]
-
-
-
-**Additional context(附加信息)**
-Add any other context about the problem here.

+ 0 - 20
.github/ISSUE_TEMPLATE/feature_request.md

@@ -1,20 +0,0 @@
----
-name: Feature request
-about: Suggest an idea for this project
-title: ''
-labels: ''
-assignees: ''
-
----
-
-**Is your feature request related to a problem? Please describe.**
-A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
-
-**Describe the solution you'd like**
-A clear and concise description of what you want to happen.
-
-**Describe alternatives you've considered**
-A clear and concise description of any alternative solutions or features you've considered.
-
-**Additional context**
-Add any other context or screenshots about the feature request here.

+ 0 - 17
.github/ISSUE_TEMPLATE/need-help-issue.md

@@ -1,17 +0,0 @@
----
-name: Need help issue
-about: Question for use(问题求助)
-title: ''
-labels: question
-assignees: ''
-
----
-
-**Question (问题描述)**
-How to use component `s-table` paging
-
-**Describe the solution you'd like (你期待的是什么?)**
-A clear and concise description of what you want to happen.
-
-**Additional context(附加信息)**
-Add any other context or screenshots about the feature request here.

+ 0 - 48
.github/pull_request_template.md

@@ -1,48 +0,0 @@
-First of all, thank you for your contribution! 😄
-
-Pull request will be merged after one of collaborators approve.
-Please makes sure that these form are filled before submitting your pull request, thank you!
-
-
-### 这个变动的性质是
-
-- [ ] 新特性提交
-- [ ] 日常 bug 修复
-- [ ] 文档改进
-- [ ] 组件样式改进
-- [ ] 重构
-- [ ] 代码风格优化
-- [ ] 分支合并
-- [ ] 其他改动(是关于什么的改动?)
-
-### 需求背景
-
-> 1. 描述相关需求的来源。
-> 2. 要解决的问题。
-> 3. 相关的 issue 讨论链接。
-
-### 实现方案和 API(非新功能可选)
-
-> 1. 基本的解决思路和其他可选方案。
-> 2. 列出最终的 API 实现和用法。
-> 3. 涉及UI/交互变动需要有截图或 GIF。
-
-### 对用户的影响和可能的风险(非新功能可选)
-
-> 1. 这个改动对用户端是否有影响?影响的方面有哪些?
-> 2. 是否有可能隐含的 break change 和其他风险?
-
-### Changelog 描述(非新功能可选)
-
-> 1. 英文描述
-> 2. 中文描述(可选)
-
-### 请求合并前的自查清单
-
-- [ ] 文档已补充或无须补充
-- [ ] 代码演示已提供或无须提供
-- [ ] Changelog 已提供或无须提供
-
-### 后续计划(非新功能可选)
-
-> 如果这个提交后面还有相关的其他提交和跟进信息,可以写在这里。

+ 1 - 1
public/index.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>logo.png">
-    <title>Ant Design Pro</title>
+    <title>鲁泰-项目管理平台</title>
     <style>.first-loading-wrp{display:flex;justify-content:center;align-items:center;flex-direction:column;min-height:420px;height:100%}.first-loading-wrp>h1{font-size:128px}.first-loading-wrp .loading-wrp{padding:98px;display:flex;justify-content:center;align-items:center}.dot{animation:antRotate 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;font-size:32px;width:32px;height:32px;box-sizing:border-box}.dot i{width:14px;height:14px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s infinite linear alternate}.dot i:nth-child(1){top:0;left:0}.dot i:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.dot i:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.dot i:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove{to{opacity:1}}@-webkit-keyframes antSpinMove{to{opacity:1}}</style>
     <!-- require cdn assets css -->
     <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>

BIN
public/logo.png


+ 38 - 6
src/config/router.config.js

@@ -23,6 +23,12 @@ export const asyncRouterMap = [
         component: RouteView,
         meta: { title: 'menu.dashboard', keepAlive: true, icon: bxAnaalyse, permission: ['dashboard'] },
         children: [
+          {
+            path: '/dashboard/workplace',
+            name: 'Workplace',
+            component: () => import('@/views/dashboard/Workplace'),
+            meta: { title: 'menu.dashboard.workplace', keepAlive: true, permission: ['dashboard'] }
+          },
           {
             path: '/dashboard/analysis/:pageNo([1-9]\\d*)?',
             name: 'Analysis',
@@ -34,12 +40,6 @@ export const asyncRouterMap = [
             path: 'https://www.baidu.com/',
             name: 'Monitor',
             meta: { title: 'menu.dashboard.monitor', target: '_blank' }
-          },
-          {
-            path: '/dashboard/workplace',
-            name: 'Workplace',
-            component: () => import('@/views/dashboard/Workplace'),
-            meta: { title: 'menu.dashboard.workplace', keepAlive: true, permission: ['dashboard'] }
           }
         ]
       },
@@ -267,6 +267,38 @@ export const asyncRouterMap = [
             ]
           }
         ]
+      },
+
+      // 个人任务清单
+      {
+        path: '/tasks/important',
+        name: 'myday',
+        component: () => import(/* webpackChunkName: "fail" */ '@/views/task/personal/OneDayForMe'),
+        meta: { title: 'menu.exception', icon: 'warning' }
+      },
+      {
+        path: '/tasks/important',
+        name: 'important',
+        component: () => import(/* webpackChunkName: "fail" */ '@/views/task/personal/OneDayForMe'),
+        meta: { title: 'menu.exception', icon: 'warning' }
+      },
+      {
+        path: '/tasks/planned',
+        name: 'planned',
+        component: () => import(/* webpackChunkName: "fail" */ '@/views/task/personal/OneDayForMe'),
+        meta: { title: 'menu.exception', icon: 'warning' }
+      },
+      {
+        path: '/tasks/assigned_to_me',
+        name: 'assigned_to_me',
+        component: () => import(/* webpackChunkName: "fail" */ '@/views/task/personal/OneDayForMe'),
+        meta: { title: 'menu.exception', icon: 'warning' }
+      },
+      {
+        path: '/tasks/inbox',
+        name: 'inbox',
+        component: () => import(/* webpackChunkName: "fail" */ '@/views/task/personal/OneDayForMe'),
+        meta: { title: 'menu.exception', icon: 'warning' }
       }
 
       // other

+ 57 - 0
src/mock/services/user.js

@@ -844,6 +844,63 @@ const userNav = options => {
         show: false
       },
       component: 'NotificationSettings'
+    },
+
+    // 我的任务清单
+    {
+      name: 'tasks/myday',
+      parentId: 0,
+      id: 10035,
+      meta: {
+        title: '我的一天',
+        icon: 'warning',
+        show: true
+      },
+      component: 'OneDayForMe'
+    },
+    {
+      name: 'tasks/important',
+      parentId: 0,
+      id: 10036,
+      meta: {
+        title: '重要',
+        icon: 'warning',
+        show: true
+      },
+      component: 'Important'
+    },
+    {
+      name: 'tasks/planned',
+      parentId: 0,
+      id: 10037,
+      meta: {
+        title: '计划内',
+        icon: 'warning',
+        show: true
+      },
+      component: 'InsideThePlan'
+    },
+    {
+      name: 'tasks/assigned_to_me',
+      parentId: 0,
+      id: 10038,
+      meta: {
+        title: '已分配给我',
+        icon: 'warning',
+        show: true
+      },
+      component: 'AssignedToMe'
+    },
+    {
+      name: 'tasks/inbox',
+      parentId: 0,
+      id: 10039,
+      meta: {
+        title: '任务',
+        icon: 'warning',
+        show: true
+      },
+      component: 'MyTask'
     }
   ]
   const json = builder(nav)

+ 8 - 1
src/router/generator-routers.js

@@ -50,7 +50,14 @@ const constantRouterComponents = {
   SecuritySettings: () => import('@/views/account/settings/Security'),
   CustomSettings: () => import('@/views/account/settings/Custom'),
   BindingSettings: () => import('@/views/account/settings/Binding'),
-  NotificationSettings: () => import('@/views/account/settings/Notification')
+  NotificationSettings: () => import('@/views/account/settings/Notification'),
+
+  // 个人任务清单
+  OneDayForMe: () => import('@/views/task/personal/OneDayForMe'),
+  Important: () => import('@/views/task/personal/Important'),
+  InsideThePlan: () => import('@/views/task/personal/InsideThePlan'),
+  AssignedToMe: () => import('@/views/task/personal/AssignedToMe'),
+  MyTask: () => import('@/views/task/personal/MyTask')
 
   // 'TestWork': () => import(/* webpackChunkName: "TestWork" */ '@/views/dashboard/TestWork')
 }

+ 26 - 0
src/views/task/personal/AssignedToMe.vue

@@ -0,0 +1,26 @@
+<template>
+    <div>
+      已分配给我
+    </div>
+</template>
+
+<script>
+
+export default {
+  name: '',
+  components: {
+  },
+  data () {
+    return {
+    }
+  },
+  mounted () {
+  },
+  methods: {
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 26 - 0
src/views/task/personal/Important.vue

@@ -0,0 +1,26 @@
+<template>
+    <div>
+       重要任务
+    </div>
+</template>
+
+<script>
+
+export default {
+  name: '',
+  components: {
+  },
+  data () {
+    return {
+    }
+  },
+  mounted () {
+  },
+  methods: {
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 26 - 0
src/views/task/personal/InsideThePlan.vue

@@ -0,0 +1,26 @@
+<template>
+    <div>
+       计划内
+    </div>
+</template>
+
+<script>
+
+export default {
+  name: '',
+  components: {
+  },
+  data () {
+    return {
+    }
+  },
+  mounted () {
+  },
+  methods: {
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 26 - 0
src/views/task/personal/MyTask.vue

@@ -0,0 +1,26 @@
+<template>
+    <div>
+       我的任务
+    </div>
+</template>
+
+<script>
+
+export default {
+  name: '',
+  components: {
+  },
+  data () {
+    return {
+    }
+  },
+  mounted () {
+  },
+  methods: {
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 26 - 0
src/views/task/personal/OneDayForMe.vue

@@ -0,0 +1,26 @@
+<template>
+    <div>
+       我的一天
+    </div>
+</template>
+
+<script>
+
+export default {
+  name: '',
+  components: {
+  },
+  data () {
+    return {
+    }
+  },
+  mounted () {
+  },
+  methods: {
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 0 - 0
src/views/task/project/MonthlyPlan.vue


+ 0 - 0
src/views/task/project/WeeklyPlan.vue


+ 1 - 1
vue.config.js

@@ -114,7 +114,7 @@ const vueConfig = {
 
   // disable source map in production
   productionSourceMap: false,
-  lintOnSave: undefined,
+  lintOnSave: false,
   // babel-loader no-ignore node_modules/*
   transpileDependencies: []
 }