lion 3 years ago
parent 9dbd680231
commit 1aab64868a

@ -6,6 +6,7 @@
<div slot="content"></div> <div slot="content"></div>
<slot> <slot>
<div> <div>
<Input style="width: 200px; margin-right: 10px" v-model="searchFields.KeyWord" placeholder="关键字搜索" />
<el-select class="vm10" filterable v-model="searchFields.area_id" placeholder="请选择所属片区"> <el-select class="vm10" filterable v-model="searchFields.area_id" placeholder="请选择所属片区">
<el-option <el-option
v-for="item in selects.areasList" v-for="item in selects.areasList"
@ -14,7 +15,28 @@
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<!-- <Input style="width: 200px; margin-right: 10px" v-model="searchFields.KeyWord" placeholder="关键字搜索" /> --> <el-select class="vm10" filterable v-model="searchFields.status_id" placeholder="请选择状态">
<el-option
v-for="item in selects.statusList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
<el-select class="vm10" filterable v-model="searchFields.type_id" placeholder="请选择类型">
<el-option
v-for="item in selects.typeList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
<el-date-picker
class="vm10"
v-model="datesearch"
type="datetime"
placeholder="选择日期时间">
</el-date-picker>
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button> <Button type="primary" @click="load" style="margin-left: 10px">查询</Button>
<Button type="primary" @click="edit()" style="margin-left: 10px">新增</Button> <Button type="primary" @click="edit()" style="margin-left: 10px">新增</Button>
</div> </div>
@ -52,6 +74,8 @@
</div> </div>
<div v-else-if="column.type=='format'"> <div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}} {{scope.row[column.field]?scope.row[column.field].name:""}}
<!-- <div v-if="column.field=='ask_content_detail'">{{scope.row[column.field]?scope.row[column.field].value:""}}</div>
<div v-else></div> -->
</div> </div>
<!-- <div v-else-if="column.type=='end_type'"> <!-- <div v-else-if="column.type=='end_type'">
<el-tag v-if="scope.row[column.field]==0"></el-tag> <el-tag v-if="scope.row[column.field]==0"></el-tag>
@ -685,6 +709,7 @@
}, },
data() { data() {
return { return {
datesearch:"",
tableHeight: 0, tableHeight: 0,
rainTypeVisible: false, rainTypeVisible: false,
rainType: "1", rainType: "1",
@ -707,7 +732,30 @@
areasList:[{ areasList:[{
id:"", id:"",
name:"所有" name:"所有"
}] }],
typeList:[{
id:"",
name:"所有"
},{
id:"1",
name:"日常雨水设施"
},{
id:"2",
name:"在建工地"
}],
statusList:[{
id:"",
name:"所有"
},{
id:"1",
name:"未审核"
},{
id:"2",
name:"已审核"
},{
id:"3",
name:"已办结"
}],
}, },
paginations: { paginations: {
page: 1, page: 1,
@ -778,6 +826,20 @@
align: "left", align: "left",
width: 360 width: 360
}, },
{
field: "area_info",
title: "所属片区",
type: "format",
align: "center",
width:180
},
{
field: "askName",
title: "巡查内容",
type: "string",
align: "center",
width:180
},
{ {
field: "type", field: "type",
title: "类型", title: "类型",
@ -792,13 +854,6 @@
align: "center", align: "center",
width: 180 width: 180
}, },
// {
// field: "end_type",
// title: "",
// type: "end_type",
// align: "center",
// width:160
// },
{ {
field: "admin", field: "admin",
title: "提交人", title: "提交人",
@ -904,6 +959,11 @@
page_size: this.paginations.page_size, page_size: this.paginations.page_size,
area_id: this.searchFields.area_id area_id: this.searchFields.area_id
}).then(response => { }).then(response => {
for(var m of response.data){
if(m.rain_equipment_info){
m.askName = m.rain_equipment_info.ask_content_detail?m.rain_equipment_info.ask_content_detail.value:""
}
}
this.tableData = response.data; this.tableData = response.data;
this.paginations.total = response.total; this.paginations.total = response.total;
}).catch(error => { }).catch(error => {
@ -1237,10 +1297,16 @@
.files_check .el-upload.el-upload--picture-card { .files_check .el-upload.el-upload--picture-card {
display: none; display: none;
} }
.vm10{
margin-right:10px
}
.vm10 input{ .vm10 input{
height:32px;vertical-align: middle; height:32px;vertical-align: middle;
} }
.vm10 .el-select__caret.el-input__icon.el-icon-arrow-up{ .vm10 .el-select__caret.el-input__icon.el-icon-arrow-up{
line-height: 30px; line-height: 30px;
} }
.vm10 .el-input__icon.el-icon-time{
line-height: 30px;
}
</style> </style>

@ -826,6 +826,13 @@
align: "left", align: "left",
width:360 width:360
}, },
{
field: "area_info",
title: "所属片区",
type: "format",
align: "center",
width:180
},
{ {
field: "type", field: "type",
title: "类型", title: "类型",

Loading…
Cancel
Save