fix: BUG修复

This commit is contained in:
cjp 2024-01-11 17:51:38 +08:00
parent 9e089d96c2
commit 8acd487201
6 changed files with 94 additions and 21 deletions

View File

@ -46,6 +46,7 @@
autoplay autoplay
controls controls
loop loop
muted
></video> ></video>
<div <div
@mouseenter="showChangeImg = true" @mouseenter="showChangeImg = true"

View File

@ -39,6 +39,32 @@ export default {
data() { data() {
return { return {
dataList: [ dataList: [
{
date: '2024/1/2',
building: '屋顶层悬挑板',
quantity: 15
},
{
date: '2024/1/2',
building: '屋顶层悬挑板',
quantity: 15
},
{
date: '2023/12/23',
building: '屋面层楼承板',
quantity: 230
},
{
date: '2023/12/23',
building: '屋面层楼承板',
quantity: 230
},
{
date: '2023/12/23',
building: '屋面层楼承板',
quantity: 230
},
{ {
date: '2023/12/20', date: '2023/12/20',
building: '三十四至三十五层钢管柱', building: '三十四至三十五层钢管柱',
@ -2227,7 +2253,8 @@ export default {
}, },
series: [ series: [
{ {
data: [3589, 311.5, 3007.5, 1683.28, 1205, 3508, 8538, 5602, 2857, 4822, 3894, 2628], // data: [3589, 311.5, 3007.5, 1683.28, 1205, 3508, 8538, 5602, 2857, 4822, 3894, 3318],
data: [30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
type: 'line', type: 'line',
smooth: true, smooth: true,
color: '#f56c35' color: '#f56c35'

View File

@ -199,7 +199,7 @@ export default {
} }
}, },
processChange(e) { processChange(e) {
console.log(e, '工序选中') // console.log(e, '')
const resultArray = e.map(id => { const resultArray = e.map(id => {
const foundObject = this.processOption.find(obj => obj.id === id) const foundObject = this.processOption.find(obj => obj.id === id)
return foundObject || [] // null return foundObject || [] // null
@ -271,6 +271,22 @@ export default {
}) })
}, },
//
getCurrentProcess(listId) {
let data = {
projectSn: this.projectSn,
smartBeamFieldMakeBeamPedestalId: listId
}
beamFieldProcessList(data).then(res => {
console.log('回显工序列表', res)
if (res.result.length > 0) {
this.processOptionValue = res.result.map(item => item.id)
this.cardForm.processList = res.result
}
console.log('回显工序列表', this.processOptionValue)
})
},
// //
getPointList() { getPointList() {
let data = { let data = {
@ -293,11 +309,12 @@ export default {
}, },
editBtn(obj) { editBtn(obj) {
console.log('编辑的信息', obj) console.log('编辑的信息', obj)
if (obj.pedestalProcess.length > 0) { // if (obj.pedestalProcess.length > 0) {
const dataArray = obj.pedestalProcess.split(',').map(item => item.trim()) // const dataArray = obj.pedestalProcess.split(',').map(item => item.trim())
// console.log(dataArray,"") // console.log(dataArray,"")
this.processOptionValue = dataArray // this.processOptionValue = dataArray
} // }
this.getCurrentProcess(obj.id)
this.cardDialog = true this.cardDialog = true
this.isAdding = true this.isAdding = true

View File

@ -47,13 +47,11 @@
<el-table-column prop="uploadTime" align="center" label="上报时间"> <el-table-column prop="uploadTime" align="center" label="上报时间">
</el-table-column> </el-table-column>
<el-table-column prop="gasType" align="center" label="气体类型"> <el-table-column prop="gasType" align="center" label="气体类型">
<template slot-scope="scope">{{ <template slot-scope="scope">
scope.row.gasType == 1 <div v-if="scope.row.gasType">
? '氧气' {{gasTypeOption[scope.row.gasType - 1].label}}
: scope.row.gasType == 2 </div>
? '甲烷' </template>
: '一氧化碳'
}}</template>
</el-table-column> </el-table-column>
<el-table-column prop="gasVal" align="center" label="监测值"> <el-table-column prop="gasVal" align="center" label="监测值">
<template slot-scope="scope"> <template slot-scope="scope">
@ -91,6 +89,24 @@ export default {
pageSize: 10, pageSize: 10,
total: 0, total: 0,
tableData: [], tableData: [],
gasTypeOption: [
{
value: 1,
label: '氧气'
},
{
value: 2,
label: '甲烷'
},
{
value: 3,
label: '一氧化碳'
},
{
value: 3,
label: '硫化氢'
}
]
}; };
}, },
created() { created() {

View File

@ -336,20 +336,32 @@ export default {
}, },
methods: { methods: {
inputNumber(value) { inputNumber(value) {
console.log('输入框的值---', value); console.log('输入框的值---', value,this.addEditForm.yvalueRandomRangeEnd);
if (value >= 310 && value <= 530) { // if (value >= 310 && value <= 530) {
// this.addEditForm.yvalueRandomRangeStart = value;
// } else {
// this.$message.error(':310-530')
// this.addEditForm.yvalueRandomRangeStart = ''
// }
if (this.addEditForm.yvalueRandomRangeEnd == '' || (value < this.addEditForm.yvalueRandomRangeEnd)) {
this.addEditForm.yvalueRandomRangeStart = value; this.addEditForm.yvalueRandomRangeStart = value;
} else { } else {
this.$message.error('请输入符合范围内的数值:310-530') this.$message.error('请输入正确的范围数值')
this.addEditForm.yvalueRandomRangeStart = '' this.addEditForm.yvalueRandomRangeStart = ''
} }
}, },
inputNumber2(value) { inputNumber2(value) {
console.log('输入框的值---', value); console.log('输入框的值---', value);
if (value >= this.addEditForm.yvalueRandomRangeStart && value <= 530) { // if (value >= this.addEditForm.yvalueRandomRangeStart && value <= 530) {
// this.addEditForm.yvalueRandomRangeEnd = value;
// } else {
// this.$message.error(':310-530')
// this.addEditForm.yvalueRandomRangeEnd = ''
// }
if (value > this.addEditForm.yvalueRandomRangeStart) {
this.addEditForm.yvalueRandomRangeEnd = value; this.addEditForm.yvalueRandomRangeEnd = value;
} else { } else {
this.$message.error('请输入符合范围内的数值:310-530') this.$message.error('请输入正确的范围数值')
this.addEditForm.yvalueRandomRangeEnd = '' this.addEditForm.yvalueRandomRangeEnd = ''
} }
}, },

View File

@ -164,7 +164,7 @@
</div> </div>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button class="cancleBtn" @click="dialogVisible = false" icon="el-icon-circle-close" size="medium">取消 </el-button> <el-button class="cancleBtn" @click="dialogVisible = false" icon="el-icon-circle-close" size="medium">取消 </el-button>
<el-button type="primary" icon="el-icon-circle-check" @click="submitBtn" size="medium">确定 </el-button> <el-button v-if="title != '详情'" type="primary" icon="el-icon-circle-check" @click="submitBtn" size="medium">确定 </el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- // --> <!-- // -->
@ -394,7 +394,7 @@ export default {
// //
addBefore(addType, value) { addBefore(addType, value) {
if (addType == 1) { if (addType == 1) {
this.title = '新增分项' this.title = '新增风险清册'
this.dialogType = 1 this.dialogType = 1
} else { } else {
console.log('新增子分项点击', value) console.log('新增子分项点击', value)