update
This commit is contained in:
parent
8dd39ecf7c
commit
9cca81267f
@ -10,146 +10,107 @@
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="tabBox">
|
||||
<MenuItem
|
||||
v-for="(item, index) in tabList"
|
||||
:key="index"
|
||||
:item="item"
|
||||
round="true"
|
||||
size="28"
|
||||
<MenuItem v-for="(item, index) in tabList" :key="index" :item="item" round="true" size="28"
|
||||
:src="selectFilter == item.id ? item.active : item.src"
|
||||
:nameStyle="selectFilter == item.id ? 'color:#5B96E9' : 'color:#808D97'"
|
||||
:imageBoxStyle="
|
||||
(selectFilter == item.id
|
||||
:nameStyle="selectFilter == item.id ? 'color:#5B96E9' : 'color:#808D97'" :imageBoxStyle="(selectFilter == item.id
|
||||
? 'background:#f0f7fe;'
|
||||
: 'background:#f6f7f8;') +
|
||||
'height:75rpx;width:75rpx;padding: 18rpx;'
|
||||
"
|
||||
@handleClick="handleChangeSelect(item.id)"
|
||||
>
|
||||
" @handleClick="handleChangeSelect(item.id)">
|
||||
</MenuItem>
|
||||
</view>
|
||||
|
||||
<scroll-view
|
||||
class="scrollbox"
|
||||
:scroll-y="true"
|
||||
@scrolltolower="handleScrollBottom"
|
||||
>
|
||||
<scroll-view class="scrollbox" :scroll-y="true" @scrolltolower="handleScrollBottom">
|
||||
<view class="dataList">
|
||||
<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>
|
||||
<view class="itemRow">
|
||||
<view class="projectName">{{ item.template.title || "-" }}</view>
|
||||
<view
|
||||
class="stateName"
|
||||
:style="{
|
||||
<view class="stateName" :style="{
|
||||
color:
|
||||
item.extendObj.errorStatus === 0
|
||||
item.errorStatus === 0
|
||||
? 'red'
|
||||
: item.extendObj.errorStatus === 1
|
||||
: item.errorStatus === 1
|
||||
? '#3B72FF'
|
||||
: item.extendObj.errorStatus === 2
|
||||
: item.errorStatus === 2
|
||||
? '#139942'
|
||||
: '',
|
||||
}"
|
||||
>
|
||||
}">
|
||||
{{
|
||||
item.extendObj.errorStatus === 0
|
||||
item.errorStatus === 0
|
||||
? "待处理"
|
||||
: item.extendObj.errorStatus === 1
|
||||
: item.errorStatus === 1
|
||||
? "处理中"
|
||||
: item.extendObj.errorStatus === 2
|
||||
: item.errorStatus === 2
|
||||
? "已处理"
|
||||
: ""
|
||||
}}</view
|
||||
>
|
||||
}}</view>
|
||||
</view>
|
||||
<view class="itemCenterRow" style="margin: 60rpx 0 20rpx">
|
||||
<view class="value">{{ item.extendObj.uploadResult || "-" }}</view>
|
||||
<view class="value">{{ item.uploadResult || "-" }}</view>
|
||||
</view>
|
||||
<view class="itemRow">
|
||||
<view class="leftName"></view>
|
||||
<!-- <view class="rightName">{{ $util.getMoney(item.REVENUE_AMOUNT) }}</view>-->
|
||||
|
||||
<view class="rightName"
|
||||
><span
|
||||
:style="{
|
||||
<view class="rightName"><span :style="{
|
||||
color:
|
||||
item.extendObj.situation === 0
|
||||
item.situation === 0
|
||||
? '#139942'
|
||||
: item.extendObj.situation === 1
|
||||
: item.situation === 1
|
||||
? '#F75031'
|
||||
: '',
|
||||
}"
|
||||
>{{
|
||||
item.extendObj.errorStatus === 2
|
||||
}">{{
|
||||
item.errorStatus === 2
|
||||
? ""
|
||||
: item.extendObj.situation === 0
|
||||
: item.situation === 0
|
||||
? "正常情况"
|
||||
: item.extendObj.situation === 1
|
||||
: item.situation === 1
|
||||
? "急需处理"
|
||||
: "-"
|
||||
}}</span
|
||||
>
|
||||
}}</span>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="line"></view>
|
||||
<view class="itemRow">
|
||||
<view class="leftName"
|
||||
><span class="radio" style="background: #44bea3"></span
|
||||
>{{ item.userName || "-" }}
|
||||
<view class="leftName"><span class="radio" style="background: #44bea3"></span>{{ item.userName || "-" }}
|
||||
</view>
|
||||
<view class="rightName"></view>
|
||||
</view>
|
||||
<view class="itemRow">
|
||||
<view class="leftName"
|
||||
><span class="radio" style="background: #398efe"></span
|
||||
>{{
|
||||
<view class="leftName"><span class="radio" style="background: #398efe"></span>{{
|
||||
item.createdAt
|
||||
? $moment(item.createdAt).format("YYYY-MM-DD HH:mm:ss")
|
||||
: "-"
|
||||
}}</view
|
||||
>
|
||||
}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="dataList" v-if="false">
|
||||
<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)">
|
||||
<view class="dataTop">
|
||||
<view class="topLeft">
|
||||
<image class="itemIcon" src="/static/images/mbwa/fixed.svg" />
|
||||
<span class="itemTitle">{{ item.template.title || "-" }}</span>
|
||||
</view>
|
||||
<view
|
||||
class="topRight"
|
||||
:style="{
|
||||
<view class="topRight" :style="{
|
||||
color:
|
||||
item.extendObj.errorStatus === 0
|
||||
item.errorStatus === 0
|
||||
? 'red'
|
||||
: item.extendObj.errorStatus === 1
|
||||
: item.errorStatus === 1
|
||||
? '#3B72FF'
|
||||
: item.extendObj.errorStatus === 2
|
||||
: item.errorStatus === 2
|
||||
? '#139942'
|
||||
: '',
|
||||
}"
|
||||
>
|
||||
}">
|
||||
{{
|
||||
item.extendObj.errorStatus === 0
|
||||
item.errorStatus === 0
|
||||
? "待处理"
|
||||
: item.extendObj.errorStatus === 1
|
||||
: item.errorStatus === 1
|
||||
? "处理中"
|
||||
: item.extendObj.errorStatus === 2
|
||||
: item.errorStatus === 2
|
||||
? "已处理"
|
||||
: ""
|
||||
}}
|
||||
@ -157,33 +118,29 @@
|
||||
</view>
|
||||
|
||||
<view class="dataBottom">
|
||||
<view
|
||||
class="statusBox"
|
||||
:style="{
|
||||
<view class="statusBox" :style="{
|
||||
color:
|
||||
item.extendObj.situation === 0
|
||||
item.situation === 0
|
||||
? '#139942'
|
||||
: item.extendObj.situation === 1
|
||||
: item.situation === 1
|
||||
? '#F75031'
|
||||
: '',
|
||||
background:
|
||||
item.extendObj.situation === 0
|
||||
item.situation === 0
|
||||
? '#EBF7EF'
|
||||
: item.extendObj.situation === 1
|
||||
: item.situation === 1
|
||||
? '#FEF0ED'
|
||||
: '',
|
||||
}"
|
||||
>{{
|
||||
item.extendObj.situation === 0
|
||||
}">{{
|
||||
item.situation === 0
|
||||
? "正常情况"
|
||||
: item.extendObj.situation === 1
|
||||
: item.situation === 1
|
||||
? "急需处理"
|
||||
: "-"
|
||||
}}</view
|
||||
>
|
||||
}}</view>
|
||||
|
||||
<view class="itemContent">{{
|
||||
item.extendObj.uploadResult || "-"
|
||||
item.uploadResult || "-"
|
||||
}}</view>
|
||||
|
||||
<view class="userBox">
|
||||
@ -275,12 +232,12 @@ export default {
|
||||
handleGoDetail(obj) {
|
||||
console.log("obj", obj);
|
||||
// 判断是否是异常的
|
||||
if (obj.extendObj.situation === 1) {
|
||||
if (obj.situation === 1) {
|
||||
this.$util.toNextRoute(
|
||||
"navigateTo",
|
||||
`/pages/walkAroundManager/detail?id=${obj.id}&pageType=error`
|
||||
);
|
||||
} else if (obj.extendObj.situation === 0) {
|
||||
} else if (obj.situation === 0) {
|
||||
// 正常的 查看详情
|
||||
this.$util.toNextRoute(
|
||||
"navigateTo",
|
||||
@ -328,17 +285,17 @@ export default {
|
||||
title: "加载中...",
|
||||
});
|
||||
const req = {
|
||||
serverPartId: undefined,
|
||||
startTime: undefined,
|
||||
endTime: undefined,
|
||||
page: this.PageIndex,
|
||||
// serverPartId: 0,
|
||||
startTime: "",
|
||||
endTime: "",
|
||||
pageNum: this.PageIndex,
|
||||
pageSize: 10,
|
||||
// serverPartId: this.selectServiceList[this.selectIndex].value,
|
||||
// startTime: `${this.searchTime} 00:00:00`,
|
||||
// endTime: `${this.searchTime} 23:59:59`,
|
||||
extend:
|
||||
this.selectFilter === 1
|
||||
? undefined
|
||||
? null
|
||||
: this.selectFilter === 2
|
||||
? [
|
||||
{
|
||||
@ -361,7 +318,7 @@ export default {
|
||||
// this.useInfo.userData.UserId
|
||||
},
|
||||
]
|
||||
: undefined,
|
||||
: null,
|
||||
|
||||
// any:
|
||||
// this.selectFilter === 4
|
||||
@ -383,23 +340,24 @@ export default {
|
||||
};
|
||||
console.log("req", req);
|
||||
|
||||
const data = await this.$request.$webNodePOST(
|
||||
`questionnaire-responses/search/many`,
|
||||
const data = await this.$request.$webJavaPOST(
|
||||
`questionnaire-responses/getList`,
|
||||
req
|
||||
);
|
||||
let list = data.data;
|
||||
console.log("datadatadatadata", data);
|
||||
let list = data.Result_Data.List;
|
||||
if (list && list.length > 0) {
|
||||
if (list.length < 10) {
|
||||
this.isEnd = true;
|
||||
}
|
||||
|
||||
list.forEach((item) => {
|
||||
let extendObj = {};
|
||||
if (item.extend) {
|
||||
extendObj = JSON.parse(item.extend);
|
||||
}
|
||||
item.extendObj = extendObj;
|
||||
});
|
||||
// list.forEach((item) => {
|
||||
// let extendObj = {};
|
||||
// if (item.extend) {
|
||||
// extendObj = JSON.parse(item.extend);
|
||||
// }
|
||||
// item.extendObj = extendObj;
|
||||
// });
|
||||
} else {
|
||||
this.isEnd = true;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -26,4 +26,8 @@ export default {
|
||||
testURL2: 'http://192.168.12.121:8010', // 测试ip
|
||||
testApiName: '/MobileServicePlatform/Handler/handler_ajax.ashx', // 接口
|
||||
|
||||
|
||||
|
||||
// JavaApiurl: 'http://10.104.1.161:8070/platform/', // web api测试接口地址
|
||||
JavaApiurl: 'http://10.104.1.175:8070/platform/', // web api测试接口地址
|
||||
}
|
||||
@ -47,8 +47,14 @@ export default {
|
||||
$webNodeGet: function (controller, data) {
|
||||
return Api.request('GET', ApiPath.NodeApiurl + controller, data || {}, true)
|
||||
},
|
||||
|
||||
$webNodePOST: function (controller, data) {
|
||||
return Api.request('POST', ApiPath.NodeApiurl + controller, data || {}, true)
|
||||
},
|
||||
// 最新的java接口
|
||||
$webJavaGet: function (controller, data) {
|
||||
return Api.request('GET', ApiPath.JavaApiurl + controller, data || {}, true)
|
||||
},
|
||||
$webJavaPOST: function (controller, data) {
|
||||
return Api.request('POST', ApiPath.JavaApiurl + controller, data || {}, true)
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user