Explorar o código

增加审批驳回提醒

ysc hai 1 ano
pai
achega
54650b97e8
Modificáronse 1 ficheiros con 18 adicións e 4 borrados
  1. 18 4
      src/views/task/view.vue

+ 18 - 4
src/views/task/view.vue

@@ -72,6 +72,7 @@
         </template>
         <template slot-scope="scope">
           <span v-if="scope.row[item.day].comment" class="comment-badge"></span>
+          <span v-if="scope.row[item.day].audit" class="audit-badge"></span>
           <el-popover
             v-if="scope.row[item.day].value!=''"
             placement="top"
@@ -116,7 +117,7 @@
                     <el-button slot="reference" type="text">详情</el-button>
                   </el-popover>
                   <span
-                    v-if="item.row.feedbackType === '4'&& scope.row.executor===userId && item.row.commentConfirm!='1'"
+                    v-if="(item.row.feedbackType === '4'||item.row.feedbackType === '5')&& scope.row.executor===userId && item.row.commentConfirm!='1'"
                     style="margin-left: 10px">
                   <el-button type="text" icon="el-icon-thumb" size="mini"
                              @click="confirmComment(item.row)">确认</el-button>
@@ -443,9 +444,9 @@ export default {
           }
           addTaskFeedback(this.form).then(res => {
             if (res.code === 'S.F-2001') {
-              let message=''
-              res.data.forEach(item=>{
-                message+=item.taskName+'   '
+              let message = ''
+              res.data.forEach(item => {
+                message += item.taskName + '   '
               })
               this.$alert(message, res.message);
             } else {
@@ -511,6 +512,19 @@ export default {
   vertical-align: text-top;
 }
 
+.audit-badge {
+  height: 10px;
+  width: 10px;
+  border-radius: 5px;
+  background-color: #ff4949;
+  position: absolute;
+  top: 1px;
+  right: 1px;
+  font-size: 8px;
+  color: white;
+  vertical-align: text-top;
+}
+
 .feed-dialog ::v-deep .el-dialog__body {
   padding: 0 20px 10px 20px;
 }