💥 feat(模块): 添加了个很棒的功能

This commit is contained in:
ylj20011123 2025-05-07 14:46:18 +08:00
parent 9cca81267f
commit 598377d733
3 changed files with 28 additions and 24 deletions

View File

@ -25,8 +25,8 @@
<view class="dataItem" v-for="(item, index) in dataList" :key="index" @click="handleGoDetail(item)"> <view class="dataItem" v-for="(item, index) in dataList" :key="index" @click="handleGoDetail(item)">
<div class="content-index">{{ index + 1 }}</div> <div class="content-index">{{ index + 1 }}</div>
<view class="itemRow"> <view class="itemRow">
<view class="projectName">{{ item.template.title || "-" }}</view> <view class="projectName">{{ item.placeName || "-" }}</view>
<view class="stateName" :style="{ <view v-if="item.situation !== 0" class="stateName" :style="{
color: color:
item.errorStatus === 0 item.errorStatus === 0
? 'red' ? 'red'
@ -93,7 +93,7 @@
<view class="dataTop"> <view class="dataTop">
<view class="topLeft"> <view class="topLeft">
<image class="itemIcon" src="/static/images/mbwa/fixed.svg" /> <image class="itemIcon" src="/static/images/mbwa/fixed.svg" />
<span class="itemTitle">{{ item.template.title || "-" }}</span> <span class="itemTitle">{{ item.title || "-" }}</span>
</view> </view>
<view class="topRight" :style="{ <view class="topRight" :style="{
color: color:
@ -352,11 +352,11 @@ export default {
} }
// list.forEach((item) => { // list.forEach((item) => {
// let extendObj = {}; // let extendObj = {};
// if (item.extend) { // if (item.extend) {
// extendObj = JSON.parse(item.extend); // extendObj = JSON.parse(item.extend);
// } // }
// item.extendObj = extendObj; // item.extendObj = extendObj;
// }); // });
} else { } else {
this.isEnd = true; this.isEnd = true;

View File

@ -2,14 +2,14 @@
<view class="main"> <view class="main">
<scroll-view class="pageScroll" :style="{ <scroll-view class="pageScroll" :style="{
height: height:
extendObj.errorStatus === 0 || extendObj.errorStatus === 1 extendObj.situation !== 0 && (extendObj.errorStatus === 0 || extendObj.errorStatus === 1)
? 'calc(100% - 120rpx)' ? 'calc(100% - 120rpx)'
: '100%', : '100%',
}" :scroll-y="true"> }" :scroll-y="true">
<view class="topContent"> <view class="topContent">
<view class="placeBox"> <view class="placeBox">
<image class="itemIcon" src="/static/images/mbwa/fixed.svg" /> <image class="itemIcon" src="/static/images/mbwa/fixed.svg" />
<view class="placeName">{{ detailObj.template.title || "-" }}</view> <view class="placeName">{{ detailObj.placeName || "-" }}</view>
<view class="statusBox" :style="{ <view class="statusBox" :style="{
color: color:
extendObj.situation === 0 extendObj.situation === 0
@ -263,10 +263,13 @@
</scroll-view> </scroll-view>
<view class="bottomBtnBox" v-if=" <view class="bottomBtnBox" v-if="
(extendObj.errorStatus === 0 && isManager) || extendObj.situation !== 0 &&
(extendObj.errorStatus === 1 && isFeedback) || (
(feedbackStatus === 1 && isManager) || (extendObj.errorStatus === 0 && isManager) ||
(feedbackStatus === 2 && isFeedback) (extendObj.errorStatus === 1 && isFeedback) ||
(feedbackStatus === 1 && isManager) ||
(feedbackStatus === 2 && isFeedback)
)
"> ">
<view class="bottomBtn" @click="handleAssign">{{ <view class="bottomBtn" @click="handleAssign">{{
extendObj.errorStatus === 0 || feedbackStatus === 1 extendObj.errorStatus === 0 || feedbackStatus === 1
@ -480,7 +483,7 @@
<div class="contentBox"> <div class="contentBox">
<image src="/static/images/publicity/dingwei.png" mode="aspectFit" class="addressIcon"></image> <image src="/static/images/publicity/dingwei.png" mode="aspectFit" class="addressIcon"></image>
<div> <div>
<p class="xuncha address">{{ detailObj.template.title || "-" }}</p> <p class="xuncha address">{{ detailObj.placeName || "-" }}</p>
<div> <div>
<span>巡查时间</span><span>{{ <span>巡查时间</span><span>{{
detailObj.createdAt detailObj.createdAt
@ -796,8 +799,8 @@ export default {
this.feedbackStatus = value; this.feedbackStatus = value;
// suggestTime // suggestTime
// //
// let nowTime = this.$util.cutDate(new Date(), "YYYY-MM-DD") let nowTime = this.$util.cutDate(new Date(), "YYYY-MM-DD")
let nowTime = '2025-04-23' // let nowTime = '2025-04-23'
let suggestTime = this.$util.cutDate(this.extendObj.suggestTime, "YYYY-MM-DD") let suggestTime = this.$util.cutDate(this.extendObj.suggestTime, "YYYY-MM-DD")
// //
@ -980,11 +983,12 @@ export default {
feedbackImgList: obj.feedbackImgList, feedbackImgList: obj.feedbackImgList,
newFeedbackImgList: obj.newFeedbackImgList newFeedbackImgList: obj.newFeedbackImgList
} }
this.uploadResult = extend.uploadResult;
this.current = extend.situation;
this.extendObj = extend;
this.imgsList = extend.imgsList;
if (extend.situation === 1) { if (extend.situation === 1) {
this.uploadResult = extend.uploadResult;
this.imgsList = extend.imgsList;
this.current = extend.situation;
this.extendObj = extend;
console.log("this.extendObj", this.extendObj); console.log("this.extendObj", this.extendObj);
if (extend.errorStatus === 1) { if (extend.errorStatus === 1) {
this.suggestion = { this.suggestion = {
@ -1387,7 +1391,7 @@ export default {
.pageScroll { .pageScroll {
width: 100%; width: 100%;
height: calc(100% - 120rpx); // height: calc(100% - 120rpx);
background-color: #f6f7f9; background-color: #f6f7f9;
box-sizing: border-box; box-sizing: border-box;
padding-bottom: 32rpx; padding-bottom: 32rpx;

View File

@ -28,6 +28,6 @@ export default {
// JavaApiurl: 'http://10.104.1.161:8070/platform/', // web api测试接口地址 JavaApiurl: 'https://admin.es.eshangtech.com/platform/', // web api测试接口地址
JavaApiurl: 'http://10.104.1.175:8070/platform/', // web api测试接口地址 // JavaApiurl: 'http://10.104.1.175:8070/platform/', // web api测试接口地址
} }