修改对应bug

This commit is contained in:
chenze 2024-08-30 19:50:35 +08:00
parent 953b148da4
commit bb5dd5f4e3
5 changed files with 12 additions and 17 deletions

View File

@ -30,7 +30,7 @@
</a-col>
<a-col :md="7" :sm="15">
<a-form-item label="报修来源">
<a-select v-model="queryParam.remark"
<a-select v-model="queryParam.remark" :allowClear="true"
v-decorator="['remark']">
<a-select-option v-for="item in remarkOption" :key="item.value">
{{ item.label }}
@ -40,7 +40,7 @@
</a-col>
<a-col :md="7" :sm="15">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="工单状态">
<a-select v-model="queryParam.type"
<a-select v-model="queryParam.type" :allowClear="true"
v-decorator="['status']">
<a-select-option v-for="item in options" :key="item.value">
{{ item.label }}
@ -433,6 +433,7 @@ export default {
'type': type,
'repair': {
'explain': this.queryParam.explain,
'sn': this.queryParam.sn,
'typeId': this.queryParam.typeId,
'deviceId': this.queryParam.deviceId,
'status': this.queryParam.status,

View File

@ -226,9 +226,8 @@ export default {
},
getDeviceName (deviceId) {
let device = this.deviceList.find(item => item.id == deviceId)
console.log(device)
this.deviceName = device.label
this.deviceId = device.key
this.deviceName = device.name
this.deviceId = device.id
},
selectFailureType () {
getRepairFailureTypeList().then(res => {
@ -247,14 +246,14 @@ export default {
getRepairRoomList({ 'addressId': roomId }).then(res => {
this.roomList = res.rows
})
this.address = room.label
this.addressId = room.key
this.address = room.name
this.addressId = room.id
},
selectFloorName (floorId) {
let floor = this.roomList.find(item => item.id == floorId)
this.floor = floor.label
this.floorId = floor.key
this.floor = floor.name
this.floorId = floor.id
},
async handlePreview (file) {

View File

@ -3,11 +3,6 @@
<div class="table-page-search-wrapper">
<a-form layout="inline">
<a-row :gutter="48">
<a-col :md="5" :sm="15">
<a-form-item label="报修单号">
<a-input placeholder="请输入报修单号" v-model="queryParam.sn" />
</a-form-item>
</a-col>
<a-col :md="7" :sm="15">
<a-form-item label="时间范围">
<a-range-picker v-model="timeRange" @change="selectTime" />

View File

@ -4,7 +4,7 @@
<a-form layout="inline">
<a-row :gutter="48">
<a-col :md="5" :sm="15">
<a-form-item label="设备类别">
<a-form-item label="故障类型">
<a-input placeholder="请输入名称" v-model="queryParam.name" />
</a-form-item>
</a-col>
@ -81,7 +81,7 @@ export default {
//
columns: [
{
title: '设备类别',
title: '故障类型',
dataIndex: 'name'
},
{

View File

@ -226,7 +226,7 @@ export default {
//
columns: [
{
title: '类型',
title: '故障类型',
dataIndex: 'typename'
},
{