|
@@ -6,7 +6,8 @@
|
|
|
<up-text
|
|
|
color="#007aff"
|
|
|
size="24rpx"
|
|
|
- style="margin-left: auto;flex: inherit;width: auto;" text="查看更多">
|
|
|
+ style="margin-left: auto;flex: inherit;width: auto;" text="查看更多"
|
|
|
+ @click="()=>navigateTo({url:'/pages/workbenchsub/workorder/list'})">
|
|
|
</up-text>
|
|
|
<up-icon size="20rpx" name="arrow-right-double" color="#007aff"></up-icon>
|
|
|
</template>
|
|
@@ -27,24 +28,25 @@
|
|
|
color="#555555"
|
|
|
size="25rpx"
|
|
|
:bold="true"
|
|
|
- style="font-weight:700;flex: inherit;width: auto;" text="故障提报">
|
|
|
+ style="font-weight:700;flex: inherit;width: auto;" :text="item.typeName">
|
|
|
</up-text>
|
|
|
<up-text
|
|
|
color="#f59a23"
|
|
|
size="30rpx"
|
|
|
:bold="true"
|
|
|
- style="font-weight:700;flex: inherit;width: auto;" text="待派工">
|
|
|
+ style="font-weight:700;flex: inherit;width: auto;"
|
|
|
+ :text="item.statusName">
|
|
|
</up-text>
|
|
|
</view>
|
|
|
<view class="item-desc">
|
|
|
<view class="info-item">
|
|
|
- 工单名称:设备运转异常,安灯报警
|
|
|
+ 工单名称:{{ formatTxt(item.name) }}
|
|
|
</view>
|
|
|
<view class="info-item">
|
|
|
- 提报时间:2023-12-19 16:34:56
|
|
|
+ 提报时间:{{ item.createTime }}
|
|
|
</view>
|
|
|
<view class="info-item">
|
|
|
- 工单登记:紧急
|
|
|
+ 工单等级:{{ valueToConst(WorkOrderLevel, item.level).label }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -61,36 +63,23 @@
|
|
|
|
|
|
import Panel from "@/components/pannel/index.vue";
|
|
|
import tag from "@/static/aiot/icon/tag.svg";
|
|
|
-import {reactive} from 'vue';
|
|
|
+import {ref} from 'vue';
|
|
|
import {onLoad} from '@dcloudio/uni-app';
|
|
|
+import {getMyOrderWork} from "@/api/workorder.js";
|
|
|
+import {formatTxt, navigateTo} from "@/util/index.js";
|
|
|
+import {valueToConst} from "@/common/consts/CommonConst.js";
|
|
|
+import {WorkOrderLevel} from "@/common/consts/WorkOrderConst.js";
|
|
|
|
|
|
-const indexList = reactive([]);
|
|
|
-const urls = [
|
|
|
- 'https://uview-plus.jiangruyi.com/album/1.jpg',
|
|
|
- 'https://uview-plus.jiangruyi.com/album/2.jpg',
|
|
|
- 'https://uview-plus.jiangruyi.com/album/3.jpg',
|
|
|
- 'https://uview-plus.jiangruyi.com/album/4.jpg',
|
|
|
- 'https://uview-plus.jiangruyi.com/album/5.jpg',
|
|
|
- 'https://uview-plus.jiangruyi.com/album/6.jpg',
|
|
|
- 'https://uview-plus.jiangruyi.com/album/7.jpg',
|
|
|
- 'https://uview-plus.jiangruyi.com/album/8.jpg',
|
|
|
- 'https://uview-plus.jiangruyi.com/album/9.jpg',
|
|
|
- 'https://uview-plus.jiangruyi.com/album/10.jpg',
|
|
|
-];
|
|
|
+const indexList = ref([]);
|
|
|
onLoad(() => {
|
|
|
loadmore();
|
|
|
});
|
|
|
|
|
|
-const scrolltolower = () => {
|
|
|
- loadmore();
|
|
|
-};
|
|
|
-
|
|
|
const loadmore = () => {
|
|
|
- for (let i = 0; i < 10; i++) {
|
|
|
- indexList.push({
|
|
|
- url: urls[uni.$u.random(0, urls.length - 1)],
|
|
|
- });
|
|
|
- }
|
|
|
+ getMyOrderWork({}).then((res) => {
|
|
|
+ const {records} = res;
|
|
|
+ indexList.value = records;
|
|
|
+ });
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -145,9 +134,10 @@ export default {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
justify-content: flex-start;
|
|
|
- .info-item{
|
|
|
+
|
|
|
+ .info-item {
|
|
|
margin-top: 10rpx;
|
|
|
- color: #333333;
|
|
|
+ color: #333333;
|
|
|
font-size: 24rpx;
|
|
|
}
|
|
|
}
|