914 lines
19 KiB
Vue
914 lines
19 KiB
Vue
<template>
|
|
<view class="addIssue">
|
|
<view class="fixedheader">
|
|
<headers :showBack="true" :themeType="true">
|
|
<view class="headerName">
|
|
关联业务
|
|
</view>
|
|
</headers>
|
|
</view>
|
|
<view class="search-box" :style="{paddingTop: mobileTopHeight + 44 + 'px'}">
|
|
<view class="uni-form-item">
|
|
<u-search class="uni-input" placeholder="请输入名称" :show-action="false" @change="loadData"
|
|
v-model="policeCameraInfo.numberOrContent"></u-search>
|
|
<view @click="issueInvoiceShow = true" class="search-btn">
|
|
<image src="/static/riskPoint/screenIcon.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
<u-tabs :bar-height="4" :font-size="28" active-color="#498CEC" inactive-color="#B3B3B3" :bar-width="375"
|
|
:list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
|
|
</view>
|
|
<view class="content" :style="{paddingTop: mobileTopHeight + 130 + 'px'}">
|
|
<view class="content_main" v-if="workTicketList.length > 0">
|
|
<view class="main3_box" @click.prevent="onNavigateToDetail(item)" v-for="item in workTicketList"
|
|
:key="item.id">
|
|
<view class="box-header">
|
|
<view @click.stop>
|
|
<u-checkbox-group>
|
|
<u-checkbox shape="circle" v-model="item.checked" :name="item.id"></u-checkbox>
|
|
</u-checkbox-group>
|
|
<view>
|
|
{{item.workTicketNumber}}
|
|
</view>
|
|
</view>
|
|
<view
|
|
:class="{'wks_active': item.status == 1, 'sgz_active': item.status == 2,'ztz_active': item.status == 3,'ywg_acitve': item.status == 4}">
|
|
{{statusUp(item.status)}}
|
|
</view>
|
|
</view>
|
|
<view class="box-item">
|
|
<view>类别:</view>
|
|
<view>{{item.typeName}}</view>
|
|
</view>
|
|
<view class="box-item">
|
|
<view>危大工程概述:</view>
|
|
<view>{{item.typeName}}</view>
|
|
</view>
|
|
<view class="box-item">
|
|
<view>施工部位:</view>
|
|
<view>{{item.constructionAreaNames}}</view>
|
|
</view>
|
|
<view class="box-item">
|
|
<view>责任人:</view>
|
|
<view>{{item.operator}}</view>
|
|
</view>
|
|
<view class="box-item">
|
|
<view>施工时间:</view>
|
|
<view>{{item.constructionTimeBegin}}至{{item.constructionTimeEnd}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="new-nodata" v-else>
|
|
<view></view>
|
|
<text>暂无数据...</text>
|
|
</view>
|
|
<view class="confrim-bottom">
|
|
<!-- <view class="">
|
|
<u-checkbox-group @change="checkedAll">
|
|
<u-checkbox shape="circle" v-model="checked">全选</u-checkbox>
|
|
</u-checkbox-group>
|
|
</view> -->
|
|
<view @click="issueInvoiceShow = false;">取消</view>
|
|
<view @click="onSubmit">确定</view>
|
|
</view>
|
|
</view>
|
|
<u-toast ref="uToast" />
|
|
<u-popup v-model="issueInvoiceShow" :closeable="false" mode="bottom">
|
|
<view class="content-popup">
|
|
<!-- <view class="content-popup_header">
|
|
工作票类型
|
|
</view> -->
|
|
<scroll-view scroll-y="true" style="height: 800rpx;">
|
|
<view class="content-popup_main">
|
|
<view>
|
|
<view>风险分类</view>
|
|
<view>
|
|
<view class="active">危大工程(100)</view>
|
|
<view>危大工程(100)</view>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>责任区域</view>
|
|
<view>
|
|
<view class="active">待选(100)</view>
|
|
<view>待选(100)</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
<view class="confrim-btn">
|
|
<view @click="issueInvoiceShow = false;">取消</view>
|
|
<view @click="onSubmit">确定</view>
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import TreeView from '@/components/tree-view/TreeView.vue';
|
|
export default {
|
|
components: {
|
|
TreeView
|
|
},
|
|
data() {
|
|
return {
|
|
mobileTopHeight: 0,
|
|
projectDetail: {},
|
|
list: [{
|
|
name: '危大工程'
|
|
}, {
|
|
name: '机械设备'
|
|
}],
|
|
current: 0,
|
|
checked: false,
|
|
searchName: "",
|
|
|
|
workTicketList: [],
|
|
policeCameraInfo: {
|
|
numberOrContent: "",
|
|
},
|
|
pageNo: 1,
|
|
pageSize: 10,
|
|
workTicketTypeListAll: [],
|
|
issueInvoiceShow: false,
|
|
checkedIdList: [],
|
|
constructionTimeShow: false,
|
|
stateShow: false,
|
|
stateType: "",
|
|
stateInfo: {},
|
|
// 区域
|
|
qualityRegionList: [],
|
|
// 申请单位
|
|
workTicketTypeList: [],
|
|
searchInfo: {
|
|
constructionAreasName: "",
|
|
}
|
|
}
|
|
},
|
|
onLoad(opts) {
|
|
this.projectDetail = JSON.parse(uni.getStorageSync('projectDetail'));
|
|
},
|
|
mounted() {
|
|
var that = this
|
|
uni.getSystemInfo({
|
|
success(res) {
|
|
that.mobileTopHeight = res.statusBarHeight ? res.statusBarHeight : 0;
|
|
uni.setStorageSync('systemInfo', res)
|
|
console.log(res)
|
|
}
|
|
})
|
|
},
|
|
onShow() {
|
|
this.loadData();
|
|
},
|
|
onReachBottom() {
|
|
console.log(1)
|
|
if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
|
|
this.isLoadMore = true
|
|
this.pageNo += 1
|
|
this.getPoliceCameraItemListFn()
|
|
}
|
|
},
|
|
onPullDownRefresh() {
|
|
console.log(2)
|
|
this.pageNo = 1
|
|
this.workTicketList = []
|
|
this.getPoliceCameraItemListFn()
|
|
},
|
|
methods: {
|
|
change(index) {
|
|
this.current = index;
|
|
},
|
|
// 打开详情
|
|
onNavigateToDetail(row) {
|
|
// uni.navigateTo({
|
|
// url: `./riskPointDetail?id=${row.id}`
|
|
// })
|
|
},
|
|
// 全选
|
|
checkedAll(e) {
|
|
this.workTicketList.forEach(item => {
|
|
item.checked = this.checked;
|
|
})
|
|
},
|
|
onSubmit() {
|
|
console.log(333, this.checkedIdList);
|
|
if (this.checkedIdList.length == 0) return this.showToast('请先选择作业票类型', 'warning');
|
|
this.issueInvoiceShow = false;
|
|
uni.navigateTo({
|
|
url: `./addWorkTicket?id=${this.checkedIdList[0]}`
|
|
})
|
|
},
|
|
onDelete() {
|
|
let that = this;
|
|
const resultList = this.workTicketList.filter(item => item.checked);
|
|
if (resultList.length == 0) {
|
|
this.showToast('请先选择需要删除的作业票', 'warning');
|
|
return
|
|
}
|
|
let data = {
|
|
projectSn: this.projectDetail.projectSn,
|
|
ids: resultList.map(item => item.id).join(',')
|
|
};
|
|
this.sendRequest({
|
|
url: 'xmgl/workTicket/deleteBatch',
|
|
method: 'POST',
|
|
data: data,
|
|
success: res => {
|
|
if (res.code == 200) {
|
|
that.showToast('删除成功!', 'success');
|
|
that.loadData();
|
|
}
|
|
}
|
|
})
|
|
},
|
|
loadData() {
|
|
this.pageNo = 1
|
|
this.workTicketList = []
|
|
this.getPoliceCameraItemListFn();
|
|
},
|
|
// 获取工作票列表
|
|
getPoliceCameraItemListFn() {
|
|
let data = {
|
|
...this.policeCameraInfo,
|
|
pageNo: this.pageNo,
|
|
pageSize: this.pageSize,
|
|
projectSn: this.projectDetail.projectSn,
|
|
}
|
|
|
|
this.sendRequest({
|
|
url: 'xmgl/workTicket/page',
|
|
method: 'GET',
|
|
data: data,
|
|
success: res => {
|
|
uni.hideLoading()
|
|
if (res.code == 200) {
|
|
console.log("workList======================", res)
|
|
const resultList = res.result.records.map(item => {
|
|
return {
|
|
...item,
|
|
checked: false,
|
|
expandMoreShow: false,
|
|
}
|
|
})
|
|
this.workTicketList = this.workTicketList.concat(resultList)
|
|
if (res.result.records.length < this.pageSize) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
|
|
this.isLoadMore = true
|
|
this.loadStatus = 'nomore'
|
|
} else {
|
|
this.isLoadMore = false
|
|
// that.loadStatus='more'
|
|
}
|
|
uni.stopPullDownRefresh()
|
|
}
|
|
}
|
|
})
|
|
},
|
|
showToast(title, type) {
|
|
this.$refs.uToast.show({
|
|
title: title,
|
|
type: type,
|
|
})
|
|
},
|
|
},
|
|
computed: {
|
|
statusUp() {
|
|
return (id) => {
|
|
const dataList = [{
|
|
value: 1,
|
|
label: "未开始"
|
|
}, {
|
|
value: 2,
|
|
label: "施工中"
|
|
}, {
|
|
value: 3,
|
|
label: "暂停中"
|
|
}, {
|
|
value: 4,
|
|
label: "已完工"
|
|
}]
|
|
const find = dataList.find(item => item.value == id);
|
|
return find ? find.label : '--'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
/deep/ .u-mode-center-box {
|
|
width: 698rpx !important;
|
|
|
|
.u-model__title {
|
|
padding: 0;
|
|
font-size: 32rpx;
|
|
color: #272D45;
|
|
height: 86rpx;
|
|
background-color: #FFFFFF;
|
|
box-shadow: 0rpx 8rpx 10rpx -8rpx rgba(81, 129, 246, 0.42);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.u-model__content__message {
|
|
padding: 26rpx 26rpx 72rpx;
|
|
font-size: 28rpx;
|
|
color: #171717;
|
|
}
|
|
|
|
.u-model__footer__button {
|
|
height: 76rpx;
|
|
line-height: 76rpx;
|
|
background-color: rgba(81, 129, 246, 0.1);
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
color: #5181F6;
|
|
}
|
|
|
|
.hairline-left {
|
|
background-color: #5181F6;
|
|
color: white !important;
|
|
}
|
|
|
|
.content_main-box1 {
|
|
padding: 26rpx 28rpx;
|
|
|
|
>view:first-child {
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
color: #171717;
|
|
}
|
|
|
|
>view:last-child {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
font-size: 24rpx;
|
|
color: #FFA026;
|
|
margin-top: 26rpx;
|
|
|
|
.u-icon {
|
|
font-size: 35rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/deep/ .u-drawer-content-visible {
|
|
border-radius: 16rpx 16rpx 0rpx 0rpx;
|
|
}
|
|
|
|
.content-popup {
|
|
border-radius: 16rpx 16rpx 0rpx 0rpx;
|
|
|
|
.content-popup_main {
|
|
padding: 0 26rpx;
|
|
|
|
>view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
line-height: 72rpx;
|
|
|
|
>view:first-child {
|
|
font-weight: 500;
|
|
font-size: 30rpx;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
>view:last-child {
|
|
font-size: 28rpx;
|
|
color: #808080;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
|
|
>view:not(:first-child) {
|
|
margin-left: 66rpx;
|
|
}
|
|
|
|
>view {
|
|
width: 232rpx;
|
|
height: 80rpx;
|
|
background: #F4F5F7;
|
|
border-radius: 8rpx;
|
|
font-size: 28rpx;
|
|
color: #A2A4AF;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
>.active {
|
|
background: #498CEC;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.content-popup_header {
|
|
height: 86rpx;
|
|
box-shadow: 0rpx 8rpx 10rpx -8rpx rgba(81, 129, 246, 0.42);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 800;
|
|
font-size: 30rpx;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
uni-scroll-view {
|
|
margin: 26rpx 0;
|
|
}
|
|
|
|
.confrim-btn {
|
|
padding: 18rpx 26rpx;
|
|
background-color: #FFFFFF;
|
|
box-shadow: 0rpx -8rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
|
|
display: flex;
|
|
|
|
>view {
|
|
width: 50%;
|
|
height: 76rpx;
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
>view:first-child {
|
|
background-color: rgba(81, 129, 246, 0.1);
|
|
border-radius: 6rpx 0rpx 0rpx 6rpx;
|
|
color: #5181F6;
|
|
}
|
|
|
|
>view:last-child {
|
|
background-color: #5181F6;
|
|
border-radius: 0rpx 6rpx 6rpx 0rpx;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
}
|
|
|
|
.addIssue {
|
|
min-height: 100vh;
|
|
background-color: #F2F3F7;
|
|
}
|
|
|
|
.content {
|
|
.content_main {
|
|
margin-top: 26rpx;
|
|
// background-color: white;
|
|
padding-bottom: 138rpx;
|
|
min-height: calc(100vh - 130rpx - 138rpx - 26rpx);
|
|
|
|
>.main3_box:not(:first-child) {
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.pb_140 {
|
|
padding-bottom: 140rpx !important;
|
|
}
|
|
|
|
.main3_box {
|
|
padding: 30rpx 28rpx;
|
|
background-color: white;
|
|
border-radius: 18rpx;
|
|
position: relative;
|
|
|
|
.box-bottom {
|
|
width: 100%;
|
|
padding: 0 26rpx;
|
|
height: 112rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: #FFFFFF;
|
|
box-shadow: 0rpx -8rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
|
|
border-radius: 0 0 18rpx 18rpx;
|
|
justify-content: flex-end;
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
|
|
>view {
|
|
padding: 10rpx 18rpx;
|
|
border-radius: 6rpx;
|
|
border: 2rpx solid #3E89FD;
|
|
font-size: 28rpx;
|
|
color: #3E89FD;
|
|
}
|
|
|
|
>view:not(:first-child) {
|
|
margin-left: 20rpx;
|
|
}
|
|
|
|
.btn-error {
|
|
border-color: #ED2B29;
|
|
color: #ED2B29;
|
|
}
|
|
|
|
.btn-start {
|
|
background-color: #3E89FD;
|
|
border-color: #3E89FD;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
|
|
.box-content_detail {
|
|
font-size: 28rpx;
|
|
color: #4D4D4D;
|
|
margin-top: 4rpx;
|
|
}
|
|
|
|
.webkit-clamp_2 {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
/* 限制为两行 */
|
|
overflow: hidden;
|
|
}
|
|
|
|
.box-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 26rpx;
|
|
font-size: 28rpx;
|
|
|
|
>view:first-child {
|
|
color: #808080;
|
|
}
|
|
|
|
>view:last-child {
|
|
font-size: 24rpx;
|
|
color: #4D8EEC;
|
|
}
|
|
}
|
|
|
|
.box-item {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 26rpx;
|
|
font-size: 28rpx;
|
|
|
|
>view:first-child {
|
|
width: 220rpx;
|
|
margin-right: 26rpx;
|
|
color: #808080;
|
|
}
|
|
|
|
>view:last-child {
|
|
flex: 1;
|
|
color: #4D4D4D;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 1;
|
|
/* 限制为两行 */
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
.box-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
>view:first-child {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
>view:last-child {
|
|
font-weight: 800;
|
|
font-size: 30rpx;
|
|
color: #171717;
|
|
}
|
|
}
|
|
|
|
>view:last-child {
|
|
padding: 4rpx 36rpx 4rpx 20rpx;
|
|
border-radius: 4rpx;
|
|
// border: 2rpx solid #F1F1F1;
|
|
font-weight: 500;
|
|
font-size: 22rpx;
|
|
position: relative;
|
|
}
|
|
|
|
.wks_active {
|
|
color: #898989;
|
|
}
|
|
|
|
.wks_active::before {
|
|
content: '';
|
|
background-color: #898989;
|
|
width: 16rpx;
|
|
height: 16rpx;
|
|
border-radius: 50%;
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.sgz_active {
|
|
color: #498CEC;
|
|
}
|
|
|
|
.sgz_active::before {
|
|
content: '';
|
|
width: 16rpx;
|
|
height: 16rpx;
|
|
background: #498CEC;
|
|
border-radius: 50%;
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.ztz_active {
|
|
color: #C38100;
|
|
}
|
|
|
|
.ztz_active::before {
|
|
content: '';
|
|
width: 16rpx;
|
|
height: 16rpx;
|
|
background: #C38100;
|
|
border-radius: 50%;
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.ywg_acitve {
|
|
color: #88CF65;
|
|
}
|
|
|
|
.ywg_acitve::before {
|
|
content: '';
|
|
width: 16rpx;
|
|
height: 16rpx;
|
|
background: #88CF65;
|
|
border-radius: 50%;
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.confrim-bottom {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: fixed;
|
|
bottom: 0;
|
|
z-index: 1;
|
|
padding: 18rpx 26rpx;
|
|
background-color: #FFFFFF;
|
|
box-shadow: 0rpx -8rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
|
|
|
|
>view {
|
|
width: 50%;
|
|
height: 76rpx;
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
>view:first-child {
|
|
background-color: rgba(81, 129, 246, 0.1);
|
|
border-radius: 6rpx 0rpx 0rpx 6rpx;
|
|
color: #5181F6;
|
|
}
|
|
|
|
>view:last-child {
|
|
background-color: #5181F6;
|
|
border-radius: 0rpx 6rpx 6rpx 0rpx;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
}
|
|
|
|
.fixedheader {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 999;
|
|
|
|
/deep/ .headerBox {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.headerName {
|
|
z-index: 1;
|
|
}
|
|
}
|
|
|
|
.search-box {
|
|
background-color: white;
|
|
width: 100%;
|
|
position: fixed;
|
|
z-index: 99;
|
|
|
|
.uni-form-item {
|
|
padding: 26rpx 26rpx 0;
|
|
position: relative;
|
|
display: flex;
|
|
|
|
.uni-input {
|
|
border: 2rpx solid #E4E4E4;
|
|
border-radius: 68rpx;
|
|
padding: 0;
|
|
font-size: 30rpx;
|
|
color: #444444;
|
|
|
|
/deep/ .u-content {
|
|
background-color: #FFFFFF !important;
|
|
|
|
.u-input {
|
|
background-color: #FFFFFF !important;
|
|
color: #999999 !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search-btn {
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
background: #498CEC;
|
|
border-radius: 48rpx;
|
|
margin-left: 30rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
>image {
|
|
width: 50rpx;
|
|
height: 50rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
/deep/ .u-dropdown {
|
|
padding-right: 60rpx;
|
|
}
|
|
|
|
.calendar_box {
|
|
position: absolute;
|
|
right: 28rpx;
|
|
bottom: 20rpx;
|
|
|
|
.calendar {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
background-image: url('@/static/workTicketManage/calendar.png');
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.calendar_active {
|
|
background-image: url('@/static/workTicketManage/calendar-active.png');
|
|
}
|
|
}
|
|
}
|
|
|
|
.scroll-view {
|
|
margin: 10rpx 26rpx;
|
|
width: calc(100% - 26rpx - 26rpx);
|
|
max-height: 60vh;
|
|
border-radius: 6rpx;
|
|
}
|
|
|
|
/deep/ .u-dropdown__menu__item__text {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 1;
|
|
/* 限制为两行 */
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cell-box {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
padding: 13px 16px;
|
|
font-size: 14px;
|
|
line-height: 27px;
|
|
color: #606266;
|
|
background-color: #fff;
|
|
text-align: left;
|
|
|
|
>view {
|
|
flex: 1;
|
|
margin-right: 20rpx;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 1;
|
|
/* 限制为两行 */
|
|
overflow: hidden;
|
|
}
|
|
|
|
.box-active {
|
|
color: rgb(49, 144, 243);
|
|
}
|
|
|
|
>image {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
}
|
|
}
|
|
|
|
/deep/ .u-mask {
|
|
z-index: 10 !important;
|
|
}
|
|
|
|
/deep/ .u-dropdown__content {
|
|
// height: initial !important;
|
|
// top: 166rpx !important;
|
|
overflow: visible !important;
|
|
}
|
|
|
|
/deep/ .van-dropdown-item__content,
|
|
/deep/ .u-cell-item-box {
|
|
margin: 20rpx 26rpx;
|
|
width: calc(100% - 26rpx - 26rpx);
|
|
border-radius: 6rpx;
|
|
}
|
|
|
|
/deep/ .u-cell-item-box {
|
|
// max-height: 60vh;
|
|
// overflow-y: scroll;
|
|
}
|
|
|
|
/deep/ .uicon-arrow-down {
|
|
// position: absolute;
|
|
// top: 50%;
|
|
// right: -4px;
|
|
margin-top: -5px;
|
|
border: 3px solid;
|
|
border-color: transparent transparent #dcdee0 #dcdee0;
|
|
-webkit-transform: rotate(-45deg);
|
|
transform: rotate(-45deg);
|
|
opacity: .8;
|
|
content: '';
|
|
}
|
|
|
|
/deep/ .u-dropdown__menu__item__arrow--rotate .uicon-arrow-down {
|
|
border-color: transparent transparent rgb(49, 144, 243) rgb(49, 144, 243);
|
|
}
|
|
|
|
/deep/ .uicon-arrow-down::before {
|
|
display: none;
|
|
}
|
|
|
|
/deep/ .u-dropdown__menu {
|
|
flex-wrap: wrap;
|
|
// height: 166rpx !important;
|
|
box-shadow: none;
|
|
|
|
.u-dropdown__menu__item {
|
|
width: 33%;
|
|
// height: 82rpx;
|
|
flex: initial;
|
|
}
|
|
}
|
|
|
|
.new-nodata {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
>view {
|
|
width: 300rpx;
|
|
height: 300rpx;
|
|
background-image: url('@/static/staffAttendance/nodata.png');
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
>text {
|
|
font-size: 22rpx;
|
|
color: #808080;
|
|
margin-top: 60rpx;
|
|
}
|
|
}
|
|
</style> |