1525 lines
37 KiB
Vue
1525 lines
37 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" @focus="projectTypeShow = true"
|
||
v-model="projectTypeName"></u-search>
|
||
<!-- <u-input v-model="projectType" type="select" :border="true" @click="projectTypeShow = true" /> -->
|
||
<view @click="dropdownBtnChange('')" 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>
|
||
|
||
<u-select :default-value="defaultIndex" value-name="data" label-name="name" :list="projectTypeList"
|
||
v-model="projectTypeShow" @confirm="actionSheetCallback"></u-select>
|
||
</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.riskPointName}}
|
||
</view>
|
||
</view>
|
||
<view class="riskcolor riskcolor_table" :class="{
|
||
riskcolor1: item.riskLevel == 1,
|
||
riskcolor2: item.riskLevel == 2,
|
||
riskcolor3: item.riskLevel == 3,
|
||
riskcolor4: item.riskLevel == 4,
|
||
}">{{riskLevelUp(item.riskLevel)}}</view>
|
||
</view>
|
||
<view class="box-item">
|
||
<view>风险描述:</view>
|
||
<view>{{item.riskDescription ? item.riskDescription : '--'}}</view>
|
||
</view>
|
||
<view class="box-content">
|
||
<view>管控措施</view>
|
||
<view @click.stop="item.expandMoreShow = !item.expandMoreShow">
|
||
{{item.expandMoreShow ? '收起': '展开更多'}}
|
||
</view>
|
||
</view>
|
||
<view :class="{'webkit-clamp_2': !item.expandMoreShow}" class="box-content_detail">
|
||
<view>
|
||
<view>
|
||
工程措施:{{
|
||
item.engineeringMeasure ? item.engineeringMeasure : "--"
|
||
}}
|
||
</view>
|
||
<view>
|
||
管理措施:{{
|
||
item.managementMeasure ? item.managementMeasure : "--"
|
||
}}
|
||
</view>
|
||
<view>
|
||
个体防护:{{
|
||
item.personalProtection ? item.personalProtection : "--"
|
||
}}
|
||
</view>
|
||
<view>
|
||
应急措施:{{
|
||
item.emergencyMeasure ? item.emergencyMeasure : "--"
|
||
}}
|
||
</view>
|
||
<view>
|
||
教育措施:{{
|
||
item.educationalMeasure ? item.educationalMeasure : "--"
|
||
}}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="box-item">
|
||
<view>排查频次:</view>
|
||
<view>{{item.checkNum ? item.checkNum : '--'}}</view>
|
||
</view>
|
||
<view class="box-item">
|
||
<view>已排查/应排查:</view>
|
||
<view>{{item.checkedNum}}/{{item.remainingNum + item.checkedNum}}</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">全选{{checkedAllCount}}项</u-checkbox>
|
||
</u-checkbox-group>
|
||
</view>
|
||
<view class="confrim-btn">
|
||
<view @click="onNavigateToDetail(1)">未施工</view>
|
||
<view @click="onNavigateToDetail(2)">排查记录</view>
|
||
<view class="btn-primary" @click="onNavigateToDetail(3)">创建隐患</view>
|
||
</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" v-if="issueInvoiceType == 1">
|
||
<view>
|
||
<view>有效时间</view>
|
||
<view @click="constructionTimeShow = true">
|
||
<view v-if="policeCameraInfo.effectiveTimeBegin">
|
||
{{policeCameraInfo.effectiveTimeBegin }} -
|
||
{{policeCameraInfo.effectiveTimeEnd}}
|
||
</view>
|
||
<view v-else>
|
||
请选择
|
||
</view>
|
||
<u-icon name="arrow-left" color="#A2A4AF" size="32"></u-icon>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="content-popup_main" v-else-if="issueInvoiceType == 2">
|
||
<view>
|
||
<view>责任区域</view>
|
||
<view @click="onConstructionAreasType(1)">
|
||
<view>
|
||
{{searchInfo.specificResponsibilityAreaNames ? searchInfo.specificResponsibilityAreaNames : '请选择'}}
|
||
</view>
|
||
<u-icon name="arrow-left" color="#A2A4AF" size="32"></u-icon>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="content-popup_main" v-else>
|
||
<view class="view-box">
|
||
<view>风险等级</view>
|
||
<view>
|
||
<view @click="onRiskLevelClick(item)"
|
||
:class="{'active': policeCameraInfo.riskLevel == item.id}"
|
||
v-for="item in riskLevelList" :key="item.id">{{item.name.replace(/风险/g, "")}}</view>
|
||
</view>
|
||
</view>
|
||
<!-- <view>
|
||
<view>有效时间</view>
|
||
<view @click="constructionTimeShow = true">
|
||
<view v-if="policeCameraInfo.effectiveTimeEnd_begin">
|
||
{{policeCameraInfo.effectiveTimeEnd_begin }} -
|
||
{{policeCameraInfo.effectiveTimeBegin_end}}
|
||
</view>
|
||
<view v-else>
|
||
请选择
|
||
</view>
|
||
<u-icon name="arrow-left" color="#A2A4AF" size="32"></u-icon>
|
||
</view>
|
||
</view>
|
||
<view>
|
||
<view>风险分类</view>
|
||
<view @click="onConstructionAreasType(2)">
|
||
<view>
|
||
{{searchInfo.containLibraryNames ? searchInfo.containLibraryNames : '请选择'}}
|
||
</view>
|
||
<u-icon name="arrow-left" color="#A2A4AF" size="32"></u-icon>
|
||
</view>
|
||
</view>
|
||
<view>
|
||
<view>责任区域</view>
|
||
<view @click="onConstructionAreasType(1)">
|
||
<view>
|
||
{{searchInfo.regionNames ? searchInfo.regionNames : '请选择'}}
|
||
</view>
|
||
<u-icon name="arrow-left" color="#A2A4AF" size="32"></u-icon>
|
||
</view>
|
||
</view> -->
|
||
</view>
|
||
</scroll-view>
|
||
<view class="confrim-btn">
|
||
<view @click="issueInvoiceShow = false;">取消</view>
|
||
<view @click="onSubmit">确定</view>
|
||
</view>
|
||
</view>
|
||
</u-popup>
|
||
<u-calendar v-model="constructionTimeShow" mode="range" :max-date="'2300-01-01'"
|
||
@change="onConstructionTimeChange"></u-calendar>
|
||
<u-popup :mask-close-able="false" v-model="constructionAreasShow" :closeable="false" mode="bottom">
|
||
<view class="content-popup">
|
||
<view class="content-popup_header">
|
||
{{constructionAreasType == 2 ? '风险分类' : '责任区域'}}
|
||
</view>
|
||
<scroll-view v-if="qualityRegionList.length > 0 && constructionAreasType == 1" scroll-y="true"
|
||
style="max-height: 600rpx;">
|
||
<TreeView :defaultExpanded="true" @node-click="onConstructionAreasClick" :multiple="true"
|
||
checked-bg-color="rgba(81,129,246,0.1)" :data="qualityRegionList" :children-key="'children'"
|
||
:label-key="'regionName'" :id-key="'id'" :value="constructionAreasList" />
|
||
</scroll-view>
|
||
<scroll-view v-else-if="riskPointTreeList.length > 0 && constructionAreasType == 2" scroll-y="true"
|
||
style="max-height: 600rpx;">
|
||
<TreeView :defaultExpanded="true" @node-click="onApplicantsClick" :multiple="true"
|
||
checked-bg-color="rgba(81,129,246,0.1)" :data="riskPointTreeList" :children-key="'children'"
|
||
:label-key="'nodeName'" :id-key="'id'" :value="applicantsList" />
|
||
</scroll-view>
|
||
<view class="new-nodata_height" v-else>
|
||
<view class="new-nodata">
|
||
<view></view>
|
||
<text>暂无数据...</text>
|
||
</view>
|
||
</view>
|
||
<view class="confrim-btn">
|
||
<view @click="onCancelClick">取消</view>
|
||
<view @click="onSubmitType">确定</view>
|
||
</view>
|
||
</view>
|
||
</u-popup>
|
||
<u-popup v-model="riskPointShow" :closeable="false" mode="bottom">
|
||
<view class="content-popup">
|
||
<view class="content-popup_header">
|
||
风险点识别
|
||
</view>
|
||
<scroll-view v-if="riskPointTreeList.length > 0" scroll-y="true" style="max-height: 600rpx;">
|
||
<TreeView :defaultExpanded="true" :multiple="true" checked-bg-color="rgba(81,129,246,0.1)"
|
||
:data="riskPointTreeList" :children-key="'children'" :label-key="'nodeName'" :id-key="'id'"
|
||
v-model="riskPointIds" />
|
||
</scroll-view>
|
||
<view class="new-nodata_height" v-else>
|
||
<view class="new-nodata">
|
||
<view></view>
|
||
<text>暂无数据...</text>
|
||
</view>
|
||
</view>
|
||
<view class="confrim-btn">
|
||
<view @click="riskPointShow = false;">取消</view>
|
||
<view @click="onRiskPointSubmit">确定</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: "",
|
||
inserviceTypeList: [{
|
||
label: '全部',
|
||
value: ''
|
||
},
|
||
{
|
||
label: '未开始',
|
||
value: '1'
|
||
},
|
||
{
|
||
label: '施工中',
|
||
value: '2'
|
||
},
|
||
{
|
||
label: '暂停中',
|
||
value: '3'
|
||
},
|
||
{
|
||
label: '已完工',
|
||
value: '4'
|
||
}
|
||
],
|
||
dropDownShow: false,
|
||
submitShow: false,
|
||
workTicketList: [],
|
||
policeCameraInfo: {
|
||
effectiveTimeEnd_begin: "",
|
||
effectiveTimeBegin_end: "",
|
||
effectiveTimeBegin: "",
|
||
effectiveTimeEnd: "",
|
||
riskLevel: "",
|
||
},
|
||
typeIds: [''],
|
||
checkedIds: [''],
|
||
statusIds: [''],
|
||
selectList: [],
|
||
pageNo: 1,
|
||
pageSize: 10,
|
||
issueInvoiceShow: false,
|
||
checkedIdList: [],
|
||
constructionTimeShow: false,
|
||
stateShow: false,
|
||
stateType: "",
|
||
stateInfo: {},
|
||
// 区域
|
||
qualityRegionList: [],
|
||
constructionAreasList: [],
|
||
constructionAreasNameList: [],
|
||
constructionAreasShow: false,
|
||
// 申请单位
|
||
applicantsList: [],
|
||
applicantsNameList: [],
|
||
constructionAreasType: "",
|
||
searchInfo: {
|
||
regionIds: [],
|
||
regionNames: "",
|
||
containLibraryIds: [],
|
||
containLibraryNames: "",
|
||
specificResponsibilityAreaIds: [],
|
||
specificResponsibilityAreaNames: "",
|
||
},
|
||
value1: 1,
|
||
options1: [{
|
||
label: '有效时间',
|
||
value: 1,
|
||
},
|
||
{
|
||
label: '具体责任区域',
|
||
value: 2,
|
||
},
|
||
],
|
||
projectTypeShow: false,
|
||
defaultIndex: [0],
|
||
projectTypeId: "",
|
||
projectTypeName: "",
|
||
projectTypeList: [],
|
||
riskFactorTypeList: [],
|
||
riskPointTreeList: [],
|
||
riskPointIds: [],
|
||
riskPointShow: false,
|
||
issueInvoiceType: "",
|
||
pointId: "",
|
||
riskLevelList: [{
|
||
id: 1,
|
||
name: "重大风险",
|
||
},
|
||
{
|
||
id: 2,
|
||
name: "较大风险",
|
||
},
|
||
{
|
||
id: 3,
|
||
name: "一般风险",
|
||
},
|
||
{
|
||
id: 4,
|
||
name: "低风险",
|
||
},
|
||
],
|
||
}
|
||
},
|
||
onLoad(opts) {
|
||
this.projectDetail = JSON.parse(uni.getStorageSync('projectDetail'));
|
||
this.pointId = opts.id;
|
||
this.getQualityRegionListFn();
|
||
this.getDicProjectTypeList();
|
||
this.getRiskListLibraryList();
|
||
this.loadData();
|
||
},
|
||
mounted() {
|
||
var that = this
|
||
uni.getSystemInfo({
|
||
success(res) {
|
||
that.mobileTopHeight = res.statusBarHeight ? res.statusBarHeight : 0;
|
||
uni.setStorageSync('systemInfo', res)
|
||
console.log(res)
|
||
}
|
||
})
|
||
},
|
||
onShow() {
|
||
let that = this
|
||
uni.$on('updateData', function(data) {
|
||
that.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: {
|
||
onRiskLevelClick(row) {
|
||
if (this.policeCameraInfo.riskLevel == row.id) {
|
||
this.policeCameraInfo.riskLevel = "";
|
||
return
|
||
}
|
||
this.policeCameraInfo.riskLevel = row.id;
|
||
},
|
||
open() {
|
||
this.dropDownShow = true
|
||
},
|
||
close() {
|
||
this.dropDownShow = false
|
||
},
|
||
dropdownBtnChange(e) {
|
||
console.log("触发了", e);
|
||
if (e) {
|
||
const resultList = this.workTicketList.filter(item => item.checked);
|
||
if (resultList.length == 0) {
|
||
this.showToast('请先选择需要批量设置的风险点', 'warning');
|
||
return
|
||
}
|
||
}
|
||
this.issueInvoiceType = e;
|
||
this.issueInvoiceShow = true;
|
||
},
|
||
// 风险点识别确认
|
||
onRiskPointSubmit() {
|
||
console.log(this.riskPointIds);
|
||
if (this.riskPointIds.length == 0) return this.showToast('请先选择风险点类型', 'warning');
|
||
let data = {
|
||
projectSn: this.projectDetail.projectSn,
|
||
libraryIds: this.riskPointIds
|
||
};
|
||
this.sendRequest({
|
||
url: 'xmgl/riskListSource/identifyRisk',
|
||
method: 'POST',
|
||
data: data,
|
||
success: res => {
|
||
if (res.code == 200) {
|
||
this.showToast('保存成功!', 'success');
|
||
this.riskPointShow = false;
|
||
this.loadData();
|
||
}
|
||
}
|
||
})
|
||
},
|
||
actionSheetCallback(event) {
|
||
const findIndex = this.projectTypeList.findIndex(item => item.data == event[0].value);
|
||
this.defaultIndex = [findIndex];
|
||
console.log(event)
|
||
this.projectTypeId = event[0].value;
|
||
this.projectTypeName = event[0].label;
|
||
this.loadData();
|
||
},
|
||
// 多选下拉 1区域 2单位 3人员
|
||
onConstructionAreasType(type) {
|
||
this.constructionAreasType = type;
|
||
if (type == 1) {
|
||
if (this.issueInvoiceType) {
|
||
this.constructionAreasList = this.searchInfo.specificResponsibilityAreaIds.map(item => item);
|
||
this.constructionAreasNameList = this.searchInfo.specificResponsibilityAreaNames ? this.searchInfo
|
||
.specificResponsibilityAreaNames.split(',') : [];
|
||
} else {
|
||
this.constructionAreasList = this.searchInfo.regionIds.map(item => item);
|
||
this.constructionAreasNameList = this.searchInfo.regionNames ? this.searchInfo
|
||
.regionNames.split(',') : [];
|
||
}
|
||
} else if (type == 2) {
|
||
this.applicantsList = this.searchInfo.containLibraryIds.map(item => item);
|
||
this.applicantsNameList = this.searchInfo.containLibraryNames ? this.searchInfo
|
||
.containLibraryNames.split(',') : [];
|
||
} else if (type == 3) {
|
||
this.operatorsList = this.searchInfo.operators.map(item => item);
|
||
this.operatorsNameList = this.searchInfo.operatorsName ? this.searchInfo
|
||
.operatorsName.split(',') : [];
|
||
}
|
||
this.constructionAreasShow = true;
|
||
},
|
||
// 区域
|
||
onConstructionAreasClick(id, checked, label) {
|
||
console.log(id, checked, label)
|
||
const idx = this.constructionAreasList.indexOf(id);
|
||
if (checked && idx === -1) {
|
||
this.constructionAreasList.push(id);
|
||
this.constructionAreasNameList.push(label);
|
||
} else if (!checked && idx !== -1) {
|
||
this.constructionAreasList.splice(idx, 1);
|
||
this.constructionAreasNameList.splice(idx, 1);
|
||
}
|
||
console.log(1122, this.constructionAreasNameList, this.constructionAreasList)
|
||
},
|
||
// 单位
|
||
onApplicantsClick(id, checked, label) {
|
||
const idx = this.applicantsList.indexOf(id);
|
||
if (checked && idx === -1) {
|
||
this.applicantsList.push(id);
|
||
this.applicantsNameList.push(label);
|
||
} else if (!checked && idx !== -1) {
|
||
this.applicantsList.splice(idx, 1);
|
||
this.applicantsNameList.splice(idx, 1);
|
||
}
|
||
},
|
||
onSubmitType() {
|
||
if (this.constructionAreasType == 1) {
|
||
console.log(11233, this.constructionAreasNameList)
|
||
if (this.issueInvoiceType) {
|
||
this.searchInfo.specificResponsibilityAreaIds = [...this.constructionAreasList];
|
||
this.searchInfo.specificResponsibilityAreaNames = this.constructionAreasNameList.join(',');
|
||
} else {
|
||
this.searchInfo.regionIds = [...this.constructionAreasList];
|
||
this.searchInfo.regionNames = this.constructionAreasNameList.join(',');
|
||
}
|
||
|
||
} else if (this.constructionAreasType == 2) {
|
||
this.searchInfo.containLibraryIds = [...this.applicantsList];
|
||
this.searchInfo.containLibraryNames = this.applicantsNameList.join(',');
|
||
}
|
||
this.constructionAreasShow = false;
|
||
},
|
||
onCancelClick() {
|
||
if (this.constructionAreasType == 1) {
|
||
this.constructionAreasList = [...this.searchInfo.regionIds];
|
||
} else if (this.constructionAreasType == 2) {
|
||
this.applicantsList = [...this.searchInfo.containLibraryIds];
|
||
}
|
||
this.constructionAreasShow = false;
|
||
},
|
||
change(index) {
|
||
this.current = index;
|
||
this.loadData();
|
||
},
|
||
onStateShow(type, row) {
|
||
this.stateType = type;
|
||
this.stateInfo = row,
|
||
this.stateShow = true;
|
||
},
|
||
onStateCancel() {
|
||
this.stateShow = false;
|
||
},
|
||
onStateConfirm() {
|
||
this.onChangeState(this.stateType, this.stateInfo);
|
||
this.stateShow = false;
|
||
},
|
||
// 获取时间
|
||
onConstructionTimeChange(event) {
|
||
console.log(113344, event)
|
||
if (this.issueInvoiceType) {
|
||
this.policeCameraInfo.effectiveTimeBegin = event.startDate;
|
||
this.policeCameraInfo.effectiveTimeEnd = event.endDate;
|
||
} else {
|
||
this.policeCameraInfo.effectiveTimeEnd_begin = event.startDate;
|
||
this.policeCameraInfo.effectiveTimeBegin_end = event.endDate;
|
||
// this.loadData();
|
||
}
|
||
},
|
||
// 打开详情
|
||
onNavigateToDetail(type,row) {
|
||
// uni.navigateTo({
|
||
// url: `./sourceDangerDetail?id=${row.id}`
|
||
// })
|
||
if(type == 1) {
|
||
const resultList = this.workTicketList.filter(item => item.checked);
|
||
if (resultList.length == 0) {
|
||
this.showToast('请先选择需要设置的危险源!', 'warning');
|
||
return
|
||
}
|
||
const dataList = resultList.map(item => item.id);
|
||
uni.navigateTo({
|
||
url: `./addUnconstructed?sourceIdList=${JSON.stringify(dataList)}`
|
||
})
|
||
} else if(type == 2) {
|
||
const resultList = this.workTicketList.filter(item => item.checked);
|
||
if (resultList.length == 0) {
|
||
this.showToast('请先选择需要设置的危险源!', 'warning');
|
||
return
|
||
}
|
||
const dataList = resultList.map(item => item.id);
|
||
uni.navigateTo({
|
||
url: `./addRiskRanking?typeId=${1}&sourceIdList=${JSON.stringify(dataList)}&type=add`
|
||
})
|
||
} else if(type == 3) {
|
||
const resultList = this.workTicketList.filter(item => item.checked);
|
||
if (resultList.length == 0) {
|
||
this.showToast('请先选择需要设置的危险源!', 'warning');
|
||
return
|
||
}
|
||
const dataList = resultList.map(item => item.id);
|
||
uni.navigateTo({
|
||
url: `./addRiskRanking?typeId=${2}&sourceIdList=${JSON.stringify(dataList)}&type=add`
|
||
})
|
||
}
|
||
},
|
||
// 全选
|
||
checkedAll(e) {
|
||
this.workTicketList.forEach(item => {
|
||
item.checked = this.checked;
|
||
})
|
||
},
|
||
onSubmit() {
|
||
if (this.issueInvoiceType) {
|
||
this.batchSetFieldRiskListSource();
|
||
} else {
|
||
this.loadData();
|
||
this.issueInvoiceShow = false;
|
||
}
|
||
},
|
||
// 批量设置
|
||
batchSetFieldRiskListSource() {
|
||
const resultList = this.workTicketList.filter(item => item.checked).map(item => {
|
||
if (this.issueInvoiceType == 1) {
|
||
item.effectiveTimeBegin = this.policeCameraInfo.effectiveTimeBegin;
|
||
item.effectiveTimeEnd = this.policeCameraInfo.effectiveTimeEnd;
|
||
} else if (this.issueInvoiceType == 2) {
|
||
item.specificResponsibilityAreaIds = this.searchInfo.specificResponsibilityAreaIds ? this
|
||
.searchInfo.specificResponsibilityAreaIds.join(',') : null
|
||
}
|
||
return {
|
||
...item,
|
||
};
|
||
});
|
||
let data = {
|
||
// projectSn: this.projectDetail.projectSn,
|
||
updates: resultList
|
||
};
|
||
this.sendRequest({
|
||
url: 'xmgl/riskListSource/batchSetField',
|
||
method: 'POST',
|
||
data: data,
|
||
success: res => {
|
||
if (res.code == 200) {
|
||
this.showToast('设置成功!', 'success');
|
||
this.loadData();
|
||
this.issueInvoiceShow = false;
|
||
}
|
||
}
|
||
})
|
||
},
|
||
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/riskListSource/deleteBatch',
|
||
method: 'POST',
|
||
data: data,
|
||
success: res => {
|
||
if (res.code == 200) {
|
||
that.showToast('删除成功!', 'success');
|
||
that.loadData();
|
||
}
|
||
}
|
||
})
|
||
},
|
||
loadData() {
|
||
this.pageNo = 1
|
||
this.workTicketList = []
|
||
this.getPoliceCameraItemListFn();
|
||
},
|
||
// 获取施工场站
|
||
getQualityRegionListFn() {
|
||
let that = this;
|
||
let data = {
|
||
projectSn: this.projectDetail.projectSn,
|
||
pageNo: 1,
|
||
pageSize: -1,
|
||
};
|
||
this.sendRequest({
|
||
url: 'xmgl/qualityRegion/tree/page',
|
||
method: 'POST',
|
||
data: data,
|
||
success: res => {
|
||
if (res.code == 200) {
|
||
that.qualityRegionList = res.result.records;
|
||
}
|
||
}
|
||
})
|
||
},
|
||
// 获取管控清单列表
|
||
getPoliceCameraItemListFn() {
|
||
let data = {
|
||
effectiveTimeEnd_begin: this.policeCameraInfo.effectiveTimeEnd_begin,
|
||
effectiveTimeBegin_end: this.policeCameraInfo.effectiveTimeBegin_end,
|
||
pageNo: this.pageNo,
|
||
pageSize: this.pageSize,
|
||
projectType: this.projectTypeId,
|
||
regionIds: this.searchInfo.regionIds,
|
||
containLibraryIds: this.searchInfo.containLibraryIds,
|
||
projectSn: this.projectDetail.projectSn,
|
||
dynamicType: this.current + 1,
|
||
pointId: this.pointId,
|
||
riskLevel: this.policeCameraInfo.riskLevel,
|
||
}
|
||
|
||
this.sendRequest({
|
||
url: 'xmgl/riskListSource/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()
|
||
}
|
||
}
|
||
})
|
||
},
|
||
// 获取字典工程类别列表
|
||
getDicProjectTypeList() {
|
||
let that = this;
|
||
// 风险清单库工程类别
|
||
this.sendRequest({
|
||
url: 'xmgl/dictionaryItem/list',
|
||
method: 'GET',
|
||
data: {
|
||
projectSn: this.projectDetail.projectSn,
|
||
dictionaryEncoding: "risk_list_project_type",
|
||
},
|
||
success: res => {
|
||
if (res.code == 200) {
|
||
that.projectTypeList = [{
|
||
data: "",
|
||
name: "全部",
|
||
}, ...res.result];
|
||
}
|
||
}
|
||
})
|
||
},
|
||
recursionRiskListLibraryList(dataList) {
|
||
dataList.forEach((item) => {
|
||
if (item.children) {
|
||
item.children = this.recursionRiskListLibraryList(item.children);
|
||
}
|
||
item.disabled = item.ancestors.split(",").length < 4; // 禁用回收站选项
|
||
});
|
||
return dataList;
|
||
},
|
||
getRiskListLibraryList() {
|
||
this.sendRequest({
|
||
url: 'xmgl/riskListLibrary/tree/page',
|
||
method: 'GET',
|
||
data: {
|
||
projectSn: this.projectDetail.projectSn,
|
||
},
|
||
success: res => {
|
||
if (res.code == 200) {
|
||
this.riskPointTreeList = this.recursionRiskListLibraryList(res.result.records);
|
||
}
|
||
}
|
||
})
|
||
},
|
||
// 查找数据
|
||
findNodeById(dataList, id) {
|
||
for (const node of dataList) {
|
||
if (node.id === id) return node;
|
||
if (node.children && node.children.length) {
|
||
const found = this.findNodeById(node.children, id);
|
||
if (found) return found;
|
||
}
|
||
}
|
||
return null;
|
||
},
|
||
showToast(title, type) {
|
||
this.$refs.uToast.show({
|
||
title: title,
|
||
type: type,
|
||
})
|
||
},
|
||
},
|
||
computed: {
|
||
recursionDataListUp() {
|
||
return (dataList, id, typeName) => {
|
||
const find = this.findNodeById(dataList, id)
|
||
return find ? find[typeName] : '--'
|
||
}
|
||
},
|
||
dataListUp() {
|
||
return (dataList, id) => {
|
||
const find = dataList.find(item => item.value == id);
|
||
return find ? find.label : '--'
|
||
}
|
||
},
|
||
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 : '--'
|
||
}
|
||
},
|
||
riskLevelUp() {
|
||
return (riskLevel) => {
|
||
const find = this.riskLevelList.find((item) => riskLevel === item.id);
|
||
return find ? find.name : "--";
|
||
};
|
||
},
|
||
checkedAllCount() {
|
||
return this.workTicketList.filter(item => item.checked).length;
|
||
},
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style scoped lang="scss">
|
||
.riskcolor {
|
||
color: white !important;
|
||
padding: 8rpx 12rpx;
|
||
width: 140rpx;
|
||
margin-left: 10rpx;
|
||
flex: inherit !important;
|
||
text-align: center;
|
||
}
|
||
|
||
.riskcolor_table {
|
||
padding: 2rpx 12rpx;
|
||
display: inline-block;
|
||
}
|
||
|
||
.riskcolor1 {
|
||
background-color: #eb4047;
|
||
}
|
||
|
||
.riskcolor2 {
|
||
background-color: #ffbf00;
|
||
}
|
||
|
||
.riskcolor3 {
|
||
background-color: #ffff00;
|
||
}
|
||
|
||
.riskcolor4 {
|
||
background-color: #006fbf;
|
||
}
|
||
|
||
/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;
|
||
// align-items: center;
|
||
justify-content: space-between;
|
||
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-end;
|
||
width: 80%;
|
||
|
||
.u-input {
|
||
text-align: right !important;
|
||
}
|
||
|
||
.u-icon {
|
||
margin-left: 10rpx;
|
||
transform: rotate(-90deg);
|
||
}
|
||
}
|
||
}
|
||
|
||
>.view-box {
|
||
display: flex;
|
||
flex-direction: column;
|
||
line-height: 72rpx;
|
||
// margin-bottom: 20rpx;
|
||
|
||
>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: 16rpx;
|
||
}
|
||
|
||
>view {
|
||
width: 160rpx;
|
||
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: 192rpx;
|
||
margin-right: 26rpx;
|
||
color: #808080;
|
||
}
|
||
|
||
>view:last-child {
|
||
flex: 1;
|
||
color: #4D4D4D;
|
||
word-break: break-all;
|
||
// display: -webkit-box;
|
||
// -webkit-box-orient: vertical;
|
||
// -webkit-line-clamp: 1;
|
||
// /* 限制为两行 */
|
||
// overflow: hidden;
|
||
}
|
||
|
||
.color-error {
|
||
color: #FF0000 !important;
|
||
}
|
||
|
||
.color-49 {
|
||
color: #498CEC !important;
|
||
}
|
||
}
|
||
|
||
.box-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
|
||
>view:first-child {
|
||
display: flex;
|
||
align-items: center;
|
||
flex: 1;
|
||
|
||
>view:last-child {
|
||
font-weight: 800;
|
||
font-size: 30rpx;
|
||
color: #171717;
|
||
}
|
||
}
|
||
|
||
// >view:last-child {
|
||
// padding: 4rpx 20rpx;
|
||
// border-radius: 4rpx;
|
||
// border: 2rpx solid #F1F1F1;
|
||
// font-weight: 500;
|
||
// font-size: 22rpx;
|
||
// }
|
||
|
||
.wks_active {
|
||
background-color: #898989;
|
||
color: #1A1A1A;
|
||
}
|
||
|
||
.sgz_active {
|
||
background-color: #BED0FA;
|
||
color: #5181F6;
|
||
}
|
||
|
||
.ztz_active {
|
||
background-color: #C38100;
|
||
color: #FFFFFF;
|
||
}
|
||
|
||
.ywg_acitve {
|
||
background-color: #88CF65;
|
||
color: #1A1A1A;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.confrim-bottom {
|
||
width: 100%;
|
||
padding: 26rpx 26rpx;
|
||
background-color: #FFFFFF;
|
||
box-shadow: 0rpx -8rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
position: fixed;
|
||
bottom: 0;
|
||
z-index: 1;
|
||
|
||
>view:first-child {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.confrim-btn {
|
||
display: flex;
|
||
|
||
>view {
|
||
padding: 10rpx 20rpx;
|
||
font-weight: 500;
|
||
font-size: 28rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 2rpx solid #D9D9D9;
|
||
border-radius: 6rpx;
|
||
color: #808080;
|
||
}
|
||
|
||
.btn-error {
|
||
border: 2rpx solid #ED2B29;
|
||
color: #ED2B29;
|
||
}
|
||
|
||
.btn-primary {
|
||
background-color: #5181F6;
|
||
color: #FFFFFF;
|
||
}
|
||
|
||
>view:nth-child(n + 2) {
|
||
margin-left: 12rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.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;
|
||
}
|
||
}
|
||
|
||
.new-nodata_height {
|
||
min-height: 500rpx;
|
||
position: relative;
|
||
}
|
||
|
||
.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> |