achao il y a 2 ans
Parent
commit
a0c9dda72f
1 fichiers modifiés avec 12 ajouts et 9 suppressions
  1. 12 9
      components/flow.vue

+ 12 - 9
components/flow.vue

@@ -49,12 +49,18 @@
 								<view v-if='item.auditMind' class="right-content">
 									{{item.auditMind}}
 								</view>
+								<view class="flex audit_img">
+									<view v-for="(items,indexs) in item.fileUrl" class="url_css">
+										<image :src="items" imageMode='aspectFill' class="url_img"
+											@click="auditFile(items)"></image>
+									</view>
+								</view>
 								<view v-if='item.commonReviewComments' v-for="item1 in item.commonReviewComments"
 									style="display: flex; align-items: center; justify-content: space-between;margin-top: 20rpx;">
 									<view class="right-content">
 										{{item1.test}}
 									</view>
-									<view class="del" @click="del(item1)">
+									<view class="del" @click="del(item1)" v-if="item1.createUserId==userInfo.id">
 										<image src="../static/delete.png" mode="widthFix" style="width: 30rpx;"></image>
 									</view>
 								</view>
@@ -62,12 +68,6 @@
 
 							</view>
 
-							<view class="flex audit_img">
-								<view v-for="(items,indexs) in item.fileUrl" class="url_css">
-									<image :src="items" imageMode='aspectFill' class="url_img"
-										@click="auditFile(items)"></image>
-								</view>
-							</view>
 						</view>
 						<view v-if='item.commonStaffs1' class="right">
 							<u-icon @click='showcontent(item)' :name="item.showflow?'arrow-up':'arrow-down'" size="28">
@@ -127,7 +127,8 @@
 				show: false,
 				hisId: '',
 				list: [],
-				text: ""
+				text: "",
+				userInfo: {}
 			}
 		},
 		watch: {
@@ -135,9 +136,10 @@
 				console.log(145)
 				console.log(val1[1])
 				this.list = val1
+				this.userInfo = uni.getStorageSync("userInfo")
 				for (let i = 0; i < this.list.length; i++) {
 					// 获取当前人的hisId
-					if (this.list[i].auditUsers && this.list[i].auditUsers == uni.getStorageSync("userInfo").id) {
+					if (this.list[i].auditUsers && this.list[i].auditUsers == this.userInfo.id) {
 						this.hisId = this.list[i].id
 
 					}
@@ -186,6 +188,7 @@
 					});
 			},
 			plClick() {
+				this.text = ""
 				this.show = true