|
|
|
@ -13,8 +13,8 @@ |
|
|
|
|
<view class="user-name"> |
|
|
|
|
{{ name }} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="user-jobs-box"> |
|
|
|
|
</view>{{ userType }} |
|
|
|
|
<view class="user-jobs-box" v-if="userType == 1||userType == 2"> |
|
|
|
|
<view class="jobs-item ani" hover-class="isHoverIng"> |
|
|
|
|
<view class="jobs-nums text-white">{{ servingTotalEnterpriseNum }}</view> |
|
|
|
|
<view class="jobs-name">服务企业总数</view> |
|
|
|
@ -30,11 +30,12 @@ |
|
|
|
|
<view class="jobs-name">本月已复查企业</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content-boxs"> |
|
|
|
|
<view class="content-boxs mt40"> |
|
|
|
|
<view class="content-title">工作管理</view> |
|
|
|
|
<view class="content-content jobs-content"> |
|
|
|
|
|
|
|
|
|
<view class="lg-btn lg-btns one ani" hover-class="isHoverIng" @click="golaws(7)"> |
|
|
|
|
<view class="lg-btn lg-btns one ani" hover-class="isHoverIng" @click="golaws(7)" |
|
|
|
|
v-if="userType == 1||userType == 2"> |
|
|
|
|
<view class="left"> |
|
|
|
|
<view class="lg-text">安全检查</view> |
|
|
|
|
<view class="xs-text">查看计划信息</view> |
|
|
|
@ -56,7 +57,7 @@ |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
<view class="right-lg-btn"> |
|
|
|
|
<view class="right-lg-btn" v-if="userType == 1||userType == 2"> |
|
|
|
|
|
|
|
|
|
<view class="lg-btn four ani" hover-class="isHoverIng" @click="golaws(4)"> |
|
|
|
|
<view class="left"> |
|
|
|
@ -80,6 +81,29 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="lg-btn four ani" hover-class="isHoverIng" @click="golaws(4)" |
|
|
|
|
v-if="userType == 0"> |
|
|
|
|
<view class="left"> |
|
|
|
|
<view class="lg-text">检查记录</view> |
|
|
|
|
<view class="xs-text">查看检查记录</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="right"> |
|
|
|
|
<!-- <image src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/index/his-check@2x.png" mode="" /> --> |
|
|
|
|
<image src="https://i.postimg.cc/fy9jVGpB/his-check-2x.png" mode="" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="lg-btn three three1 ani" hover-class="isHoverIng" @click="golaws(6)" |
|
|
|
|
v-if="userType == 0"> |
|
|
|
|
<view class="left"> |
|
|
|
|
<view class="lg-text">安全复查</view> |
|
|
|
|
<view class="xs-text">查看复查信息</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="right"> |
|
|
|
|
<!-- <image src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/index/re-check@2x.png" mode="" /> --> |
|
|
|
|
<image src="https://i.postimg.cc/65h4M6rC/re-check-2x.png" mode="" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content-boxs"> |
|
|
|
@ -108,7 +132,7 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content-boxs last-content-box"> |
|
|
|
|
<view class="content-title">待复查任务</view> |
|
|
|
|
<view class="content-title">{{ userType == 1||userType == 2? "待复查任务" : "待整改项目" }}</view> |
|
|
|
|
<view class="content-content news-content"> |
|
|
|
|
<!-- <view class="tags-box"> |
|
|
|
|
<uni-badge class="uni-badge-left-margin" type="warning" :text="8" absolute="rightTop" :offset="[-5, 2]" |
|
|
|
@ -130,7 +154,7 @@ |
|
|
|
|
暂无任务 |
|
|
|
|
</text> |
|
|
|
|
<view class="news-box" v-else> |
|
|
|
|
<view class="news-item" v-for="(news, index) in mocNews" :key="index"> |
|
|
|
|
<view class="news-item" v-for="(news, index) in mocNews" :key="index" @click="viewDetails(news, true,userType!=0?'1':'')"> |
|
|
|
|
<view class="news-ico"> |
|
|
|
|
<!-- src="https://mp-df79fe8b-b924-41b0-bcb1-960be6b4a619.cdn.bspapp.com/images/index/msgicon@2x.png" --> |
|
|
|
|
<image src="https://i.postimg.cc/28NnHXPN/msgicon-2x.png" mode=""></image> |
|
|
|
@ -160,6 +184,7 @@ |
|
|
|
|
import { parseTime } from '@/utils/ruoyi.js'; |
|
|
|
|
import menusBar from '@/components/menusBar/menusBar'; |
|
|
|
|
import * as Api from '@/api/index/index' |
|
|
|
|
import store from '@/store' |
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
menusBar |
|
|
|
@ -169,8 +194,9 @@ export default { |
|
|
|
|
servingTotalEnterpriseNum: 0, |
|
|
|
|
thisMonthCheckedEnterpriseNum: 0, |
|
|
|
|
thisMonthAgainCheckedEnterpriseNum: 0, |
|
|
|
|
// name: this.$store.state.user.name, |
|
|
|
|
name: "河北省文化和旅游厅市场管理处", |
|
|
|
|
name: this.$store.state.user.name, |
|
|
|
|
userType: this.$store.state.user.userType, |
|
|
|
|
// name: "河北省文化和旅游厅市场管理处", |
|
|
|
|
choseindex: 0, |
|
|
|
|
mocNews: [ |
|
|
|
|
// { |
|
|
|
@ -214,9 +240,15 @@ export default { |
|
|
|
|
this.getJobs() |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
console.log(store.state.user) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
viewDetails(item,val,type){ |
|
|
|
|
const data = encodeURIComponent(JSON.stringify(item)) |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pageIndex/addSafeCheck/readdSafeCheck?data='+data+'&val='+val+'&type='+type |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getEvents() { |
|
|
|
|
Api.getDataStatistics().then(res => { |
|
|
|
|
this.servingTotalEnterpriseNum = res.data.servingTotalEnterpriseNum; |
|
|
|
@ -289,12 +321,18 @@ export default { |
|
|
|
|
scoped> |
|
|
|
|
@import '@/static/scss/index/index.scss'; |
|
|
|
|
|
|
|
|
|
page { |
|
|
|
|
min-height: auto; |
|
|
|
|
background-color: #F6F8FC; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.content { |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: center; |
|
|
|
|
justify-content: start; |
|
|
|
|
background: #F6F8FC; |
|
|
|
|
min-height: 100vh; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.head-bg { |
|
|
|
@ -347,7 +385,6 @@ export default { |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: space-evenly; |
|
|
|
|
margin-top: 40rpx; |
|
|
|
|
margin-bottom: 40rpx; |
|
|
|
|
position: relative; |
|
|
|
|
z-index: 9; |
|
|
|
|
|
|
|
|
@ -371,6 +408,10 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.mt40 { |
|
|
|
|
margin-top: 40rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.jobs-content { |
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
|
@ -481,6 +522,10 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.three1{ |
|
|
|
|
margin-top: 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.four { |
|
|
|
|
background: linear-gradient(90deg, #B0E8F5 0%, #DCF5FA 100%); |
|
|
|
|
|
|
|
|
|