From b5f084460e9e639358fbf91056a86be8d0a5c4b2 Mon Sep 17 00:00:00 2001
From: yaolonglong <yaolonglong15@163.com>
Date: 星期四, 09 十月 2025 20:18:57 +0800
Subject: [PATCH] 获取验证码功能
---
qiye/complaint/complaint.vue | 36 ++++++++++++++++++++++--------------
1 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/qiye/complaint/complaint.vue b/qiye/complaint/complaint.vue
index accf0db..743ae5b 100644
--- a/qiye/complaint/complaint.vue
+++ b/qiye/complaint/complaint.vue
@@ -15,35 +15,41 @@
{{item.companyName}}
</view>
<template v-if="item.complaintStatus==0">
- <view class="r color3">
+ <view class="r color2">
寰呭搷搴�
</view>
</template>
<template v-if="item.complaintStatus==1">
- <view class="r color2">
+ <view class="r color1">
澶勭悊涓�
</view>
</template>
<template v-if="item.complaintStatus==2">
- <view class="r color1">
+ <view class="r color3">
宸插姙缁�
</view>
</template>
<!-- <view class="r color1">
寰呰瘎浠�
</view> -->
+ <template v-if="item.complaintStatus==-1">
+ <view class="r color4">
+ 宸查┏鍥�
+ </view>
+ </template>
</view>
<view class="box">
<view class="l">
- <p>鎵ф硶鍗曚綅锛歿{item.executeDeptName}}</p>
- <p>鎵ф硶鏃堕棿锛歿{item.executeTime}}</p>
+ <p style="align-items: flex-start;display: flex;justify-content: flex-start;"><text style="display: inline-block;width: 35%;">鎵ф硶鍗曚綅锛�</text> <text style="display: inline-block;width: 65%;">{{item.executeDeptName}}</text></p>
+ <p>鎶曡瘔鏃堕棿锛� {{item.complaintTime}}</p>
</view>
- <view class="r" @click="chakan()">
+ <view class="r" @click="chakan(item.id, item.orderId)">
鍘绘煡鐪�
</view>
</view>
</view>
</view>
+ <u-empty v-if="!list1.length"></u-empty>
<!-- <view class="item">
<img src="/static/i05.png" class="img" alt="" />
<view class="right">
@@ -94,7 +100,7 @@
</template>
<script>
- import { logList } from '@/api/qiye.js'
+ import { complaintList } from '@/api/qiye.js'
export default {
data() {
@@ -122,7 +128,7 @@
total: 1,
}
},
- onShow() {
+ onLoad() {
this.list1 = []
this.queryParams.pageNum = 1
this.getList()
@@ -135,27 +141,26 @@
this.getList()
},
methods: {
- chakan(id){
+ chakan(id,orderId){
uni.navigateTo({
- url: `/qiye/complaint/details?id=${id}`
+ url: `/qiye/complaint/details?id=${id}&orderId=${orderId}`
})
},
getList() {
let data = uni.getStorageSync("qiyedata")
- //this.queryParams.companyId = data.companyId
- logList({...this.queryParams}).then(val => {
- // console.log(val.data)
+ this.queryParams.companyId = data.companyId
+ complaintList({...this.queryParams}).then(val => {
this.total = val.data.total
this.list1 = [...this.list1,...val.data.rows]
})
},
search(e){
+ this.list1 = []
this.queryParams.pageNum =1
this.queryParams.companyName = e
this.getList()
},
click(i) {
-
this.list1 = []
this.queryParams.pageNum = 1
this.queryParams.complaintStatus = this.list[i.index].value
@@ -244,4 +249,7 @@
color: #3EB47A;
}
+ .color4{
+ color: gray;
+ }
</style>
\ No newline at end of file
--
Gitblit v1.9.1