123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411 |
- <!-- 计划详情 -->
- <template>
- <view class="planDetail">
- <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
- <view class="header">
- <view class="tabTitle">
- <view class="tabTitle_li" @tap="tabClick(index)" :key="index" v-for="(item,index) in tabText">
- <view class="tabTitle_text">
- <img :src="item.img">
- <view
- :id="curTab==index && curTab==0?'fontColor-A':(curTab==index && curTab==1?'fontColor-B':'')">
- {{item.name}}
- </view>
- <view>{{item.title}}</view>
- </view>
- <view :class="{on:curTab==index}" class="tabTitle_across">
- <img src="@/pages_safetyCheck/images/img_xyzc_bg@1x.png">
- </view>
- </view>
- </view>
- </view>
- <view class="list">
- <view class="list-li" @click="planClick(item)" v-for="(item,index) in dataList">
- <view :id="item.status==0?'bgColor-A':'bgColor-B'">{{item.status==0?'全部检查':'专项检查'}}</view>
- <view>{{item.title}}</view>
- <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
- </view>
- </view>
- </scroll-view>
- <view class="shade" v-if="dialogVisible">
- <view class="null-box" @click="dialogClose()"></view>
- <view class="shade_n">
- <view class="title">
- <view>检查批次</view>
- <img src="@/pages_safetyCheck/images/icon_06.png">
- </view>
- <view class="batch">
- <view class="batch-li" @click="batchClick(item)" v-for="(item,index) in batchList">
- <view class="batch-li-l">
- <text>{{item.title}}</text>
- <text>开始检查日期:{{item.time}}</text>
- </view>
- <view class="batch-li-r">检查进度{{item.schedule}}
- <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- config
- } from '@/api/request/config.js'
- import {} from '@/pages/api/index.js'
- export default {
- name: "planDetail",
- components: {
- },
- data() {
- return {
- baseUrl: config.base_url,
- pageType: 0,
- tabText: [{
- name: '校级检查',
- title: '学校检查计划',
- img: require('@/pages_safetyCheck/images/img_aqjc_xjjc@1x.png'),
- },
- {
- name: '学院自查',
- title: '学院自查计划',
- img: require('@/pages_safetyCheck/images/img_aqjc_xyzc@1x.png'),
- },
- {
- name: '随手拍',
- title: '隐患上报整改',
- img: require('@/pages_safetyCheck/images/img_aqjc_ssp@1x.png'),
- },
- ],
- curTab: 0,
- dataList: [{
- status: 0,
- title: '计划标题计划标题计划标题计划标题计划标题计划标题计划标题计划标题',
- },
- {
- status: 1,
- title: '计划标题计划标题计划标题计划标题',
- }
- ],
- dialogVisible: false,
- batchList:[
- {
- title:'第3次检查',
- time:'2024-04-01',
- schedule:'0%',
- },
- {
- title:'第3次检查',
- time:'2024-04-01',
- schedule:'0%',
- },
- {
- title:'第3次检查',
- time:'2024-04-01',
- schedule:'0%',
- },
- {
- title:'第3次检查',
- time:'2024-04-01',
- schedule:'0%',
- },
- {
- title:'第3次检查',
- time:'2024-04-01',
- schedule:'0%',
- },
- ],
- }
- },
- onLoad(option) {
- },
- onShow() {
- },
- mounted() {
- },
- methods: {
- //滚动事件
- scrollGet() {},
- //顶部tab点击
- tabClick(index) {
- this.curTab = index;
- if(index==0){
- //校级检查
-
- }else if(index==1){
- //学院自查
-
- }else if(index==2){
- //随手拍
- uni.navigateTo({
- url: "/pages_safetyCheck/views/safetyCheck",
- });
- }
- },
- //检查批次点击
- batchClick(row){
- let infoData=row;
- infoData.pageType=this.curTab;
- uni.navigateTo({
- url: '/pages_safetyCheck/views/inspectManage/inspectList?infoData=' + encodeURIComponent(JSON.stringify(infoData))
- });
- },
- planClick(row){
- //如果只有1个检查批次不弹窗
- this.dialogVisible = true;
- },
- dialogClose() {
- this.dialogVisible = false;
- },
- }
- }
- </script>
- <style lang="stylus" scoped>
- .planDetail {
- height: 100%;
- display flex;
- box-sizing: border-box;
- #fontColor-A {
- color: #00AEDE;
- }
- #fontColor-B {
- color: #009519;
- }
- #bgColor-A {
- color: #0183FA;
- background: rgba(1, 131, 250, 0.2);
- }
- #bgColor-B {
- color: #16B531;
- background: rgba(22, 181, 49, 0.2);
- }
- .header {
- width: 100%;
- position: fixed;
- top: 0rpx;
- z-index: 100;
- background: #fff;
- .tabTitle {
- width: 750rpx;
- height: 225rpx;
- display flex;
- justify-content: flex-start;
- align-items: center;
- border-bottom: 4rpx solid #F5F5F5;
- .tabTitle_li {
- height: 225rpx;
- flex: 1;
- position: relative;
- text-align center;
- border-right: 2rpx solid #F5F5F5;
- .tabTitle_text {
- display: flex;
- justify-content: center;
- flex-direction: column;
- align-items: center;
- >img {
- width: 80rpx;
- height: 80rpx;
- margin-top: 20rpx;
- }
- >view:nth-of-type(1) {
- font-size: 30rpx;
- color: #333333;
- line-height: 42rpx;
- text-align: left;
- margin-top: 10rpx;
- }
- >view:nth-of-type(2) {
- font-size: 24rpx;
- color: #666666;
- line-height: 34rpx;
- text-align: left;
- }
- position: relative;
- &.on {}
- }
- .tabTitle_across {
- /* width: 50rpx;
- height: 4rpx;
- background: #0183FA;
- border-radius: 2rpx; */
- margin-left: 38%;
- margin-top: 12rpx;
- display none;
- >img {
- width: 40rpx;
- height: 26rpx;
- }
- &.on {
- display block;
- }
- }
- }
- }
- }
- .list {
- background: #fff;
- margin-top: 225rpx;
- .list-li {
- border-bottom: 1rpx dashed #E0E0E0;
- height: 80rpx;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- padding: 0 30rpx;
- box-sizing: border-box;
- >view:nth-of-type(1) {
- width: 120rpx;
- height: 40rpx;
- background: rgba(1, 131, 250, 0.2);
- border-radius: 10rpx 10rpx 10rpx 10rpx;
- font-size: 24rpx;
- color: #0183FA;
- line-height: 40rpx;
- text-align: center;
- }
- >view:nth-of-type(2) {
- flex: 1;
- font-size: 28rpx;
- color: #333333;
- line-height: 39rpx;
- text-align: left;
- margin: 0 52rpx 0 20rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- >img {
- width: 24rpx;
- height: 24rpx;
- }
- }
- }
- .shade {
- height: 100%;
- width: 100%;
- position: fixed;
- display: flex;
- flex-direction: column;
- z-index: 200;
- background: rgba(0, 0, 0, 0.2);
- .null-box {
- flex: 1;
- }
- .shade_n {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 750rpx;
- height: 466rpx;
- background: #FFFFFF;
- border-radius: 20rpx 20rpx 0rpx 0rpx;
- overflow-y: auto;
- .title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 50rpx 0 284rpx;
- box-sizing: border-box;
- border-bottom: 1rpx solid #E0E0E0;
- >view {
- font-size: 30rpx;
- color: #3D3D3D;
- line-height: 90rpx;
- text-align: left;
- }
- >img {
- width: 24rpx;
- height: 12rpx;
- }
- }
- .batch{
- padding: 0 30rpx;
- box-sizing: border-box;
- .batch-li{
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-bottom: 1rpx solid #E0E0E0;
- padding: 20rpx 0 16rpx 0rpx;
- box-sizing: border-box;
- .batch-li-l{
- >text:nth-of-type(1){
- display: block;
- font-size: 30rpx;
- color: #333333;
- line-height: 42rpx;
- text-align: left;
- }
- >text:nth-of-type(2){
- display: block;
- font-size: 28rpx;
- color: #666666;
- line-height: 39rpx;
- text-align: left;
- margin-top: 6rpx;
- }
- }
- .batch-li-r{
- font-size: 28rpx;
- color: #666666;
- line-height: 39rpx;
- text-align: left;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- >img{
- width: 24rpx;
- height: 24rpx;
- margin-left: 9rpx;
- }
- }
- }
- }
- }
- }
- }
- </style>
|