浏览代码

no message

DESKTOP-70VPDLK\Administrator 1 年之前
父节点
当前提交
04682491a0
共有 2 个文件被更改,包括 11 次插入8 次删除
  1. 1 1
      page_task/task_details/module/record.vue
  2. 10 7
      page_task/task_operate/task_operate.vue

+ 1 - 1
page_task/task_details/module/record.vue

@@ -3,7 +3,7 @@
 		<view class="sys-background-fff m-20 p-20 r-20" v-for="(msg,index) in msgList" :key="index">
 			<view class="record-box row-justify-sb">
 				<view class="row-c">
-					<image class="wh-80" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/index-avatar.png" mode="aspectFill"></image>
+					<image class="wh-80 sys-radius-50" :src="msg.head_img" mode="aspectFill"></image>
 					<view class="column m-l16">
 						<text class="size-26 sys-weight-600">{{ msg.name }}</text>
 						<text class="size-24 text-color-999">{{ msg.position_name }}</text>

+ 10 - 7
page_task/task_operate/task_operate.vue

@@ -131,18 +131,21 @@
       }
     },
     onLoad(ret) {
+      console.log(ret)
       if(ret.businessId===undefined){
         tools.leftClick()
       }else {
         this.businessId=ret.businessId
         this.type=ret.type
+        console.log( this.type==='2')
         if(ret.auditType)this.businessData.audit_type=ret.auditType*1
         if(this.type==='1'){
-          this.type='任务反馈'
+          this.title='任务反馈'
         }else if(this.type==='2'){
-          this.type='任务审核'
+          tools.success('ok')
+          this.title='任务审核'
         }else {
-          this.type='任务冲销'
+          this.title='任务冲销'
         }
         this.getTaskStage();
       }
@@ -277,7 +280,6 @@
         })
       },
       auditTask() {
-
         uni.showModal({
           title: '提示',
           content: this.businessData.audit_type === 1 ? '是否通过当前任务?' : '是否驳回当前任务?',
@@ -286,9 +288,10 @@
               auditTask(this.businessData).then((auditRes) => {
                 if (auditRes.code === 1) {
                   tools.success(auditRes.msg)
-                  this.$emit('endTaskSet')
                   uni.$emit('newTaskList')
-                  console.log('newReceiving:---------------------')
+                  setTimeout(()=>{
+                    tools.leftClick()
+                  },500)
                 } else {
                   tools.error(auditRes.msg)
                 }
@@ -328,4 +331,4 @@
 		text-align: right;
 		direction: rtl;
 	}
-</style>
+</style>