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

View File

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

View File

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