|
@@ -10,62 +10,62 @@
|
|
|
</view>
|
|
|
</uni-section>
|
|
|
<component :is="selectedTag" v-if="selectedTag!=''">
|
|
|
- <router-view v-if="selectedTag !== null">
|
|
|
- </router-view>
|
|
|
</component>
|
|
|
- <u-list @scrolltolower="scrolltolower" v-if="tableData.length>0 && isLoaded&&fireInspection">
|
|
|
- <view class="top">
|
|
|
- <view class="">
|
|
|
- <u-search placeholder="请输入任务名称" bgColor="#edf6f9" borderColor="#4cb2b6" v-model="taskname"
|
|
|
- :showAction="false"></u-search>
|
|
|
- <view class="search-time">
|
|
|
- <uni-datetime-picker v-model="kewords" type="daterange" @custom="changeLog" />
|
|
|
+ <view class="" v-else-if="fireInspection">
|
|
|
+ <u-list @scrolltolower="scrolltolower" v-if="tableData.length>0 && isLoaded">
|
|
|
+ <view class="top">
|
|
|
+ <view class="">
|
|
|
+ <u-search placeholder="请输入任务名称" bgColor="#edf6f9" borderColor="#4cb2b6" v-model="taskname"
|
|
|
+ :showAction="false"></u-search>
|
|
|
+ <view class="search-time">
|
|
|
+ <uni-datetime-picker v-model="kewords" type="daterange" @custom="changeLog" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="search-icon">
|
|
|
+ <u-icon name="search" color="#4CB2B6" size="42" @click="changeLog"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="search-icon">
|
|
|
- <u-icon name="search" color="#4CB2B6" size="42" @click="changeLog"></u-icon>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <u-list-item v-for="(item, index) in tableData" :key="index" @click.native="onClick(item)" link>
|
|
|
- <uni-row class="demo-uni-row padding-tb-sm" :gutter="20" width="100%">
|
|
|
- <uni-col :span="24" class="text-xl font-weight-700" v-if="my==''">{{ item.task_name }}</uni-col>
|
|
|
- <!-- <u-badge v-if="item.isdenger==1" :value="1011" numberType="overflow" isDot
|
|
|
+ <u-list-item v-for="(item, index) in tableData" :key="index" @click.native="onClick(item)" link>
|
|
|
+ <uni-row class="demo-uni-row padding-tb-sm" :gutter="20" width="100%">
|
|
|
+ <uni-col :span="24" class="text-xl font-weight-700" v-if="my==''">{{ item.task_name }}</uni-col>
|
|
|
+ <!-- <u-badge v-if="item.isdenger==1" :value="1011" numberType="overflow" isDot
|
|
|
customStyle="margin-right:40px" /> -->
|
|
|
- <u-icon v-if="item.isdenger==1&&my==''" name="warning-fill" color="#ff5647" size="28"
|
|
|
- customStyle="margin-right:20px"></u-icon>
|
|
|
- </uni-row>
|
|
|
- <uni-row class="demo-uni-row padding-bottom-sm" :gutter="20" width="100%">
|
|
|
- <uni-col :span="24" class="text-cut text-grey1">任务介绍:{{ item.insp_name }}</uni-col>
|
|
|
- <u-icon v-if="item.isdenger==1&&my!=''" name="warning-fill" color="#ff5647" size="28"
|
|
|
- customStyle="margin-right:20px"></u-icon>
|
|
|
- </uni-row>
|
|
|
- <uni-row class="demo-uni-row padding-bottom-sm" :gutter="20" width="100%">
|
|
|
- <uni-col :span="24" class="text-cut text-grey1">详情描述:{{ item.description }}</uni-col>
|
|
|
- </uni-row>
|
|
|
- <uni-row class="demo-uni-row padding-bottom-sm" :gutter="20" width="100%">
|
|
|
- <uni-col :span="24" class="text-cut text-grey1">提交时间:{{ item.inspect_time}}</uni-col>
|
|
|
- <!-- <uni-col :span="16" class="text-cut text-grey1">提交时间:{{ item.cutofftime }}</uni-col>
|
|
|
+ <u-icon v-if="item.isdenger==1&&my==''" name="warning-fill" color="#ff5647" size="28"
|
|
|
+ customStyle="margin-right:20px"></u-icon>
|
|
|
+ </uni-row>
|
|
|
+ <uni-row class="demo-uni-row padding-bottom-sm" :gutter="20" width="100%">
|
|
|
+ <uni-col :span="24" class="text-cut text-grey1">任务介绍:{{ item.insp_name }}</uni-col>
|
|
|
+ <u-icon v-if="item.isdenger==1&&my!=''" name="warning-fill" color="#ff5647" size="28"
|
|
|
+ customStyle="margin-right:20px"></u-icon>
|
|
|
+ </uni-row>
|
|
|
+ <uni-row class="demo-uni-row padding-bottom-sm" :gutter="20" width="100%">
|
|
|
+ <uni-col :span="24" class="text-cut text-grey1">详情描述:{{ item.description }}</uni-col>
|
|
|
+ </uni-row>
|
|
|
+ <uni-row class="demo-uni-row padding-bottom-sm" :gutter="20" width="100%">
|
|
|
+ <uni-col :span="24" class="text-cut text-grey1">提交时间:{{ item.inspect_time}}</uni-col>
|
|
|
+ <!-- <uni-col :span="16" class="text-cut text-grey1">提交时间:{{ item.cutofftime }}</uni-col>
|
|
|
<uni-col :span="8" class="justify-end flex ">
|
|
|
<u-button class="margin-right-sm" size="small" color="#4CB2B6" style="width: 160rpx; "
|
|
|
> 查看 </u-button>
|
|
|
<u-button size="small" color="red" style="width: 160rpx;">删除</u-button>
|
|
|
</uni-col> -->
|
|
|
- </uni-row>
|
|
|
- <!-- <uni-row class="demo-uni-row padding-bottom-sm" :gutter="20" width="100%">
|
|
|
+ </uni-row>
|
|
|
+ <!-- <uni-row class="demo-uni-row padding-bottom-sm" :gutter="20" width="100%">
|
|
|
<uni-col :span="24" class="text-cut text-grey1">
|
|
|
<u-avatar-group :urls="item.url" size="35" gap="0.4" maxCount='5' @showMore="onClick(item)">
|
|
|
</u-avatar-group>
|
|
|
</uni-col>
|
|
|
</uni-row> -->
|
|
|
- </u-list-item>
|
|
|
- </u-list>
|
|
|
- <view v-else-if="tableData.length==0 && isLoaded" style="text-align: center;">
|
|
|
- <view class="text-gray" style="padding-top: 20px;">
|
|
|
- <img :src="tan90" alt="暂无数据" />
|
|
|
+ </u-list-item>
|
|
|
+ </u-list>
|
|
|
+ <view v-else-if="tableData.length==0 && isLoaded" style="text-align: center;">
|
|
|
+ <view class="text-gray" style="padding-top: 20px;">
|
|
|
+ <img :src="tan90" alt="暂无数据" />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+ <!-- 加载中 -->
|
|
|
+ <isLodingModel></isLodingModel>
|
|
|
</view>
|
|
|
- <!-- 加载中
|
|
|
- <isLodingModel></isLodingModel> -->
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -84,10 +84,10 @@
|
|
|
const baseUrlImg = config.baseUrlImg
|
|
|
export default {
|
|
|
components: {
|
|
|
- Drill: () => import('@/pagesA/fire/drill/index.vue'),
|
|
|
- FpdDetection: () => import('@/pagesA/fire/fpd_detection/fpd_detection.vue'),
|
|
|
- FireSpecial: () => import('@/pagesB/fire/fireSpecial/index.vue'),
|
|
|
- FireWork: () => import('@/pagesB/fire/fireWork/index.vue')
|
|
|
+ Drill: () => import('@/pagesB/components/drill/index.vue'),
|
|
|
+ FpdDetection: () => import('@/pagesB/components/fpd_detection/fpd_detection.vue'),
|
|
|
+ FireSpecial: () => import('@/pagesB/components/fireSpecial/index.vue'),
|
|
|
+ FireWork: () => import('@/pagesB/components/fireWork/index.vue')
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -111,13 +111,6 @@
|
|
|
2: '审核中',
|
|
|
3: '审核未通过'
|
|
|
},
|
|
|
- urls2: ['https://cdn.uviewui.com/uview/album/1.jpg', 'https://cdn.uviewui.com/uview/album/2.jpg',
|
|
|
- 'https://cdn.uviewui.com/uview/album/3.jpg', 'https://cdn.uviewui.com/uview/album/4.jpg',
|
|
|
- 'https://cdn.uviewui.com/uview/album/5.jpg', 'https://cdn.uviewui.com/uview/album/6.jpg',
|
|
|
- 'https://cdn.uviewui.com/uview/album/7.jpg', 'https://cdn.uviewui.com/uview/album/8.jpg',
|
|
|
- 'https://cdn.uviewui.com/uview/album/9.jpg', 'https://cdn.uviewui.com/uview/album/10.jpg',
|
|
|
- 'https://cdn.uviewui.com/uview/album/9.jpg', 'https://cdn.uviewui.com/uview/album/10.jpg',
|
|
|
- ],
|
|
|
my: '',
|
|
|
title: '暂无数据',
|
|
|
tagLabel: [{
|
|
@@ -153,7 +146,7 @@
|
|
|
hotApproval: false,
|
|
|
fireInspection: true,
|
|
|
clicKValue: 0, //点击的样式
|
|
|
- selectedTag:''
|
|
|
+ selectedTag: ''
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -166,7 +159,6 @@
|
|
|
},
|
|
|
// 在 vue页面,向起始页通过事件传递数据
|
|
|
onLoad: function(option) {
|
|
|
- console.log(option, 'option');
|
|
|
if (option.my) {
|
|
|
this.my = option.my
|
|
|
}
|
|
@@ -174,32 +166,36 @@
|
|
|
},
|
|
|
|
|
|
onShow() {
|
|
|
- this.tableData = []
|
|
|
- this.getData(1);
|
|
|
+ this.tableData = []
|
|
|
+ this.getData(1);
|
|
|
+ this.selectedTag =''
|
|
|
+ this.fireInspection =true
|
|
|
+ this.clicKValue=0
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
setInverted(value, rotues) { //标签的点击事件
|
|
|
+ this.fireInspection = false;
|
|
|
+ // this.drill = false;
|
|
|
+ // this.fireService = false;
|
|
|
+ // this.special = false;
|
|
|
+ // this.hotApproval = false;
|
|
|
switch (value) {
|
|
|
case 0:
|
|
|
this.fireInspection = true //消防检查结果
|
|
|
break;
|
|
|
- case 1:
|
|
|
- this.drill = true //培训与演练
|
|
|
- this.fireInspection = false
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- this.fireService = true //消防设施维护和检测
|
|
|
- this.fireInspection = false
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- this.special = true //特种作业人员
|
|
|
- this.fireInspection = false
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- this.hotApproval = true //动火审批
|
|
|
- this.fireInspection = false
|
|
|
- break;
|
|
|
+ // case 1:
|
|
|
+ // this.drill = true //培训与演练
|
|
|
+ // break;
|
|
|
+ // case 2:
|
|
|
+ // this.fireService = true //消防设施维护和检测
|
|
|
+ // break;
|
|
|
+ // case 3:
|
|
|
+ // this.special = true //特种作业人员
|
|
|
+ // break;
|
|
|
+ // case 4:
|
|
|
+ // this.hotApproval = true //动火审批
|
|
|
+ // break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -268,11 +264,11 @@
|
|
|
this.isLoaded = false
|
|
|
if (this.my == "myonly") {
|
|
|
uni.navigateTo({
|
|
|
- url: `/pagesA/fire/check_record/picture/picture?items=${JSON.stringify(val)}`
|
|
|
+ url: `/pagesB/fire/check_record/picture/picture?items=${JSON.stringify(val)}`
|
|
|
});
|
|
|
} else {
|
|
|
uni.navigateTo({
|
|
|
- url: `/pagesA/fire/check_record/picture/picture?id=${val.id}`
|
|
|
+ url: `/pagesB/fire/check_record/picture/picture?id=${val.id}`
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -298,7 +294,7 @@
|
|
|
gotoPersonnelDetails(val) {
|
|
|
this.isLoaded = false
|
|
|
uni.navigateTo({
|
|
|
- url: '/pagesA/fire/check_record/personnel_record/personnel_record?id=' + val.id
|
|
|
+ url: '/pagesB/fire/check_record/personnel_record/personnel_record?id=' + val.id
|
|
|
});
|
|
|
},
|
|
|
// 触底的事件
|