|
@ -244,12 +244,13 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 获取数据 |
|
|
// 获取数据 |
|
|
getTableData(value = '') { |
|
|
getTableData(value = '', status = '') { |
|
|
postDFMaintenanceRecordsList({ |
|
|
postDFMaintenanceRecordsList({ |
|
|
data: { |
|
|
data: { |
|
|
timeView: { |
|
|
timeView: { |
|
|
timeField: "create_time" |
|
|
timeField: "create_time" |
|
|
}, |
|
|
}, |
|
|
|
|
|
status: status == 2 ? '' : status |
|
|
}, |
|
|
}, |
|
|
cv: { |
|
|
cv: { |
|
|
name: "name", |
|
|
name: "name", |
|
@ -265,13 +266,19 @@ export default { |
|
|
} |
|
|
} |
|
|
console.log('🚀表格数据🚀', res) |
|
|
console.log('🚀表格数据🚀', res) |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 重置搜索 |
|
|
|
|
|
resetSearch() { |
|
|
|
|
|
this.searchInput = '' |
|
|
|
|
|
this.selectStatus = '2' |
|
|
|
|
|
this.getTableData() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
// 获取列表数据 |
|
|
// 获取列表数据 |
|
|
this.getTableData() |
|
|
this.getTableData() |
|
|
// 获取状态字典 |
|
|
// 获取状态字典 |
|
|
getDicts('xs_record_status').then((res) => { |
|
|
getDicts('xs_yh_record_status').then((res) => { |
|
|
if (res.data && Array.isArray(res.data)) { |
|
|
if (res.data && Array.isArray(res.data)) { |
|
|
this.statusList = res.data |
|
|
this.statusList = res.data |
|
|
} |
|
|
} |
|
@ -295,7 +302,8 @@ export default { |
|
|
<el-option v-for="item in statusList" :label="item.dictLabel" :value="item.dictValue" |
|
|
<el-option v-for="item in statusList" :label="item.dictLabel" :value="item.dictValue" |
|
|
:key="item.id"></el-option> |
|
|
:key="item.id"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-button class="search-btn" type="success" @click="getTableData(searchInput)">搜索</el-button> |
|
|
<el-button class="search-btn" type="success" @click="getTableData(searchInput, selectStatus)">搜索</el-button> |
|
|
|
|
|
<el-button @click="resetSearch()">重置</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<el-button class="search-btn" style=" margin-right: 16px;margin-bottom: 8px; float: right;" type="success" |
|
|
<el-button class="search-btn" style=" margin-right: 16px;margin-bottom: 8px; float: right;" type="success" |
|
|
@click="dialogVisible = true">添加</el-button> |
|
|
@click="dialogVisible = true">添加</el-button> |
|
|