2022-06-08 14:51:11 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="fullHeight">
|
|
|
|
|
<div class="fullHeight">
|
|
|
|
|
<div class="searchBox whiteBlock">
|
2023-12-28 18:13:42 +08:00
|
|
|
<el-form :inline="true" size="medium" :model="formInline" class="demo-form-inline">
|
2023-08-14 09:19:39 +08:00
|
|
|
<el-form-item :label="$t('message.sixComplete.fence.warnType')">
|
|
|
|
|
<el-select v-model="formInline.alarmType">
|
2023-12-28 18:13:42 +08:00
|
|
|
<el-option :label="$t('message.sixComplete.fence.all')" value=""></el-option>
|
|
|
|
|
<el-option :label="item.name" :value="item.data" v-for="(item, index) in alarmTypeArrList" :key="item.data"></el-option>
|
2023-08-14 09:19:39 +08:00
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="$t('message.sixComplete.happenTime')">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
@change="changeTime"
|
|
|
|
|
v-model="dateRangeArr"
|
|
|
|
|
type="datetimerange"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
:range-separator="$t('message.sixComplete.to')"
|
|
|
|
|
:start-placeholder="$t('message.sixComplete.start')"
|
|
|
|
|
:end-placeholder="$t('message.sixComplete.end')"
|
2022-06-08 14:51:11 +08:00
|
|
|
>
|
2023-08-14 09:19:39 +08:00
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="$t('message.sixComplete.fence.devNo')">
|
2023-12-28 18:13:42 +08:00
|
|
|
<el-input v-model="formInline.hardwareId" :placeholder="$t('message.sixComplete.fence.placeholder')"></el-input>
|
2023-08-14 09:19:39 +08:00
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
2023-12-28 18:13:42 +08:00
|
|
|
<el-button type="primary" @click="getList(1)" plain>{{ $t('message.sixComplete.query') }}</el-button>
|
|
|
|
|
<el-button type="warning" @click="refresh" plain>{{ $t('message.sixComplete.fresh') }}</el-button>
|
2023-08-14 09:19:39 +08:00
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
2022-06-08 14:51:11 +08:00
|
|
|
<!-- <el-button type="primary" size="medium" @click="addFn"
|
|
|
|
|
>新增课程</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="warning" plain size="medium" @click="refresh">{{
|
|
|
|
|
$t("message.alarmValueSet.refresh")
|
|
|
|
|
}}</el-button> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="table_wrap">
|
|
|
|
|
<div class="listContent">
|
|
|
|
|
<vue-scroll>
|
2023-12-28 18:13:42 +08:00
|
|
|
<div class="listBox" v-for="(item, index) in workerList" :key="index">
|
2022-06-08 14:51:11 +08:00
|
|
|
<div class="inner whiteBlock">
|
|
|
|
|
<div class="videoBox">
|
|
|
|
|
<!-- <video
|
|
|
|
|
class=""
|
|
|
|
|
:src="$store.state.FILEURL + item.eduVideo"
|
|
|
|
|
controls
|
|
|
|
|
></video> -->
|
2023-08-14 09:19:39 +08:00
|
|
|
<img
|
|
|
|
|
:src="$store.state.FILEURL + item.imageUrl"
|
|
|
|
|
:alt="$t('message.sixComplete.carDense.takePhoto')"
|
|
|
|
|
:preview="$store.state.FILEURL + item.imageUrl"
|
|
|
|
|
/>
|
2022-06-08 14:51:11 +08:00
|
|
|
<div class="desc">
|
2023-08-14 09:19:39 +08:00
|
|
|
<span class="time">{{ getTypeName(item.alarmType) }}</span>
|
2022-06-08 14:51:11 +08:00
|
|
|
<span>{{ item.createTime }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-12-28 18:13:42 +08:00
|
|
|
<!-- 来源 -->
|
|
|
|
|
<div class="title">{{ $t('message.sixComplete.carDense.from') + ':' }}{{ item.location }}</div>
|
|
|
|
|
<!-- 去处置 -->
|
|
|
|
|
<div class="toDisposeOf" @click="openDialog(item)" v-if="!item.handleResult">
|
|
|
|
|
<el-button type="primary" size="small">去处置</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="toDisposeDetail" @click="openDialogDetail(item)" v-else>
|
|
|
|
|
<el-button type="info" size="small">已闭合</el-button>
|
2023-08-14 09:19:39 +08:00
|
|
|
</div>
|
2022-06-08 14:51:11 +08:00
|
|
|
<!-- <div @click.stop="deleteBefore(item)" class="deleteBtn">
|
|
|
|
|
<img src="@/assets/images/icon-delete.png" width="15px" height="15px"/>
|
|
|
|
|
</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</vue-scroll>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="placeholderBox" v-if="workerList.length == 0">
|
|
|
|
|
<img src="@/assets/images/noData.png" alt="" />
|
2023-08-14 09:19:39 +08:00
|
|
|
<p>{{ $t('message.sixComplete.carDense.noWarn') }}</p>
|
2022-06-08 14:51:11 +08:00
|
|
|
</div>
|
|
|
|
|
<!-- <el-table class="tables" :data="workerList">
|
|
|
|
|
<el-table-column
|
|
|
|
|
type="index"
|
|
|
|
|
width="50"
|
|
|
|
|
align="center"
|
|
|
|
|
:label="$t('message.personnelPosition.beaconManage.table.index')"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column prop="eduCourseName" :label="'课程名称'"></el-table-column>
|
|
|
|
|
<el-table-column prop="passScore" :label="'及格分数'"></el-table-column>
|
|
|
|
|
<el-table-column prop="eduWorkerNum" :label="'考试人数'"></el-table-column>
|
|
|
|
|
<el-table-column prop="passWorkerNum" :label="'及格人数'"></el-table-column>
|
|
|
|
|
<el-table-column prop="addTime" :label="'创建时间'"></el-table-column>
|
|
|
|
|
<el-table-column width="200">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div class="tableBtns">
|
|
|
|
|
<div @click="editBefore(scope.row)" class="operationText">
|
|
|
|
|
<span>详细</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div @click="deleteBefore(scope.row)" class="operationText">
|
|
|
|
|
<img src="@/assets/images/icon-delete.png" width="15px" height="15px"/>
|
|
|
|
|
<span>{{$t('message.workType.delete')}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table> -->
|
|
|
|
|
<el-pagination
|
|
|
|
|
class="pagerBox"
|
|
|
|
|
@size-change="SizeChange"
|
|
|
|
|
@current-change="CurrentChange"
|
|
|
|
|
:current-page="pageInfo.pageNo"
|
|
|
|
|
:page-sizes="$store.state.PAGESIZRS"
|
|
|
|
|
:page-size="pageInfo.pageSize"
|
|
|
|
|
layout="total, sizes, prev, pager, next"
|
2022-12-14 18:31:34 +08:00
|
|
|
:total="Number(pageInfo.total)"
|
2022-06-08 14:51:11 +08:00
|
|
|
background
|
|
|
|
|
></el-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-12-28 18:13:42 +08:00
|
|
|
<!-- 处置记录弹框-->
|
|
|
|
|
<el-dialog :modal-append-to-body="false" @close="close" title="处置详情" :visible.sync="recordShow" width="667px">
|
|
|
|
|
<div class="dialog_content">
|
|
|
|
|
<el-form size="medium" ref="addEditForm" :model="addEditForm" :rules="addEditRules" label-width="120px" class="dialogFormBox">
|
|
|
|
|
<el-form-item label="处置结果" prop="handleResult">
|
|
|
|
|
<el-radio :disabled="isDetail" v-model="addEditForm.handleResult" :label="1">已处置</el-radio>
|
|
|
|
|
<el-radio :disabled="isDetail" v-model="addEditForm.handleResult" :label="2">误报忽略</el-radio>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="描述" prop="desc" v-if="addEditForm.handleResult != 2">
|
|
|
|
|
<el-input
|
|
|
|
|
:autosize="{ minRows: 2, maxRows: 6 }"
|
|
|
|
|
:disabled="isDetail"
|
|
|
|
|
type="textarea"
|
|
|
|
|
v-model="addEditForm.desc"
|
|
|
|
|
:placeholder="'请输入'"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="选择违章人员" prop="workerInfoList" v-if="addEditForm.handleResult != 2">
|
|
|
|
|
<el-select :disabled="isDetail" multiple v-model="selectList" placeholder="请选择" clearable @change="dutySelectChange">
|
|
|
|
|
<el-option v-for="(item, index) in workerListOptions" :key="index" :label="item.workerName" :value="item.id"> </el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<div class="dialog-footer" v-if="!isDetail">
|
|
|
|
|
<el-button class="cancleBtn" icon="el-icon-circle-close" size="medium" @click="recordShow = false">取消 </el-button>
|
|
|
|
|
<el-button @click="addBtn" type="primary" icon="el-icon-circle-check" size="medium">确定 </el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
2022-06-08 14:51:11 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
2023-12-28 18:13:42 +08:00
|
|
|
aiAnalyseHardWareAlarmRecordApi,
|
|
|
|
|
aiAnalyseHardWareAlarmRecordEdit,
|
|
|
|
|
getViolatorList
|
|
|
|
|
} from '@/assets/js/api/equipmentCenter/electricBox'
|
|
|
|
|
import { getDictionaryItemApi } from '@/assets/js/api/companyDiagram.js'
|
|
|
|
|
import { getWorkerInfoList } from '@/assets/js/api/laborPerson.js'
|
|
|
|
|
|
2022-06-08 14:51:11 +08:00
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2023-12-28 18:13:42 +08:00
|
|
|
isDetail: false,
|
|
|
|
|
pageType: 'list',
|
2022-06-08 14:51:11 +08:00
|
|
|
workerList: [],
|
|
|
|
|
pageInfo: {
|
|
|
|
|
pageNo: 1, //页数
|
|
|
|
|
pageSize: 10, //条数
|
2023-12-28 18:13:42 +08:00
|
|
|
total: 0 //总条数
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
2023-12-28 18:13:42 +08:00
|
|
|
itemId: '',
|
2023-08-14 09:19:39 +08:00
|
|
|
formInline: {
|
|
|
|
|
alarmType: '',
|
|
|
|
|
endTime: '',
|
|
|
|
|
startTime: '',
|
|
|
|
|
hardwareId: ''
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
2023-08-14 09:19:39 +08:00
|
|
|
dateRangeArr: [],
|
2023-12-28 18:13:42 +08:00
|
|
|
alarmTypeArrList: [],
|
|
|
|
|
recordShow: false,
|
|
|
|
|
addEditForm: {
|
|
|
|
|
workerInfoList: [],
|
|
|
|
|
handleResult: '',
|
|
|
|
|
desc: ''
|
|
|
|
|
},
|
|
|
|
|
addEditRules: {
|
|
|
|
|
handleResult: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '必填',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
workerListOptions: [],
|
|
|
|
|
selectList: []
|
|
|
|
|
}
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.selectNowDate()
|
2023-12-28 18:13:42 +08:00
|
|
|
this.getList()
|
2023-11-04 09:16:56 +08:00
|
|
|
this.getDictionaryList()
|
2023-12-28 18:13:42 +08:00
|
|
|
this.getDutyPerson()
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
2023-12-28 18:13:42 +08:00
|
|
|
// 选择人员下拉回调
|
|
|
|
|
dutySelectChange(e) {
|
|
|
|
|
// const item = this.dutyList.find(item => item.userId === e)
|
|
|
|
|
// this.addEditForm.dutyUserName = item.realName
|
|
|
|
|
const newArray = e.map(item => ({ id: item }))
|
|
|
|
|
this.addEditForm.workerInfoList = newArray
|
|
|
|
|
console.log('下拉选择', newArray)
|
|
|
|
|
},
|
|
|
|
|
close() {
|
|
|
|
|
this.addEditForm = {}
|
|
|
|
|
this.selectList = []
|
|
|
|
|
this.isDetail = false
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.addEditForm.clearValidate()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//查询选择人员下拉
|
|
|
|
|
getPersonDetail(itemId) {
|
|
|
|
|
let data = {
|
|
|
|
|
projectSn: this.$store.state.projectSn,
|
|
|
|
|
aiAnalyseHardWareAlarmRecordId: itemId
|
|
|
|
|
}
|
|
|
|
|
getViolatorList(data).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.selectList = res.result.map(items => items.id)
|
|
|
|
|
console.log('回显选择人员', this.selectList)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//查询选择人员下拉
|
|
|
|
|
getDutyPerson() {
|
|
|
|
|
let data = {
|
|
|
|
|
projectSn: this.$store.state.projectSn
|
|
|
|
|
}
|
|
|
|
|
getWorkerInfoList(data).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.workerListOptions = res.result.records
|
|
|
|
|
console.log('获取劳务人员下拉', this.workerListOptions)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 打开处置弹窗
|
|
|
|
|
openDialog(item) {
|
|
|
|
|
this.recordShow = true
|
|
|
|
|
this.addEditForm = JSON.parse(JSON.stringify(item))
|
|
|
|
|
this.getPersonDetail(item.id)
|
|
|
|
|
console.log('打开处置弹窗', item)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 打开 详情处置弹窗
|
|
|
|
|
openDialogDetail(item) {
|
|
|
|
|
this.recordShow = true
|
|
|
|
|
this.isDetail = true
|
|
|
|
|
this.addEditForm = JSON.parse(JSON.stringify(item))
|
|
|
|
|
this.getPersonDetail(item.id)
|
|
|
|
|
console.log('打开处置弹窗', item)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 保存
|
|
|
|
|
addBtn() {
|
|
|
|
|
let params = JSON.parse(JSON.stringify(this.addEditForm))
|
|
|
|
|
params.projectSn = this.$store.state.projectSn
|
|
|
|
|
this.$refs.addEditForm.validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
console.log('保存', params)
|
|
|
|
|
aiAnalyseHardWareAlarmRecordEdit(params).then(result => {
|
|
|
|
|
if (result.success) {
|
|
|
|
|
this.$message.success(result.message)
|
|
|
|
|
this.getList()
|
|
|
|
|
this.recordShow = false
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
2023-11-04 09:16:56 +08:00
|
|
|
//获取字典施工阶段
|
|
|
|
|
getDictionaryList() {
|
|
|
|
|
getDictionaryItemApi({
|
2024-01-24 18:40:54 +08:00
|
|
|
dictionaryEncoding: 'ai_analyse_hard_ware_alarm_record_type',
|
|
|
|
|
projectSn: this.$store.state.projectSn
|
2023-11-04 09:16:56 +08:00
|
|
|
}).then(res => {
|
|
|
|
|
if (res.result.length > 0) {
|
2023-12-28 18:13:42 +08:00
|
|
|
console.log('获取字典施工阶段', res.result)
|
2023-11-04 09:16:56 +08:00
|
|
|
this.alarmTypeArrList = res.result
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-06-08 14:51:11 +08:00
|
|
|
// 获取当前时间 返回YYYY-MM-DD HH:mm:ss
|
2023-08-14 09:19:39 +08:00
|
|
|
selectNowDate() {
|
|
|
|
|
var date = new Date(),
|
|
|
|
|
year = date.getFullYear(),
|
|
|
|
|
month = date.getMonth() + 1,
|
|
|
|
|
day = date.getDate(),
|
|
|
|
|
hours = date.getHours(), //获取当前小时数(0-23)
|
2023-12-28 18:13:42 +08:00
|
|
|
minutes = date.getMinutes(), //获取当前分钟数(0-59)
|
2023-08-14 09:19:39 +08:00
|
|
|
seconds = date.getSeconds()
|
2023-12-28 18:13:42 +08:00
|
|
|
month >= 1 && month <= 9 ? (month = '0' + month) : ''
|
|
|
|
|
day >= 0 && day <= 9 ? (day = '0' + day) : ''
|
|
|
|
|
hours >= 0 && hours <= 9 ? (hours = '0' + hours) : ''
|
|
|
|
|
minutes >= 0 && minutes <= 9 ? (minutes = '0' + minutes) : ''
|
|
|
|
|
seconds >= 0 && seconds <= 9 ? (seconds = '0' + seconds) : ''
|
|
|
|
|
var timer = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds
|
2023-08-14 09:19:39 +08:00
|
|
|
var timer2 = year + '-' + month + '-' + day + ' ' + '00:00:00'
|
|
|
|
|
this.dateRangeArr = [timer2, timer]
|
|
|
|
|
this.formInline.startTime = this.dateRangeArr[0]
|
|
|
|
|
this.formInline.endTime = this.dateRangeArr[1]
|
|
|
|
|
console.log(timer)
|
|
|
|
|
// return timer;
|
|
|
|
|
},
|
|
|
|
|
getTypeName(val) {
|
2023-12-28 18:13:42 +08:00
|
|
|
let text = ''
|
2023-11-04 09:16:56 +08:00
|
|
|
this.alarmTypeArrList.forEach(item => {
|
|
|
|
|
if (item.data == val) {
|
|
|
|
|
text = item.name
|
2022-06-08 14:51:11 +08:00
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
return text
|
|
|
|
|
},
|
2023-08-14 09:19:39 +08:00
|
|
|
changeTime() {
|
|
|
|
|
if (this.dateRangeArr) {
|
|
|
|
|
this.formInline.startTime = this.dateRangeArr[0]
|
|
|
|
|
this.formInline.endTime = this.dateRangeArr[1]
|
|
|
|
|
} else {
|
|
|
|
|
this.formInline.startTime = ''
|
|
|
|
|
this.formInline.endTime = ''
|
|
|
|
|
}
|
|
|
|
|
},
|
2022-06-08 14:51:11 +08:00
|
|
|
refresh() {
|
2023-08-14 09:19:39 +08:00
|
|
|
this.pageInfo.pageNo = 1
|
|
|
|
|
this.formInline.hardwareId = ''
|
|
|
|
|
this.formInline.startTime = ''
|
|
|
|
|
this.formInline.endTime = ''
|
|
|
|
|
this.formInline.alarmType = ''
|
|
|
|
|
this.dateRangeArr = []
|
2023-12-28 18:13:42 +08:00
|
|
|
this.getList()
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
|
|
|
|
getList(val) {
|
2023-08-14 09:19:39 +08:00
|
|
|
if (val == 1) {
|
2022-06-08 14:51:11 +08:00
|
|
|
this.pageInfo.pageNo = 1
|
|
|
|
|
}
|
2023-08-14 09:19:39 +08:00
|
|
|
let json = Object.assign(this.pageInfo, this.formInline)
|
|
|
|
|
json.projectSn = this.$store.state.projectSn
|
2023-12-28 18:13:42 +08:00
|
|
|
aiAnalyseHardWareAlarmRecordApi(json).then(res => {
|
|
|
|
|
this.workerList = res.result.records
|
|
|
|
|
this.pageInfo.total = res.result.total
|
2023-08-14 09:19:39 +08:00
|
|
|
setTimeout(() => {
|
2023-12-28 18:13:42 +08:00
|
|
|
this.$previewRefresh()
|
|
|
|
|
}, 100)
|
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
|
|
|
|
goBack() {
|
2023-12-28 18:13:42 +08:00
|
|
|
this.pageType = 'list'
|
|
|
|
|
this.getList()
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
|
|
|
|
// addFn() {
|
|
|
|
|
// this.itemId = "";
|
|
|
|
|
// this.pageType = "add";
|
|
|
|
|
// },
|
|
|
|
|
editBefore(item) {
|
2023-12-28 18:13:42 +08:00
|
|
|
this.itemId = item.id
|
|
|
|
|
this.pageType = 'detail'
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
|
|
|
|
deleteBefore(item) {
|
2023-08-14 09:19:39 +08:00
|
|
|
this.$confirm(this.$t('message.sixComplete.carWash.tipText') + '?', this.$t('message.sixComplete.carWash.tip'), {
|
2022-06-08 14:51:11 +08:00
|
|
|
confirmButtonText: this.$t('message.sixComplete.carWash.confirm'),
|
|
|
|
|
cancelButtonText: this.$t('message.sixComplete.carWash.cancel'),
|
2023-12-28 18:13:42 +08:00
|
|
|
type: 'warning'
|
2022-06-08 14:51:11 +08:00
|
|
|
})
|
|
|
|
|
.then(() => {
|
2023-12-28 18:13:42 +08:00
|
|
|
workerSafeEducationDeleteApi({ id: item.id }).then(res => {
|
2022-06-08 14:51:11 +08:00
|
|
|
this.$message({
|
2023-12-28 18:13:42 +08:00
|
|
|
type: 'success',
|
|
|
|
|
message: this.$t('message.sixComplete.carWash.deleteSuccess') + '!'
|
|
|
|
|
})
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$message({
|
2023-12-28 18:13:42 +08:00
|
|
|
type: 'info',
|
|
|
|
|
message: this.$t('message.sixComplete.carWash.cancelDelete')
|
|
|
|
|
})
|
|
|
|
|
})
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
|
|
|
|
SizeChange(val) {
|
|
|
|
|
console.log(val)
|
2023-12-28 18:13:42 +08:00
|
|
|
this.pageInfo.pageSize = val
|
|
|
|
|
this.getList()
|
2022-06-08 14:51:11 +08:00
|
|
|
},
|
|
|
|
|
CurrentChange(val) {
|
|
|
|
|
console.log(val)
|
2023-12-28 18:13:42 +08:00
|
|
|
this.pageInfo.pageNo = val
|
|
|
|
|
this.getList()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-06-08 14:51:11 +08:00
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.backText {
|
|
|
|
|
margin: -10px 0 0 0;
|
|
|
|
|
}
|
2023-08-14 09:19:39 +08:00
|
|
|
.jyjzPage .backText {
|
2022-06-08 14:51:11 +08:00
|
|
|
margin: 15px 15px 0;
|
2023-08-14 09:19:39 +08:00
|
|
|
/deep/.el-page-header__content {
|
2022-06-08 14:51:11 +08:00
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.listContent {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
height: calc(100% - 70px);
|
|
|
|
|
}
|
|
|
|
|
.listBox {
|
|
|
|
|
float: left;
|
|
|
|
|
width: 20%;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
.inner {
|
|
|
|
|
margin: 0 10px;
|
|
|
|
|
box-shadow: 0px 2px 16px 0px rgba(131, 183, 255, 0.2);
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
.videoBox {
|
|
|
|
|
position: relative;
|
|
|
|
|
height: 200px;
|
|
|
|
|
img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
.desc {
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
|
padding: 5px 10px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: calc(100% - 20px);
|
|
|
|
|
color: white;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.title {
|
2023-12-28 18:13:42 +08:00
|
|
|
width: 70%;
|
2022-06-08 14:51:11 +08:00
|
|
|
padding: 10px 10px 20px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
2023-12-28 18:13:42 +08:00
|
|
|
// cursor: pointer;
|
2023-08-14 09:19:39 +08:00
|
|
|
&:hover {
|
|
|
|
|
color: @--color-primary;
|
2022-06-08 14:51:11 +08:00
|
|
|
}
|
|
|
|
|
}
|
2023-08-14 09:19:39 +08:00
|
|
|
&:hover {
|
|
|
|
|
.deleteBtn {
|
|
|
|
|
display: block;
|
2022-06-08 14:51:11 +08:00
|
|
|
}
|
|
|
|
|
}
|
2023-08-14 09:19:39 +08:00
|
|
|
.deleteBtn {
|
|
|
|
|
display: none;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 10px;
|
|
|
|
|
bottom: 10px;
|
|
|
|
|
cursor: pointer;
|
2022-06-08 14:51:11 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.pagerBox {
|
|
|
|
|
margin: 20px;
|
|
|
|
|
}
|
2023-08-14 09:19:39 +08:00
|
|
|
.table_wrap {
|
2022-06-08 14:51:11 +08:00
|
|
|
position: relative;
|
|
|
|
|
}
|
2023-12-28 18:13:42 +08:00
|
|
|
.toDisposeOf {
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 3%;
|
|
|
|
|
bottom: 4%;
|
|
|
|
|
}
|
|
|
|
|
.toDisposeDetail {
|
|
|
|
|
color: #fff;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 3%;
|
|
|
|
|
bottom: 4%;
|
|
|
|
|
}
|
2022-06-08 14:51:11 +08:00
|
|
|
</style>
|