💥 feat(模块): 添加了个很棒的功能
This commit is contained in:
parent
9cca81267f
commit
598377d733
@ -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:
|
||||||
|
|||||||
@ -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.situation !== 0 &&
|
||||||
|
(
|
||||||
(extendObj.errorStatus === 0 && isManager) ||
|
(extendObj.errorStatus === 0 && isManager) ||
|
||||||
(extendObj.errorStatus === 1 && isFeedback) ||
|
(extendObj.errorStatus === 1 && isFeedback) ||
|
||||||
(feedbackStatus === 1 && isManager) ||
|
(feedbackStatus === 1 && isManager) ||
|
||||||
(feedbackStatus === 2 && isFeedback)
|
(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
|
||||||
}
|
}
|
||||||
if (extend.situation === 1) {
|
|
||||||
this.uploadResult = extend.uploadResult;
|
this.uploadResult = extend.uploadResult;
|
||||||
this.imgsList = extend.imgsList;
|
|
||||||
this.current = extend.situation;
|
this.current = extend.situation;
|
||||||
this.extendObj = extend;
|
this.extendObj = extend;
|
||||||
|
this.imgsList = extend.imgsList;
|
||||||
|
if (extend.situation === 1) {
|
||||||
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;
|
||||||
|
|||||||
@ -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测试接口地址
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user