|
|
@ -22,7 +22,7 @@ |
|
|
|
</ButtonGradient> |
|
|
|
</div> |
|
|
|
|
|
|
|
<InputSearch style="width: 402px;" :formList="searchFormList" :formConfigOptions="{ labelWidth: '72px' }" |
|
|
|
<InputSearch style="width: 402px;" :formList="searchFormList" :formConfigOptions="{ labelWidth: '90px' }" |
|
|
|
@handleSearch="handleSearch" /> |
|
|
|
</div> |
|
|
|
|
|
|
@ -126,6 +126,17 @@ export default { |
|
|
|
// this.getSearchOptions(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getSearchData() { |
|
|
|
const result = { |
|
|
|
...this.searchData, |
|
|
|
...this.getPagination() |
|
|
|
}; |
|
|
|
|
|
|
|
if (this.searchData?.startStakeMark) result.startStakeMark = `K${this.searchData?.startStakeMark}`; |
|
|
|
if (this.searchData?.endStakeMark) result.endStakeMark = `K${this.searchData?.endStakeMark}`; |
|
|
|
|
|
|
|
return result |
|
|
|
}, |
|
|
|
async handleDelete(data) { |
|
|
|
await confirm({ message: "是否要删除该辖段信息?" }); |
|
|
|
|
|
|
@ -153,10 +164,7 @@ export default { |
|
|
|
exportFile({ |
|
|
|
url: "/business/roadSection/export", |
|
|
|
filename: "管辖路段", |
|
|
|
data: { |
|
|
|
...this.searchData, |
|
|
|
...this.getPagination() |
|
|
|
} |
|
|
|
data: this.getSearchData() |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleSearch(data) { |
|
|
@ -171,10 +179,7 @@ export default { |
|
|
|
request({ |
|
|
|
url: `/business/roadSection/list`, |
|
|
|
method: "get", |
|
|
|
params: { |
|
|
|
...this.searchData, |
|
|
|
...this.getPagination() |
|
|
|
} |
|
|
|
params: this.getSearchData() |
|
|
|
}).then(result => { |
|
|
|
if (result.code != 200) return; |
|
|
|
this.data = result.rows; |
|
|
|