Explorar o código

Merge branch 'master' of http://git.dayaedu.com/molingzhide/dy-admin-manager

lex-xin %!s(int64=5) %!d(string=hai) anos
pai
achega
e3c9156935

+ 1 - 1
package.json

@@ -17,7 +17,7 @@
   "dependencies": {
     "axios": "0.18.1",
     "default-passive-events": "^1.0.10",
-    "element-ui": "2.7.2",
+    "element-ui": "^2.12.0",
     "js-cookie": "2.2.0",
     "normalize.css": "7.0.0",
     "nprogress": "0.2.0",

+ 3 - 2
src/api/user.js

@@ -17,9 +17,10 @@ export function getInfo () {
   })
 }
 // 登出
-export function logout () {
+export function logout (data) {
   return request({
     url: '/api-auth/exit',
-    method: 'post'
+    method: 'post',
+    data: qs.stringify(data)
   })
 }

+ 7 - 1
src/router/index.js

@@ -88,7 +88,13 @@ export const constantRoutes = [
         name: 'teamBuild',
         component: () => import('@/views/teamBuild/index'),
         meta: { title: '创建乐团' }
-      }
+      },
+      {
+        path: 'sigupList',
+        name: 'sigupList',
+        component: () => import('@/views/teamBuild/signupList'),
+        meta: { title: '乐团报名' }
+      },
     ]
   },
 

+ 185 - 2
src/views/journal/journalItem.vue

@@ -30,7 +30,54 @@
         <p class='msg'>那家纯四季花城教学总结爱喝酒收到货就暗示的看见爱上大家超级好吃就撒客户看见爱上当看见那家纯四季花城教学总结爱喝酒收到货就暗示的看见爱上大家超级好吃就撒客户看见爱上当看见</p>
       </div>
     </div>
-    <div class="right"></div>
+    <div class="right">
+      <div class="rightWrap">
+        <img src="@/assets/images/base/placehorder-icon.png"
+             class="header"
+             alt="">
+        <div class="info">
+          <h2>黄老师<span>【185****2109】</span></h2>
+          <p class="subMsg">发至 <span class='san'></span> <span style="margin-left:30px">我</span></p>
+          <div class="textWrap">
+            <p>审批事项: 合班</p>
+            <p>开始时间: 2019-09-01 09:00</p>
+            <p>结束时间: 2019-09-01 09:00</p>
+            <p>备注:班人数较少较少班人数较少较少班人数较少较少班人数较少较少班人数较少较少班人数较少较少班人数较少较少班人数较少较少</p>
+          </div>
+          <div class="timeline">
+            <el-timeline>
+              <el-timeline-item placement='center'>
+                <div class='timeMsg'>
+                  <p class="name">我</p>
+                  <p class='status'>审批中</p>
+                </div>
+                <div slot='dot'>
+                  <img class='dot'
+                       src="@/assets/images/base/clock.png"
+                       alt="">
+                </div>
+              </el-timeline-item>
+              <el-timeline-item placement='center'>
+                <div class='timeMsg'>
+                  <p class="name">我</p>
+                  <p class='status'>审批中</p>
+                </div>
+                <div slot='dot'>
+                  <img class='dot'
+                       src="@/assets/images/base/clock.png"
+                       alt="">
+                </div>
+              </el-timeline-item>
+            </el-timeline>
+          </div>
+
+        </div>
+      </div>
+      <div class="infoFoot">
+        <div class="noBtn">拒绝</div>
+        <div class="yesBtn">同意</div>
+      </div>
+    </div>
   </div>
 </template>
 <script>
@@ -44,7 +91,10 @@ export default {
         Htrashicon: require('@/assets/images/base/trashicon-h.png'),
         boxicon: require('@/assets/images/base/boxicon.png'),
         Hboxicon: require('@/assets/images/base/boxicon-h.png')
-      }
+      },
+      activities: [{
+
+      }]
     }
   }
 }
@@ -157,5 +207,138 @@ export default {
       }
     }
   }
+  .right {
+    display: flex;
+    flex-direction: column;
+    justify-content: space-between;
+    border: 1px solid #e4e8eb;
+    margin-left: 25px;
+    position: relative;
+    overflow: auto;
+    .rightWrap {
+      // overflow: auto;
+      padding: 18px 24px;
+      display: flex;
+      flex-direction: row;
+      justify-content: flex-start;
+      width: 570px;
+      box-sizing: border-box;
+      .header {
+        width: 30px;
+        height: 30px;
+        position: relative;
+        top: 7px;
+        border-radius: 50%;
+        margin-right: 12px;
+      }
+      .info {
+        position: relative;
+        h2 {
+          color: #212223;
+          font-size: 16px;
+          margin-bottom: 0px;
+          span {
+            font-size: 12px;
+            color: #444;
+          }
+        }
+        .subMsg {
+          position: relative;
+          font-size: 12px;
+          color: #444;
+          margin-bottom: 12px;
+          .san {
+            // margin-left: 110px;
+            float: left;
+            position: absolute;
+            top: 0px;
+            width: 0;
+            height: 0;
+            border-width: 5px;
+            border-style: solid;
+            border-color: transparent #909191 transparent transparent;
+            transform: rotate(180deg); /*顺时针旋转90°*/
+            margin: 0 8px;
+          }
+        }
+        .textWrap {
+          width: 316px;
+          line-height: 21px;
+          font-size: 14px;
+          color: #212223;
+          margin: 12px 0 34px;
+        }
+        .dot {
+          width: 20px;
+          height: 20px;
+        }
+        .timeMsg {
+          position: relative;
+          top: 5px;
+          margin-left: 20px;
+          .name {
+            font-size: #444;
+            font-size: 16px;
+            margin-bottom: 3px;
+            font-weight: 600;
+          }
+          .status {
+            font-size: 14px;
+            color: #62a070;
+          }
+          .status.waring {
+            color: #f97215;
+          }
+          .status.end {
+            color: #aaaaaa;
+          }
+        }
+      }
+    }
+    .infoFoot {
+      min-height: 60px;
+      height: 60px;
+      line-height: 60px;
+      border-top: 1px solid #e4e8eb;
+      width: 100%;
+      display: flex;
+      flex-direction: row;
+      justify-content: flex-start;
+      align-items: center;
+      .noBtn {
+        cursor: pointer;
+        width: 100px;
+        height: 32px;
+        line-height: 32px;
+        color: #444;
+        border-radius: 3px;
+        border: 1px solid rgba(228, 232, 235, 1);
+        text-align: center;
+        margin-left: 70px;
+      }
+      .yesBtn {
+        cursor: pointer;
+        margin-left: 15px;
+        text-align: center;
+        width: 100px;
+        height: 32px;
+        line-height: 32px;
+        background: rgba(249, 114, 21, 1);
+        border-radius: 3px;
+        color: #fff;
+      }
+      // width: 570px;
+    }
+  }
+}
+.el-timeline-item__dot {
+  width: 20px;
+  height: 20px;
+}
+.el-timeline-item {
+  min-height: 80px !important;
+}
+.el-timeline-item__tail {
+  left: 9px !important;
 }
 </style>

+ 1 - 1
src/views/login/index.vue

@@ -140,7 +140,7 @@ export default {
             .then(() => {
               console.log('登录成功');
               this.$router.push({ path: this.redirect || "/" });
-              console.log(store.getters.organ);
+
             })
             .catch(() => {
             });

+ 38 - 15
src/views/teamBuild/components/teamSoundMoney.vue

@@ -68,22 +68,25 @@
                          width="180">
           <template slot-scope="scope">
             <div>
-              <div class="chiose"
-                   v-if='scope.row.type == 1'
-                   v-popover:popover>选择</div>
+              <!-- <div class="chiose"
+                  >选择</div> -->
               <p v-if='scope.row.type == 2'>{{scope.row.fangshi}}</p>
-              <el-popover @show="handleStatus(scope)"
-                          placement="bottom"
-                          v-model="visible2">
-                <el-input placeholder="啦啦啦"
-                          v-model="scope.row.fangshi"></el-input>
+              <el-popover placement="bottom"
+                          v-model="scope.row.visible"
+                          v-if='scope.row.type == 1'>
+                <div slot='reference'
+                     class='chiose'>
+                  操作
+                </div>
+                <el-input v-model="scope.row.fangshi"></el-input>
+                1111
                 <div style="text-align: right; margin: 0">
                   <el-button size="mini"
                              type="text"
-                             @click="visible2 = false">取消</el-button>
+                             @click="scope.row.visible = false">取消</el-button>
                   <el-button type="primary"
                              size="mini"
-                             @click="visible2 = false">确定</el-button>
+                             @click="scope.row.visible  = false">确定</el-button>
                 </div>
               </el-popover>
             </div>
@@ -112,9 +115,14 @@
       </el-table>
       <div class="floor">
         <div class="remove">删除</div>
-        <div class='add'>添加</div>
+        <div class='add'
+             @click="dialogTableVisible = true">添加</div>
       </div>
     </div>
+    <el-dialog title="声部选择"
+               :visible.sync="dialogTableVisible">
+
+    </el-dialog>
   </div>
 </template>
 <script>
@@ -122,6 +130,7 @@ import store from '@/store'
 export default {
   data () {
     return {
+      dialogTableVisible: true,
       tableList: [{
         sound: '长笛',
         jihua: '10',
@@ -130,19 +139,20 @@ export default {
         fangshi: 2,
         jiaopu: 'jiaopu1',
         type: 1,
-        id: 1
+        id: 1,
+        visible: false
       },
       {
         sound: '短笛',
         jihua: '10',
         yuji: '10',
         zhonglei: [],
-        fangshi: 1,
+        fangshi: 9,
         jiaopu: 'jiaopu1',
         type: 1,
-        id: 1
+        id: 1,
+        visible: false
       }],
-      visible2: false
     }
   },
   methods: {
@@ -170,6 +180,17 @@ export default {
 .el-select__tags .el-tag__close.el-icon-close {
   display: inline-block;
 }
+// .el-dialog__header {
+//   padding: 0 32px !important;
+//   height: 40px;
+//   line-height: 40px;
+//   background-color: #14928a;
+
+//   .el-dialog__title {
+//     color: #fff;
+//     font-size: 16px;
+//   }
+// }
 .sound-container {
   .topMsg {
     display: flex;
@@ -190,6 +211,8 @@ export default {
     font-size: 14px;
     color: #444;
     align-items: center;
+    position: relative;
+    z-index: 1;
     .remove {
       width: 98px;
       height: 32px;

+ 142 - 0
src/views/teamBuild/signupList.vue

@@ -0,0 +1,142 @@
+<template>
+  <div class="sigup-container">
+    <div class="topWrap">
+      <div>
+        <h2>
+          <div class="squrt"></div>
+          xxx乐团报名详情
+        </h2>
+        <div class="btnList">
+          <div class='newBand close'>停止乐团</div>
+          <div class='newBand'>开始缴费</div>
+        </div>
+      </div>
+      <p class='msg'> <img src="@/assets/images/base/clock.png"
+             alt=""> 报名中</p>
+
+    </div>
+    <div class="sigup-core">
+      <div class="left">
+        <el-table :data='leftList'
+                  :header-cell-style="{background:'#EDEEF0',color:'#444'}">
+          >
+          <el-table-column label="
+                  乐团声部"
+                           align='center'>
+          </el-table-column>
+          <el-table-column label="计划招生"
+                           align='center'>
+          </el-table-column>
+          <el-table-column label="已报名"
+                           align='center'>
+          </el-table-column>
+        </el-table>
+      </div>
+      <div class="right">
+
+      </div>
+    </div>
+
+  </div>
+</template>
+<script>
+export default {
+  data () {
+    return {
+      leftList: []
+    }
+  }
+}
+</script>
+<style lang="scss">
+.sigup-container {
+  margin-left: 12px;
+  .topWrap {
+    padding: 18px 58px;
+    height: 136px;
+    background-color: #fff;
+    display: flex;
+    flex-direction: row;
+    justify-content: space-between;
+    .msg {
+      text-align: right;
+      color: #f97215;
+      font-size: 32px;
+      font-weight: bold;
+      padding-top: 30px;
+      box-sizing: border-box;
+      img {
+        width: 36px;
+        height: 36px;
+        position: relative;
+        top: 5px;
+        margin-right: 8px;
+      }
+    }
+    h2 {
+      height: 48px;
+      line-height: 48px;
+      position: relative;
+      // padding-left: 30px;
+      font-size: 32px;
+      font-weight: 600;
+      margin-bottom: 10px;
+      display: flex;
+      flex-direction: row;
+      justify-content: flex-start;
+      align-items: center;
+      .term {
+        height: 32px;
+        line-height: 32px;
+        border-radius: 24px;
+        width: 100px;
+        color: #14928a;
+        border: 1px solid rgba(20, 146, 138, 1);
+        font-size: 14px;
+        text-align: center;
+        margin-right: 12px;
+        &:nth-child(1) {
+          margin-left: 47px;
+        }
+      }
+      .term.active {
+        color: #fff;
+        background-color: #14928a;
+      }
+      .squrt {
+        position: absolute;
+        left: -25px;
+        top: 8px;
+        height: 34px;
+        width: 8px;
+        background-color: #14928a;
+      }
+    }
+    .btnList {
+      display: flex;
+      flex-direction: row;
+      justify-content: flex-start;
+      align-items: center;
+      div {
+        margin-right: 15px;
+      }
+    }
+    .newBand.close {
+      background-color: #777;
+      border: 1px solid #777;
+    }
+  }
+  .sigup-core {
+    margin-top: 12px;
+    display: flex;
+    flex-direction: row;
+    justify-content: flex-start;
+    .left {
+      width: 304px;
+      background-color: #fff;
+      height: 80vh;
+      overflow: auto;
+    }
+  }
+}
+</style>