Browse Source

【我的申请】操作基本完成

liangyan0105 3 years ago
parent
commit
f4acebd2e7

+ 104 - 57
src/assets/less/overwrite.css

@@ -1,23 +1,22 @@
-.main {
-  min-height: 750px;
-}
-.footer {
-  text-align: right;
-  background-color: #092834;
-  color: #f94f46;
-  letter-spacing: 1px;
-}
 a {
   text-decoration: none;
-  color: #969696;
   /* 取消链接高亮(移动端)  */
+  color: #969696;
   -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
 }
-/* 图片自适应 */
+i {
+  font-style: normal;
+}
+.fl {
+  float: left;
+}
+.fr {
+  float: right;
+}
+/* 图片自适应  解决图片底部对齐问题 */
 img {
   width: 100%;
-  display: block;
-  /*解决图片底部对齐问题*/
+  display: inline-block;
 }
 /*清除浮动*/
 .clearfix:before,
@@ -28,71 +27,119 @@ img {
 .clearfix:after {
   clear: both;
 }
-.pTitle img {
-  background-color: red;
-  display: inline-block;
-  margin-right: 4px;
-  border-radius: 8px;
-  margin: 0 0 5px 3px;
+.content {
+  width: 100%;
+  height: 100%;
+  background-color: rgba(247, 224, 212, 0.4);
 }
-.fl {
-  float: left;
+.content .footer {
+  text-align: right;
+  background-color: #092834;
+  color: #f94f46;
+  letter-spacing: 1px;
 }
-.fr {
-  float: right;
+.content .main {
+  min-height: 780px;
 }
- /deep/ .ant-tabs-nav {
-  color: #616161;
+.content .main .Header {
+  padding: 0;
+  color: white;
+  background-color: #347b98;
+  border-bottom-right-radius: 16px;
+  border-bottom-left-radius: 16px;
+  letter-spacing: 1px;
 }
- /deep/ .ant-tabs-bar {
-  border: none;
-  padding: -10px;
+.content .main .Header span {
+  font-size: 20px;
+  font-weight: 700;
+  margin-left: 34%;
+  margin-top: 4px;
+  color: white;
 }
- /deep/ .ant-tabs-ink-bar {
-  height: 3px;
+.content .main .todoPage .cardTask {
+  width: 100%;
+  border-radius: 20px;
+  text-align: left;
+  margin-bottom: 30px;
+  border: none;
+  background-color: rgba(247, 224, 212, 0.8);
 }
- /deep/ .ant-tabs-nav .ant-tabs-tab-active {
+.content .main .todoPage .cardTask .pTitle {
+  width: 100%;
+  padding: 8px 0;
+  font-size: 18px;
   font-weight: 700;
+  color: #092834;
+  box-shadow: 2px 2px 20px 6px rgba(150, 147, 147, 0.2) inset;
+  border-radius: 10px;
+  padding-left: 6px;
 }
- /deep/ .ant-tabs-nav .ant-tabs-tab-active {
-  color: #fc600a;
-  font-weight: 700;
+.content .main .todoPage .cardTask .pTitle span {
+  display: inline-block;
+  width: 28px;
+  height: 28px;
+  line-height: 28px;
+  margin-right: 6px;
+  border-radius: 10px;
+  vertical-align: text-bottom;
 }
- /deep/ .ant-tabs-ink-bar {
-  background-color: #fc600a;
+.content .main .todoPage .cardTask .pTitle span img {
+  display: block !important;
+  border-radius: 10px;
 }
-.hearderLetter {
-  letter-spacing: 1px;
+.content .main .todoPage .cardTask .operation .operationImg {
+  display: inline-block;
+  height: 28px;
+  width: 28px;
 }
-.bellStyle {
-  color: #1489b8;
+.content .main .todoPage .cardTask .operation p {
+  font-size: 16px;
+  font-weight: 700;
+  color: #092834;
 }
-.cardIcon {
-  font-size: 18px;
+.content .main .todoPage .cardTask .operation .itemBtn {
   font-weight: 700;
-  margin-right: 10px;
-  color: #1489b8;
-  background-color: rgba(79, 92, 82, 0.1);
-  padding: 8px;
-  border-radius: 50%;
 }
- /deep/ .ant-card-head {
+.content .main .todoPage .operation /deep/ .ant-btn {
+  padding: 0;
+  line-height: 0;
+  border: none !important;
+  border-radius: 999em;
+  padding: 24px 20px;
+}
+.content .main .todoPage /deep/ .ant-layout-header {
+  padding: 0;
+  margin: 0;
+  padding: 0 24px;
+}
+.content .main .todoPage /deep/ .ant-card-head {
   color: #092834;
   font-weight: 700;
   position: relative;
   letter-spacing: 1px;
 }
- /deep/ .ant-layout-header {
+.content .main .todoPage /deep/ .ant-tabs-nav-container {
+  margin-top: 10px;
+  display: flex;
+  justify-content: space-around;
+}
+.content .main .todoPage /deep/ .ant-tabs-nav .ant-tabs-tab {
   padding: 0;
   margin: 0;
-  padding: 0 24px;
+  padding: 12px 34px;
+  color: #616161;
+  background-color: rgba(228, 224, 224, 0.5);
+  border-radius: 999px;
 }
-.pTitle {
-  height: 38px;
-  line-height: 38px;
-  font-size: 18px;
+.content .main .todoPage /deep/ .ant-tabs-nav .ant-tabs-tab-active {
   font-weight: 700;
-  color: #092834;
-  box-shadow: 2px 2px 10px 6px rgba(49, 48, 48, 0.1) inset;
-  border-radius: 10px;
+  background: #1489b8;
+  background: linear-gradient(0deg, rgba(252, 96, 10, 0.5) 0%, rgba(20, 137, 184, 0.5) 100%);
+}
+.content .main .todoPage /deep/ .ant-tabs-bar {
+  border: none;
+  padding: -10px;
+}
+.content .main .todoPage /deep/ .ant-tabs-ink-bar {
+  height: 0;
 }

+ 149 - 90
src/assets/less/overwrite.less

@@ -1,29 +1,26 @@
-// 覆盖 ant-design 库默认样式  公共样式
+// 全局样式
+a {
+  text-decoration: none; /* 取消链接高亮(移动端)  */
+  color: #969696;
+  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
 
-//所有内容设置最小高度
-.main {
-  min-height: 750px;
+i {
+  font-style: normal;
 }
 
-//todo页面底部 logo定位
-.footer {
-  text-align: right;
-  background-color: #092834;
-  color: #f94f46;
-  letter-spacing: 1px;
-  // font-size: 12px;
-  // padding: 10px 10px 10px 0;
+.fl {
+  float: left;
 }
-a {
-  text-decoration: none;
-  color: #969696;
-  /* 取消链接高亮(移动端)  */
-  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+
+.fr {
+  float: right;
 }
-/* 图片自适应 */
+
+/* 图片自适应  解决图片底部对齐问题 */
 img {
   width: 100%;
-  display: block; /*解决图片底部对齐问题*/
+  display: inline-block;
 }
 
 /*清除浮动*/
@@ -37,82 +34,144 @@ img {
   clear: both;
 }
 
-.pTitle img {
-  background-color: red;
-  display: inline-block;
-  margin-right: 4px;
-  border-radius: 8px;
-  margin: 0 0 5px 3px;
-}
+// 公共样式
+.content {
+  width: 100%;
+  height: 100%;
+  background-color: rgba(247, 224, 212, 0.4);
 
-.fl {
-  float: left;
-}
+  .footer {
+    text-align: right;
+    background-color: #092834;
+    color: #f94f46;
+    letter-spacing: 1px;
+  }
+  .main {
+    min-height: 780px; //所有内容设置最小高度
+    //分页头部公共
+    .Header {
+      padding: 0;
+      color: white;
+      background-color: #347b98;
+      // box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
+      border-bottom-right-radius: 16px;
+      border-bottom-left-radius: 16px;
+      letter-spacing: 1px;
+      span {
+        font-size: 20px;
+        font-weight: 700;
+        margin-left: 34%;
+        margin-top: 4px;
+        color: white;
+      }
+    }
 
-.fr {
-  float: right;
-}
-/deep/.ant-tabs-nav {
-  color: #616161;
-}
+    // todoBody 下
+    .todoPage {
+      // text-align: left;
 
-/deep/.ant-tabs-bar {
-  border: none;
-  padding: -10px;
-}
-/deep/.ant-tabs-ink-bar {
-  height: 3px;
-}
-/deep/.ant-tabs-nav .ant-tabs-tab-active {
-  font-weight: 700;
-}
-/deep/.ant-tabs-nav .ant-tabs-tab-active {
-  color: #fc600a;
-  font-weight: 700;
-}
-/deep/.ant-tabs-ink-bar {
-  background-color: #fc600a;
-}
-//页面头部字间距
-.hearderLetter {
-  letter-spacing: 1px;
-}
+      //每个任务卡
+      .cardTask {
+        // border: 1px dashed #cccc;
+        width: 100%;
+        border-radius: 20px;
+        text-align: left;
+        margin-bottom: 30px;
+        border: none;
+        background-color: rgba(247, 224, 212, 0.8);
+        // card 标题
+        .pTitle {
+          width: 100%;
+          padding: 8px 0;
+          font-size: 18px;
+          font-weight: 700;
+          color: #092834;
+          box-shadow: 2px 2px 20px 6px rgba(150, 147, 147, 0.2) inset;
+          border-radius: 10px;
+          padding-left: 6px;
+          // 图 外盒子
+          span {
+            display: inline-block;
+            width: 28px;
+            height: 28px;
+            line-height: 28px;
+            margin-right: 6px;
+            border-radius: 10px;
+            vertical-align: text-bottom;
+            img {
+              display: block !important;
+              border-radius: 10px;
+            }
+          }
+        }
+        //操作 样式
+        .operation {
+          .operationImg {
+            display: inline-block;
+            height: 28px;
+            width: 28px;
+          }
+          p {
+            font-size: 16px;
+            font-weight: 700;
+            color: #092834;
+          }
+          .itemBtn {
+            font-weight: 700;
+          }
+        }
+      }
+      // 操作按钮样式
+      .operation /deep/.ant-btn {
+        padding: 0;
+        line-height: 0;
+        border: none !important;
+        border-radius: 999em; //胶囊写法
+        padding: 24px 20px;
+      }
 
-//login页面铃铛
-.bellStyle {
-  color: #1489b8;
-}
+      /deep/.ant-layout-header {
+        padding: 0;
+        margin: 0;
+        padding: 0 24px;
+      }
 
+      /deep/.ant-card-head {
+        color: #092834;
+        font-weight: 700;
+        position: relative;
+        letter-spacing: 1px;
+      }
 
-//card 的小图
-.cardIcon {
-  font-size: 18px;
-  font-weight: 700;
-  margin-right: 10px;
-  color: #1489b8;
-  background-color: rgba(79, 92, 82, 0.1);
-  padding: 8px;
-  border-radius: 50%;
-}
+      // 3个tabs ===================================
+      /deep/.ant-tabs-nav-container {
+        margin-top: 10px;
+        display: flex;
+        justify-content: space-around;
+      }
+      /deep/.ant-tabs-nav .ant-tabs-tab {
+        padding: 0;
+        margin: 0;
+        padding: 12px 34px;
+        color: #616161;
+        background-color: rgba(228, 224, 224, 0.5);
+        border-radius: 999px;
+      }
 
-/deep/.ant-card-head {
-  color: #092834;
-  font-weight: 700;
-  position: relative;
-  letter-spacing: 1px;
-}
-/deep/.ant-layout-header {
-  padding: 0;
-  margin: 0;
-  padding: 0 24px;
-}
-// 每个 card 任务的标题
-.pTitle {
-  height: 38px;
-  line-height: 38px;
-  font-size: 18px;
-  font-weight: 700;
-  color: #092834;
-  box-shadow: 2px 2px 10px 6px rgba(49, 48, 48, 0.1) inset;
-  border-radius: 10px;
+      /deep/.ant-tabs-nav .ant-tabs-tab-active {
+        font-weight: 700;
+        background: rgb(20, 137, 184);
+        background: linear-gradient(0deg, rgba(252, 96, 10, 0.5) 0%, rgba(20, 137, 184, 0.5) 100%);
+      }
+
+      /deep/.ant-tabs-bar {
+        border: none;
+        padding: -10px;
+      }
+
+      /deep/.ant-tabs-ink-bar {
+        height: 0;
+      }
+    }
+  }
 }

BIN
src/assets/nothing02.png


+ 0 - 0
src/assets/todoImg02.png → src/assets/todo.png


BIN
src/assets/todoImg.png


+ 1 - 1
src/views/activiti/applyList.vue

@@ -693,7 +693,7 @@ export default {
       })
     },
 
-    //
+    // 撤回
     cancel(v) {
       this.cancelForm.id = v.id
       this.cancelForm.procInstId = v.procInstId

+ 62 - 36
src/views/user/Login.vue

@@ -5,9 +5,9 @@
       <a-layout-header class="todoBox">
         <div class="left fl clearfix">
           <!-- 待办 -->
-          <span v-if="todoList.length > 0">
-            <img src="@assets/todoImg02.png" alt="?????" />
-            <div class="info" style="color:white;top:1%;left:24%;">
+          <span v-if="isshow == '1'">
+            <img src="@assets/todo.png" alt="?????" />
+            <div class="info" style="color:white; top:3%; left:24%;">
               <span>我的待办</span>
               <a-badge class="numTips" style="backgroundColor:#f94f46;">
                 {{ todoList.length }}
@@ -15,7 +15,7 @@
             </div>
           </span>
           <!-- 无 待办 -->
-          <span v-if="todoList.length == 0">
+          <span v-if="isshow == '2'">
             <img src="@assets/nothing.png" alt="?????" />
             <div class="info" style="top:2%; left:33%;">
               <span style="color:white;">暂无待办</span>
@@ -44,7 +44,10 @@
             :key="index.id"
             @click.prevent="aClick(item)"
           >
-            <img :src="item.iconAddress" class="activeIcon" />
+            <span>
+              <img :src="item.iconAddress" />
+            </span>
+
             <p>{{ item.name }}</p>
           </a>
         </div>
@@ -100,7 +103,8 @@ export default {
         disabled: false,
         formComponent: null,
         isNew: false
-      }
+      },
+      isshow: '0'
     }
   },
   // 页面打开时,默认已登录
@@ -155,6 +159,11 @@ export default {
         if (res.success) {
           this.todoList = res.result || []
           console.log('登录页待办数量:', this.todoList.length)
+          if (this.todoList && this.todoList.length > 0) {
+            this.isshow = '1'
+          } else {
+            this.isshow = '2'
+          }
         }
       }),
         // 已办列表
@@ -162,7 +171,7 @@ export default {
           this.loading = false
           if (res.success) {
             this.doneList = res.result || []
-            console.log('登录页渲染已办列表', this.doneList.length)
+            console.log('已渲染到已办数目', this.doneList.length)
           } else {
             this.$message.error(res.message)
           }
@@ -176,6 +185,8 @@ export default {
           var result = res.result || []
           if (result.length > 0) {
             this.activeKeyAll = result
+            // this.activeKeyAll.push.apply(this.activeKeyAll,result);
+            console.log(this.activeKeyAll)
             console.log('OA 4个按钮', result)
           }
         }
@@ -226,20 +237,27 @@ export default {
 /deep/.ant-card-body {
   padding: 0 24px;
 }
+/deep/.ant-layout-header {
+  line-height: 0;
+}
+/deep/.ant-card-head-title {
+  font-size: 18px;
+}
 .content {
   width: 100%;
   height: 100%;
   background-color: rgba(#f7e0d4);
   .main {
-    min-height: 780px;
-    //上面蓝盒子
+    //头部 蓝盒子
     .todoBox {
       padding: 18px;
       height: 180px;
       width: 100%;
       background-color: #347b98;
       box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.1), 0 6px 20px 1px rgba(0, 0, 0, 0.19);
-      margin-bottom: 20px;
+      margin-bottom: 30px;
+      border-bottom-right-radius: 18px;
+      border-bottom-left-radius: 18px;
       // 待办小黑板
       .left {
         height: 100%;
@@ -270,8 +288,9 @@ export default {
 
       // 按钮
       .right {
+        line-height: 30px;
         margin: 30px 8px 0 0;
-        padding: 0 24px;
+        padding: 12px 24px;
         background-color: #f7e0d4;
         border-radius: 10px;
         letter-spacing: 1px;
@@ -280,41 +299,48 @@ export default {
         .moreIcon {
           margin: 0;
           padding: 0;
-          font-size: 14px;
+          font-size: 16px;
           color: #1489b8;
           margin-top: 10%;
         }
         // 文字
         span {
-          font-size: 14px;
+          font-size: 16px;
           color: #092834;
+          font-weight: 700;
         }
       }
     }
-  }
-}
 
-// OA 工作台
-.oa {
-  display: flex;
-  flex-flow: row wrap;
-  justify-content: space-between;
-  text-align: center;
-  padding: 0 30px;
-  // background-color: rgb(219, 116, 116);
-  //四个按钮
-  .oaItem {
-    // background-color: orange;
-    padding: 50px;
-    width: calc((100% - 40px) / 2);
-    margin: 14px 0;
-    color: #092834;
-    border-radius: 10px;
-    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
-    p {
-      color: #092834;
-      margin-bottom: 0px;
-      margin-top: 10px;
+    // OA 工作台
+    .oa {
+      display: flex;
+      flex-flow: row wrap;
+      justify-content: space-between;
+      text-align: center;
+      padding: 40px;
+      //四个按钮
+      .oaItem {
+        width: calc((100% - 70px) / 2);
+        color: #092834;
+        border-radius: 10px;
+        margin-bottom: 70px;
+        box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
+
+        // 图
+        span {
+          display: block;
+          width: 60px;
+          height: 60px;
+          margin: auto;
+          margin-top: 20px;
+        }
+        // 文字
+        p {
+          margin-top: 10px;
+          color: #092834;
+        }
+      }
     }
   }
 }

+ 200 - 144
src/views/user/Todo.vue

@@ -1,37 +1,27 @@
 <template>
   <div class="content">
     <div class="main">
-      <a-layout-header class="todoHeader">
+      <a-layout-header class="Header">
         <a-icon type="left" @click="$router.go(-1)" style="fontSize:24px;color:white;marginLeft:2%;" />
-        <span
-          style="fontSize:20px;
-          fontWeight:700;
-          marginLeft:34%;
-          marginTop:4px;
-          color:white;"
-        >
-          待办事项
-        </span>
+        <span>我的事项</span>
       </a-layout-header>
 
       <!-- tabs 部分 -->
-      <a-layout-content>
-        <a-tabs default-active-key="wait" @change="callback" style="text-align: center;" className="todoTabs">
+      <a-layout-content class="todoBody">
+        <a-tabs default-active-key="wait" @change="callback" class="todoPage">
           <!-- 我的申请 -->
-          <a-tab-pane key="apply" tab="我的申请" class="apply">
+          <a-tab-pane key="apply" tab="申请" class="apply">
             <div v-for="item in applyList" :key="item.id">
-              <a-card
-                style="width: 100%;
-                border-radius:20px;
-                text-align:left;
-                marginBottom:20px;
-                border:none;
-                background-color:rgba(247, 224, 212,.8);"
-              >
+              <a-card class="cardTask">
                 <p class="pTitle">
-                  <img src="@assets/look.gif" width="30px;"/>
-                  {{ item.processName }}
+                  <span>
+                    <img src="@assets/look.gif" />
+                  </span>
+                  <i>
+                    {{ item.processName }}
+                  </i>
                 </p>
+
                 <p>当前审批环节:{{ item.currTaskName }}</p>
                 <p>创建时间:{{ item.createTime }}</p>
 
@@ -79,30 +69,108 @@
                 <p style="float:right;">发起人:{{ item.createBy }}</p>
 
                 <a-divider style="background:rgba(128, 128, 128,.1);"></a-divider>
+
+                <!-- 操作 -->
+                <div class="operation">
+                  <p>
+                    <span class="operationImg">
+                      <img src="@assets/down.png" />
+                    </span>
+                    操作
+                  </p>
+
+                  <!--  -->
+                  <div class="btns">
+                    <!-- 处理中   渲染的按钮 -->
+                    <span v-if="item.status == 1" class="ingBtns">
+                      <a-button
+                        class="itemBtn"
+                        ghost
+                        @click="cancel(item)"
+                        style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.9);
+                      color:red;"
+                      >
+                        撤回
+                      </a-button>
+                      <a-button
+                        class="itemBtn"
+                        ghost
+                        @click="detail(item)"
+                        style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
+                      color:orange;"
+                      >
+                        进度
+                      </a-button>
+
+                      <a-button
+                        class="itemBtn"
+                        ghost
+                        @click="detail(item)"
+                        style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
+                      color:#4e73b9;"
+                      >
+                        详情
+                      </a-button>
+                    </span>
+
+                    <!-- 驳回 状态  渲染的按钮 -->
+                    <span v-if="item.status == 2 || item.status == 3" class="overBtns">
+                      <a-button
+                        class="itemBtn"
+                        ghost
+                        @click="detail(item)"
+                        style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
+                      color:rgb(80, 95, 102);"
+                      >
+                        重新申请
+                      </a-button>
+                      <a-button
+                        class="itemBtn"
+                        ghost
+                        @click="detail(item)"
+                        style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
+                      color:#4e73b9;"
+                      >
+                        编辑
+                      </a-button>
+
+                      <a-button
+                        class="itemBtn"
+                        ghost
+                        @click="detail(item)"
+                        style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
+                      color:gray;"
+                      >
+                        历史
+                      </a-button>
+
+                      <a-button
+                        class="itemBtn"
+                        ghost
+                        @click="detail(item)"
+                        style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
+                      color:red;"
+                      >
+                        删除
+                      </a-button>
+                    </span>
+                  </div>
+                </div>
               </a-card>
             </div>
           </a-tab-pane>
 
           <!-- 我的待办 -->
-          <a-tab-pane key="wait" tab="我的待办" force-render class="wait">
+          <a-tab-pane key="wait" tab="待办" force-render class="wait">
             <div v-for="item in todoList" :key="item.id">
-              <a-card
-                style="width: 100%;
-                borderRadius:20px;
-                text-align:left;
-                marginBottom:20px;
-                border:none;
-                background-color:rgba(247, 224, 212,.8);"
-              >
+              <a-card class="cardTask">
                 <p class="pTitle">
-                  <img
-                    src="@assets/look.gif"
-                    width="30px;"
-                     
-                    style="marginRight:4px;      borderRadius:8px;"
-                  />
+                  <span>
+                    <img src="@assets/look.gif" />
+                  </span>
                   {{ item.processName }}
                 </p>
+
                 <p>任务名称:{{ item.name }}</p>
                 <p>创建时间:{{ item.createTime }}</p>
 
@@ -162,10 +230,13 @@
 
                 <a-divider style="background:rgba(128, 128, 128,.1);"></a-divider>
 
-                <!-- 操作按钮 -->
+                <!-- 操作 -->
                 <div class="operation">
-                  <p style="fontSize:16px;fontWeight:700;color:#092834;">
-                    <img src="@assets/down.png" width="26px;"   style="marginRight:4px;" />
+                  <p>
+                    <span class="operationImg">
+                      <img src="@assets/down.png" />
+                    </span>
+
                     操作
                   </p>
 
@@ -174,7 +245,7 @@
                       class="itemBtn"
                       ghost
                       @click="detail(item)"
-                      style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.9);
+                      style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
                       color:#4e73b9;"
                     >
                       详情
@@ -194,17 +265,17 @@
                     <!-- 激活 状态 -->
                     <span v-else>
                       <a-button
-                        class="itemBtn mid"
+                        class="itemBtn midBtn"
                         ghost
                         @click="passTask(item)"
-                        style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.9);
+                        style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
                         color:#4e73b9;"
                       >
                         通过
                       </a-button>
 
                       <a-button
-                        class="itemBtn mid"
+                        class="itemBtn midBtn"
                         ghost
                         @click="backTask(item)"
                         style="color:gray;box-shadow: 5px 5px 5px rgba(128, 128, 128,.7);color:#ea472c;"
@@ -213,7 +284,7 @@
                       </a-button>
 
                       <a-button
-                        class="itemBtn mid"
+                        class="itemBtn midBtn"
                         ghost
                         @click="delegateTask(item)"
                         style="color:gray;box-shadow: 6px 6px 6px rgba(128, 128, 128,.7);color:orange;"
@@ -227,7 +298,7 @@
                       ghost
                       @click="history(item)"
                       style="color:gray;
-                             box-shadow: 4px 4px 4px rgba(128, 128, 128,.9);
+                             box-shadow: 4px 4px 4px rgba(128, 128, 128,.7);
                              position:absolute;
                              right:0;
                              marginRight:0;"
@@ -334,19 +405,16 @@
           </a-tab-pane>
 
           <!-- 我的已办 -->
-          <a-tab-pane key="done" tab="我的已办" class="done">
+          <a-tab-pane key="done" tab="已办" class="done">
             <div v-for="item in doneList" :key="item.id">
-              <a-card
-                style="width: 100%;
-                border-radius:20px;
-                text-align:left;
-                marginBottom:20px;
-                border:none;
-                background-color:rgba(247, 224, 212,.8);"
-              >
+              <a-card class="cardTask">
                 <p class="pTitle">
-                  <img src="@assets/look.gif" width="30px;" style="marginRight:4px;borderRadius:8px;" />
-                  {{ item.processName }}
+                  <span>
+                    <img src="@assets/look.gif" />
+                  </span>
+                  <i>
+                    {{ item.processName }}
+                  </i>
                 </p>
                 <p>任务名称:{{ item.name }}</p>
                 <p>创建时间:{{ item.createTime }}</p>
@@ -366,11 +434,11 @@
                   >
                   <span
                     v-if="item.deleteReason == '审批驳回'"
-                    style="background:rgba(234, 71, 44,.5);
+                    style="background:rgba(9, 40, 52,.7);
                     padding:4px 10px;
                     borderRadius:2px;
                     letterSpacing:1px;
-                    color: #092834;"
+                    color: white;"
                   >
                     {{ item.deleteReason }}
                   </span>
@@ -379,10 +447,13 @@
 
                 <a-divider style="background:rgba(128, 128, 128,.1);"></a-divider>
 
-                <!-- 操作按钮 -->
+                <!-- 操作 -->
                 <div class="operation">
-                  <p style="fontSize:16px;fontWeight:700;color:#092834;">
-                    <img src="@assets/down.png" width="26px;" alt="???? " style="marginRight:4px;" />
+                  <p>
+                    <span class="operationImg">
+                      <img src="@assets/down.png" />
+                    </span>
+
                     操作
                   </p>
 
@@ -391,10 +462,10 @@
                       class="itemBtn"
                       ghost
                       @click="detail(item)"
-                      style="box-shadow: 8px 8px 8px rgba(128, 128, 128,.7);
+                      style="box-shadow: 8px 8px 8px rgba(128, 128, 128);
                       color:#4e73b9;"
                     >
-                      表单数据
+                      详情
                     </a-button>
 
                     <a-button
@@ -404,7 +475,7 @@
                       style="color:gray;
                              box-shadow: 8px 8px 8px rgba(128, 128, 128,.7)"
                     >
-                      审批历史
+                      历史
                     </a-button>
 
                     <a-popconfirm title="确定删除吗?" placement="left">
@@ -439,6 +510,7 @@ import { deleteAction, getAction, downFile } from '@/api/manage'
 import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep'
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 import { activitiMixin } from '@/views/activiti/mixins/activitiMixin'
+import DictItemListVue from '../system/DictItemList.vue'
 
 export default {
   name: 'Todo',
@@ -487,6 +559,7 @@ export default {
       //   // 表单验证规则
       // },
 
+
       submitLoading: false, // 添加或编辑提交状态
       data: [], // 表单数据
       total: 0, // 表单数据总数
@@ -516,7 +589,9 @@ export default {
         getNode: '/activiti_process/getNode/',
         getBackList: '/actTask/getBackList/',
         passAll: '/actTask/passAll/',
-        backAll: '/actTask/backAll/'
+        backAll: '/actTask/backAll/',
+        // 我的申请
+        cancelApply: '/actBusiness/cancel'
       },
 
       todoList: [], // 待办列表
@@ -524,7 +599,9 @@ export default {
       doneList: [], // 已办列表
 
       modalTaskVisible: false,
-      procInstId: ''
+      procInstId: '',
+
+      modalCancelVisible: false
     }
   },
 
@@ -562,6 +639,8 @@ export default {
         })
     },
 
+
+
     // 初始化表
     forminitial() {
       this.form = {
@@ -852,7 +931,7 @@ export default {
       this.modalLsVisible = true
     },
 
-    // 我的已办 methods   问题
+    // 已办 methods   问题
     remove(item) {
       console.log('点击这项是:', item)
       this.postFormAction(this.url.deleteHistoricTask, item.id).then(res => {
@@ -926,95 +1005,72 @@ export default {
           })
         }
       })
+    },
+    // 申请  方法
+    // 撤回
+    cancel(item) {
+      console.log('走到这没', item.id)
+      console.log('222', item.procInstId)
+      this.cancelForm.id = item.id
+      this.cancelForm.procInstId = DictItemListVue.procInstId
+      this.modalCancelVisible = true
     }
   }
 }
 </script>
 
+
 <style src="@assets/less/overwrite.less" lang="less" scoped></style>
 <style lang="less">
 @import '~@assets/less/common.less';
 </style>
 <style lang="less" scoped>
 .content {
-  width: 100%;
-  height: 100%;
-  background-color: rgba(247, 224, 212, 0.4);
-}
-.todoHeader {
-  padding: 0;
-  color: white;
-  background-color: #347b98;
-  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
-  margin-bottom: 20px;
-  letter-spacing: 1px;
-}
-.main {
-  padding: 14px;
-}
-//撤销状态
-.state .cancel {
-  background-color: rgba(161, 160, 156, 0.2);
-  color: rgb(114, 110, 110);
-}
-//已通过 状态
-.state .pass {
-  background-color: rgb(200, 245, 221);
-  color: rgb(22, 139, 85);
-}
+  .main {
+    padding: 14px;
+
+    //tabs 内容
+    .todoBody {
+      //优先级
+      .priorityComm {
+        padding: 4px 10px;
+        color: #092834;
+        letter-spacing: 1px;
+      }
+      // 状态
+      .statusComm {
+        padding: 4px 6px;
+        color: #092834;
+      }
 
-//优先级 公共样式 small
-.priorityComm {
-  padding: 4px 10px;
-  color: #092834;
-  letter-spacing: 1px;
-}
+      // 结果
+      .resultComm {
+        padding: 4px 10px;
+        color: white;
+        letter-spacing: 1px;
+      }
+      // 操作 ===============================
+      .wait .btns {
+        position: relative;
 
-// 状态 公共样式 small
-.statusComm {
-  padding: 4px 6px;
-  color: #092834;
-}
+        .midBtn {
+          margin-left: 3.3%;
+        }
+      }
 
-// 结果 公共样式 big
-.resultComm {
-  padding: 4px 10px;
-  color: white;
-  letter-spacing: 1px;
-}
-// ----------------------------------
-//待办 操作按钮
-.wait .btns {
-  position: relative;
-}
-.wait .operation /deep/.ant-btn {
-  padding: 0;
-  line-height: 0;
-  border: 1px solid rgba(128, 128, 128, 0.1);
-  border-radius: 18px;
-  padding: 26px 14px;
-}
-.mid {
-  margin-left: 6%;
-}
-.itemBtn {
-  font-weight: 700;
-}
+      //已办 操作按钮
+      .done .btns {
+        display: flex;
+        justify-content: space-between;
+      }
 
-.done .btns {
-  display: flex;
-}
-// ----------------------------------
-//已办 操作按钮
-.done .btns .itemBtn {
-  margin-right: 20%;
-  padding: 0;
-  line-height: 0;
-  border-radius: 18px;
-  padding: 26px 14px;
-  border: 1px solid rgba(128, 128, 128, 0.1);
-}
-.done .itemBtn:nth-last-child(1) {
-  margin-right: 0;
+      //申请 不同情况按钮排布
+      .apply .btns .ingBtns,
+      .apply .btns .overBtns {
+        display: flex;
+        justify-content: space-between;
+      }
+    }
+  }
 }
 </style>