代码提交

test
zhangdi 1 year ago
parent cc7fef0aa6
commit 90444aef03
  1. 9
      pages/home/components/alarm.vue
  2. 6
      pages/home/components/eacharts.vue
  3. 9
      pages/home/components/swiper.vue
  4. 7
      pages/home/index.vue
  5. 18
      pages/inspection/quest.vue
  6. 2
      pages/submission/records.vue
  7. 8
      pages/submission/recordsdetails.vue

@ -1,5 +1,6 @@
<template> <template>
<view> <view v-if="list.length>0">
<view class="work-title">设备报警</view>
<view v-for="(item, index) in list" :key="index" class="alarm-box"> <view v-for="(item, index) in list" :key="index" class="alarm-box">
<view class="alarm-left" :style="{ borderColor: item.color }"> <view class="alarm-left" :style="{ borderColor: item.color }">
<i>{{ item.alarmName }}</i> <i>{{ item.alarmName }}</i>
@ -55,6 +56,12 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.work-title {
color: rgba(16, 16, 16, 1);
font-size: 32rpx;
padding: 0 0 32rpx 36rpx;
}
.alarm-box { .alarm-box {
margin: 0 40rpx 32rpx; margin: 0 40rpx 32rpx;
background-color: #ffffff; background-color: #ffffff;

@ -72,6 +72,12 @@ export default {
startTime: this.form.startTime, startTime: this.form.startTime,
endTime: this.form.endTime, endTime: this.form.endTime,
} }
// if(this.form.startTime!=''){
// query_.startTime=this.form.startTime
// }
// if(this.form.endTime!=''){
// query_.endTime=this.form.endTime
// }
this.$u.api.upkeepStat(query_).then(res => { this.$u.api.upkeepStat(query_).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.upkeepStatInfo = JSON.parse(JSON.stringify(res.data)) this.upkeepStatInfo = JSON.parse(JSON.stringify(res.data))

@ -1,5 +1,8 @@
<template> <template>
<view v-if="list.length>0">
<view class="work-title">实验室巡检</view>
<view class="notice_bg"> <view class="notice_bg">
<view class="line"></view> <view class="line"></view>
<swiper <swiper
autoplay="true" autoplay="true"
@ -24,6 +27,7 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> </view>
</view>
</template> </template>
<script> <script>
export default { export default {
@ -54,6 +58,11 @@ export default {
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.work-title {
color: rgba(16, 16, 16, 1);
font-size: 32rpx;
padding: 0 0 32rpx 36rpx;
}
.notice_bg { .notice_bg {
margin: 0 40rpx 32rpx; margin: 0 40rpx 32rpx;
background-color: #ffffff; background-color: #ffffff;

@ -4,7 +4,8 @@
<view class="banner-swiper" v-if="swiperList.length > 0"> <view class="banner-swiper" v-if="swiperList.length > 0">
<view class="logo-txt">科研医疗建筑运维平台</view> <view class="logo-txt">科研医疗建筑运维平台</view>
<!-- <u-icon class="logo-scan" style="padding-right:12rpx" @click="scanCode" size="45" name="scan"></u-icon> --> <!-- <u-icon class="logo-scan" style="padding-right:12rpx" @click="scanCode" size="45" name="scan"></u-icon> -->
<u-swiper height="444" :list="swiperList" mode="none"></u-swiper> <!-- <u-swiper height="444" :list="swiperList" mode="none"></u-swiper> -->
<image :src="swiperList[0]" style="padding-right:12rpx;height:444rpx"></image>
</view> </view>
<view class="work-title">工作台</view> <view class="work-title">工作台</view>
<view class="workbench"> <view class="workbench">
@ -18,11 +19,11 @@
<view class="workbench-name">{{ item.name }}</view> <view class="workbench-name">{{ item.name }}</view>
</view> </view>
</view> </view>
<view class="work-title">实验室巡检</view>
<view> <view>
<swiperSlider></swiperSlider> <swiperSlider></swiperSlider>
</view> </view>
<view class="work-title">设备报警</view> <!-- <view class="work-title">设备报警</view> -->
<view> <view>
<alarm></alarm> <alarm></alarm>
</view> </view>

@ -13,7 +13,7 @@
<u-tabs v-if="subsectionCurrent == '0'" :list="tabList" :is-scroll="true" :current="current" <u-tabs v-if="subsectionCurrent == '0'" :list="tabList" :is-scroll="true" :current="current"
@change="changeTab"></u-tabs> @change="changeTab"></u-tabs>
<u-tabs v-if="subsectionCurrent == '1'" :list="tasktabList" :is-scroll="true" :current="current" <u-tabs v-if="subsectionCurrent == '1'" :list="tasktabList" :is-scroll="true" :current="current"
@change="changeTab"></u-tabs> @change="subsectionChangeTab"></u-tabs>
</view> </view>
<view class="order-box"> <view class="order-box">
<view class="order-item" v-for="(item, index) in orderData" :key="index"> <view class="order-item" v-for="(item, index) in orderData" :key="index">
@ -124,6 +124,7 @@ export default {
requirementCode: "", requirementCode: "",
type: '',// type: '',//
reportUnit: '',// reportUnit: '',//
statusSearch:'',//
}, },
userInfo: {},// userInfo: {},//
rowInfo: {},// rowInfo: {},//
@ -229,8 +230,10 @@ export default {
} }
let res = {} let res = {}
if (this.subsectionCurrent == '0') { if (this.subsectionCurrent == '0') {
query.statusSearch = this.searchInfo.statusSearch
res = await this.$u.api.getTaskPage(query) res = await this.$u.api.getTaskPage(query)
} else { } else {
query.statusSearch = this.searchInfo.statusSearch
res = await this.$u.api.getRepairPage(query) res = await this.$u.api.getRepairPage(query)
} }
if (res.code == 200) { if (res.code == 200) {
@ -265,10 +268,18 @@ export default {
this.page.currentPage = 1; this.page.currentPage = 1;
this.getRecordsList() this.getRecordsList()
}, },
// tab // tab
changeTab(index) { changeTab(index) {
this.current = index; this.current = index;
this.searchInfo.type = this.tabList[index].key == '9999' ? '' : this.tabList[index].key this.searchInfo.statusSearch = this.tabList[index].key == '9999' ? '' : this.tabList[index].key
this.isNomore = false
this.page.currentPage = 1;
this.getRecordsList()
},
// tab
subsectionChangeTab(index){
this.current = index;
this.searchInfo.statusSearch = this.tasktabList[index].key == '9999' ? '' : this.tasktabList[index].key
this.isNomore = false this.isNomore = false
this.page.currentPage = 1; this.page.currentPage = 1;
this.getRecordsList() this.getRecordsList()
@ -296,6 +307,7 @@ export default {
}, },
subsectionChange(e) { subsectionChange(e) {
this.subsectionCurrent = e; this.subsectionCurrent = e;
this.searchInfo.statusSearch=''
this.getRecordsList() this.getRecordsList()
}, },
// //

@ -41,7 +41,7 @@ export default {
key: "6", key: "6",
}, },
{ {
name: "付款", name: "付款",
key: "7", key: "7",
}, },
{ {

@ -117,7 +117,7 @@
</view> </view>
</view> </view>
<!-- 主管审批 审批详情 --> <!-- 主管审批 审批详情 -->
<view class="repair_detail" v-if="detailForm.approveResult >= 0"> <!-- <view class="repair_detail" v-if="detailForm.approveResult >= 0">
<view class="repair_title">主管审批</view> <view class="repair_title">主管审批</view>
<view class="detail_item"> <view class="detail_item">
<text class="item_left_txt">审批结果</text> <text class="item_left_txt">审批结果</text>
@ -127,9 +127,9 @@
<text class="item_left_txt">审批意见</text> <text class="item_left_txt">审批意见</text>
<text class="item_right_txt">{{ detailForm.approveRemark }}</text> <text class="item_right_txt">{{ detailForm.approveRemark }}</text>
</view> </view>
</view> </view> -->
<!-- 客户审批 审批详情 --> <!-- 客户审批 审批详情 -->
<view class="repair_detail" v-if="detailForm.approveResult >= 0"> <!-- <view class="repair_detail" v-if="detailForm.approveResult >= 0">
<view class="repair_title">客户审批</view> <view class="repair_title">客户审批</view>
<view class="detail_item"> <view class="detail_item">
<text class="item_left_txt">审批结果</text> <text class="item_left_txt">审批结果</text>
@ -139,7 +139,7 @@
<text class="item_left_txt">审批意见</text> <text class="item_left_txt">审批意见</text>
<text class="item_right_txt">{{ detailForm.approveRemark }}</text> <text class="item_right_txt">{{ detailForm.approveRemark }}</text>
</view> </view>
</view> </view> -->
<view class="repair_detail" v-if="detailForm.status != -1"> <view class="repair_detail" v-if="detailForm.status != -1">
<view class="repair_title">其他信息</view> <view class="repair_title">其他信息</view>
<view class="detail_item"> <view class="detail_item">

Loading…
Cancel
Save